var initialPicLoadCount = '2'; var gallery_images = JSON.parse([{"ID":"724132","post_author":"Jahnavi Sarma","post_date":"2020-01-25 19:03:54","post_modified":"2020-01-25 19:03:54","post_content":"","post_title":"healthy bones","post_title_clean":"Healthy bones","post_name":"healthy-bones-724132","post_name_ext":"want-healthy-bones-eat-well-and-lead-an-active-life-724131/healthy-bones-724132","post_excerpt":"If you have weak bones, you need to take a good look at your lifestyle. An unhealthy lifestyle is one of the leading causes of weak bones. Your bones tend to become weak as you age. But if you have weak bones at a young age, it is a cause for worry. Your bones are the backbone of your body. You need to keep them strong and healthy. Sometimes, weak bones may be due to some underlying health conditions or thee may be a genetic factor behind it. But whatever the reason, you need to take steps to make your bones strong. Let us take a look at how you can do this.","guid":"https://www.thehealthsite.com/wp-content/uploads/2020/01/healthy-bones.jpg","post_category":"Photo Gallery"},{"ID":"724133","post_author":"Jahnavi Sarma","post_date":"2020-01-25 19:03:54","post_modified":"2020-01-25 19:03:54","post_content":"","post_title":"Non-Dairy-Calcium-Rich-Foods","post_title_clean":"Non Dairy Calcium Rich Foods","post_name":"non-dairy-calcium-rich-foods-724133","post_name_ext":"want-healthy-bones-eat-well-and-lead-an-active-life-724131/non-dairy-calcium-rich-foods-724133","post_excerpt":"Diet: Make sure that all your meals are well-balanced. Add foods that are rich in calcium and vitamin D to optimize bone health.","guid":"https://www.thehealthsite.com/wp-content/uploads/2020/01/Non-Dairy-Calcium-Rich-Foods.jpg","post_category":"Photo Gallery"},{"ID":"724134","post_author":"Jahnavi Sarma","post_date":"2020-01-25 19:03:54","post_modified":"2020-01-25 19:03:54","post_content":"","post_title":"exercise-1-1","post_title_clean":"Exercise 1 1","post_name":"exercise-1-1-724134","post_name_ext":"want-healthy-bones-eat-well-and-lead-an-active-life-724131/exercise-1-1-724134","post_excerpt":"Exercise: Be sure to exercise regularly for strong bones. Stretches and cardios are especially good for your bones. Walk, jog, dance and swim. You can also throw in a bit of weight training to keep your bones strong.","guid":"https://www.thehealthsite.com/wp-content/uploads/2020/01/exercise-1-1-1.jpg","post_category":"Photo Gallery"},{"ID":"724135","post_author":"Jahnavi Sarma","post_date":"2020-01-25 19:03:54","post_modified":"2020-01-25 19:03:54","post_content":"","post_title":"Quit-smoking-hindi","post_title_clean":"Quit smoking hindi","post_name":"quit-smoking-hindi-724135","post_name_ext":"want-healthy-bones-eat-well-and-lead-an-active-life-724131/quit-smoking-hindi-724135","post_excerpt":"Avoid smoking: Smoking induces loss of bone mass by affecting circulation. So think about your bone health before lighting up a cigarette. Giving up smoking will also help your overall health.","guid":"https://www.thehealthsite.com/wp-content/uploads/2020/01/Quit-smoking-hindi.jpg","post_category":"Photo Gallery"},{"ID":"724136","post_author":"Jahnavi Sarma","post_date":"2020-01-25 19:03:54","post_modified":"2020-01-25 19:03:54","post_content":"","post_title":"Say-no-to-alcohol-1","post_title_clean":"Say no to alcohol 1","post_name":"say-no-to-alcohol-1-724136","post_name_ext":"want-healthy-bones-eat-well-and-lead-an-active-life-724131/say-no-to-alcohol-1-724136","post_excerpt":"Say no to alcohol: Alcohol is bad for you bones. It can make the bones weak and brittle and you may be at a greater risk of fractures. So, limit your alcohol consumption if you want strong bones.","guid":"https://www.thehealthsite.com/wp-content/uploads/2020/01/Say-no-to-alcohol-1-1.jpg","post_category":"Photo Gallery"},{"ID":"724137","post_author":"Jahnavi Sarma","post_date":"2020-01-25 19:03:54","post_modified":"2020-01-25 19:03:54","post_content":"","post_title":"gollen-gums","post_title_clean":"Gollen gums","post_name":"gollen-gums-724137","post_name_ext":"want-healthy-bones-eat-well-and-lead-an-active-life-724131/gollen-gums-724137","post_excerpt":"Beware of dental problems: If you notice loose teeth, consult your doctor. The same goes for detached or receding gums. Even loose or ill-fitting dentures may indicate loss of bone mass. Visit a doctor and take his advice.","guid":"https://www.thehealthsite.com/wp-content/uploads/2020/01/gollen-gums.jpg","post_category":"Photo Gallery"}]); var gallery_info = {"gallery_info":{"id":"THS_Photo_724131","title":"Want healthy bones? Eat well and lead an active life","url":"https://www.thehealthsite.com/photo-gallery/want-healthy-bones-eat-well-and-lead-an-active-life-724131/","date":"2020-01-25 19:03:54","strdate":"2020-01-25T13:33:54Z","moddate":"2020-01-25 19:03:54","author":"Jahnavi Sarma","authorurl":"https://www.thehealthsite.com/author/jahnavi-sharma","articletype":"Photo","categorybadge":"Photo Gallery","category":["Photo Gallery"],"categoryslug":["photo-gallery"],"tag":["Bone health","healthy bones"],"tagslug":["bone-health","healthy-bones"],"enclosure":"https://st1.thehealthsite.com/wp-content/uploads/2020/01/healthy-bones-1.jpg##image/jpg"},"category_galleries":""}; var serverName = "www.thehealthsite.com"; var centerAdid = ''; if(window.innerWidth > 767) var centerAdContent = ' '; else var centerAdContent = ` `; $(document).ready(function(){ $('meta[property="og:site_name"]').attr('content', '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(function(e){ //alert("Need to stop"); //console.log("Scrolled step 1"); e.preventDefault(); //hideSticky(); update_prev_current_next(); //updateTitleUrl(); //console.log("Scrolled step 2"); var height = $(document).height(); var scrollTop = $(window).scrollTop(); var divObj = $("#health-gallery .checkClass").last(); if(divObj.length > 0){ var divTopHeight = Math.round(divObj.offset().top); //+parseInt(divObj.height()) } else { divObj = $("#health-gallery .vert_slide_wrap").last(); var divTopHeight = Math.round(divObj.offset().top); //+parseInt(divObj.height()) } 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('style'); $("#health-gallery-"+photoGalleryCurrentId+" .vert_slide_wrap").each(function(){ if(!$(this).hasClass('checkClass')){ $(this).addClass('checkClass'); } }); //console.log( "Step 1 : " + photoGalleryCurrentId + " "+ photoGalleryCurrentSlidId ); galleryImageAppend(gallery_images, photoGalleryCurrentSlidId, photoGalleryCurrentId); if((photoGalleryCurrentSlidId == parseInt(gallery_images.length)-initialPicLoadCount) && firstGalleryCheck == false){ var firstGalleryCheck = true; var galleryLen = parseInt(gallery_images.length)-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.length; } 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" style="background:#fff;"><button id="commentbtn-'+photoGalleryCurrentId+'" class="button-e c-button "><i class="fa fa-comment" aria-hidden="true"></i> <span> Comments - Join the Discussion</span></button><div class="show-comment cmntbox-'+photoGalleryCurrentId+'" style="display: none;">'+ '<div class="fb-comments" data-href="https://www.thehealthsite.com/photo-gallery/want-healthy-bones-eat-well-and-lead-an-active-life-724131/" data-width="100%" data-num-posts="3"></div>'+ '</div></div><script type="text/javascript"> $(document).ready(function(){ $("#commentbtn-'+photoGalleryCurrentId+'").on("click",function(){ (function(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); }(document, "script", "facebook-jssdk")); $(".cmntbox-'+photoGalleryCurrentId+'").toggle(); }); }); </scr'+'ipt>'; var taboola = '<script type="text/javascript"> window._taboola = window._taboola || []; _taboola.push({photo:"auto"}); !function (e, f, u, i) { if (!document.getElementById(i)){ e.async = 1; e.src = u; e.id = i; f.parentNode.insertBefore(e, f); } }(document.createElement("script"), document.getElementsByTagName("script")[0], "//cdn.taboola.com/libtrc/zeemedia-thehealtsite/loader.js", "tb_loader_script"); if(window.performance && typeof window.performance.mark == "function") {window.performance.mark("tbl_ic");} </scr'+'ipt> <div id="taboola-below-gallery-thumbnails-'+photoGalleryCurrentId+'" style="background:#fff;"></div> <script type="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 type="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').show(); $.ajax({ url: '/wp-content/themes/health2014/single-photo-gallery-infinite-scroll-ajax.php', method: 'GET', data : { 'galid' : currentrequesturl }, success: function(result){ console.log("New Gallery URL:" + result.gallery_info.url ); currentrequesturl = result.gallery_info.url; gallery_info = result; gallery_images = result.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').hide(); galleryImageAppend(gallery_images, photoGalleryCurrentSlidId, photoGalleryCurrentId); $("#health-gallery-"+photoGalleryCurrentId+" .vert_slide_wrap").each(function(){ if(!$(this).hasClass('checkClass')){ $(this).addClass('checkClass'); } }); photoGalleryCurrentSlidId++; }, complete:function(result){ //$('#galLoader').hide(); } }); } } if( gallery_images.length > photoGalleryCurrentSlidId ) { //galleryImageAppend(gallery_images, photoGalleryCurrentSlidId, photoGalleryCurrentId); photoGalleryCurrentSlidId++; galleryIsScrolled = true; } } }); }); [ad_2]" /> var initialPicLoadCount = '2'; var gallery_images = JSON.parse([{"ID":"724132","post_author":"Jahnavi Sarma","post_date":"2020-01-25 19:03:54","post_modified":"2020-01-25 19:03:54","post_content":"","post_title":"healthy bones","post_title_clean":"Healthy bones","post_name":"healthy-bones-724132","post_name_ext":"want-healthy-bones-eat-well-and-lead-an-active-life-724131/healthy-bones-724132","post_excerpt":"If you have weak bones, you need to take a good look at your lifestyle. An unhealthy lifestyle is one of the leading causes of weak bones. Your bones tend to become weak as you age. But if you have weak bones at a young age, it is a cause for worry. Your bones are the backbone of your body. You need to keep them strong and healthy. Sometimes, weak bones may be due to some underlying health conditions or thee may be a genetic factor behind it. But whatever the reason, you need to take steps to make your bones strong. Let us take a look at how you can do this.","guid":"https://www.thehealthsite.com/wp-content/uploads/2020/01/healthy-bones.jpg","post_category":"Photo Gallery"},{"ID":"724133","post_author":"Jahnavi Sarma","post_date":"2020-01-25 19:03:54","post_modified":"2020-01-25 19:03:54","post_content":"","post_title":"Non-Dairy-Calcium-Rich-Foods","post_title_clean":"Non Dairy Calcium Rich Foods","post_name":"non-dairy-calcium-rich-foods-724133","post_name_ext":"want-healthy-bones-eat-well-and-lead-an-active-life-724131/non-dairy-calcium-rich-foods-724133","post_excerpt":"Diet: Make sure that all your meals are well-balanced. Add foods that are rich in calcium and vitamin D to optimize bone health.","guid":"https://www.thehealthsite.com/wp-content/uploads/2020/01/Non-Dairy-Calcium-Rich-Foods.jpg","post_category":"Photo Gallery"},{"ID":"724134","post_author":"Jahnavi Sarma","post_date":"2020-01-25 19:03:54","post_modified":"2020-01-25 19:03:54","post_content":"","post_title":"exercise-1-1","post_title_clean":"Exercise 1 1","post_name":"exercise-1-1-724134","post_name_ext":"want-healthy-bones-eat-well-and-lead-an-active-life-724131/exercise-1-1-724134","post_excerpt":"Exercise: Be sure to exercise regularly for strong bones. Stretches and cardios are especially good for your bones. Walk, jog, dance and swim. You can also throw in a bit of weight training to keep your bones strong.","guid":"https://www.thehealthsite.com/wp-content/uploads/2020/01/exercise-1-1-1.jpg","post_category":"Photo Gallery"},{"ID":"724135","post_author":"Jahnavi Sarma","post_date":"2020-01-25 19:03:54","post_modified":"2020-01-25 19:03:54","post_content":"","post_title":"Quit-smoking-hindi","post_title_clean":"Quit smoking hindi","post_name":"quit-smoking-hindi-724135","post_name_ext":"want-healthy-bones-eat-well-and-lead-an-active-life-724131/quit-smoking-hindi-724135","post_excerpt":"Avoid smoking: Smoking induces loss of bone mass by affecting circulation. So think about your bone health before lighting up a cigarette. Giving up smoking will also help your overall health.","guid":"https://www.thehealthsite.com/wp-content/uploads/2020/01/Quit-smoking-hindi.jpg","post_category":"Photo Gallery"},{"ID":"724136","post_author":"Jahnavi Sarma","post_date":"2020-01-25 19:03:54","post_modified":"2020-01-25 19:03:54","post_content":"","post_title":"Say-no-to-alcohol-1","post_title_clean":"Say no to alcohol 1","post_name":"say-no-to-alcohol-1-724136","post_name_ext":"want-healthy-bones-eat-well-and-lead-an-active-life-724131/say-no-to-alcohol-1-724136","post_excerpt":"Say no to alcohol: Alcohol is bad for you bones. It can make the bones weak and brittle and you may be at a greater risk of fractures. So, limit your alcohol consumption if you want strong bones.","guid":"https://www.thehealthsite.com/wp-content/uploads/2020/01/Say-no-to-alcohol-1-1.jpg","post_category":"Photo Gallery"},{"ID":"724137","post_author":"Jahnavi Sarma","post_date":"2020-01-25 19:03:54","post_modified":"2020-01-25 19:03:54","post_content":"","post_title":"gollen-gums","post_title_clean":"Gollen gums","post_name":"gollen-gums-724137","post_name_ext":"want-healthy-bones-eat-well-and-lead-an-active-life-724131/gollen-gums-724137","post_excerpt":"Beware of dental problems: If you notice loose teeth, consult your doctor. The same goes for detached or receding gums. Even loose or ill-fitting dentures may indicate loss of bone mass. Visit a doctor and take his advice.","guid":"https://www.thehealthsite.com/wp-content/uploads/2020/01/gollen-gums.jpg","post_category":"Photo Gallery"}]); var gallery_info = {"gallery_info":{"id":"THS_Photo_724131","title":"Want healthy bones? Eat well and lead an active life","url":"https://www.thehealthsite.com/photo-gallery/want-healthy-bones-eat-well-and-lead-an-active-life-724131/","date":"2020-01-25 19:03:54","strdate":"2020-01-25T13:33:54Z","moddate":"2020-01-25 19:03:54","author":"Jahnavi Sarma","authorurl":"https://www.thehealthsite.com/author/jahnavi-sharma","articletype":"Photo","categorybadge":"Photo Gallery","category":["Photo Gallery"],"categoryslug":["photo-gallery"],"tag":["Bone health","healthy bones"],"tagslug":["bone-health","healthy-bones"],"enclosure":"https://st1.thehealthsite.com/wp-content/uploads/2020/01/healthy-bones-1.jpg##image/jpg"},"category_galleries":""}; var serverName = "www.thehealthsite.com"; var centerAdid = ''; if(window.innerWidth > 767) var centerAdContent = ' '; else var centerAdContent = ` `; $(document).ready(function(){ $('meta[property="og:site_name"]').attr('content', '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(function(e){ //alert("Need to stop"); //console.log("Scrolled step 1"); e.preventDefault(); //hideSticky(); update_prev_current_next(); //updateTitleUrl(); //console.log("Scrolled step 2"); var height = $(document).height(); var scrollTop = $(window).scrollTop(); var divObj = $("#health-gallery .checkClass").last(); if(divObj.length > 0){ var divTopHeight = Math.round(divObj.offset().top); //+parseInt(divObj.height()) } else { divObj = $("#health-gallery .vert_slide_wrap").last(); var divTopHeight = Math.round(divObj.offset().top); //+parseInt(divObj.height()) } 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('style'); $("#health-gallery-"+photoGalleryCurrentId+" .vert_slide_wrap").each(function(){ if(!$(this).hasClass('checkClass')){ $(this).addClass('checkClass'); } }); //console.log( "Step 1 : " + photoGalleryCurrentId + " "+ photoGalleryCurrentSlidId ); galleryImageAppend(gallery_images, photoGalleryCurrentSlidId, photoGalleryCurrentId); if((photoGalleryCurrentSlidId == parseInt(gallery_images.length)-initialPicLoadCount) && firstGalleryCheck == false){ var firstGalleryCheck = true; var galleryLen = parseInt(gallery_images.length)-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.length; } 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" style="background:#fff;"><button id="commentbtn-'+photoGalleryCurrentId+'" class="button-e c-button "><i class="fa fa-comment" aria-hidden="true"></i> <span> Comments - Join the Discussion</span></button><div class="show-comment cmntbox-'+photoGalleryCurrentId+'" style="display: none;">'+ '<div class="fb-comments" data-href="https://www.thehealthsite.com/photo-gallery/want-healthy-bones-eat-well-and-lead-an-active-life-724131/" data-width="100%" data-num-posts="3"></div>'+ '</div></div><script type="text/javascript"> $(document).ready(function(){ $("#commentbtn-'+photoGalleryCurrentId+'").on("click",function(){ (function(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); }(document, "script", "facebook-jssdk")); $(".cmntbox-'+photoGalleryCurrentId+'").toggle(); }); }); </scr'+'ipt>'; var taboola = '<script type="text/javascript"> window._taboola = window._taboola || []; _taboola.push({photo:"auto"}); !function (e, f, u, i) { if (!document.getElementById(i)){ e.async = 1; e.src = u; e.id = i; f.parentNode.insertBefore(e, f); } }(document.createElement("script"), document.getElementsByTagName("script")[0], "//cdn.taboola.com/libtrc/zeemedia-thehealtsite/loader.js", "tb_loader_script"); if(window.performance && typeof window.performance.mark == "function") {window.performance.mark("tbl_ic");} </scr'+'ipt> <div id="taboola-below-gallery-thumbnails-'+photoGalleryCurrentId+'" style="background:#fff;"></div> <script type="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 type="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').show(); $.ajax({ url: '/wp-content/themes/health2014/single-photo-gallery-infinite-scroll-ajax.php', method: 'GET', data : { 'galid' : currentrequesturl }, success: function(result){ console.log("New Gallery URL:" + result.gallery_info.url ); currentrequesturl = result.gallery_info.url; gallery_info = result; gallery_images = result.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').hide(); galleryImageAppend(gallery_images, photoGalleryCurrentSlidId, photoGalleryCurrentId); $("#health-gallery-"+photoGalleryCurrentId+" .vert_slide_wrap").each(function(){ if(!$(this).hasClass('checkClass')){ $(this).addClass('checkClass'); } }); photoGalleryCurrentSlidId++; }, complete:function(result){ //$('#galLoader').hide(); } }); } } if( gallery_images.length > photoGalleryCurrentSlidId ) { //galleryImageAppend(gallery_images, photoGalleryCurrentSlidId, photoGalleryCurrentId); photoGalleryCurrentSlidId++; galleryIsScrolled = true; } } }); }); [ad_2]" />

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

Page 1 of 29 1 2 29

POPULAR

YOU MAY ALSO LIKE

Loading...