1var page = 1; 2 3function pageIncrement() 4{ 5 page++; 6 gtag('config', 'UA-171251146-1', {'page_path': $("#url").val() + "?page=" + page}); 7 window.history.pushState(page, "Geeky PH", $("#url").val() + "?page=" + page); 8} 9 10$(document).ready(function(){ 11 12 $(document).on('click', 'form .fa-search', function() { 13 $(this).closest('form').submit(); 14 }) 15 16 $(window).scroll(function() { 17 if ( $(window).scrollTop() >= 200) 18 { 19 $(".sticky-logo").fadeIn(); 20 } 21 else 22 { 23 $(".sticky-logo").fadeOut(); 24 } 25 }); 26 27 // $('.top-items').matchHeight({ 28 // target: $('.single') 29 // }); 30 31 $('.slick').slick({ 32 infinite: true, 33 slidesToShow: 1, 34 slidesToScroll: 1 35 }); 36 37 $(".infinite-scroller").jscroll({ 38 nextSelector: ".more-link a", 39 loadingHtml: '<div class="more-link busy"><span><i class="far fa-spin fa-circle-notch"></i> Loading</span></div>', 40 callback: pageIncrement, 41 }) 42 43 $(document).ready(function() { 44 $('.video-popup').magnificPopup({ 45 disableOn: 700, 46 type: 'iframe', 47 mainClass: 'mfp-fade', 48 removalDelay: 160, 49 preloader: false, 50 51 fixedContentPos: false 52 }); 53 }); 54 55 $("#privacy-policy-container").on('click', '.diagree-policy', function(){ 56 $("#privacy-policy-container").remove(); 57 const cookies = document.cookie.split(";"); 58 for (let i = 0; i < cookies.length; i++) { 59 const cookie = cookies[i]; 60 const eqPos = cookie.indexOf("="); 61 const name = eqPos > -1 ? cookie.substr(0, eqPos) : cookie; 62 document.cookie = name + "=;expires=Thu, 01 Jan 1970 00:00:00 GMT"; 63 } 64 if(!document.__defineGetter__) { 65 Object.defineProperty(document, 'cookie', { 66 get: function(){return ''}, 67 set: function(){return true}, 68 }); 69 } else { 70 document.__defineGetter__("cookie", function() { return '';} ); 71 document.__defineSetter__("cookie", function() {} ); 72 } 73 }); 74 75 76 $("#privacy-policy-container").on('click', '.agree-policy', function(){ 77 $("#privacy-policy-container").remove(); 78 setCookie('cookieAgree', 1, 7); 79 }); 80 81 82 83}); 84 85var cookieAgree = getCookie('cookieAgree'); 86if(!cookieAgree){ 87 var paragraph = document.getElementById("privacy-policy-container"); 88 var text = paragraph.innerHTML = '<div id="privacy-policy"><p>We use cookies to ensure you get the best experience on PhilSTAR Life. By continuing, you are agreeing to our privacy policy and our use of cookies. Find out more <a class="link" href="/privacy"><strong>here</strong></a>.</p><a class="btn agree-policy" href="#">I agree</a><a class="btn diagree-policy" href="#">I disagree</a></div>'; 89} 90 91 92function setCookie(name,value,days) { 93 var expires = ""; 94 if (days) { 95 var date = new Date(); 96 date.setTime(date.getTime() + (days*24*60*60*1000)); 97 expires = "; expires=" + date.toUTCString(); 98 } 99 document.cookie = name + "=" + (value || "") + expires + "; path=/"; 100} 101function getCookie(name) { 102 var nameEQ = name + "="; 103 var ca = document.cookie.split(';'); 104 for(var i=0;i < ca.length;i++) { 105 var c = ca[i]; 106 while (c.charAt(0)==' ') c = c.substring(1,c.length); 107 if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length); 108 } 109 return null; 110} 111function eraseCookie(name) { 112 document.cookie = name +'=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;'; 113}
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.