Chat is currently closed.
')},Chat.prototype.modEnabled=function(){var videoContainer=this.getWrapper().find("> .video-container"),message=this.messageStatus();logger.log("Comments Enabled."),videoContainer.addClass("chat"),message.remove()},Chat.prototype.loadChatFrame=function(chatInfo,callback){return callback()},Chat.prototype.getWrapper=function(){return $(".page > .full > .wrap")},Chat}();return new Module}); Modulr.define("core.pages.video.landing:modules/interactive.foxid",["require","lodash","jquery","cdn","core.plugins:EventMessageHandler","config","models/pager","models/event","models/console","models/template","core.plugins:LoadAttempt","core.auth:models/middleware"],function(require,_,$,cdn){var Console=require("models/console"),Event=require("models/event"),Template=require("models/template"),logger=new Console("[Modules.Interactive]"),CONFIG=(require("core.plugins:LoadAttempt"),require("config")),Pager=require("models/pager");Pager.isCQ();function Module(){this._videoInfoOnInteractive=!1,this.Source=new Source(this),this.Chat=new Chat(this),this.Poll=new Poll(this)}Module.prototype.init=function(){var self=this;$(".full .video-container .video-meta");if(self._init)return!1;self._init=!0,Event.bind("FOX.Interactive.set",function(evt,data){self.set(data)}),Event.bind("FOX.Interactive.hide",function(evt,data){self.hide(function(){Event.trigger("FOX.HeaderNav.showCurrentSection")})}),Event.bind("FOX.Interactive.expired",function(evt,data){self.setExpiredView()}),Event.bind("FOX.Interactive.displayChat",function(evt,data){data&&self.Chat.set(data.livefyre||data.isFB_AIS_Interactive||!1)}),Event.bind("FOX.Interactive.hideChat",function(evt,data){self.Chat.hide()}),Event.bind("FOX.Interactive.removeMessage",function(evt,data){self.Chat.messageStatus().remove()})},Module.prototype.set=function(info){this._videoInfoOnInteractive=info,this.show(),this.Source.set(info.interactive||!1),this.Poll.set(info.pollData||!1)},Module.prototype.setExpiredView=function(){var wrapper=this.getWrapper(),target=(this.Source.hide(),this.Chat.disable(),wrapper.find("> .box").hide(),wrapper.find("> section.messages"));0===target.length?Template.get("interactive-closed",function(tpl){tpl=tpl();wrapper.prepend(tpl),wrapper.find("> section.messages"),wrapper.find("a").unbind("click").bind("click",function(evt){return evt.preventDefault(),Event.trigger("FOX.Interactive.hide"),!1}),target.show()}):target.show()},Module.prototype.isVisible=function(){var ret=!1;return ret=this.getWrapper().hasClass("show")?!0:ret},Module.prototype.hide=function(callback){var target=this.getWrapper(),section=($(".full .video-container .video-meta"),Pager.Section.get());target.removeClass("show"),"function"==typeof callback&&callback(section)},Module.prototype.show=function(callback){var wrapper=this.getWrapper(),videoMetaHolder=$(".full .video-container .video-meta"),btnInteract=videoMetaHolder.find("> .button.interact"),videoMetaHolder=videoMetaHolder.find("> .button.browse-back");wrapper.find("> section.messages").hide(),$(".page > .main > .wrap").each(function(){var el=$(this);"interactive-content"!==el.attr("data-sect-id")?el.removeClass("show"):el.addClass("show")}),btnInteract.removeClass("show"),videoMetaHolder.addClass("show"),"function"==typeof callback&&callback()},Module.prototype.getWrapper=function(){return $(".page > .main > .wrap[data-sect-id='interactive-content']")};var Poll=function(){function Poll(root){this.root=root}return Poll.prototype.set=function(data){var wrapper=this.root.getWrapper();data&&(data.affiliateId||data.pollId)?require(["modules/poll"],function(PollMod){PollMod.set(data)}):wrapper.find(".sidebar .module.poll-mod").removeClass("show")},Poll}(),Source=function(){function Source(root){this.root=root}return Source.prototype.set=function(markup){var target=this.root.getWrapper().find(".main-content > section.cust-interactive");target.hide();try{"string"==typeof markup?(target.html(markup),this.show()):logger.warn("Interactive markup must be a string.")}catch(err){logger.warn("Interactive markup has errors.")}},Source.prototype.show=function(){this.root;this.getWrapper().show()},Source.prototype.hide=function(){this.root;this.getWrapper().hide()},Source.prototype.getWrapper=function(){return this.root.getWrapper().find(".main-content > section.cust-interactive")},Source}(),Chat=function(){function Chat(root){this.root=root,this._currWidgetConfig=!1,this._currWidgetObj=!1,this._elementId="livefyre_comment_stream"}return Chat.prototype.onReady=function(callback){callback(!0)},Chat.prototype.messageStatus=function(callback){return $(".chat-closed")},Chat.prototype.status=function(chatInfo,callback){var siteId=chatInfo.siteId;Event.trigger("FOX.AIS.videoSite"),chatInfo="foxbusiness"===siteId?"YjI3MTRiM2QyY2EwZjMxMFZnblZDTTEwMDAwMGQ3YzFhOGMwUkNSRA==":chatInfo.encodedArticleId;window.lfcolset=function(response){response&&response.collectionSettings?callback(response.collectionSettings.config.commentsEnabled):callback("force-create")},$.ajax({url:"//bootstrap.foxnewsprod.fyre.co/bs3/foxnewsprod.fyre.co/"+siteId+"/"+chatInfo+"/init?callback=lfcolset",dataType:"script",cache:!0})},Chat.prototype.disable=function(){var widget=this._currWidgetObj||!1;widget&&"function"==typeof widget.stop&&(logger.log("Disabling Chat..."),widget.stop(),logger.log("Chat stopped."),this.remove())},Chat.prototype.remove=function(){var wrapper=this.getWrapper(),widget=this._currWidgetObj||!1;widget&&"function"==typeof widget.remove&&(widget.remove(),logger.log("Chat Removed."),wrapper.find("#"+this._elementId).empty(),this._currWidgetConfig=!1,this._currWidgetObj=!1)},Chat.prototype.isCurrent=function(conf){var ret=!0,curr=this._currWidgetConfig;if(curr){for(var i in conf)if(curr[i]&&curr[i]!==conf[i]){ret=!1;break}}else ret=!1;return ret},Chat.prototype.verify=function(conf){for(var ret=!0,required=["collectionMeta","checksum","articleId","siteId"],missing=[],x=0;xChat is currently closed.
')},Chat.prototype.modEnabled=function(){var videoContainer=this.getWrapper().find("> .video-container"),message=this.messageStatus();logger.log("Comments Enabled."),videoContainer.addClass("chat"),message.remove()},Chat.prototype.loadChatFrame=function(chatInfo,callback){var self=this,iframe=$("#lf-chat-frame");0===iframe.length&&$("body").append(''),iframe=$("#lf-chat-frame"),self._EVENT_HANDLER||(self._EVENT_HANDLER=new(require("core.plugins:EventMessageHandler"))),self._EVENT_HANDLER.addHandler("Video.LivefyreConvFrameLoaded",function(){self._EVENT_HANDLER.sendMessage(iframe.get(0),"Video.LivefyreConv",chatInfo)}),self._EVENT_HANDLER.addHandler("Video.LivefyreConvReady",function(){logger.log("Chat Ready!"),callback()})},Chat.prototype.getWrapper=function(){return $(".page > .full > .wrap")},Chat}();return new Module}); Modulr.define("core.pages.video.landing:modules/interactive",["require","lodash","jquery","core.plugins:EventMessageHandler","config","models/pager","models/event","models/console","models/template","core.plugins:LoadAttempt"],function(require,_,$){var s,Console=require("models/console"),Event=require("models/event"),Template=require("models/template"),logger=new Console("[Modules.Interactive]"),LoadAttempt=require("core.plugins:LoadAttempt"),CONFIG=require("config"),Pager=require("models/pager");Pager.isCQ();Console="//cdn.livefyre.com/Livefyre.js",Console=window.location.protocol+Console,0===$("script[src*='"+Console+"']").length&&((s=document.createElement("script")).src=Console,s.async=!0,(document.getElementsByTagName("head")||document.getElementsByTagName("body"))[0].appendChild(s));function Module(){this._videoInfoOnInteractive=!1,this.Source=new Source(this),this.Chat=new Chat(this),this.Poll=new Poll(this)}Module.prototype.init=function(){var self=this;$(".full .video-container .video-meta");if(self._init)return!1;self._init=!0,Event.bind("FOX.Interactive.set",function(evt,data){self.set(data)}),Event.bind("FOX.Interactive.hide",function(evt,data){self.hide(function(){Event.trigger("FOX.HeaderNav.showCurrentSection")})}),Event.bind("FOX.Interactive.expired",function(evt,data){self.setExpiredView()}),Event.bind("FOX.Interactive.displayChat",function(evt,data){data&&self.Chat.set(data.livefyre||data.isFB_AIS_Interactive||!1)}),Event.bind("FOX.Interactive.hideChat",function(evt,data){self.Chat.hide()}),Event.bind("FOX.Interactive.removeMessage",function(evt,data){self.Chat.messageStatus().remove()})},Module.prototype.set=function(info){this._videoInfoOnInteractive=info,this.show(),this.Source.set(info.interactive||!1),this.Poll.set(info.pollData||!1)},Module.prototype.setExpiredView=function(){var wrapper=this.getWrapper(),target=(this.Source.hide(),this.Chat.disable(),wrapper.find("> .box").hide(),wrapper.find("> section.messages"));0===target.length?Template.get("interactive-closed",function(tpl){tpl=tpl();wrapper.prepend(tpl),wrapper.find("> section.messages"),wrapper.find("a").unbind("click").bind("click",function(evt){return evt.preventDefault(),Event.trigger("FOX.Interactive.hide"),!1}),target.show()}):target.show()},Module.prototype.isVisible=function(){var ret=!1;return ret=this.getWrapper().hasClass("show")?!0:ret},Module.prototype.hide=function(callback){var target=this.getWrapper(),section=($(".full .video-container .video-meta"),Pager.Section.get());target.removeClass("show"),"function"==typeof callback&&callback(section)},Module.prototype.show=function(callback){var wrapper=this.getWrapper(),videoMetaHolder=$(".full .video-container .video-meta"),btnInteract=videoMetaHolder.find("> .button.interact"),videoMetaHolder=videoMetaHolder.find("> .button.browse-back");wrapper.find("> section.messages").hide(),$(".page > .main > .wrap").each(function(){var el=$(this);"interactive-content"!==el.attr("data-sect-id")?el.removeClass("show"):el.addClass("show")}),btnInteract.removeClass("show"),videoMetaHolder.addClass("show"),"function"==typeof callback&&callback()},Module.prototype.getWrapper=function(){return $(".page > .main > .wrap[data-sect-id='interactive-content']")};var Poll=function(){function Poll(root){this.root=root}return Poll.prototype.set=function(data){var wrapper=this.root.getWrapper();data&&(data.affiliateId||data.pollId)?require(["modules/poll"],function(PollMod){PollMod.set(data)}):wrapper.find(".sidebar .module.poll-mod").removeClass("show")},Poll}(),Source=function(){function Source(root){this.root=root}return Source.prototype.set=function(markup){var target=this.root.getWrapper().find(".main-content > section.cust-interactive");target.hide();try{"string"==typeof markup?(target.html(markup),this.show()):logger.warn("Interactive markup must be a string.")}catch(err){logger.warn("Interactive markup has errors.")}},Source.prototype.show=function(){this.root;this.getWrapper().show()},Source.prototype.hide=function(){this.root;this.getWrapper().hide()},Source.prototype.getWrapper=function(){return this.root.getWrapper().find(".main-content > section.cust-interactive")},Source}(),Chat=function(){function Chat(root){this.root=root,this._currWidgetConfig=!1,this._currWidgetObj=!1,this._elementId="livefyre_comment_stream"}return Chat.prototype.onReady=function(callback){function check(){return!!(window.Livefyre&&window.auth_fox&&window.auth_fox.livefyre)}check()?callback(!0):LoadAttempt(150,500,function(){return check()},function(){callback(!0)})},Chat.prototype.messageStatus=function(callback){return $(".chat-closed")},Chat.prototype.status=function(chatInfo,callback){var siteId=chatInfo.siteId;Event.trigger("FOX.AIS.videoSite"),chatInfo="foxbusiness"===siteId?"YjI3MTRiM2QyY2EwZjMxMFZnblZDTTEwMDAwMGQ3YzFhOGMwUkNSRA==":chatInfo.encodedArticleId;window.lfcolset=function(response){response&&response.collectionSettings?callback(response.collectionSettings.config.commentsEnabled):callback("force-create")},$.ajax({url:"//bootstrap.foxnewsprod.fyre.co/bs3/foxnewsprod.fyre.co/"+siteId+"/"+chatInfo+"/init?callback=lfcolset",dataType:"script",cache:!0})},Chat.prototype.disable=function(){var widget=this._currWidgetObj||!1;widget&&"function"==typeof widget.stop&&(logger.log("Disabling Chat..."),widget.stop(),logger.log("Chat stopped."),this.remove())},Chat.prototype.remove=function(){var wrapper=this.getWrapper(),widget=this._currWidgetObj||!1;widget&&"function"==typeof widget.remove&&(widget.remove(),logger.log("Chat Removed."),wrapper.find("#"+this._elementId).empty(),this._currWidgetConfig=!1,this._currWidgetObj=!1)},Chat.prototype.isCurrent=function(conf){var ret=!0,curr=this._currWidgetConfig;if(curr){for(var i in conf)if(curr[i]&&curr[i]!==conf[i]){ret=!1;break}}else ret=!1;return ret},Chat.prototype.verify=function(conf){for(var ret=!0,required=["collectionMeta","checksum","articleId","siteId"],missing=[],x=0;xChat is currently closed.
')},Chat.prototype.modEnabled=function(){var videoContainer=this.getWrapper().find("> .video-container"),message=this.messageStatus();logger.log("Comments Enabled."),videoContainer.addClass("chat"),message.remove()},Chat.prototype.loadChatFrame=function(chatInfo,callback){return callback()},Chat.prototype.getWrapper=function(){return $(".page > .full > .wrap")},Chat}();return new Module}); Modulr.define("core.pages.video.landing:modules/live.stream",["require","lodash","jquery","config","models/console","models/helper","models/pager","models/feed/watch","core.plugins:DateTime","core.base:utils/akamai","cdn"],function(require,_,$){function Module(){}var Console=require("models/console"),AkamaiTime=require("core.base:utils/akamai").time,CDN=require("cdn"),CONFIG=(new Console("[Modules.Live.Stream]"),require("config")),Helper=(require("models/pager"),require("models/helper")),DateTime=require("core.plugins:DateTime"),staticDomain=CDN.domain,Feed={},isLiveStream=(Feed.Watch=require("models/feed/watch"),Module.prototype.set=function(sectionData,callback){this.getLiveWebShowsData(function(data){var template=''+type+"
"}return $("#schedule table tbody tr td").each(function(){var el=$(this).find("a.click"),videoId=el.attr("data-video-id");el.unbind("click").bind("click",function(evt){evt.preventDefault(),self.loadVideo(videoId,!1,function(){$("html, body").animate({scrollTop:0},"slow")})})}),$("#schedule header a").unbind("click",function(){$(this).attr("href","#")}).bind("click",function(){var url="foxnews"===$(".fox-video").attr("data-video-domain")?"//www.foxnews.com/fnctv/index.html":"//www.foxbusiness.com/watch/show-schedule/index.html";$(this).attr("href",url)}),td},Module.prototype.normalizeSchedule=function(data,current,sched,endTime){var timeArray=[],split=current.lastIndexOf(":"),key=parseInt(current.substring(0,split),10),trimmed=60*parseInt(current.substring(0,split),10);30<=minutes&&!sched&&(key+=.5),timeArray[0]=this.halfHour(key);for(var j=1;j<7;j++){var thisHour=(trimmed+=30)/60,thisHour=(30<=minutes&&(thisHour+=.5),this.halfHour(thisHour));key+=1,timeArray[j]=thisHour}return sched?timeArray[0]:timeArray},Module.prototype.halfHour=function(hr){hr=hr.toString(),hr=-1'+(data&&data.message?data.message:"You are not authorized to view this content.")+'
Close