Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var oldWidth;
- setInterval(func, 1500);
- function func(){
- var windowWidth = window.innerWidth;
- if(oldWidth == windowWidth){
- return;
- }
- else{ // na chui to? tylko pierdoli czytelnosc.
- if(windowWidth > 1000){
- //do something
- }
- else{
- //do something
- }
- }
- oldWidth = windowWidth;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement