!function(){var e=function(){this.cursor=0};e.VERSION="0.0.2",e.HOST="https://tv-sports.fr",e.fn=e.prototype={newId:function(){return++this.cursor},init:function(){document.querySelectorAll("a.tvsports-widget").forEach(function(t){var i={href:t.getAttribute("href"),team_id:t.getAttribute("data-team-id"),sport_id:t.getAttribute("data-sport-id"),competition_id:t.getAttribute("data-competition-id"),direct:t.getAttribute("data-direct-only"),height:t.getAttribute("data-height")||"650px",width:t.getAttribute("data-width")||"100%",color:t.getAttribute("data-color")||""};0<=t.text.indexOf("Programme TV")&&e.HOST==i.href&&this.build(t,e.HOST+"/widget3.php?competition_id="+i.competition_id+"&sport_id="+i.sport_id+"&equipe_id="+i.team_id+"&direct="+i.direct,i)}.bind(this))},build:function(t,i,e){var r=document.createElement("iframe");r.setAttribute("id","widget-tvs-"+this.newId()),r.setAttribute("src",i),r.setAttribute("style","overflow: auto; position: static; visibility: visible; display: inline-block; width: "+e.width+"; height: "+e.height+"; padding: 0px; border: none; max-width: 100%; min-width: 300px; margin-top: 0px; margin-bottom: 0px; min-height: 200px;"),r.setAttribute("frameBorder","0"),r.setAttribute("allowTransparency","true"),r.setAttribute("allowFullscreen","true"),t.parentNode.replaceChild(r,t)}},window.Widget=e}();var widget=new Widget;window.onload=widget.init.bind(widget);