1function init() { 2 3 $('.toggleBox').click( function() { 4 $('html').toggleClass('sideMenu-open'); 5 $('.sideSub-open').removeClass('sideSub-open'); 6 return false; 7 }); 8 9 $('.sideNav .wSubMenu > a').click( function() { 10 11 if ( $(this).parent().hasClass('sideSub-open')) { $(this).parent().removeClass('sideSub-open'); } 12 else { 13 $('.sideSub-open').removeClass('sideSub-open'); 14 $(this).parent().toggleClass('sideSub-open'); 15 } 16 return false; 17 }); 18 19 $('.backBtn').click( function() { 20 $.scrollTo( 0, 700, {axis:'y', easing:'easeInOutExpo'}); 21 return false 22 }); 23} 24 25function initMenu() { 26 27 $('.sideMenu-open .sideNav').css('height', $('.content').height() + 'px'); 28} 29 30function initScroll() { 31 32 $('.scrollLink').click( function() { 33 $.scrollTo( $('#scrollStop'), 700, {axis:'y', easing:'easeInOutExpo'}); 34 return false 35 }); 36} 37 38function initBlocList() { 39 40 $('.blocsList a').css( 'height', $('.blocsList img').height() + 'px'); 41 $('.blocDesc').css( 'line-height', $('.blocsList img').height() + 'px'); 42} 43 44function initOcList() { 45 46 $('.ocBtn').click( function() { 47 toggling = $(this).parent().hasClass('open'); 48 49 $('.ocList li.open .innerOcList').animate( {height: 'hide', opacity: 0}, {duration: 400, specialEasing: { opacity: 'linear', height: 'easeOutExpo' }}); 50 $('.ocList li.open').removeClass('open'); 51 52 if ( !toggling ) { 53 54 $(this).parent().addClass('open'); 55 $('.innerOcList', $(this).parent()).stop(true, false).animate( {height: 'show', opacity: 1}, {duration: 400, specialEasing: { opacity: 'linear', height: 'easeOutExpo' }}); 56 } 57 return false; 58 }); 59} 60 61function initAside() { 62 63 $('.aproposInner').css( 'min-height', $('.mainSide').height() + 'px'); 64 65 $('.asideTitle').click( function() { 66 $.scrollTo( $('.mainSide'), 700, {axis:'y', easing:'easeInOutExpo'}); 67 return false 68 }); 69} 70 71function initHome() { 72 var angleHeight = $(window).height(); 73 $('#homeLoader span').css('border-top-width', angleHeight + 'px'); 74 75 $('.scrollHome').click( function() { 76 $.scrollTo( $('.content'), 700, {offset: 1, axis:'y', easing:'easeInOutExpo'}); 77 return false 78 }); 79 80 $('.closeAlert').click( function() { 81 $('html').removeClass('show-alert').addClass('closed-alert'); 82 return false 83 }); 84} 85 86function initCycleSize() { 87 width = $(window).width(); 88 initFixCycleSize(); 89 $(window).resize( function() { 90 newwidth = $(window).width(); 91 if ( newwidth == width ) return; 92 else { 93 initFixCycleSize(); 94 width = $(window).width(); 95 } 96 }); 97} 98 99function initFixCycleSize() { 100 var windowHeight = $(window).height(); 101 var menuHeight = $('header').height(); 102 var cycleHeight = windowHeight - menuHeight 103 $('.homeCycleLayer').css('height', cycleHeight + 'px'); 104} 105 106function initHomeAfterLoad() { 107 var sideNav = $('#home .sideNav'); 108 var homeRow = $('.homeRow'); 109 var aside = $('#home aside'); 110 111 function updateHeights() { 112 $('.slide').css( 'line-height', $('.homeCycle').height() + 'px'); 113 114 homeRow.css('min-height', ''); 115 aside.css('min-height', '0'); 116 var asideHeight = aside.height(); 117 aside.css('min-height', ''); 118 homeRow.css('min-height', (asideHeight + 50) + 'px'); 119 120 var navHeight = $('.content').height() + $('.homeCycleLayer').height();
121 sideNav.css('height', navHeight + 'px'); 122 } 123 124 updateHeights(); 125 $(window).resize(updateHeights); 126} 127 128function cycleAnim() { 129 $('.slide0').addClass('loaded').removeClass('firstSlide'); 130 setTimeout( function() { $('.slide0').removeClass('loaded'); }, 600); 131}
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.