1( function( $ ) { 2 3 // Setup variables 4 $window = $(window); 5 $slide = $('.slide'); 6 $body = $('body'); 7 8 //FadeIn all sections 9 $body.imagesLoaded( function() { 10 setTimeout(function() { 11 12 // Resize sections 13 adjustWindow(); 14 15 // Fade in sections 16 $body.removeClass('loading').addClass('loaded'); 17 18 }, 800); 19 }); 20 21 function adjustWindow(){ 22 23 // Get window size 24 winH = $window.height(); 25 winW = $window.width(); 26 27 // Keep minimum height 550 28 if(winH <= 550) { 29 winH = 550; 30 } 31 32 // Init Skrollr for 768 and up 33 if( winW >= 768) { 34 35 // Init Skrollr 36 var s = skrollr.init({ 37 forceHeight: false, 38 }); 39 40 // Resize our slides 41 $slide.height(winH); 42 43 s.refresh($('.slide')); 44 45 //The options (second parameter) are all optional. The values shown are the default values. 46 skrollr.menu.init(s, {} ); 47 48 } else { 49 50 // Init Skrollr 51 var s = skrollr.init(); 52 s.destroy(); 53 } 54 55 } 56 57 function initAdjustWindow() { 58 return { 59 match : function() { 60 adjustWindow(); 61 }, 62 unmatch : function() { 63 adjustWindow(); 64 } 65 }; 66 } 67 68 enquire.register("screen and (min-width : 768x)", initAdjustWindow(), false); 69 70} )( jQuery );
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.