Home › Forums › JavaScript › jquery window width condition › Re: jquery window width condition
July 1, 2012 at 8:22 am
#105172
dynamyc
Member
I can not use only media queries, because i have this
$("#header").find("a").on("click", function() {
$(this).parents("#header").fadeOut("slow");
return $(this).hasClass('close') ? false : true;
});
$("a#toggle").click(function() {
$("#header").fadeToggle("slow", "linear");
});
which I want to execute only when the window is bigger than 1200