1/* Script for theme animations */ 2 3var vh = Math.max(document.documentElement.clientHeight || 0, window.innerHeight || 0) / 100; 4var winheight = window.innerHeight; 5var anispekOffset = 30 * vh; 6 7 8jQuery(document).ready(function ($) { 9 $('body').addClass('jsloaded'); 10 11 $('.anispek.always-fire').each(function () { 12 let $this = $(this); 13 $this.addClass('anispek-fired'); 14 15 }); 16 17 anispekCheck(); 18 $(window).scroll(anispekCheck); 19 /*viewportVideoContainerCheck(); 20 $(window).scroll(viewportVideoContainerCheck);*/ 21 22 23 function anispekCheck() { 24 $('.anispek').each(function () { 25 let $this = $(this); 26 if ($(window).scrollTop() + winheight - anispekOffset >= $this.offset().top) { 27 if (!$this.hasClass('anispek-fired')) { 28 $this.addClass('anispek-fired'); 29 } 30 } 31 }); 32 } 33 34 /*function viewportVideoContainerCheck() { 35 36 if (screen.width > 767) { 37 $('.spek-text-video-container').each(function (index) { 38 let $this = $(this); 39 if (($(window).scrollTop() + winheight - anispekOffset >= $this.offset().top) && ($(window).scrollTop() + anispekOffset >= $this.offset().bottom)) { 40 console.log("scroll: " + $(window).scrollTop() + winheight - anispekOffset); 41 console.log("element top: " + $this.offset().to); 42 $this.addClass('vtc-show-text-container'); 43 44 } else { 45 $this.removeClass('vtc-show-text-container'); 46 } 47 }); 48 } 49 50 jQuery(window).on('resize', function () { 51 if (screen.width < 767) { 52 $('.spek-text-video-container').each(function (index) { 53 let $this = $(this); 54 $this.removeClass('vtc-show-text-container'); 55 }); 56 } 57 }); 58 }*/ 59}); 60 61jQuery(window).on('resize', function () { 62 vh = Math.max(document.documentElement.clientHeight || 0, window.innerHeight || 0); 63 winheight = window.innerHeight; 64});
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.