1var $j = jQuery.noConflict(); 2/* ---------------------------------------------------- */ 3/* PARALLAX */ 4/* ---------------------------------------------------- */ 5jQuery.fn.parallax = function(xpos, speedFactor) { 6'use strict'; 7var firstTop, methods = {}; 8return this.each(function(idx, value) { 9var $this = jQuery(value), firstTop = $this.offset().top; 10if (arguments.length < 1 || xpos === null) 11xpos = "50%"; 12if (arguments.length < 2 || speedFactor === null) 13speedFactor = 0.1; 14methods = { 15update: function() { 16var pos = jQuery(window).scrollTop(); 17$this.each(function() { 18$this.css('backgroundPosition', xpos + " " + Math.round((firstTop - pos) * speedFactor) + "px"); 19}); 20}, 21init: function() { 22this.update(); 23jQuery(window).on('scroll', methods.update); 24} 25} 26return methods.init(); 27}); 28}; 29 30//MOBILE MENU ----------------------------------------- 31//----------------------------------------------------- 32jQuery(document).ready(function(){ 33 'use strict'; 34 jQuery('#menu-main').superfish(); 35 jQuery('#menu-main li.current-menu-item,#menu-main li.current_page_item,#menu-main li.current-menu-parent,#menu-main li.current-menu-ancestor,#menu-main li.current_page_ancestor').each(function(){ 36 jQuery(this).prepend('<span class="item_selected"></span>'); 37 }); 38}); 39 40(function( $ ) { 41'use strict'; 42 $.fn.sktmobilemenu = function(options) { 43 var defaults = { 44 'fwidth': 1025 45 }; 46 47 //call in the default otions 48 var options = $.extend(defaults, options); 49 var obj = $(this); 50 return this.each(function() { 51 if($(window).width() < options.fwidth) { 52 sktMobileRes(); 53 } 54 55 $(window).resize(function() { 56 if($(window).width() < options.fwidth) { 57 sktMobileRes(); 58 }else{ 59 sktDeskRes(); 60 } 61 }); 62 function sktMobileRes() { 63 jQuery('#menu-main').superfish('destroy'); 64 obj.addClass('instaapp-mob-menu').hide(); 65 obj.parent().css('position','relative'); 66 if(obj.prev('.sktmenu-toggle').length === 0) { 67 obj.before('<div class="sktmenu-toggle" id="responsive-nav-button"></div>'); 68 } 69 obj.parent().find('.sktmenu-toggle').removeClass('active'); 70 } 71 72 function sktDeskRes() { 73 jQuery('#menu-main').superfish('init'); 74 obj.removeClass('instaapp-mob-menu').show(); 75 if(obj.prev('.sktmenu-toggle').length) { 76 obj.prev('.sktmenu-toggle').remove(); 77 } 78 } 79 80 obj.parent().on('click','.sktmenu-toggle',function() { 81 if(!$(this).hasClass('active')){ 82 $(this).addClass('active'); 83 $(this).next('ul').stop(true,true).slideDown(); 84 } 85 else{ 86 $(this).removeClass('active'); 87 $(this).next('ul').stop(true,true).slideUp(); 88 } 89 }); 90 }); 91}; 92})( jQuery ); 93 94jQuery(document).ready(function ($) { 95 'use strict'; 96 document.getElementById('s') && document.getElementById('s').focus(); 97}); 98jQuery(document).ready(function(){ 99 'use strict'; 100 jQuery( ".sf-with-ul" ).append( '<span class="fa fa-caret-down"></span>' ); 101}); 102 103jQuery(window).load(function(){ 104 if(jQuery('#skenav .instaapp-mob-menu').length > 0){ 105 jQuery('#skenav .instaapp-mob-menu').css('width',jQuery('.row-fluid').width()); 106 } 107}); 108 109 110jQuery(window).load(function(){ 111 'use strict'; 112 jQuery('#full-division-box').parallax("center", 0.2); 113 jQuery('#full-subscription-box').parallax("center", 0.2); 114}); 115 116 117//BACK TO TOP ----------------------------------------- 118//----------------------------------------------------- 119jQuery(document).ready( function() { 120'use strict'; 121jQuery('#back-to-top,#backtop').hide(); 122jQuery(window).scroll(function() { 123if (jQuery(this).scrollTop() > 100) { 124jQuery('#back-to-top,#backtop').fadeIn(); 125} else { 126jQuery('#back-to-top,#backtop').fadeOut(); 127} 128}); 129jQuery('#back-to-top,#backtop').click(function(){ 130jQuery('html, body').animate({scrollTop:0}, 'slow'); 131}); 132}); 133jQuery(window).load(function() { 134'use strict'; 135var max = -1; 136jQuery(".flexslider .slides li").each(function() { 137var h = jQuery(this).height(); 138max = h > max ? h : max; 139jQuery('.flexslider').css({'min-height': max}); 140}); 141}); 142jQuery(window).resize(function() { 143'use strict'; 144var max = -1; 145jQuery(".flexslider .slides li").each(function() { 146var h = jQuery(this).height(); 147max = h > max ? h : max; 148jQuery('.flexslider').css({'min-height': max}); 149}); 150}); 151 152//WAYPOINTS MAGIC ----------------------------------------- 153//--------------------------------------------------------- 154if ( typeof window['vc_waypoints'] !== 'function' ) { 155 function vc_waypoints() { 156 if (typeof jQuery.fn.waypoint !== 'undefined') { 157 $j('.fade_in_hide').waypoint(function() { 158 $j(this).addClass('instaapp_start_animation'); 159 }, { offset: '90%' }); 160 $j('.instaapp_animate_when_almost_visible').waypoint(function() { 161 $j(this).addClass('instaapp_start_animation'); 162 }, { offset: '90%' }); 163 } 164 } 165} 166jQuery(document).ready(function($) { 167'use strict'; 168vc_waypoints(); 169 170jQuery('.instaapp-counter').waypoint(function() { 171 172 var counter = jQuery(this).find('.instaapp-counter-number'), 173 count = parseInt(counter.text(), 10), 174 prefix = '', 175 suffix = '', 176 number = 0; 177 178 if (jQuery(this).data('count')) {
179 count = parseInt(jQuery(this).data('count'), 10); 180 } 181 if (jQuery(this).data('prefix')) { 182 prefix = jQuery(this).data('prefix'); 183 } 184 if (jQuery(this).data('suffix')) { 185 suffix = jQuery(this).data('suffix'); 186 } 187 188 var step = Math.ceil(count/25), 189 handler = setInterval(function() { 190 number += step; 191 counter.text(prefix+number+suffix); 192 if (number >= count) { 193 counter.text(prefix+count+suffix); 194 window.clearInterval(handler); 195 } 196 }, 40); 197 198 199 }, {offset:'85%', triggerOnce: true}); 200 }); 201//------------------------------------------------------------ 202 203// jQuery for header flags 204 205jQuery(document).ready(function($) { 206 'use strict'; 207 jQuery('#header-top .dropdown-toggle').on('click', function(){ 208 jQuery('#header-top .dropdown-menu.langs').fadeToggle( "fast", "linear" ); 209 }); 210}); 211 212// Logo First Word Bold js 213jQuery(document).ready(function($) { 214 jQuery(function() { 215 jQuery('#logo #site-title a').each(function() { 216 var text = this.innerHTML; 217 var firstSpaceIndex = text.indexOf(" "); 218 if (firstSpaceIndex > 0) { 219 var substrBefore = text.substring(0,firstSpaceIndex); 220 var substrAfter = text.substring(firstSpaceIndex, text.length) 221 var newText = '<span class="firstlogoWord">' + substrBefore + '</span>' + substrAfter; 222 this.innerHTML = newText; 223 } else { 224 this.innerHTML = '<span class="firstlogoWord">' + text + '</span>'; 225 } 226 }); 227 }); 228});
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.