I try to disable some JS (backstrech
) when user reach a specific width.
I use something like :
if (window.innerWidth >= 768) {
/* the function
}
And it works.
But I have an issue because it only work when an user open the website in this particular size.
If he resizes the website this is not working...
I try to use $(window).resize.
But I don't find how to use it and tell the function to work when resize this specific size.
Anyone have a idea ?