Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(window).load(function() {
- var runWidth = $(window).width();
- if (runWidth < 440) {
- setTimeout(function() {
- document.getElementById('list-view').click();
- }, 1000);
- } else if (winWidth < 660) {
- setTimeout(function() {
- document.getElementById('grid-view').click();
- }, 1000);
- } else if (winWidth < 880) {
- setTimeout(function() {
- document.getElementById('grid3-view').click();
- }, 1000);
- } else {
- setTimeout(function() {
- document.getElementById('grid3-view').click();
- }, 1000);
- }
- });
Add Comment
Please, Sign In to add comment