Last active
February 1, 2017 23:34
-
-
Save Kasst1el/78cc7587147c0679903d53cb7352e60d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function hSize(){ | |
var windowWidth = $(window).width(); | |
var menu_block = $(".s_menu .button_h_sale").width(); | |
if ($(window).width() <= '1200'){ | |
var height_of_image_gallery = $(".s_gallery .gallery img").height(); | |
$(".s_gallery .gallery").css("line-height",height_of_image_gallery + "px"); | |
$(".s_gallery .gallery").css("height",height_of_image_gallery + "px"); | |
} | |
else { | |
// | |
} | |
} | |
$(window).load(hSize); | |
$(window).resize(hSize); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment