1/* Source and licensing information for the line(s) below can be found at https://www.lovematters.in/modules/custom/rnw_google_tagmanager/js/rnw_google_tagmanager_v2.js. */ 2var TGM={pausetime:500,clickEventTracker:function(selector,callback,container){if(typeof container==='undefined')container='body';jQuery(container).on('click',selector,function(e){callback(jQuery(this),e)})},sendData:function(dataArray){dataLayer.push(dataArray);this.pausecomp(this.pausetime)},objToString:function(obj,level){var out='';for(var i in obj)if(obj.hasOwnProperty(i)){for(loop=level;loop>0;loop--)out+=" ";if(obj[i]instanceof Object){out+=i+" (Object):\n";out+=TGM.objToString(obj[i],level+1)}else out+=i+": "+obj[i]+"\n"};return out},pausecomp:function(ms){if(window.location.hostname.indexOf("stage.")>-1||window.location.hostname.indexOf("local.")>-1)console.log(TGM.objToString(dataLayer,0));ms+=new Date().getTime();while(new Date()<ms);},getWordCount:function(nodeContent){working=jQuery(nodeContent).clone();working.find("script,section.comments").remove();var wordCountTemp=working.text().replace(/(^\s*)|(\s*$)/gi,"").replace(/[ ]{2,}/gi," ").replace(/\n /,"\n"),wordCount=wordCountTemp.split(' ').length;if(wordCount>3e3){return"3k+"}else if(wordCount>2500){return"2.5k-3k"}else if(wordCount>2e3){return"2k-2.5k"}else if(wordCount>1500){return"1.5k-2k"}else if(wordCount>1100){return"1.1k-1.5k"}else if(wordCount>800){return"800-1.1k"}else if(wordCount>500){return"500-800"}else if(wordCount>200){return"200-500"}else return"<200"},getTitleLength:function(){var wordCountTemp=document.title;wordCountTemp=wordCountTemp.replace(/(^\s*)|(\s*$)/gi,"");wordCountTemp=wordCountTemp.replace(/[ ]{2,}/gi," ");wordCountTemp=wordCountTemp.replace(/\n /,"\n");var wordCount=wordCountTemp.split(' ').length;if(wordCount>20){return"21+"}else if(wordCount>16){return"17-20"}else if(wordCount>12){return"13-16"}else if(wordCount>10){return"11-12"}else if(wordCount>8){return"9-10"}else if(wordCount>6){return"7-8"}else if(wordCount>4){return"5-6"}else if(wordCount>2){return"3-4"}else return"<3"},getDomainName:function(){var noTLD=location.host.replace(/^(\.com|\.cn|\.nl|\.org|\.in|\.co\.ke)/gi,""),output='';if(location.host==='localhost')return location.host;parts=noTLD.split(".");var cnt=parts.length;if(cnt>=2){output=parts[parts.length-1]}else output=noTLD;return output},getImageCount:function(nodeContent){var numImages=jQuery(nodeContent+" img").length;if(numImages>20){return"21+"}else if(numImages>15){return"16-20"}else if(numImages>10){return"11-15"}else if(numImages>7){return"8-10"}else if(numImages>5){return"6-7"}else if(numImages>3){return"4-5"}else if(numImages>1){return"2-3"}else if(numImages>0){return"1"}else return"0"},getVideoCount:function(nodeContent){var regex=/(?:https?:)?\/\/www\.youtube\.com\/embed\/([\w-]{11})(?:\?.*)?/,content=jQuery(nodeContent).html(),matches=content.match(regex);if(matches&&matches.length>
21){var numVideos=matches.length-1;if(numVideos>9){return"10+"}else if(numVideos>7){return"8-9"}else if(numVideos>5){return"6-7"}else if(numVideos>3){return"4-5"}else if(numVideos>2){return"3"}else if(numVideos>1){return"2"}else if(numVideos>0){return"1"}else return"0"}else return"0"},linkIsExternal:function(linkElement){return(linkElement.host!==window.location.host)},readingTimeout:function(){setTimeout(function(){dataLayer.push({event:'article_interaction',eventAction:'timer_25s',eventLabel:window.location.pathname})},25*1e3)}};jQuery(document).ready(function($){TGM.readingTimeout();var links=document.getElementsByTagName('a');for(var i=0;i<links.length;i++){if(TGM.linkIsExternal(links[i])){if($(links[i]).hasClass('share-button')===true){links[i].dataset.event="social_engagement";links[i].dataset.action="share";links[i].dataset.label=$(links[i]).text()}else if($(links[i]).parent('.social-footer')===true){links[i].dataset.event="social_engagement";links[i].dataset.action="follow";links[i].dataset.label=$(links[i]).text()}else if($(links[i]).hasClass('fontsprite')===false){links[i].dataset.event="external_linkclick";links[i].dataset.action=links[i].getAttribute("href");links[i].dataset.label=window.location.pathname}}else if($(links[i]).hasClass('view-more')===true){links[i].dataset.event="article_interaction";links[i].dataset.action="keep_reading_button";links[i].dataset.label=links[i].getAttribute("href")}else if($(links[i]).closest('#navigation').length){links[i].dataset.event="menu";links[i].dataset.action="hamburger_navigation";links[i].dataset.label=links[i].getAttribute("href")}else if($(links[i]).hasClass('js-ajax-comments-reply')===true){if(dataLayer[0].hasOwnProperty('page_category')){links[i].dataset.event="comment";links[i].dataset.action="reply";links[i].dataset.label=dataLayer[0].page_category}}else if($(links[i]).find('picture').length){links[i].dataset.event="internal_linkclick";links[i].dataset.action="picture";links[i].dataset.label=links[i].getAttribute("href")}else if($(links[i]).is("[typeof]")){if($(links[i]).attr('typeof')==='schema:Person'){links[i].dataset.event="internal_linkclick";links[i].dataset.action="name";links[i].dataset.label=links[i].getAttribute("href")}}else if($(links[i]).closest("div.related-stories").length){links[i].dataset.event="internal_linkclick";links[i].dataset.action="related_story";links[i].dataset.label=links[i].getAttribute("href")}else{linkType='internal';if($(links[i]).find('picture').length||$(links[i]).find('img').length)linkType='image';links[i].dataset.event="internal_linkclick";links[i].dataset.action=linkType;links[i].dataset.label=links[i].getAttribute("href")};if($(links[i]).closest('.grid.footer-boxes').length){links[i].dataset.event="menu";links[i].dataset.action="bottom_navigation";links[i].dataset.label=links[i].getAttribute("href")}} 3function makePageStats(){var nodeContent='main';if(nodeContent!==""){dataLayer.push({event:'image_count',eventAction:'image_count',eventLabel:TGM.getImageCount(nodeContent)});dataLayer.push({event:'word_count',eventAction:'word_count',eventLabel:TGM.getWordCount(nodeContent)});dataLayer.push({event:'video_count',eventAction:'video_count',eventLabel:TGM.getVideoCount(nodeContent)})};dataLayer.push({event:'word_count',eventAction:'title',eventLabel:TGM.getTitleLength()})};makePageStats();if($('section.comments').length)$("section.comments input[type='submit']").on('touchstart mousedown',function(e){e.preventDefault();TGM.sendData({events:{action:'success',category:'comments',label:window.location.pathname},event:'interaction'})});$('body').on('click','a',function(){if($(this).attr('data-event')){if($(this).hasClass('button')&&$(this).hasClass('view-more'))return;if($(this).attr('data-action')!=='undefined'&&$(this).attr('data-event')!=='undefined'&&$(this).attr('data-label')!=='undefined')TGM.sendData({events:{action:$(this).attr('data-action'),category:$(this).attr('data-event'),label:$(this).attr('data-label')},event:'interaction'})}})});var gtmYTPlayers=[];for(var e=document.getElementsByTagName("iframe"),x=e.length;x--;)if(/youtube.com\/embed/.test(e[x].src))if(e[x].src.indexOf('enablejsapi=')===-1)e[x].src+=(e[x].src.indexOf('?')===-1?'?':'&')+'enablejsapi=1' 4function onPlayerPercent(e){if(e.getPlayerState()===YT.PlayerState.PLAYING){var t=e.getDuration()-e.getCurrentTime()<=1.5?1:(Math.floor(e.getCurrentTime()/e.getDuration()*10)/10).toFixed(2);if(parseFloat(t)<0.25){t=0.00}else if(parseFloat(t)<0.5){t=0.25}else if(parseFloat(t)<0.75){t=0.50}else if(parseFloat(t)<0.9){t=0.75}
4else if(parseFloat(t)<1)t=0.90;t=t.toFixed(2);if(!e.lastP||t>e.lastP){var video_data=e.getVideoData(),label=video_data.title,title=label.toLowerCase().replace(/[&\/\\#,+()$~%.'":*?<>{}-]/g,'_').replace(/\s/g,'');e.lastP=t;dataLayer.push({event:"youtube",eventCategory:'video_youtube',eventAction:t*100+"%",eventLabel:title})};if(e.lastP!==1)setTimeout(onPlayerPercent,1e3,e)}} 5function onPlayerStateChange(e){if(e.data===YT.PlayerState.PLAYING)setTimeout(onPlayerPercent,1e3,e.target);var video_data=e.target["getVideoData"](),label=video_data.title,title=label.toLowerCase().replace(/[&\/\\#,+()$~%.'":*?<>{}-]/g,'_').replace(/\s/g,'');if(e.data===YT.PlayerState.PLAYING&&YT.gtmLastAction==="p"){dataLayer.push({event:'youtube',eventCategory:'video_youtube',eventAction:'play',eventLabel:title});YT.gtmLastAction=""};if(e.data===YT.PlayerState.PAUSED){dataLayer.push({event:'youtube',eventCategory:'video_youtube',eventAction:'pause',eventLabel:title});YT.gtmLastAction="p"}} 6function onPlayerError(e){if(e.data===YT.PlayerState.PLAYING)setTimeout(onPlayerPercent,1e3,e.target);var video_data=e.target["getVideoData"](),label=video_data.title,title=label.toLowerCase().replace(/[&\/\\#,+()$~%.'":*?<>{}-]/g,'_').replace(/\s/g,'');dataLayer.push({event:'youtube',eventCategory:'video_youtube',eventAction:'error: '+e,eventLabel:title})} 7function onYouTubeIframeAPIReady(){for(var e=document.getElementsByTagName("iframe"),x=e.length;x--;)if(/youtube.com\/embed/.test(e[x].src)){gtmYTPlayers.push(new YT.Player(e[x],{events:{onStateChange:onPlayerStateChange,onError:onPlayerError}}));YT.gtmLastAction="p"}};window.addEventListener('beforeunload',function(){for(var i=0;i<gtmYTPlayers.length;i++)if(gtmYTPlayers[i].getPlayerState()===1){var video_data=gtmYTPlayers[i]['getVideoData'](),label=video_data.title,title=label.toLowerCase().replace(/[&\/\\#,+()$~%.'":*?<>{}-]/g,'_').replace(/\s/g,'');dataLayer.push({event:'youtube',eventCategory:'video_youtube',eventAction:'exit',eventLabel:title})}});var j=document.createElement("script"),f=document.getElementsByTagName("script")[0];j.src="//www.youtube.com/iframe_api";j.async=true;f.parentNode.insertBefore(j,f) 8/* Source and licensing information for the above line(s) can be found at https://www.lovematters.in/modules/custom/rnw_google_tagmanager/js/rnw_google_tagmanager_v2.js. */; 9/* 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. */ 10!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()}
10),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)})}};e(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); 11/* 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. */; 12/* 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. */ 13jQuery(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()})})}) 14/* 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. */; 15/* 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. */ 16jQuery(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"})}) 17/* 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. */;
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.