Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript jquery window width condition Re: jquery window width condition

#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