1if ($(window).width() < 960) {
2 alert('Less than 960');
3}
4else {
5 alert('More than 960');
6}
1var windowsize = $(window).width();
2
3$(window).resize(function() {
4 var windowsize = $(window).width();
5});
6
7if (windowsize > 440) {
8 //if the window is greater than 440px wide then turn on jScrollPane..
9 $('#pane1').jScrollPane({
10 scrollbarWidth:15,
11 scrollbarMargin:52
12 });
13}
14
1$(document).ready(function() {
2 if($(window).width() >= 1024) {
3 $('a.expand').click();
4 }
5});
6