1/* Source and licensing information for the line(s) below can be found at https://www.lovematters.in/themes/custom/love_matters_default/js/scripts.min.js. */ 2!function(e){"use strict";function t(t,o,n,i,a){var l=parseInt(e(document).width());i=e(i)[0],e(t).is(o)&&a>=l&&e(i).before(e(n))}var o={isMobile:!1,iosver:!1,checkMobile:function(){o.isMobile=navigator.userAgent.match(/iPad|iPhone|iPod|Android|android/g)?!0:!1},checkIos:function(){if(/iP(hone|od|ad)/.test(navigator.platform)){var e=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);o.iosver=[parseInt(e[1],10),parseInt(e[2],10),parseInt(e[3]||0,10)]}},checkButtonCount:function(){var t=0,o=e("#social-block a");o.each(function(o){e(this).is(":visible")&&t++}),t<o.length&&o.length-t<=5&&e("#openshare").hide()},init:function(){o.checkMobile(),o.checkIos(),(!o.isMobile||o.iosver!==!1&&o.iosver[0]<6)&&(e(".spritefont-whatsapp").length&&e(".spritefont-whatsapp").each(function(t){e(this).parent().hide()}),e(".spritefont-viber").length&&e(".spritefont-viber").each(function(t){e(this).parent().hide()})),o.checkButtonCount()}},n={isExternalLink:function(e){return e.host!==window.location.host},init:function(){for(var t=document.getElementsByTagName("main")[0],o=t.getElementsByTagName("a"),i=0;i<o.length;i++)n.isExternalLink(o[i])&&e(o[i]).is("[target]")===!1&&(o[i].setAttribute("target","_blank"),o[i].setAttribute("rel","noopener noreferrer"))}};n.init();var i={init:function(){e(".button.expander").length&&e(".button.expander").on("click",function(t){t.preventDefault();var o=e(this),n=o.attr("id");e("#"+n+"-list .expandable").each(function(t){e(this).removeClass("element-invisible")}),o.remove()})}};i.init();var a={detectMobile:function(){navigator.userAgent.match(/Mobi/)&&e("body").addClass("mobile")},init:function(){this.toggleLevelTwo(),this.collapseBehavior("#mobile-menu","header","open",!0),this.detectMobile()},toggleLevelTwo:function(){e("#main-menu nav:first-child > ul > li").on("click touchstart",function(t){if(t.target==this){if(t.handled===!1)return;t.stopPropagation(),t.preventDefault(),t.handled=!0,e(this).find(".header").remove();var o='<li class="header"><span></span>'+e(this).find("a").html()+"</li>";e(this).closest("ul").toggleClass("hide-mobile"),e(this).find("ul").toggleClass("show-mobile").prepend(o),e("ul.show-mobile .header").on("click touchstart",function(t){return e(".hide-mobile").toggleClass("hide-mobile"),e(this).closest("ul").toggleClass("show-mobile"),e(this).remove(),!1})}})},collapseBehavior:function(t,o,n,i){e(t).on("click touchstart",function(t){e(o).toggleClass(n);var i=e(window).height()-56;e("header.open")&&e(document).width()<480?(e(".open #main-menu").height(i),e('nav[id$="-main-menu"] ul').removeClass("hide-mobile"),e('nav[id$="-main-menu"] ul ul').removeClass("show-mobile")):e("#main-menu").css("height",""),t.preventDefault()}),i&&e(document).on("click touchstart",function(t){e(t.target).closest("header").length||e(o).removeClass(n)})}},l={open:!1,close:function(){l.open!==!1&&(e("#modal").hide(200,function(){e("#modal").remove()}),this.open=!1,e("body").off(".modal"))},makeShareModal:function(){var t="";this.create(t),e("#social-block .share-button").clone().appendTo("#modal_container"),e("#modal_container .share-button").removeClass("element-invisible")},create:function(t){var o="<div id='modal'><div id='modal_container'><a href='#closemodal' id='closemodal'>x</a>"+t+"</div></div>";e("body").append(o),this.open=!0,e("body").on("click.modal","#modal",function(e){l.close()})},init:function(){e("#social-block").on("click","#openshare",function(e){e.preventDefault(),l.makeShareModal()}),e("body").on("click","#closemodal",function(e){e.preventDefault(),l.close()}),e(document).keyup(function(e){27===e.keyCode&&l.open===!0&&l.close()})}},s={init:function(){e("body").on("click",".share-button:not(.mail-button,.share-wechat)",function(t){t.preventDefault();var o,n,i=e(this).attr("href"),a=530,s=530;e(window).width()>800?(o=screen.height/2-a/2,n=screen.width/2-s/2):(o=screen.height/.15-a/.15,n=screen.width/.15-s/.15),window.open(i,"sharer","top="+o+",left="+n+",toolbar=0,status=0,width="+s+",height="+a),l.close()}),e("body").on("click",".share-button.share-wechat",function(t){return t.preventDefault(),e("#social-block .qr-code-page-url").length?(e("#social-block .qr-code-page-url").hide("fast").remove(),!1):void e("footer .qr-code-page-url").clone().appendTo("#social-block")})}};document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Image","1.1")?e("html").addClass("svg"):e("html").addClass("lt-ie9");var c={check:"section.comments .comment__content div",init:function(){"undefined"!=typeof possibles&&e(c.check).length&&c.loop()},loop:function(){e(c.check).each(function(t){for(var o=e(this).text(),n=0;n<possibles.length;n++)if(o.indexOf(possibles[n])>-1){var i="((https|http)://"+possibles[n]+"[-A-Z0-9+&@#/%?=~_|!:,.;]*[-A-Z0-9+&@#/%=~_|])",a=new RegExp(i,"gim");o=o.replace(a,'<a href="$1">$1</a>')}o!==e(this).text()&&e(this).html(o)})}};
2e(document).ready(function(){a.init(),l.init(),s.init(),c.init(),t("#page",".article,.resource","[id$=breadcrumbs]","h1","9999"),t("#page",".path-frontpage","[id$=-introduction-2]",".page-top","768"),e(".body-text .cta-comment").length&&e(".body-text p:nth-child(5)").length&&t("#page",".article,.resource",".cta-comment",".body-text p:nth-child(5)","9999"),o.init()})}(jQuery); 3/* Source and licensing information for the above line(s) can be found at https://www.lovematters.in/themes/custom/love_matters_default/js/scripts.min.js. */; 4/* Source and licensing information for the line(s) below can be found at https://www.lovematters.in/themes/custom/love_matters_default/js/custom_lang.js. */ 5jQuery(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()})})}) 6/* Source and licensing information for the above line(s) can be found at https://www.lovematters.in/themes/custom/love_matters_default/js/custom_lang.js. */; 7/* Source and licensing information for the line(s) below can be found at https://www.lovematters.in/themes/custom/love_matters_india/js/custom.js. */ 8jQuery(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"})}) 9/* Source and licensing information for the above line(s) can be found at https://www.lovematters.in/themes/custom/love_matters_india/js/custom.js. */; 10/* Source and licensing information for the line(s) below can be found at https://www.lovematters.in/modules/contrib/cleantalk/js/apbct-public.js. */ 11var d = new Date(), 12 ctTimeMs = new Date().getTime(), 13 ctMouseEventTimerFlag = true, //Reading interval flag 14 ctMouseData = "[", 15 ctMouseDataCounter = 0, 16 ctScrollCollected = false; 17 18function ctSetCookie(cookies) { 19 let useAltCookies = ct_use_alt_cookies; 20 21 if(useAltCookies === 1) { 22 let xhr = new XMLHttpRequest(); 23 24 let json = JSON.stringify(cookies); 25 26 xhr.open("POST", '/admin/config/cleantalk/set_alt_cookies') 27 xhr.setRequestHeader('Content-type', 'application/json; charset=utf-8'); 28 29 xhr.send(json); 30 } else { 31 cookies.forEach(function (e) { 32 document.cookie = e.name + "=" + encodeURIComponent(e.value) + "; path=/"; 33 }) 34 } 35} 36 37ctSetCookie( 38 [ 39 { 40 'name' : 'ct_check_js', 41 'value' : ct_check_js_val 42 }, 43 { 44 'name' : 'ct_ps_timestamp', 45 'value' : Math.floor(new Date().getTime()/1000) 46 }, 47 { 48 'name' : 'ct_fkp_timestamp', 49 'value' : '0' 50 }, 51 { 52 'name' : 'ct_pointer_data', 53 'value' : '0' 54 }, 55 { 56 'name' : 'ct_timezone', 57 'value' : d.getTimezoneOffset()/60*(-1) 58 }, 59 { 60 'name' : 'apbct_antibot', 61 'value' : drupal_ac_antibot_cookie_value 62 }, 63 { 64 'name' : 'ct_has_scrolled', 65 'value' : false 66 } 67 ] 68); 69 70//Reading interval 71 72var ctMouseReadInterval = setInterval(function() { 73 ctMouseEventTimerFlag = true; 74 }, 150); 75 76//Writting interval 77 78var ctMouseWriteDataInterval = setInterval(function() { 79 if(typeof ct_use_alt_cookies !== "undefined" && ct_use_alt_cookies === 1) { 80 return; 81 } 82 var ctMouseDataToSend = ctMouseData.slice(0,-1).concat("]");
83 ctSetCookie([ 84 { 85 'name' : 'ct_pointer_data', 86 'value' : ctMouseDataToSend 87 } 88 ]); 89 }, 1200); 90 91//Stop observing function 92 93function ctMouseStopData() { 94 if(typeof window.addEventListener == "function") 95 window.removeEventListener("mousemove", ctFunctionMouseMove); 96 else 97 window.detachEvent("onmousemove", ctFunctionMouseMove); 98 clearInterval(ctMouseReadInterval); 99 clearInterval(ctMouseWriteDataInterval); 100} 101 102//Logging mouse position each 300 ms 103 104var ctFunctionMouseMove = function output(event) { 105 if (ctMouseEventTimerFlag == true) { 106 var mouseDate = new Date(); 107 ctMouseData += "[" + Math.round(event.pageY) + "," + Math.round(event.pageX) + "," + Math.round(mouseDate.getTime() - ctTimeMs) + "],"; 108 ctMouseDataCounter++; 109 ctMouseEventTimerFlag = false; 110 if(ctMouseDataCounter >= 100) 111 ctMouseStopData(); 112 } 113}; 114 115/** 116 * Set scrolling cookie 117 */ 118function ctSetHasScrolled() { 119 if( ! ctScrollCollected ) { 120 ctSetCookie([ 121 { 122 'name' : 'ct_has_scrolled', 123 'value' : true 124 } 125 ]); 126 ctScrollCollected = true; 127 } 128} 129 130//Stop key listening function 131 132function ctKeyStopStopListening() { 133 if (typeof window.addEventListener == "function") { 134 window.removeEventListener("mousedown", ctFunctionFirstKey); 135 window.removeEventListener("keydown", ctFunctionFirstKey); 136 } 137 else { 138 window.detachEvent("mousedown", ctFunctionFirstKey); 139 window.detachEvent("keydown", ctFunctionFirstKey); 140 } 141} 142 143//Writing first key press timestamp 144 145var ctFunctionFirstKey = function output(event) { 146 var KeyTimestamp = Math.floor(new Date().getTime()/1000); 147 ctSetCookie([ 148 { 149 'name' : 'ct_fkp_timestamp', 150 'value' : KeyTimestamp 151 } 152 ]); 153 ctKeyStopStopListening(); 154}; 155 156if (typeof window.addEventListener == "function") { 157 window.addEventListener("mousemove", ctFunctionMouseMove); 158 window.addEventListener("mousedown", ctFunctionFirstKey); 159 window.addEventListener("keydown", ctFunctionFirstKey); 160 window.addEventListener("scroll", ctSetHasScrolled); 161} 162else { 163 window.attachEvent("onmousemove", ctFunctionMouseMove); 164 window.attachEvent("mousedown", ctFunctionFirstKey); 165 window.attachEvent("keydown", ctFunctionFirstKey); 166 window.attachEvent("scroll", ctSetHasScrolled); 167} 168 169function apbct_collect_visible_fields( form ) { 170 171 // Get only fields 172 var inputs = [], 173 inputs_visible = '', 174 inputs_visible_count = 0, 175 inputs_invisible = '', 176 inputs_invisible_count = 0, 177 inputs_with_duplicate_names = []; 178 179 for(var key in form.elements){ 180 if(!isNaN(+key)) 181 inputs[key] = form.elements[key]; 182 } 183 184 // Filter fields 185 inputs = inputs.filter(function(elem){ 186 187 // Filter already added fields 188 if( inputs_with_duplicate_names.indexOf( elem.getAttribute('name') ) !== -1 ){ 189 return false; 190 } 191 // Filter inputs with same names for type == radio 192 if( -1 !== ['radio', 'checkbox'].indexOf( elem.getAttribute("type") )){ 193 inputs_with_duplicate_names.push( elem.getAttribute('name') ); 194 return false; 195 } 196 return true; 197 }); 198 199 // Visible fields 200 inputs.forEach(function(elem, i, elements){ 201 // Unnecessary fields 202 if( 203 elem.getAttribute("type") === "submit" || // type == submit 204 elem.getAttribute('name') === null || 205 elem.getAttribute('name') === 'ct_checkjs' 206 ) { 207 return; 208 } 209 // Invisible fields 210 if( 211 getComputedStyle(elem).display === "none" || // hidden 212 getComputedStyle(elem).visibility === "hidden" || // hidden 213 getComputedStyle(elem).opacity === "0" || // hidden 214 elem.getAttribute("type") === "hidden" // type == hidden 215 ) { 216 if( elem.classList.contains("wp-editor-area") ) { 217 inputs_visible += " " + elem.getAttribute("name"); 218 inputs_visible_count++; 219 } else { 220 inputs_invisible += " " + elem.getAttribute("name"); 221 inputs_invisible_count++; 222 } 223 } 224 // Visible fields 225 else { 226 inputs_visible += " " + elem.getAttribute("name"); 227 inputs_visible_count++; 228 } 229 230 }); 231 232 inputs_invisible = inputs_invisible.trim(); 233 inputs_visible = inputs_visible.trim(); 234 235 return {
236 visible_fields : inputs_visible, 237 visible_fields_count : inputs_visible_count, 238 invisible_fields : inputs_invisible, 239 invisible_fields_count : inputs_invisible_count, 240 } 241 242} 243 244function apbct_visible_fields_set_cookie( visible_fields_collection ) { 245 246 var collection = typeof visible_fields_collection === 'object' && visible_fields_collection !== null ? visible_fields_collection : {}; 247 248 ctSetCookie([ 249 { 250 'name' : 'apbct_visible_fields', 251 'value' : JSON.stringify( collection ) 252 } 253 ]) 254} 255/* Source and licensing information for the above line(s) can be found at https://www.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.