Political veteran vs newcomer in Punjab

0
61

‘,{ class: ‘nic_container ad_column1’ });
// $(‘#adPopUp’).prepend(vdiv);
// $(“.articlevideo”).appendTo($(‘#adPopUp .nic_container’));
// $(“.related-videos”).detach();
// $(“.ad_column1 .abovearticle .close”).hide();
// }
// }

function showLeadVideo(){
var articleVideo = $(“.articlevideo”);

if(articleVideo.length>0){
// creating a video iframe
var msid = articleVideo.data(‘msid’);
//var url = “http://timesofindia.indiatimes.com/article_video_dash.cms?msid=”+msid+”&source=abovearticle&stxt=off&playertype=flash”;
var url = “http://timesofindia.indiatimes.com/videodash.cms?msid=”+msid;
//var url = “/videodash.cms?msid=55305422&channel=10001&videosection=articleshow&autoplay=1&rlvideo=3812907&section=News&hpauto=1&keywords=year-end,Sonia%20Gandhi,Rahul,head,CWC,Congress&source=abovearticle&nextid=&nexttitle=&relatedvideo=pagevar&stxt=off&audio=0.05&kalstream=PROGRESSIVE&toividpage=articleshow&tadsid=38883&articlemsid=&controls=fixed&aptrg=1&version=18”;
var iframe = document.createElement(‘iframe’);
iframe.className = ‘videoContainer’;
iframe.setAttribute(“allowfullscreen”,”true”);
iframe.setAttribute(“webkitallowfullscreen”,”true”);
iframe.setAttribute(“mozallowfullscreen”,”true”);
iframe.src = url;

//getting the caption for video
var title = document.createElement(‘div’);
title.className =’title’;
title.innerHTML = $(“.heading1”).html();

//creating a dynamic div
var vDiv = document.createElement(‘div’);
vDiv.className =’ad_column1′;
vDiv.appendChild(iframe);
vDiv.appendChild(title);

//pushing it into real DOM
var eElement = document.getElementById(‘adPopUp’);
eElement.insertBefore(vDiv, eElement.firstChild);

$(“.articlevideo”).detach();
}
}

Source link

LEAVE A REPLY