Skip to content

Instantly share code, notes, and snippets.

@ozinepank
Last active December 15, 2015 18:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ozinepank/5307329 to your computer and use it in GitHub Desktop.
Save ozinepank/5307329 to your computer and use it in GitHub Desktop.
$(window).resize(function()
calSize();
$(window).resize(function() {
calSize();
});
function calSize(){
var head_height = $("#title-product").height();
$("aside").css("top",head_height+20);
if ( $(window).width() < 768) {
$("aside").css("top",0);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment