var initialPicLoadCount = '2'; var gallery_images = JSON.parse(null); var gallery_info = {"gallery_info":null,"category_galleries":""}; var serverName = "www.thehealthsite.com"; var centerAdid = ''; if(window.innerWidth > 767) var centerAdContent = ' '; else var centerAdContent = <div id='div-gpt-ad-1525083254207-3' class="center_ad"></div>; $(doc).prepared(operate(){ $('meta[property="og:site_name"]').attr('content material', 'TheHealthSite'); addcounter = 0; currentrequesturl = gallery_info.gallery_info.url; //console.log("Gallery URI :" + gallery_info.gallery_info.url); gallery_info.category_galleries = $("#first_gallery_bottom_content").html(); $("#first_gallery_bottom_content").html(""); isAjax = true; photoGalleryCurrentSlidId = parseInt(initialPicLoadCount); photoGalleryCurrentId = 1; galleryIsScrolled = true; $(window).scroll(operate(e){ //alert("Need to stop"); //console.log("Scrolled step 1"); e.preventDefault(); //hideSticky(); update_prev_current_next(); //updateTitleUrl(); //console.log("Scrolled step 2"); var top = $(doc).top(); var scrollTop = $(window).scrollTop(); var divObj = $("#health-gallery .checkClass").final(); if(divObj.size > 0){ var divTopHeight = Math.spherical(divObj.offset().high); //+parseInt(divObj.top()) } else { divObj = $("#health-gallery .vert_slide_wrap").final(); var divTopHeight = Math.spherical(divObj.offset().high); //+parseInt(divObj.top()) } if(window.innerWidth > 767){ divTopHeight = divTopHeight-150; } else { divTopHeight = divTopHeight-530; } if((scrollTop >= divTopHeight) && galleryIsScrolled == true){ //console.log("Scrolled step 3 scrollTop : " , + scrollTop + " >= divTopHeight : " + divTopHeight + " & galleryIsScrolled : " + galleryIsScrolled ); galleryIsScrolled = false; $("#health-gallery-"+photoGalleryCurrentId+" .main_wrap .vert_slide_wrap").removeAttr('model'); $("#health-gallery-"+photoGalleryCurrentId+" .vert_slide_wrap").every(operate(){ if(!$(this).hasClass('checkClass')){ $(this).addClass('checkClass'); } }); //console.log( "Step 1 : " + photoGalleryCurrentId + " "+ photoGalleryCurrentSlidId ); galleryImageAppend(gallery_images, photoGalleryCurrentSlidId, photoGalleryCurrentId); if((photoGalleryCurrentSlidId == parseInt(gallery_images.size)-initialPicLoadCount) && firstGalleryCheck == false){ var firstGalleryCheck = true; var galleryLen = parseInt(gallery_images.size)-initialPicLoadCount; //console.log( "Step 2 : " + photoGalleryCurrentId + " "+ photoGalleryCurrentSlidId ); galleryImageAppend(gallery_images, parseInt(photoGalleryCurrentSlidId)+1, photoGalleryCurrentId); //console.log( "Step 3 : " + photoGalleryCurrentId + " "+ photoGalleryCurrentSlidId ); galleryImageAppend(gallery_images, parseInt(photoGalleryCurrentSlidId)+2, photoGalleryCurrentId); } else { var galleryLen = gallery_images.size; } if( photoGalleryCurrentSlidId == galleryLen && isAjax ) { galleryURL = gallery_info.gallery_info.url; $("#health-gallery-"+photoGalleryCurrentId+" .main_wrap").append(gallery_info.category_galleries); var fbcommentscode = '<br><div class="discus" model="background:#fff;"><button id="commentbtn-'+photoGalleryCurrentId+'" class="button-e c-button "><i class="fa fa-comment" aria-hidden="true"></i> <span> Feedback - Be part of the Dialogue</span></button><div class="show-comment cmntbox-'+photoGalleryCurrentId+'" model="display: none;">'+ '<div class="fb-comments" data-href="https://www.thehealthsite.com/photo-gallery/boost-digestion-with-the-right-foods-723677/" data-width="100%" data-num-posts="3"></div>'+ '</div></div><script kind="text/javascript"> $(doc).prepared(operate(){ $("#commentbtn-'+photoGalleryCurrentId+'").on("click",operate(){ (operate(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "https://connect.facebook.net/en_US/all.js#xfbml=1&appId=178196885542208"; fjs.parentNode.insertBefore(js, fjs); }(doc, "script", "facebook-jssdk")); $(".cmntbox-'+photoGalleryCurrentId+'").toggle(); }); }); </scr'+'ipt>'; var taboola = '<script kind="text/javascript"> window._taboola = window._taboola || []; _taboola.push({photograph:"auto"}); !operate (e, f, u, i) { if (!doc.getElementById(i)){ e.async = 1; e.src = u; e.id = i; f.parentNode.insertBefore(e, f); } }(doc.createElement("script"), doc.getElementsByTagName("script")[0], "//cdn.taboola.com/libtrc/zeemedia-thehealtsite/loader.js", "tb_loader_script"); if(window.efficiency && typeof window.efficiency.mark == "function") {window.efficiency.mark("tbl_ic");} </scr'+'ipt> <div id="taboola-below-gallery-thumbnails-'+photoGalleryCurrentId+'" model="background:#fff;"></div> <script kind="text/javascript"> window._taboola = window._taboola || []; _taboola.push({ mode: "thumbnails-a", container: "taboola-below-gallery-thumbnails-'+photoGalleryCurrentId+'", placement: "Below Gallery Thumbnails", target_type: "mix" }); </scr'+'ipt> <script kind="text/javascript"> window._taboola = window._taboola || []; _taboola.push({flush: true}); </sc'+'ript>'; window._taboola = window._taboola || []; _taboola.push({flush: true}); $("#health-gallery-"+photoGalleryCurrentId+" .main_wrap").append(fbcommentscode); $("#health-gallery-"+photoGalleryCurrentId+" .main_wrap").append(taboola); FB.XFBML.parse(); //console.log("isAjax Flag : " + isAjax ); if( isAjax == true ) { isAjax = false; //console.log("Making Next Galery ready"); //$('#galLoader').present(); $.ajax({ url: '/wp-content/themes/well being2014/single-photo-gallery-infinite-scroll-ajax.php', methodology: 'GET', knowledge : { 'galid' : currentrequesturl }, success: operate(consequence){ console.log("New Gallery URL:" + consequence.gallery_info.url ); currentrequesturl = consequence.gallery_info.url; gallery_info = consequence; gallery_images = consequence.gallery_images; photoGalleryCurrentId++; addGallery(gallery_info); photoGalleryCurrentSlidId = 0; isAjax = true; galleryIsScrolled = true; //console.log("AJAX Received Successfully now isAjax Flag : " + isAjax ); //console.log("AJAX Received Successfully now galleryIsScrolled Flag : " + galleryIsScrolled ); //$('#galLoader').cover(); galleryImageAppend(gallery_images, photoGalleryCurrentSlidId, photoGalleryCurrentId); $("#health-gallery-"+photoGalleryCurrentId+" .vert_slide_wrap").every(operate(){ if(!$(this).hasClass('checkClass')){ $(this).addClass('checkClass'); } }); photoGalleryCurrentSlidId++; }, full:operate(consequence){ //$('#galLoader').cover(); } }); } } if( gallery_images.size > photoGalleryCurrentSlidId ) { //galleryImageAppend(gallery_images, photoGalleryCurrentSlidId, photoGalleryCurrentId); photoGalleryCurrentSlidId++; galleryIsScrolled = true; } } }); });" /> var initialPicLoadCount = '2'; var gallery_images = JSON.parse(null); var gallery_info = {"gallery_info":null,"category_galleries":""}; var serverName = "www.thehealthsite.com"; var centerAdid = ''; if(window.innerWidth > 767) var centerAdContent = ' '; else var centerAdContent = <div id='div-gpt-ad-1525083254207-3' class="center_ad"></div>; $(doc).prepared(operate(){ $('meta[property="og:site_name"]').attr('content material', 'TheHealthSite'); addcounter = 0; currentrequesturl = gallery_info.gallery_info.url; //console.log("Gallery URI :" + gallery_info.gallery_info.url); gallery_info.category_galleries = $("#first_gallery_bottom_content").html(); $("#first_gallery_bottom_content").html(""); isAjax = true; photoGalleryCurrentSlidId = parseInt(initialPicLoadCount); photoGalleryCurrentId = 1; galleryIsScrolled = true; $(window).scroll(operate(e){ //alert("Need to stop"); //console.log("Scrolled step 1"); e.preventDefault(); //hideSticky(); update_prev_current_next(); //updateTitleUrl(); //console.log("Scrolled step 2"); var top = $(doc).top(); var scrollTop = $(window).scrollTop(); var divObj = $("#health-gallery .checkClass").final(); if(divObj.size > 0){ var divTopHeight = Math.spherical(divObj.offset().high); //+parseInt(divObj.top()) } else { divObj = $("#health-gallery .vert_slide_wrap").final(); var divTopHeight = Math.spherical(divObj.offset().high); //+parseInt(divObj.top()) } if(window.innerWidth > 767){ divTopHeight = divTopHeight-150; } else { divTopHeight = divTopHeight-530; } if((scrollTop >= divTopHeight) && galleryIsScrolled == true){ //console.log("Scrolled step 3 scrollTop : " , + scrollTop + " >= divTopHeight : " + divTopHeight + " & galleryIsScrolled : " + galleryIsScrolled ); galleryIsScrolled = false; $("#health-gallery-"+photoGalleryCurrentId+" .main_wrap .vert_slide_wrap").removeAttr('model'); $("#health-gallery-"+photoGalleryCurrentId+" .vert_slide_wrap").every(operate(){ if(!$(this).hasClass('checkClass')){ $(this).addClass('checkClass'); } }); //console.log( "Step 1 : " + photoGalleryCurrentId + " "+ photoGalleryCurrentSlidId ); galleryImageAppend(gallery_images, photoGalleryCurrentSlidId, photoGalleryCurrentId); if((photoGalleryCurrentSlidId == parseInt(gallery_images.size)-initialPicLoadCount) && firstGalleryCheck == false){ var firstGalleryCheck = true; var galleryLen = parseInt(gallery_images.size)-initialPicLoadCount; //console.log( "Step 2 : " + photoGalleryCurrentId + " "+ photoGalleryCurrentSlidId ); galleryImageAppend(gallery_images, parseInt(photoGalleryCurrentSlidId)+1, photoGalleryCurrentId); //console.log( "Step 3 : " + photoGalleryCurrentId + " "+ photoGalleryCurrentSlidId ); galleryImageAppend(gallery_images, parseInt(photoGalleryCurrentSlidId)+2, photoGalleryCurrentId); } else { var galleryLen = gallery_images.size; } if( photoGalleryCurrentSlidId == galleryLen && isAjax ) { galleryURL = gallery_info.gallery_info.url; $("#health-gallery-"+photoGalleryCurrentId+" .main_wrap").append(gallery_info.category_galleries); var fbcommentscode = '<br><div class="discus" model="background:#fff;"><button id="commentbtn-'+photoGalleryCurrentId+'" class="button-e c-button "><i class="fa fa-comment" aria-hidden="true"></i> <span> Feedback - Be part of the Dialogue</span></button><div class="show-comment cmntbox-'+photoGalleryCurrentId+'" model="display: none;">'+ '<div class="fb-comments" data-href="https://www.thehealthsite.com/photo-gallery/boost-digestion-with-the-right-foods-723677/" data-width="100%" data-num-posts="3"></div>'+ '</div></div><script kind="text/javascript"> $(doc).prepared(operate(){ $("#commentbtn-'+photoGalleryCurrentId+'").on("click",operate(){ (operate(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "https://connect.facebook.net/en_US/all.js#xfbml=1&appId=178196885542208"; fjs.parentNode.insertBefore(js, fjs); }(doc, "script", "facebook-jssdk")); $(".cmntbox-'+photoGalleryCurrentId+'").toggle(); }); }); </scr'+'ipt>'; var taboola = '<script kind="text/javascript"> window._taboola = window._taboola || []; _taboola.push({photograph:"auto"}); !operate (e, f, u, i) { if (!doc.getElementById(i)){ e.async = 1; e.src = u; e.id = i; f.parentNode.insertBefore(e, f); } }(doc.createElement("script"), doc.getElementsByTagName("script")[0], "//cdn.taboola.com/libtrc/zeemedia-thehealtsite/loader.js", "tb_loader_script"); if(window.efficiency && typeof window.efficiency.mark == "function") {window.efficiency.mark("tbl_ic");} </scr'+'ipt> <div id="taboola-below-gallery-thumbnails-'+photoGalleryCurrentId+'" model="background:#fff;"></div> <script kind="text/javascript"> window._taboola = window._taboola || []; _taboola.push({ mode: "thumbnails-a", container: "taboola-below-gallery-thumbnails-'+photoGalleryCurrentId+'", placement: "Below Gallery Thumbnails", target_type: "mix" }); </scr'+'ipt> <script kind="text/javascript"> window._taboola = window._taboola || []; _taboola.push({flush: true}); </sc'+'ript>'; window._taboola = window._taboola || []; _taboola.push({flush: true}); $("#health-gallery-"+photoGalleryCurrentId+" .main_wrap").append(fbcommentscode); $("#health-gallery-"+photoGalleryCurrentId+" .main_wrap").append(taboola); FB.XFBML.parse(); //console.log("isAjax Flag : " + isAjax ); if( isAjax == true ) { isAjax = false; //console.log("Making Next Galery ready"); //$('#galLoader').present(); $.ajax({ url: '/wp-content/themes/well being2014/single-photo-gallery-infinite-scroll-ajax.php', methodology: 'GET', knowledge : { 'galid' : currentrequesturl }, success: operate(consequence){ console.log("New Gallery URL:" + consequence.gallery_info.url ); currentrequesturl = consequence.gallery_info.url; gallery_info = consequence; gallery_images = consequence.gallery_images; photoGalleryCurrentId++; addGallery(gallery_info); photoGalleryCurrentSlidId = 0; isAjax = true; galleryIsScrolled = true; //console.log("AJAX Received Successfully now isAjax Flag : " + isAjax ); //console.log("AJAX Received Successfully now galleryIsScrolled Flag : " + galleryIsScrolled ); //$('#galLoader').cover(); galleryImageAppend(gallery_images, photoGalleryCurrentSlidId, photoGalleryCurrentId); $("#health-gallery-"+photoGalleryCurrentId+" .vert_slide_wrap").every(operate(){ if(!$(this).hasClass('checkClass')){ $(this).addClass('checkClass'); } }); photoGalleryCurrentSlidId++; }, full:operate(consequence){ //$('#galLoader').cover(); } }); } } if( gallery_images.size > photoGalleryCurrentSlidId ) { //galleryImageAppend(gallery_images, photoGalleryCurrentSlidId, photoGalleryCurrentId); photoGalleryCurrentSlidId++; galleryIsScrolled = true; } } }); });" />
SHACMAN Trucks Tian Chao in Nigeria on expansion visit - Businessday NG
Boost digestion with the right food | TheHealthSite.com
Lady Narrates How Mum Snatched Her Husband, Delivered A Baby For Him (Photograph)
Mercedes makes incursion into MPV segment - Businessday NG
Harvey Weinstein trial set to begin with opening statements, witness testimony
Sleep issues: Weed is not the reply, try these healthier tips
BMW, Mercedes, VW beat global sales slump - Businessday NG
Mercy Eke Makes Debut In Toyin Abrahams ‘Fate Of Alakada’ (Video)
Emerging market inflation hits near-six-year high - Businessday NG
NDP caucus to discuss whether to support new NAFTA, Jagmeet Singh says
Gut Microbiome : | TheHealthSite.com
Wednesday, January 22, 2020

Lifestyle

Get real time update about this post category directly on your device, subscribe now.

Page 1 of 36 1 2 36

You May Also Like

Loading...

Login to your account below

Fill the forms bellow to register

*By registering into our website, you agree to the Terms & Conditions and Privacy Policy.

Retrieve your password

Please enter your username or email address to reset your password.