PageSourceSearch

https://lovematters.in/sites/default/files/js/js_J6bLhB6PXHiWmok5X5esfidnwWScnfV7TMA1EpjQzeI.js

js lovematters.in collected 2026-10-02 12:41:19 UTC 4,994 bytes, 9 lines download raw bytes

1/* Source and licensing information for the line(s) below can be found at https://www.lovematters.in/core/misc/drupal.init.js. */
2if(window.jQuery)jQuery.noConflict();document.documentElement.className+=' js';(function(Drupal,drupalSettings){var domReady=function domReady(callback){if(document.readyState!=='loading'){callback()}else{var listener=function listener(){callback();document.removeEventListener('DOMContentLoaded',listener)};document.addEventListener('DOMContentLoaded',listener)}};domReady(function(){Drupal.attachBehaviors(document,drupalSettings)})})(Drupal,window.drupalSettings)
3/* Source and licensing information for the above line(s) can be found at https://www.lovematters.in/core/misc/drupal.init.js. */;
4/* Source and licensing information for the line(s) below can be found at https://www.lovematters.in/modules/custom/rnw_gdpr_cookie/js/cookie.js. */
5document.addEventListener('DOMContentLoaded',function(event){var cookie={set:function(name,value,days){if(typeof days==='undefined')days=theme.cookie.timeout;var expires="";if(days){var date=new Date();date.setTime(date.getTime()+(days*24*60*60*1e3));expires="; expires="+date.toGMTString()};document.cookie=name+"="+value+expires+"; path=/"},get:function(name){var name=name+"=",ca=document.cookie.split(';');for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==' ')c=c.substring(1);if(c.indexOf(name)==0)return c.substring(name.length,c.length)};return null},del:function(name){this.create("",name,-1)},check:function(name){if(this.cookieGet(name)!==null)return true;return false},update:function(name,days){if(this.cookieCheck(name)){value=this.cookieGet(name);this.cookieSet(value,name,days);return true};return false}}})
6/* Source and licensing information for the above line(s) can be found at https://www.lovematters.in/modules/custom/rnw_gdpr_cookie/js/cookie.js. */;
7/* Source and licensing information for the line(s) below can be found at https://www.lovematters.in/modules/custom/rnw_gdpr_cookie/js/consent.js. */
8document.addEventListener('DOMContentLoaded',function(event){var consent={holder:false,id:'gdpr-banner',cookieValue:null,banner:{yes:{id:'gdpr-banner-agree',func:function(e){consent.hideBanner();consent.given('all')}},no:{id:'gdpr-banner-no',func:function(e){e.preventDefault();consent.hideBanner();consent.given('functional')}}},info:'gdpr-info-message',privacy:{ButtonAll:{id:'gdpr-privacy-button-all',func:function(){consent.given('all')}},ButtonFunctional:{id:'gdpr-privacy-button-functional',func:function(){consent.given('functional')}}},cookieName:'gdpr',days:90,init:function(){this.cookieValue=cookie.get(this.cookieName);if(this.cookieValue==null||this.cookieValue=='nochoice')this.showBanner();this.setGTMValue();this.listenForPrivacyButtons()},listenForBannerButtons:function(){var set={};for(key in this.banner){set[key]=document.getElementById(this.banner[key].id);if(set[key]!=null)set[key].addEventListener("click",consent.banner[key].func)}},listenForPrivacyButtons:function(){var set={};for(key in this.privacy){set[key]=document.getElementById(this.privacy[key].id);if(set[key]!=null)set[key].addEventListener("click",consent.privacy[key].func)};this.setPrivacyValue()},setPrivacyValue:function(){var message=document.getElementById(this.info);if(message==null)return;if(this.cookieValue=='all'){message.innerText=gdprstatus.all}else message.innerText=gdprstatus.functional},showBanner:function(){var el=document.getElementById(this.id);this.holder=el.cloneNode(true);this.holder.classList.remove("display_none");el.parentNode.removeChild(el);document.body.insertBefore(this.holder,document.body.firstChild);this.listenForBannerButtons()},hideBanner:function(){var el=document.getElementById(this.id);el.parentNode.removeChild(el)},given:function(val){cookie.set(this.cookieName,val,this.days);this.setGTMValue();this.cookieValue=val;this.setPrivacyValue()},setGTMValue:function(){var val=false;if(cookie.get(this.cookieName)=='all')val=true;dataLayer.push({event:'allowAdFeatures',eventAction:'allowAdFeatures',eventLabel:val})}},cookie={set:function(name,value,days){if(typeof days==='undefined')days=theme.cookie.timeout;var expires="";if(days){var date=new Date();date.setTime(date.getTime()+(days*24*60*60*1e3));expires="; expires="+date.toGMTString()};document.cookie=name+"="+value+expires+"; path=/"},get:function(name){var name=name+"=",ca=document.cookie.split(';');for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==' ')c=c.substring(1);if(c.indexOf(name)==0)return c.substring(name.length,c.length)};return null},del:function(name){this.create("",name,-1)},check:function(name){if(this.cookieGet(name)!==null)return true;return false},update:function(name,days){if(this.cookieCheck(name)){value=this.cookieGet(name);this.cookieSet(value,name,days);return true};return false}};consent.init()})
9/* Source and licensing information for the above line(s) can be found at https://www.lovematters.in/modules/custom/rnw_gdpr_cookie/js/consent.js. */;

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.