Science & Era Information | Newest Tech Information & Devices Evaluations


Science & Era Information | Newest Tech Information & Devices Evaluations | Tech Evaluations in Footage & Movies at DNAIndia.com

li.pager-next > a:ultimate ‘, content material: content_class, insertBefore: before_id, get started: serve as(present, subsequent) { console.log(“Tournament: autopager get started”); $(“li.pager-next a”).attr(“rel”,”subsequent”); updatePage(page_type); }, load: serve as(present, subsequent) { console.log(“Tournament: autopager load entire”); var urlt = present.url; if(!(urlt.indexOf(‘dnaindia’) !== -1)) { url = protocol + ‘//www.dnaindia.com’+urlt; } else { url = urlt; } if(page_type==’part’ || page_type==’discover’){ updateSectionnext(url); } if(page_type==’article’ ||page_type==’live_blog’ || page_type==’video’ || page_type==’slideshow’){ updateArticlenext(url); } if(page_type ==’1′ || page_type == “matter” || page_type == “movies” || page_type == “photo_gallery” || page_type == “exclusives” || page_type == “authortopic” || page_url == ‘elections/lok-sabha-election-2019-photos’ || page_url == ‘elections/lok-sabha-election-2019-videos’) { updateTopicnext(url); } if(page_type == ‘writer’){ updateAuthorsnext(url); } if(page_type == “article” || page_type == “live_blog”) { window.newVuukleWidgets({ elementsIndex: nid, articleId: nid, img:protocol + “//www.dnaindia.com/default/recordsdata/types/complete/public/”+articleimage+””, name: articletitle, tags: ”, url: ”+url+” }); } if(page_type == ‘video’) { var video_url = $(‘#testpreview-‘ + nid).attr(‘video-code’); var video_thumb = $(‘#testpreview-‘ + nid).attr(‘video-thumb’); console.log(‘nid:’ + nid); console.log(‘video url:’ + video_url); console.log(‘video thumb:’ + video_thumb); } pingGoogleAnalytics(urlt); refreshGoogleAds(url,page_type,present.web page); refreshSocialPlugins(url); } }); var format = $(window); var previousScroll = 0; $( format ).scroll(serve as() { var ultimate = $(‘#footer’).filter out(‘:ultimate’); lastoff = ultimate.offset(); var currentScroll = $(this).scrollTop(); if (currentScroll > previousScroll){ _up = false; }else{ _up = true; } previousScroll = currentScroll; var cutoff = $(window).scrollTop() + 64; $(‘div[id^=”article-“]’).every(serve as(){ if($(this).offset().peak + $(this).top() > cutoff) { if(prevLoc != $(this).attr(‘data-url’)){ prevLoc = $(this).attr(‘data-url’); $(‘html head’).in finding(‘name’).textual content($(this).attr(‘data-title’)) window.historical past.pushState(“”, “”, prevLoc); } go back false; } }); if(ultimate.offset().peak – 800 + ultimate.top() previousScroll){ _up = false; } else{ _up = true; } previousScroll = currentScroll; var cutoff = $(window).scrollTop() + 64; $(‘div[id^=”section-“]’).every(serve as(){ if($(this).offset().peak + $(this).top() > cutoff) { if(prevSectionLoc != $(this).attr(‘data-url’)){ prevSectionLoc = $(this).attr(‘data-url’); window.historical past.pushState(“”, “”, prevSectionLoc); var urlstr = prevSectionLoc; var urlarray = urlstr.break up(‘https://www.dnaindia.com/’); pingGoogleAnalytics(urlarray[1]); } go back false; } }); }); serve as updatePage(){ console.log(‘updatePage()’); $(“a[rel^=’next’]”).addClass(‘norel’).removeAttr(‘rel’); $(“.nextstory”).removeClass(‘.nextstory’); $(“.nextstorylink”).removeClass(‘.nextstorylink’); $(“.nextstory”).removeAttr(‘elegance’); } serve as pingGoogleAnalytics(url){ console.log(‘pingGoogleAnalytics(‘+url+’)’); gtag(‘config’, ‘UA-1626889-1’, {‘page_path’: url }); } serve as pushGoogleAd(slotId, dimension, wrapperId) { googletag.cmd.push(serve as() { var slot = googletag.defineSlot(slotId, dimension, wrapperId); slot.addService(googletag.pubads()); googletag.show(wrapperId); googletag.pubads().refresh([slot]); }); } serve as refreshGoogleAds(url, page_type, page_no){ console.log(‘refreshGoogleAds(‘+url+’)’); if(page_type==’article’ || page_type==’slideshow’ || page_type==’video’ || page_type==’live_blog’){ res = (url).break up(“-“); nid = res.slice(-1)[0]; ad1 = ‘ad-1-‘+nid; ad2 = ‘ad-2-‘+nid; ad3 = ‘ad-3-‘+nid; ad4 = ‘ad-4-‘+nid; if(page_type==’slideshow’ || page_type==’video’) { ad_sld_1 = ‘ad-sld-1-‘+nid; ad_sld_2 = ‘ad-sld-2-‘+nid; // pushGoogleAd(‘/11440465/DNA_Web/dna_ptg_300x250’, [300, 250], ad_sld_1); // pushGoogleAd(‘/11440465/DNA_Web/DNA_PTG_300x250_1’, [300, 250], ad_sld_2); // pushGoogleAd(‘/11440465/DNA_Web/DNA_AL_ATF_300x250’, [300.0, 250.0], ad1); // pushGoogleAd(‘/11440465/DNA_Web/DNA_AL_BTF_970x90’, [[970, 66], [728, 90], [970, 90]], ad4); } else { //pushGoogleAd(‘/11440465/DNA_Web/DNA_AS_Inarticle_1_300x250’, [300.0, 250.0], ad2); //pushGoogleAd(‘/11440465/DNA_Web/DNA_AS_Inarticle_2_300x250’, [300.0, 250.0], ad3); //pushGoogleAd(‘/11440465/DNA_Web/DNA_AS_BTF_970x90’, [[970, 66], [728, 90], [970, 90]], ad4); } }else{ page_no = page_no-1; ad1 = ‘ad-1-‘+page_no; ad2 = ‘ad-2-‘+page_no; } } serve as refreshSocialPlugins(url){ if(page_type==’article’ || page_type==’slideshow’ || page_type==’video’ || page_type==’live_blog’){ res = (url).break up(“-“); nid = res.slice(-1)[0]; if(typeof FB != “undefined”){ fbcomm = ‘.comments-‘+nid; fburl = protocol + ‘//www.dnaindia.com’+url; $(fbcomm).attr(‘data-href’, fburl); FB.XFBML.parse(); } if(typeof twttr != “undefined”){twttr.widgets.load();console.log(‘twitter’); } if(typeof instgrm != “undefined”){window.instgrm.Embeds.procedure();console.log(‘instgram’); } if(typeof OBR != “undefined”){OBR.extern.researchWidget(); console.log(‘obr’);} } } serve as updateArticlenext(url){ var res = (url).break up(“-“); nid = res.slice(-1)[0]; articletitle = $(‘#article-node-‘+nid).attr(‘data-title’); articleimage = $(‘#article-node-‘+nid).attr(‘data-imageurl’); goal = $(‘#article-‘+nid+’ .articllftpbx’).top(); $(‘#article-‘+nid+’ .node-breadcrumb’).css(‘show’,’none’); $(‘#article-‘+nid).css(‘margin-top’,’-100px’); $(‘#article-‘+nid+’ .sporthd.photodtlhedbx’).css(‘show’,’none’); $(‘#article-‘+nid+’ .videorhs’).css(‘show’,’none’); $(‘#article-‘+nid+’ .sporthd’).css(‘show’,’none’); $(‘#article-‘+nid+’ .slideshowrhs’).css(‘show’,’none’); } serve as updateSectionnext(url){ var res = (url).break up(protocol + “//www.dnaindia.com”); var res1 = (url).break up(“?web page=”); $( “#nextsections” ).prev( “.nextsection” ).attr(‘identification’,”section-“+res1[1]); $( “#nextsections” ).prev( “.nextsection” ).attr(‘data-url’, protocol + “//www.dnaindia.com”+res[1]); $(‘hyperlink[rel=next]’).attr(‘href’, protocol + “//www.dnaindia.com”+res[1]) window.historical past.pushState(“”, “”, res[1]); } serve as updateTopicnext(url){ var res = (url).break up(protocol + “//www.dnaindia.com”); var res1 = (url).break up(“?web page=”); $( “#nexttopics” ).prev( “.topicnext” ).attr(‘identification’,”section-“+res1[1]); $( “#nexttopics” ).prev( “.topicnext” ).attr(‘data-url’, protocol + “//www.dnaindia.com”+res[1]); $(‘hyperlink[rel=next]’).attr(‘href’, protocol + “//www.dnaindia.com”+res[1]) window.historical past.pushState(“”, “”, res[1]); } serve as updateAuthorsnext(url){ var res = (url).break up(protocol + “//www.dnaindia.com”); var res1 = (url).break up(“?web page=”); $( “#nexttopics” ).prev( “.topicnext” ).attr(‘identification’,”section-“+res1[1]); $( “#nexttopics” ).prev( “.topicnext” ).attr(‘data-url’, protocol + “//www.dnaindia.com”+res[1]); $(‘hyperlink[rel=next]’).attr(‘href’, protocol + “//www.dnaindia.com”+res[1]) window.historical past.pushState(“”, “”, res[1]); } } ]]> a”).attr(“rel”,”subsequent”); ]]> div:nth-child(2)”); $(“”).insertAfter(“.view-desktop-2017-section-more-views > div:nth-child(5)”); window._taboola = window._taboola || []; _taboola.push({mode: ‘thumbnails-a’,container: ‘taboola-below-category-thumbnails-1’,placement: ‘Beneath Class Thumbnails 1’,target_type: ‘combine’}); _taboola.push({mode: ‘thumbnails-a’,container: ‘taboola-below-category-thumbnails-2’,placement: ‘Beneath Class Thumbnails 2’,target_type: ‘combine’}); }); ]]>
Supply

Leave a Reply