PageSourceSearch

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

js lovematters.in collected 2026-09-25 00:29:58 UTC 9,106 bytes, 252 lines download raw bytes

1/* Source and licensing information for the line(s) below can be found at https://lovematters.in/themes/custom/love_matters_default/js/custom_lang.js. */
2jQuery(function(){var langType=jQuery('html').attr('lang');jQuery(document).ready(function(){if(langType=='hi')jQuery('.form-item-comment-body-0-value label').text('टिप्पणी');if(jQuery('#edit-field-map-co-ordinate-boundary-geolocation-geocoder-address').val())jQuery('#block-love-matters-india-lovematters-v2-system-main .views-row').each(function(){jQuery(this).show()})})})
3/* Source and licensing information for the above line(s) can be found at https://lovematters.in/themes/custom/love_matters_default/js/custom_lang.js. */;
4/* Source and licensing information for the line(s) below can be found at https://lovematters.in/themes/custom/love_matters_india/js/custom.js. */
5jQuery(function(){var langType=jQuery('html').attr('lang');jQuery(document).ready(function(){var page_url=window.location.href,page_string="author/",index_point=page_url.indexOf(page_string),user_fullname=jQuery('.views-user-title').text();if(index_point!=-1)jQuery(document).prop('title',user_fullname+'| Love Matters');var title_stories=jQuery('.views-infinite-scroll-content-wrapper .node-teaser .node-header .grid-cell').find('h3').find('a').first().text();jQuery('.stories_title').text(title_stories);if(langType=='hi')jQuery('.form-item-comment-body-0-value label').text('टिप्पणी')});if(langType=="hi")jQuery('.paragraph--type--text a[data-action="internal"]').each(function(){var text=this.href,text1=text.replace('lovematters.in/hi/','lovematters.in/'),text2=text1.replace('lovematters.in/','lovematters.in/hi/'),text3=text2.replace('lovematters.in/hi/hi','lovematters.in/hi/');jQuery(this).attr('href',text3)});jQuery('.goBack').on('click',function(e){e.preventDefault();var data_lang=jQuery(this).attr('data-lang');if(data_lang=="en"){location="https://lovematters.in/en/clinics"}else if(data_lang=="hi"){location="https://lovematters.in/hi/clinics"}else location="https://lovematters.in/"+data_lang+"/clinics"})})
6/* Source and licensing information for the above line(s) can be found at https://lovematters.in/themes/custom/love_matters_india/js/custom.js. */;
7/* Source and licensing information for the line(s) below can be found at https://lovematters.in/modules/contrib/cleantalk/js/apbct-public.js. */
8var d = new Date(),
9	ctTimeMs = new Date().getTime(),
10	ctMouseEventTimerFlag = true, //Reading interval flag
11	ctMouseData = "[",
12	ctMouseDataCounter = 0,
13  ctScrollCollected = false;
14
15function ctSetCookie(cookies) {
16  let useAltCookies = ct_use_alt_cookies;
17
18  if(useAltCookies === 1) {
19    let xhr = new XMLHttpRequest();
20
21    let json = JSON.stringify(cookies);
22
23    xhr.open("POST", '/admin/config/cleantalk/set_alt_cookies')
24    xhr.setRequestHeader('Content-type', 'application/json; charset=utf-8');
25
26    xhr.send(json);
27  } else {
28    cookies.forEach(function (e) {
29      document.cookie = e.name + "=" + encodeURIComponent(e.value) + "; path=/";
30    })
31  }
32}
33
34ctSetCookie(
35  [
36    {
37      'name' : 'ct_check_js',
38      'value' : ct_check_js_val
39    },
40    {
41      'name' : 'ct_ps_timestamp',
42      'value' : Math.floor(new Date().getTime()/1000)
43    },
44    {
45      'name' : 'ct_fkp_timestamp',
46      'value' : '0'
47    },
48    {
49      'name' : 'ct_pointer_data',
50      'value' : '0'
51    },
52    {
53      'name' : 'ct_timezone',
54      'value' : d.getTimezoneOffset()/60*(-1)
55    },
56    {
57      'name' : 'apbct_antibot',
58      'value' : drupal_ac_antibot_cookie_value
59    },
60    {
61      'name' : 'ct_has_scrolled',
62      'value' : false
63    }
64  ]
65);
66
67//Reading interval
68
69var ctMouseReadInterval = setInterval(function() {
70		ctMouseEventTimerFlag = true;
71	}, 150);
72
73//Writting interval
74
75var ctMouseWriteDataInterval = setInterval(function() {
76  if(typeof ct_use_alt_cookies !== "undefined" && ct_use_alt_cookies === 1) {
77    return;
78  }
79		var ctMouseDataToSend = ctMouseData.slice(0,-1).concat("]");
80		ctSetCookie([
81      {
82        'name' : 'ct_pointer_data',
83        'value' : ctMouseDataToSend
84      }
85    ]);
86	}, 1200);
87
88//Stop observing function
89
90function ctMouseStopData() {
91	if(typeof window.addEventListener == "function")
92		window.removeEventListener("mousemove", ctFunctionMouseMove);
93	else
94		window.detachEvent("onmousemove", ctFunctionMouseMove);
95	clearInterval(ctMouseReadInterval);
96	clearInterval(ctMouseWriteDataInterval);
97}
98
99//Logging mouse position each 300 ms
100
101var ctFunctionMouseMove = function output(event) {
102	if (ctMouseEventTimerFlag == true) {
103		var mouseDate = new Date();
104		ctMouseData += "[" + Math.round(event.pageY) + "," + Math.round(event.pageX) + "," + Math.round(mouseDate.getTime() - ctTimeMs) + "],";
105		ctMouseDataCounter++;
106		ctMouseEventTimerFlag = false;
107		if(ctMouseDataCounter >= 100)
108			ctMouseStopData();
109	}
110};
111
112/**
113 * Set scrolling cookie
114 */
115function ctSetHasScrolled() {
116  if( ! ctScrollCollected ) {
117    ctSetCookie([
118      {
119        'name' : 'ct_has_scrolled',
120        'value' : true
121      }
122    ]);
123    ctScrollCollected = true;
124  }
125}
126
127//Stop key listening function
128
129function ctKeyStopStopListening() {
130	if (typeof window.addEventListener == "function") {
131		window.removeEventListener("mousedown", ctFunctionFirstKey);
132		window.removeEventListener("keydown", ctFunctionFirstKey);
133	}
134	else {
135		window.detachEvent("mousedown", ctFunctionFirstKey);
136		window.detachEvent("keydown", ctFunctionFirstKey);
137	}
138}
139
140//Writing first key press timestamp
141
142var ctFunctionFirstKey = function output(event) {
143	var KeyTimestamp = Math.floor(new Date().getTime()/1000);
144  ctSetCookie([
145    {
146      'name' : 'ct_fkp_timestamp',
147      'value' : KeyTimestamp
148    }
149  ]);
150	ctKeyStopStopListening();
151};
152
153if (typeof window.addEventListener == "function") {
154	window.addEventListener("mousemove", ctFunctionMouseMove);
155	window.addEventListener("mousedown", ctFunctionFirstKey);
156	window.addEventListener("keydown", ctFunctionFirstKey);
157  window.addEventListener("scroll", ctSetHasScrolled);
158}
159else {
160	window.attachEvent("onmousemove", ctFunctionMouseMove);
161	window.attachEvent("mousedown", ctFunctionFirstKey);
162	window.attachEvent("keydown", ctFunctionFirstKey);
163  window.attachEvent("scroll", ctSetHasScrolled);
164}
165
166function apbct_collect_visible_fields( form ) {
167
168    // Get only fields
169    var inputs = [],
170        inputs_visible = '',
171        inputs_visible_count = 0,
172        inputs_invisible = '',
173        inputs_invisible_count = 0,
174        inputs_with_duplicate_names = [];
175
176    for(var key in form.elements){
177        if(!isNaN(+key))
178            inputs[key] = form.elements[key];
179    }
180
181    // Filter fields
182    inputs = inputs.filter(function(elem){
183
184        // Filter already added fields
185        if( inputs_with_duplicate_names.indexOf( elem.getAttribute('name') ) !== -1 ){
186            return false;
187        }
188        // Filter inputs with same names for type == radio
189        if( -1 !== ['radio', 'checkbox'].indexOf( elem.getAttribute("type") )){
190            inputs_with_duplicate_names.push( elem.getAttribute('name') );
191            return false;
192        }
193        return true;
194    });
195
196    // Visible fields
197    inputs.forEach(function(elem, i, elements){
198        // Unnecessary fields
199        if(
200            elem.getAttribute("type")         === "submit" || // type == submit
201            elem.getAttribute('name')         === null     ||
202            elem.getAttribute('name')         === 'ct_checkjs'
203        ) {
204            return;
205        }
206        // Invisible fields
207        if(
208            getComputedStyle(elem).display    === "none" ||   // hidden
209            getComputedStyle(elem).visibility === "hidden" || // hidden
210            getComputedStyle(elem).opacity    === "0" ||      // hidden
211            elem.getAttribute("type")         === "hidden" // type == hidden
212        ) {
213            if( elem.classList.contains("wp-editor-area") ) {
214                inputs_visible += " " + elem.getAttribute("name");
215                inputs_visible_count++;
216            } else {
217                inputs_invisible += " " + elem.getAttribute("name");
218                inputs_invisible_count++;
219            }
220        }
221        // Visible fields
222        else {
223            inputs_visible += " " + elem.getAttribute("name");
224            inputs_visible_count++;
225        }
226
227    });
228
229    inputs_invisible = inputs_invisible.trim();
230    inputs_visible = inputs_visible.trim();
231
232    return {
233        visible_fields : inputs_visible,
234        visible_fields_count : inputs_visible_count,
235        invisible_fields : inputs_invisible,
236        invisible_fields_count : inputs_invisible_count,
237    }
238
239}
240
241function apbct_visible_fields_set_cookie( visible_fields_collection ) {
242
243    var collection = typeof visible_fields_collection === 'object' && visible_fields_collection !== null ?  visible_fields_collection : {};
244
245    ctSetCookie([
246        {
247            'name' : 'apbct_visible_fields',
248            'value' : JSON.stringify( collection )
249        }
250    ])
251}
252/* Source and licensing information for the above line(s) can be found at https://lovematters.in/modules/contrib/cleantalk/js/apbct-public.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.