PageSourceSearch

https://centurylithium.com/_templates/2/source/js/scripts.js?v=0.280

js centurylithium.com collected 2026-09-29 22:26:04 UTC 24,622 bytes, 491 lines download raw bytes

vendor: 9,188 bytes, lines 1-31
1// *********************  PLUGINS ********************* //
2/*! WOW - v1.1.3 - 2016-05-06 --Copyright (c) 2016 Matthieu Aussaguel;*/
3(function(){var a,b,c,d,e,f=function(a,b){return function(){return a.apply(b,arguments)}},g=[].indexOf||function(a){for(var b=0,c=this.length;c>b;b++)if(b in this&&this[b]===a)return b;return-1};b=function(){function a(){}return a.prototype.extend=function(a,b){var c,d;for(c in b)d=b[c],null==a[c]&&(a[c]=d);return a},a.prototype.isMobile=function(a){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(a)},a.prototype.createEvent=function(a,b,c,d){var e;return null==b&&(b=!1),null==c&&(c=!1),null==d&&(d=null),null!=document.createEvent?(e=document.createEvent("CustomEvent"),e.initCustomEvent(a,b,c,d)):null!=document.createEventObject?(e=document.createEventObject(),e.eventType=a):e.eventName=a,e},a.prototype.emitEvent=function(a,b){return null!=a.dispatchEvent?a.dispatchEvent(b):b in(null!=a)?a[b]():"on"+b in(null!=a)?a["on"+b]():void 0},a.prototype.addEvent=function(a,b,c){return null!=a.addEventListener?a.addEventListener(b,c,!1):null!=a.attachEvent?a.attachEvent("on"+b,c):a[b]=c},a.prototype.removeEvent=function(a,b,c){return null!=a.removeEventListener?a.removeEventListener(b,c,!1):null!=a.detachEvent?a.detachEvent("on"+b,c):delete a[b]},a.prototype.innerHeight=function(){return"innerHeight"in window?window.innerHeight:document.documentElement.clientHeight},a}(),c=this.WeakMap||this.MozWeakMap||(c=function(){function a(){this.keys=[],this.values=[]}return a.prototype.get=function(a){var b,c,d,e,f;for(f=this.keys,b=d=0,e=f.length;e>d;b=++d)if(c=f[b],c===a)return this.values[b]},a.prototype.set=function(a,b){var c,d,e,f,g;for(g=this.keys,c=e=0,f=g.length;f>e;c=++e)if(d=g[c],d===a)return void(this.values[c]=b);return this.keys.push(a),this.values.push(b)},a}()),a=this.MutationObserver||this.WebkitMutationObserver||this.MozMutationObserver||(a=function(){function a(){"undefined"!=typeof console&&null!==console&&console.warn("MutationObserver is not supported by your browser."),"undefined"!=typeof console&&null!==console&&console.warn("WOW.js cannot detect dom mutations, please call .sync() after loading new content.")}return a.notSupported=!0,a.prototype.observe=function(){},a}()),d=this.getComputedStyle||function(a,b){return this.getPropertyValue=function(b){var c;return"float"===b&&(b="styleFloat"),e.test(b)&&b.replace(e,function(a,b){return b.toUpperCase()}),(null!=(c=a.currentStyle)?c[b]:void 0)||null},this},e=/(\-([a-z]){1})/g,this.WOW=function(){function e(a){null==a&&(a={}),this.scrollCallback=f(this.scrollCallback,this),this.scrollHandler=f(this.scrollHandler,this),this.resetAnimation=f(this.resetAnimation,this),this.start=f(this.start,this),this.scrolled=!0,this.config=this.util().extend(a,this.defaults),null!=a.scrollContainer&&(this.config.scrollContainer=document.querySelector(a.scrollContainer)),this.animationNameCache=new c,this.wowEvent=this.util().createEvent(this.config.boxClass)}return e.prototype.defaults={boxClass:"js-reveal",animateClass:"animate-init",offset:0,mobile:!0,live:!0,callback:null,scrollContainer:null},e.prototype.init=function(){var a;return this.element=window.document.documentElement,"interactive"===(a=document.readyState)||"complete"===a?this.start():this.util().addEvent(document,"DOMContentLoaded",this.start),this.finished=[]},e.prototype.start=function(){var b,c,d,e;if(this.stopped=!1,this.boxes=function(){var a,c,d,e;for(d=this.element.querySelectorAll("."+this.config.boxClass),e=[],a=0,c=d.length;c>a;a++)b=d[a],e.push(b);return e}.call(this),this.all=function(){var a,c,d,e;for(d=this.boxes,e=[],a=0,c=d.length;c>a;a++)b=d[a],e.push(b);return e}.call(this),this.boxes.length)if(this.disabled())this.resetStyle();else for(e=this.boxes,c=0,d=e.length;d>c;c++)b=e[c],this.applyStyle(b,!0);return this.disabled()||(this.util().addEvent(this.config.scrollContainer||window,"scroll",this.scrollHandler),this.util().addEvent(window,"resize",this.scrollHandler),this.interval=setInterval(this.scrollCallback,50)),this.config.live?new a(function(a){return function(b){var c,d,e,f,g;for(g=[],c=0,d=b.length;d>c;c++)f=b[c],g.push(function(){var a,b,c,d;for(c=f.addedNodes||[],d=[],a=0,b=c.length;b>a;a++)e=c[a],d.push(this.doSync(e));return d}.call(a));return g}}(this)).observe(document.body,{childList:!0,subtree:!0}):void 0},e.prototype.stop=function(){return this.stopped=!0,this.util().removeEvent(this.config.scrollContainer||window,"scroll",this.scrollHandler),this.util().removeEvent(window,"resize",this.scrollHandler),null!=this.interval?clearInterval(this.interval):void 0},e.prototype.sync=function(b){return a.notSupported?this.doSync(this.element):void 0},e.prototype.doSync=function(a){var b,c,d,e,f;if(null==a&&(a=this.element),1===a.nodeType){for(a=a.parentNode||a,e=a.querySelectorAll("."+this.config.boxClass),f=[],c=0,d=e.length;d>c;c++)b=e[c],g.call(this.all,b)<0?(this.boxes.push(b),this.all.push(b),this.stopped||this.disabled()?this.resetStyle():this.applyStyle(b,!0),f.push(this.scrolled=!0)):f.push(void 0);return f}},e.prototype.show=function(a){return this.applyStyle(a),a.className=a.className+" "+this.config.animateClass,null!=this.config.callback&&this.config.callback(a),this.util().emitEvent(a,this.wowEvent),this.util().addEvent(a,"animationend",this.resetAnimation),this.util().addEvent(a,"oanimationend",this.resetAnimation),this.util().addEvent(a,"webkitAnimationEnd",this.resetAnimation),this.util().addEvent(a,"MSAnimationEnd",this.resetAnimation),a},e.prototype.applyStyle=function(a,b){var c,d,e;return d=a.getAttribute("data-wow-duration"),c=a.getAttribute("data-wow-delay"),e=a.getAttribute("data-wow-iteration"),this.animate(function(f){return function(){return f.customStyle(a,b,d,c,e)}}(this))},e.prototype.animate=function(){return"requestAnimationFrame"in window?function(a){return window.requestAnimationFrame(a)}:function(a){return a()}}(),e.prototype.resetStyle=function(){var a,b,c,d,e;for(d=this.boxes,e=[],b=0,c=d.length;c>b;b++)a=d[b],e.push(a.style.visibility="visible");return e},e.prototype.resetAnimation=function(a){var b;return a.type.toLowerCase().indexOf("animationend")>=0?(b=a.target||a.srcElement,b.className=b.className.replace(this.config.animateClass,"").trim()):void 0},e.prototype.customStyle=function(a,b,c,d,e){return b&&this.cacheAnimationName(a),a.style.visibility=b?"hidden":"visible",c&&this.vendorSet(a.style,{animationDuration:c}),d&&this.vendorSet(a.style,{animationDelay:d}),e&&this.vendorSet(a.style,{animationIterationCount:e}),this.vendorSet(a.style,{animationName:b?"none":this.cachedAnimationName(a)}),a},e.prototype.vendors=["moz","webkit"],e.prototype.vendorSet=function(a,b){var c,d,e,f;d=[];for(c in b)e=b[c],a[""+c]=e,d.push(function(){var b,d,g,h;for(g=this.vendors,h=[],b=0,d=g.length;d>b;b++)f=g[b],h.push(a[""+f+c.charAt(0).toUpperCase()+c.substr(1)]=e);return h}.call(this));return d},e.prototype.vendorCSS=function(a,b){var c,e,f,g,h,i;for(h=d(a),g=h.getPropertyCSSValue(b),f=this.vendors,c=0,e=f.length;e>c;c++)i=f[c],g=g||h.getPropertyCSSValue("-"+i+"-"+b);return g},e.prototype.animationName=function(a){var b;try{b=this.vendorCSS(a,"animation-name").cssText}catch(c){b=d(a).getPropertyValue("animation-name")}return"none"===b?"":b},e.prototype.cacheAnimationName=function(a){return this.animationNameCache.set(a,this.animationName(a))},e.prototype.cachedAnimationName=function(a){return this.animationNameCache.get(a)},e.prototype.scrollHandler=function(){return this.scrolled=!0},e.prototype.scrollCallback=function(){var a;return!this.scrolled||(this.scrolled=!1,this.boxes=function(){var b,c,d,e;for(d=this.boxes,e=[],b=0,c=d.length;c>b;b++)a=d[b],a&&(this.isVisible(a)?this.show(a):e.push(a));return e}.call(this),this.boxes.length||this.config.live)?void 0:this.stop()},e.prototype.offsetTop=function(a){for(var b;void 0===a.offsetTop;)a=a.parentNode;for(b=a.offsetTop;a=a.offsetParent;)b+=a.offsetTop;return b},e.prototype.isVisible=function(a){var b,c,d,e,f;return c=a.getAttribute("data-wow-offset")||this.config.offset,f=this.config.scrollContainer&&this.config.scrollContainer.scrollTop||window.pageYOffset,e=f+Math.min(this.element.clientHeight,this.util().innerHeight())-c,d=this.offsetTop(a),b=d+a.clientHeight,e>=d&&b>=f},e.prototype.util=function(){return null!=this._util?this._util:this._util=new b},e.prototype.disabled=function(){return!this.config.mobile&&this.util().isMobile(navigator.userAgent)},e}()}).call(this);
4
5
6
7function check_email_address(email) {
8  var re = /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
9  return re.test(email);
10}
11
12$(document).ready(function(){
13
14// Wow Initialize
15wow = new WOW({offset: 220})
16wow.init();
17
18function afterReveal(el){
19  el.addEventListener('animationend', function(event){
20    $('.js-reveal').each(function(){ $(this).css('opacity',1); }); });
21}
22wow = new WOW({
23  offset: 220,
24  callback: afterReveal
25});
26wow.init();
27
28
29
30// ********************* MOBILE CHECK ********************* //
31function detectmob() {                        // function to test if on a mobile device
32  var $check = $('#width-check').css('z-index');
33  if(!!navigator.userAgent.match(/iPad|iPhone|Android|BlackBerry|Windows Phone|webOS/i)) {
34    return true;
35  } else if($check != 0) {
36    return true;
37  } else {
38    return false;
39  }
40}
41
42// ********************* Nav Scroll ********************* //
43$(window).bind("scroll", function() {
44  if ($(this).scrollTop() > 10) {
45    $("header").addClass("fixed");
46  } else {
47    $("header").removeClass("fixed");
48  }
49});
50
51// ********************* SEARCH AND SIGN UP MODALS ********************* //
52// $('.search-open').on('click', function(e) {
53//   e.preventDefault();
54//   $('.search-open').toggleClass('active');
55//   $('#search_form').toggleClass('show');
56//   $('#s').focus();
57// });
58
59$('.top-search i').on('click', function(e) {
60  e.preventDefault();
61  $('.top-search').toggleClass('active');
62  $('.top-search i ').toggleClass('fa-search fa-times');
63  $('.top-search  #s').focus();
64});
65
66
67// ********************* MOBILE MENU ********************* //
68
69var mobileMenuFunctions = function() {
70  $('header#is-mobile ul.top > li.has-submenu > a').on('click touch', function(e){
71    e.preventDefault();
72    if($(this).hasClass('show')) {
73      $('header#is-mobile ul.top').removeClass('show');
74      $('header#is-mobile ul.top > li.has-submenu').removeClass('show');
75      $('header#is-mobile ul.top > li.has-submenu > a').removeClass('show');
76      $('header#is-mobile ul.sub').slideUp();
77    } else {
78      $('header#is-mobile ul.top').removeClass('show');
79      $('header#is-mobile ul.top > li.has-submenu').removeClass('show');
80      $('header#is-mobile ul.top > li.has-submenu > a').removeClass('show');
81      $('header#is-mobile ul.sub').slideUp();
82      $(this).next().slideToggle();
83      $(this).addClass('show');
84      $(this).closest('ul.top').addClass('show');
85      $(this).closest('li').addClass('show');
86    }
87  });
88  $('header#is-mobile ul.sub > li.has-submenu > a').on('click touch', function(e){
89    e.preventDefault();
90    $(this).next().slideToggle();
91    $(this).toggleClass('show');
92  });
93
94  $('header#is-mobile ul.sub > li:not(.has-submenu) > a').on('click touch', function(e){
95    $('header#is-mobile').toggleClass('open');
96    $('header#is-mobile ul.top > li.has-submenu').removeClass('show');
97    $('header#is-mobile ul.top > li.has-submenu > a').removeClass('show');
98    $('header#is-mobile ul.sub').slideUp();
99  });
100
101  // MOBILE NAV OPEN
102  $('header#is-mobile .menu-icon').on('click touch', function(){
103    $('header#is-mobile').toggleClass('open');
104  });
105
106}
107mobileMenuFunctions();
108
109var mobileMenuHeightFix = function() {        // Function to make 100vh actually work on mobile
110  let vh = window.innerHeight * 0.01;         // in CSS replace 100vh with calc(var(--vh, 1vh) * 100)
111  document.documentElement.style.setProperty('--vh', `${vh}px`);
112}
113mobileMenuHeightFix();
114
115
116
117// ********************* MOBILE SIGNUP FORM OPEN ********** //
118$(".mobile-menu-bottom__signup").on('click touch', function(){
119  $('.mobile-menu__signup-form').addClass('open');
120});
121$(".mobile-menu__signup-form .button-cancel").on('click touch', function(){
122  $('.mobile-menu__signup-form').removeClass('open');
123});
124
125
126
127// ********************* Required Input Handling ********************* //
128  //Error checking
129  $('.required input').focusout(function() {
130    if ($(this).val() == "") {
131      $(this).parent().addClass("error");
132    } else {
133      if ($(this).parent().hasClass("signup-email")) {
134        if (!check_email_address($(this).val())) {
135          $(this).parent().addClass("error");
136          }
137         else {
138          $(this).parent().removeClass('error');
139        }
140      } else {
141          $(this).parent().removeClass('error');
142      }
143    }
144  });
145
146// ********************* Recaptcha Show ********************* //
147$('form.signup').on('click touch', function(){
148  $('.grecaptcha-badge').addClass('show');
149});
150
151// ********************* Form Submission & Error Checking  ********************* //
152  $('form.signup').submit ( function() {
153
154    var $this = $(this)
155
156    var $message = $(this).next('.signup-message'); // Variable for selecting appropriate signup message
157    var $signuptext = $('#signup-text');
158    $message.empty().hide();
159
160    grecaptcha.ready(function() {         // Call the V3 Recaptcha system
161      grecaptcha.execute($recaptcha_site_key, {action: 'submit'}).then(function(token) {
162
163        // var recaptchaResponse1 = document.getElementById('recaptchaResponse1');   // Call this on hidden recpatcha element in the form
164        // recaptchaResponse1.value = token;
165        // Add the below for each unique recaptcha element you have
166        if ( $('#recaptchaResponse1').length > 0 )  {$('#recaptchaResponse1').val(token);}
167
168        if ( $('#recaptchaResponse2').length > 0 )  {$('#recaptchaResponse2').val(token);}
169        
170        if ( $('#recaptchaResponse3').length > 0 )  {$('#recaptchaResponse3').val(token);}
171
172        if ( $('#recaptchaResponse4').length > 0 )  {$('#recaptchaResponse4').val(token);}
173
174        var $form = $this,
175          formData = $form.serialize(),
176          formArray = $form.serializeArray(),
177          formUrl = $form.attr('action'),
178          formMethod = $form.attr('method'),
179          responseMsg = $message;
180          // console.log(formData);
181        $.ajax({
182          url: formUrl,
183          type: formMethod,
184          data: formData,
185
186          success:function(data){
187
188            var responseData = jQuery.parseJSON(data);
189            switch(responseData.SUCCESS){
190            case 'false':
191              // grecaptcha.reset();
192              $form.show();
193              responseMsg.empty().hide().fadeIn('slow').append(responseData.CONFIRMATION);
194              break;
195            case 'true':
196              $('.grecaptcha-badge').removeClass('show');
197              $form.hide();
198              $message.css("position","static");
199              responseMsg.empty().hide().fadeIn('slow').append(responseData.CONFIRMATION);
200              $signuptext.empty().hide();
201              break;
202            }
203          }
204        })
205      });
206    });
207  return false;
208});
209
210// ********************* Window Scroll Function ********************* //
211var scrollTimeout = null;
212$(window).scroll(function() {
213  mobileMenuHeightFix();
214  if (scrollTimeout) clearTimeout(scrollTimeout);
215  scrollTimeout = setTimeout(function(){
216    /* Put functions that need to be delayed here */
217  },250);
218
219});
220
221// ********************* Resize Functions ********************* //
222var resizeRotate = function(){
223  mobileMenuHeightFix();
224  tableSize();
225}
226
227// Mobile chrome resizes on scroll, add width check to fix
228var width = $(window).width();
229var height = $(window).height();
230$(window).resize(function() {
231  if($(window).width() != width || $(window).height() != height){
232    setTimeout(function(){resizeRotate();},250);
233  }
234});
235
236
237// BMCL DOWNLOADS 1
238var bmclDownloads1 = function() {
239  $('.bmcl-downloads-1 > div').each(function(){
240    var $link = $(this).find('a').clone();
241    var $text = $(this).find('a').text();
242    $link.html('');
243    $link.attr('aria-label',$text);
244    $(this).append('<div><div class="icon"></div></div>');
245    $(this).append($link);
246  });
247}
248bmclDownloads1();
249
250// BMCL ACCORDION 1
251var bmclAccordion1Handler = function(){
252  $('div[class^="bmcl-accordion-"] > div').on('click touch',function(){
253    $(this).toggleClass('active');
254    $(this).find('div').slideToggle();
255  });
256}
257bmclAccordion1Handler();
258
259// BMCL-Table-1
260var tableFix = function(){
261  $('table').each(function(){
262    if (!$(this).parents('.overflow').length) {
263      $(this).wrap("<div class='overflow'></div>");
264    }
265  });
266}
267tableFix();
268
269var tableSize = function(){
270  $('div.overflow').each(function(){
271    $(this).next('p.table-overflow-msg').remove();
272    $(this).after('<p class="table-overflow-msg">Scroll right to view more <img src="'+$path+'_resources/icons/table-overflow-arrow.svg"/></p>');
273    var $width = $(this).width();
274    var $scrollWidth = this.scrollWidth;
275    if ($scrollWidth > $width + 1) {
276      $(this).next('p.table-overflow-msg').addClass('show');
277    }
278  });
279}
280tableSize();
281
282
283
284/****** SignUp POPUP ************/
285$("a.scroll-to").on('click', function(e){
286  e.preventDefault();
287  var target = $(this).data('target');
288  target = $(target);
289  if (target.length) {target.addClass('show');}
290} );
291
292$('#newsletter-popup .popup-close').click(function(e){
293  e.preventDefault()
294  $(this).parents('.popup-window').removeClass('show');
295});
296
297
298
299// Tiny Slider initialization on project page
300  if ( $(".cv-slider").length > 0 ) {
301
302    var curYear = new Date().getFullYear();
303    var s_elem = $(".cv-slider div[data-year=" + curYear + "]");
304    var s_index = $(".cv-slider div").index( s_elem );
305
306    var cv_slider = tns({
307      container: '.cv-slider',
308      // slideBy: 'page',
309      autoplay: false,
310      controls: true,
311      controlsPosition: "top",
312      controlsText: [" ", " "],
313      nav: false,
314      // navPosition: 'top',
315      mouseDrag: true,
316      // gutter: 24,
317      loop: false,
318      startIndex: s_index,
319      items: 1,
320      responsive: {
321        640: { items: 2, gutter: 24 },
322        1280: { items: 3 }
323      }
324    });
325  }
326
327  //REFRESH STOCK CHARTS
328  var refreshChart = function(e) {                                      // Re-readies the stock chart within the clicked tab
329    if($('div.highstock').length) {
330      readyStockChart(e.find('div.highstock:first').attr('id'));    
331      setTimeout(function(){e.find('div.highstock:first').addClass('show');},300);
332    }
333  }
334
335  //STOCK DATA DISPLAY
336  var stockDisplay = function(){  
337    $('.stock-info .symbols a.button').on('click touch', function(){
338      $('.info, .stock-info .symbols a.button').removeClass('selected');
339      $('.info#'+ $(this).data('exchange')).addClass('selected');
340      $(this).addClass('selected');
341      $(".stock-info select").val($(this).text());
342      refreshChart($('.stock-info .info.selected'));  
343    });
344    $(".stock-info select").change(function() {
345      $('.info, .stock-info .symbols a.button').removeClass('selected');
346      $('.info#'+ $(this).find(':selected').data('exchange')).addClass('selected');
347      $('.stock-info .symbols a.button[data-exchange="'+$(this).find(':selected').data('exchange')+'"]').addClass('selected');
348      refreshChart($('.stock-info .info.selected'));  
349    });
350    $('.info.selected .highstock').addClass('show');
351  }
352  stockDisplay();
353
354
355
356
357  //view more
358  var setTextHeight = function() {
359    var text = $("div.cv-project__details .text > div");
360    text.each(function(){
361      // var h = $(this).find("> p:first-of-type").outerHeight();
362      var h = $(this).find("> .always-visible").outerHeight();
363      $(this).css('min-height', h);
364    });
365  }
366  setTextHeight();
367  $(window).resize(function() {
368    setTextHeight();
369  });
370
371    function textClickExpand() {
372      $(".cv-project__details div.expand").click(function(){
373        var content = $(this).siblings('div.content');
374        var originalHeight = content.css('min-height');
375        var autoHeight = content.get(0).scrollHeight;
376        if ( content.hasClass('open') ) {
377          content.removeClass('open');
378          content.animate({height:originalHeight}, {queue:false, duration:500});
379          $(this).html('View +');
380        }else{
381          content.addClass('open');
382          content.animate({height:autoHeight}, {queue:false, duration:500});
383          $(this).html('View less -');
384        }
385        
386      });
387    }
388    textClickExpand();
389
390
391
392
393    // COUNT UP 
394  var options = {
395    useEasing: true, 
396    useGrouping: true, 
397    separator: ',', 
398    decimal: '.', 
399  };
400
401  // CountUp(target, startVal, endVal, decimals, duration, options)
402  if ( $('#stats_1').length > 0 ) { var stats_1 = new CountUp('stats_1', 0, document.getElementById("stats_1").innerHTML, 1, 3, options); }
403  if ( $('#stats_2').length > 0 ) { var stats_2 = new CountUp('stats_2', 0, document.getElementById("stats_2").innerHTML, 0, 4, options); }
404  if ( $('#stats_3').length > 0 ) { var stats_3 = new CountUp('stats_3', 0, document.getElementById("stats_3").innerHTML, 1, 3, options); }
405  if ( $('#stats_4').length > 0 ) { var stats_4 = new CountUp('stats_4', 0, document.getElementById("stats_4").innerHTML, 2, 2, options); }
406     
407  if ( $('#stats_1').length > 0 ) {
408    if ($('#stats_1:visible').visible()) {                // The first count up numbers init
409      $('#stats_1').parents('div').addClass('visible');
410      if (!stats_1.error) {stats_1.start();} else {console.error(stats_1.error);}
411    } else {
412      $(window).on('resize scroll', function() {
413        if ($('#stats_1:visible').visible()) {
414          $('#stats_1').parents('div').addClass('visible');
415          if (!stats_1.error) {stats_1.start();} else {console.error(stats_1.error);}
416        }
417      });
418    }
419  }
420
421  if ( $('#stats_2').length > 0 ) { 
422    if ($('#stats_2:visible').visible()) {                // The second count up numbers init
423      $('#stats_2').parents('div').addClass('visible');
424      if (!stats_2.error) {stats_2.start();} else {console.error(stats_2.error);}
425      } else {
426      $(window).on('resize scroll', function() {
427        if ($('#stats_2:visible').visible()) {
428          $('#stats_2').parents('div').addClass('visible');
429          if (!stats_2.error) {stats_2.start();} else {console.error(stats_2.error);}
430        }
431      });
432    }
433  }
434
435  if ( $('#stats_3').length > 0 ) {
436    if ($('#stats_3:visible').visible()) {                // The Third count up numbers init
437      $('#stats_3').parents('div').addClass('visible');
438      if (!stats_3.error) {stats_3.start();} else {console.error(stats_3.error);}
439      } else {
440      $(window).on('resize scroll', function() {
441        if ($('#stats_3:visible').visible()) {
442          $('#stats_3').parents('div').addClass('visible');
443          if (!stats_3.error) {stats_3.start();} else {console.error(stats_3.error);}
444        }
445      });
446    }
447   }
448
449   if ( $('#stats_3').length > 0 ) {
450    if ($('#stats_4:visible').visible()) {                // The fourth count up numbers init
451      $('#stats_4').parents('div').addClass('visible');
452      if (!stats_4.error) {stats_4.start();} else {console.error(stats_4.error);}
453      } else {
454      $(window).on('resize scroll', function() {
455        if ($('#stats_4:visible').visible()) {
456          $('#stats_4').parents('div').addClass('visible');
457          if (!stats_4.error) {stats_4.start();} else {console.error(stats_4.error);}
458        }
459      });
460    }
461   }
462
463});
464
465
466
467
468$(document).ready(function() {
469  $(".animsition").animsition({
470    inClass: 'fade-in',
471    outClass: 'fade-out',
472    inDuration: 1500,
473    outDuration: 800,
474    linkElement: '.animsition-link',
475    // e.g. linkElement: 'a:not([target="_blank"]):not([href^="#"])'
476    loading: true,
477    loadingParentElement: 'body', //animsition wrapper element
478    loadingClass: 'animsition-loading',
479    loadingInner: '', // e.g '<img src="loading.svg" />'
480    timeout: true,
481    timeoutCountdown: 2000,
482    onLoadEvent: true,
483    browser: [ 'animation-duration', '-webkit-animation-duration'],
484    // "browser" option allows you to disable the "animsition" in case the css property in the array is not supported by your browser.
485    // The default setting is to disable the "animsition" in a browser that does not support "animation-duration".
486    overlay : false,
487    overlayClass : 'animsition-overlay-slide',
488    overlayParentElement : 'body',
489    transition: function(url){ window.location.href = url; }
490  });
491});

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.