1jQuery(document).ready( function($) { 2 3 // initialize flexslider 4 $('#slider').flexslider({ 5 controlNav: false, 6 directionNav: false, 7 pauseOnHover: false, 8 slideshowSpeed: 5000, 9 animationSpeed: 600, 10 allowOneSlide: true 11 }); 12 13 // clearfix the main menus 14 $('.navigation_first ul, .navigation_second ul').addClass('clearfix'); 15 16 // timer 17 var startDate = php_vars.startDate.split('-'); 18 $('#countdown').countdown({ 19 until: $.countdown.UTCDate(+3, startDate[0], startDate[1] - 1, startDate[2], 11, 00), //$.countdown.UTCDate(+2, 2014, 4 - 1, 4, 17, 00), 20 format: 'S', 21 labels: ['Yr', 'Mo', 'Wk', 'Dy', 'Hr', 'Mn', ''], 22 labels1: ['Yr', 'Mo', 'Wk', 'Dy', 'Hr', 'Mn', ''], 23 description: '<div>seconds left till we open</div>', 24 onTick: function(periods) { 25 $('span.countdown-amount').each(function() { 26 $(this).text($(this).text().replace(/(\d)(?=(\d{3})+$)/g, '$1.')); 27 }); 28 }, 29 expiryText: '<div class="open">We Are Open!</div>', 30 alwaysExpire: true 31 }); 32 33 // program fixed header 34 if ( $('.the_days').length ) { 35 var elementPosition = $('.the_days').offset(); 36 // minus the h2 height x2 to make and beggining event height (now 1000, was 450) 37 var program_height = $('#program').height() - 1000; 38 39 $(window).scroll(function(){ 40 if($(window).scrollTop() > elementPosition.top && $(window).scrollTop() < (elementPosition.top + program_height)){ 41 $('.the_days').addClass('the_top'); 42 } else { 43 $('.the_days').removeClass('the_top'); 44 } 45 }); 46 } 47 48 // masonry 49 var container1 = document.querySelector( '#sponsors #sponsors_financial' ); 50 // initialize Masonry after all images have loaded 51 if (container1) 52 imagesLoaded( container1, function() { 53 new Masonry( container1, { 54 itemSelector: '.sponsor', 55 columnWidth: container1.querySelector( '.grid-sizer' ) 56 }); 57 }); 58 59 var container2 = document.querySelector( '#sponsors #sponsors_gold' ); 60 // initialize Masonry after all images have loaded 61 if (container2) 62 imagesLoaded( container2, function() { 63 new Masonry( container2, { 64 itemSelector: '.sponsor', 65 columnWidth: container2.querySelector( '.grid-sizer' ) 66 }); 67 }); 68 69 var container3 = document.querySelector( '#sponsors #sponsors_grand' ); 70 // initialize Masonry after all images have loaded 71 if (container3) 72 imagesLoaded( container3, function() { 73 new Masonry( container3, { 74 itemSelector: '.sponsor', 75 columnWidth: container3.querySelector( '.grid-sizer' ) 76 }); 77 }); 78 79 var container4 = document.querySelector( '#sponsors #sponsors_sponsors' ); 80 // initialize Masonry after all images have loaded 81 if (container4) 82 imagesLoaded( container4, function() { 83 new Masonry( container4, { 84 itemSelector: '.sponsor', 85 columnWidth: container4.querySelector( '.grid-sizer' ) 86 }); 87 }); 88 89 var container5 = document.querySelector( '#sponsors #sponsors_supporters' ); 90 // initialize Masonry after all images have loaded 91 if (container5) 92 imagesLoaded( container5, function() { 93 new Masonry( container5, { 94 itemSelector: '.sponsor', 95 columnWidth: container5.querySelector( '.grid-sizer' ) 96 }); 97 }); 98 99 var container6 = document.querySelector( '#sponsors #sponsors_partners' ); 100 // initialize Masonry after all images have loaded 101 if (container6) 102 imagesLoaded( container6, function() { 103 new Masonry( container6, { 104 itemSelector: '.sponsor', 105 columnWidth: container6.querySelector( '.grid-sizer' ) 106 }); 107 }); 108 109 var container7 = document.querySelector( '#sponsors #sponsors_creative' ); 110 // initialize Masonry after all images have loaded 111 if (container7) 112 imagesLoaded( container7, function() { 113 new Masonry( container7, { 114 itemSelector: '.sponsor', 115 columnWidth: container7.querySelector( '.grid-sizer' ) 116 }); 117 }); 118 119 var container8 = document.querySelector( '#sponsors #sponsors_media' ); 120 // initialize Masonry after all images have loaded 121 if (container8) 122 imagesLoaded( container8, function() { 123 new Masonry( container8, { 124 itemSelector: '.sponsor', 125 columnWidth: container8.querySelector( '.grid-sizer' ) 126 }); 127 }); 128 129 var container9 = document.querySelector( '#sponsors #sponsors_participants' ); 130 // initialize Masonry after all images have loaded 131 if (container9) 132 imagesLoaded( container9, function() { 133 new Masonry( container9, { 134 itemSelector: '.sponsor', 135 columnWidth: container9.querySelector( '.grid-sizer' ) 136 }); 137 }); 138 139 // smooth scrolling 140 $(function() { 141 $('a[href*=#]:not([href=#])').click(function() { 142 if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) { 143 var target = $(this.hash); 144 target = target.length ? target : $('[name=' + this.hash.slice(1) +']'); 145 if (target.length) { 146 $('html,body').animate({ 147 scrollTop: target.offset().top 148 }, 2000 ); 149 return false;
150 } 151 } 152 }); 153 }); 154 155});
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.