1/* ============================================================================= 2 * Set viewport meta tag 3 * ========================================================================== */ 4jQuery(document).ready(function() 5{ 6 if( jQuery('body').hasClass('mobile') ) 7 { 8 jQuery('head').append('<meta name="viewport" content="width=device-width,initial-scale=1.0">'); 9 } 10}); 11 12/* ============================================================================= 13 * doubleTapToGo scripts/doubletaptogo/ 14 * ========================================================================== */ 15jQuery(document).ready(function(){ 16 if(jQuery('body').hasClass('android') || jQuery('body').hasClass('win') || jQuery('body').hasClass('ios')) { 17 jQuery('nav.mainmenu li.submenu:not(.level_2 .megamenu)').doubleTapToGo(); 18 } 19}); 20 21/* ============================================================================= 22 * megamenu 23 * ========================================================================== */ 24jQuery(document).ready(function(){ 25 jQuery('li.megamenu .level_2').wrap('<div class="megamenu-wrapper"></div>'); 26 jQuery('li.megamenu.remove-link a.a-level_2').removeAttr("href"); 27}); 28 29function megamenuWidth() { 30 var elWidth = jQuery("#header .inside").width(); 31 jQuery(".mainmenu ul .megamenu-wrapper").css('width', elWidth); 32}; 33 34jQuery(window).on("resize", function(){ 35 megamenuWidth(); 36}); 37 38jQuery(document).ready(function(){ 39 megamenuWidth(); 40}); 41 42/* ============================================================================= 43 * mainmenu menuheader (deactivate link) 44 * ========================================================================== */ 45jQuery(document).ready(function(){ 46 jQuery('.mainmenu .menuheader').removeAttr("href"); 47}); 48 49/* ============================================================================= 50 * ce_table responsive 51 * ========================================================================== */ 52function respTables() { 53 jQuery('.ce_table').each(function() { 54 var tableWidth = jQuery(this).find('table').width(); 55 var ce_tableWidth = jQuery(this).width(); 56 if (tableWidth > ce_tableWidth) { 57 jQuery(this).addClass('overflow'); 58 } else { 59 jQuery(this).removeClass('overflow'); 60 } 61 }); 62}; 63 64jQuery(document).ready(function(){ 65 respTables(); 66}); 67 68jQuery(window).on("resize", function(){ 69 respTables(); 70}); 71 72/* ============================================================================= 73 * css3 animation (css/animate.css) 74 * ========================================================================== */ 75var el = jQuery("body"); 76var animationClasses = ["fadeIn", "flipInX", "flipInY", "fadeInDown","fadeInDownBig","fadeInLeft","fadeInLeftBig","fadeInRight","fadeInRightBig","fadeInUp","fadeInUpBig","rotateIn","zoomIn","slideInDown","slideInLeft","slideInRight","slideInUp","bounceIn","bounceInDown","bounceInLeft","bounceInRight","bounceInUp"]; 77jQuery.each(animationClasses, function(key, value){ 78 el.find("." + value).each(function(){ 79 jQuery(this).removeClass(value).attr("data-animate", value); 80 81 }); 82}); 83 84jQuery(document).ready(function() { 85 var animate_start = function(element) { 86 element.find('.animate').each(function() { 87 var item = jQuery(this); 88 var animation = item.data("animate"); 89 if(jQuery('body').hasClass('ios') || jQuery('body').hasClass('android')) { 90 item.removeClass('animate'); 91 return true; 92 93 } else { 94 95 item.waypoint(function(direction) { 96 item.removeClass('animate').addClass('animated '+animation).one('webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend', function() { 97 item.removeClass(animation+' animated'); 98 }); 99 },{offset: '70%',triggerOnce: true}); 100 } 101 }); 102 }; 103 104 setTimeout(function() { 105 jQuery('.mod_article').each(function() { 106 animate_start( jQuery(this) ); 107 }); 108 },500); 109 110}); 111 112 113/* ============================================================================= 114 * scrollToTop 115 * ========================================================================== */ 116jQuery(document).ready(function(){ 117 jQuery(".totop").click(function(){ 118 jQuery("html, body").animate({ 119 scrollTop: jQuery( jQuery.attr(this, "href") ).offset().top 120 },380); 121 return false;
122 }); 123}); 124 125/* ============================================================================= 126 * smint / jquery.nav.js 127 * ========================================================================== */ 128jQuery('.onepagenav').onePageNav({ 129 currentClass: 'active', 130 changeHash: false, 131 scrollSpeed: 350, 132 scrollThreshold: 0.1, 133 filter: '', 134 easing: 'swing' 135}); 136 137/* ============================================================================= 138 * mmenu // jquery.mmenu.min.all.js 139 * ========================================================================== */ 140jQuery(document).ready(function(){ 141 jQuery("#mobnav").mmenu({extensions: ["theme-dark"]}); 142}); 143 144/* ============================================================================= 145 * module background-image workaround if content height > viewport-height 146 * ========================================================================== */ 147function bgImageFullscreen() { 148 jQuery(".ce_bgimage.fullscreen-image").each(function() { 149 var viewportHeight = jQuery(window).height(); 150 var contentHeight = jQuery(this).find('.ce_bgimage-inside').height(); 151 if (contentHeight > viewportHeight) { 152 jQuery(this).height('auto'); 153 jQuery(this).find('.ce_bgimage-inside').css('transform', 'translateY(0)'); 154 jQuery(this).find('.ce_bgimage-inside').css('-webkit-transform', 'translateY(0)'); 155 } else { 156 jQuery(this).height(''); 157 jQuery(this).find('.ce_bgimage-inside').css('transform', 'translateY(-50%)'); 158 jQuery(this).find('.ce_bgimage-inside').css('-webkit-transform', 'translateY(-50%)'); 159 } 160 }); 161}; 162 163jQuery(document).ready(function(){ 164 bgImageFullscreen(); 165}); 166 167jQuery(window).on("resize", function(){ 168 bgImageFullscreen(); 169}); 170 171/* ============================================================================= 172 * imagebox workaround if content height > fix height 173 * ========================================================================== */ 174function imageboxHeight() { 175 jQuery(".ce_text_imagebox").each(function() { 176 var fixHeight = jQuery(this).height(); 177 var contentHeight = jQuery(this).find(".inside").outerHeight(); 178 if (contentHeight > fixHeight) { 179 jQuery(this).addClass("oversize"); 180 } else { 181 jQuery(this).removeClass("oversize"); 182 } 183 }); 184}; 185 186jQuery(document).ready(function(){ 187 imageboxHeight(); 188}); 189 190 191/* ============================================================================= 192* parallax 193* ========================================================================== */ 194jQuery(document).ready(function() { 195 var parallax = jQuery(".ce_bgimage.parallax .ce_bgimage-image"); 196 if(parallax == undefined || parallax.length < 1) { 197 return false; 198 } 199 jQuery(".ce_bgimage.parallax .ce_bgimage-image").attr('data-stellar-background-ratio', '0.1'); 200 jQuery(".ce_bgimage.parallax .ce_bgimage-image").attr('data-stellar-offset-parent', 'true'); 201 202 jQuery(".ce_text_imagebox.parallax .ce_text_imagebox_image").attr('data-stellar-background-ratio', '0.1'); 203 jQuery(".ce_text_imagebox.parallax .ce_text_imagebox_image").attr('data-stellar-offset-parent', 'true'); 204 205 setTimeout(function() { 206 jQuery(window).stellar({ 207 horizontalScrolling: false, 208 responsive:true 209 }); 210 },500); 211});
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.