=12){ position = `.custombody > p:nth-of-type(${parseInt(plength/3)})`; position2 = `.custombody > p:nth-of-type(${parseInt(2*plength/3)})`; //console.log("plength greater or equal 12: "+plength); $(adv).insertAfter(position); $(adv2).insertAfter(position2); dfpHead2(); googletag.cmd.push(function() { googletag.display("div-gpt-ad-1583412120279-0");googletag.display("div-gpt-ad-1583412120279-1");}); }else if(imglength > 10){ position = `#plainPicture > ul > li:nth-of-type(${parseInt(imglength/3)})`; position2 = `#plainPicture > ul > li:nth-of-type(${parseInt(2*imglength/3)})`; $(adv).insertAfter(position); $(adv2).insertAfter(position2); dfpHead2(); googletag.cmd.push(function() { googletag.display("div-gpt-ad-1583412120279-0");googletag.display("div-gpt-ad-1583412120279-1");}); }else if(plength ul > li:nth-of-type(${parseInt(imglength/2)})`; $(adv).insertAfter(position); dfpHead1(); Get Live News Updates Every Minute from vimarsana.com Curated from 23000 News Agencies."> =12){ position = `.custombody > p:nth-of-type(${parseInt(plength/3)})`; position2 = `.custombody > p:nth-of-type(${parseInt(2*plength/3)})`; //console.log("plength greater or equal 12: "+plength); $(adv).insertAfter(position); $(adv2).insertAfter(position2); dfpHead2(); googletag.cmd.push(function() { googletag.display("div-gpt-ad-1583412120279-0");googletag.display("div-gpt-ad-1583412120279-1");}); }else if(imglength > 10){ position = `#plainPicture > ul > li:nth-of-type(${parseInt(imglength/3)})`; position2 = `#plainPicture > ul > li:nth-of-type(${parseInt(2*imglength/3)})`; $(adv).insertAfter(position); $(adv2).insertAfter(position2); dfpHead2(); googletag.cmd.push(function() { googletag.display("div-gpt-ad-1583412120279-0");googletag.display("div-gpt-ad-1583412120279-1");}); }else if(plength ul > li:nth-of-type(${parseInt(imglength/2)})`; $(adv).insertAfter(position); dfpHead1(); Get Live News Updates Every Minute from vimarsana.com Curated from 23000 News Agencies." property="og:description"> =12){ position = `.custombody > p:nth-of-type(${parseInt(plength/3)})`; position2 = `.custombody > p:nth-of-type(${parseInt(2*plength/3)})`; //console.log("plength greater or equal 12: "+plength); $(adv).insertAfter(position); $(adv2).insertAfter(position2); dfpHead2(); googletag.cmd.push(function() { googletag.display("div-gpt-ad-1583412120279-0");googletag.display("div-gpt-ad-1583412120279-1");}); }else if(imglength > 10){ position = `#plainPicture > ul > li:nth-of-type(${parseInt(imglength/3)})`; position2 = `#plainPicture > ul > li:nth-of-type(${parseInt(2*imglength/3)})`; $(adv).insertAfter(position); $(adv2).insertAfter(position2); dfpHead2(); googletag.cmd.push(function() { googletag.display("div-gpt-ad-1583412120279-0");googletag.display("div-gpt-ad-1583412120279-1");}); }else if(plength ul > li:nth-of-type(${parseInt(imglength/2)})`; $(adv).insertAfter(position); dfpHead1(); Get Live News Updates Every Minute from vimarsana.com Curated from 23000 News Agencies.">