1!function(e){"use strict";e.breakingNews=function(t,i){var s={effect:"scroll",direction:"ltr",height:40,fontSize:"default",themeColor:"default",background:"default",borderWidth:1,radius:2,source:"html",rss2jsonApiKey:"",play:!0,delayTimer:4e3,scrollSpeed:2,stopOnHover:!0,position:"auto",zIndex:99999},n=this;n.settings={},n._element=e(t),n._label=n._element.children(".bn-label"),n._news=n._element.children(".bn-news"),n._ul=n._news.children("ul"),n._li=n._ul.children("li"),n._controls=n._element.children(".bn-controls"),n._prev=n._controls.find(".bn-prev").parent(),n._action=n._controls.find(".bn-action").parent(),n._next=n._controls.find(".bn-next").parent(),n._pause=!1,n._controlsIsActive=!0,n._totalNews=n._ul.children("li").length,n._activeNews=0,n._interval=!1,n._frameId=null;var l=function(){if(n._label.length>0&&("rtl"==n.settings.direction?n._news.css({right:n._label.outerWidth()}):n._news.css({left:n._label.outerWidth()})),n._controls.length>0){var t=n._controls.outerWidth();"rtl"==n.settings.direction?n._news.css({left:t}):n._news.css({right:t})}if("scroll"===n.settings.effect){var i=0;n._li.each(function(){i+=e(this).outerWidth()}),i+=50,n._ul.css({width:i})}},a=function(){var e=new XMLHttpRequest;e.onreadystatechange=function(){if(4==e.readyState&&200==e.status){var t=JSON.parse(e.responseText),i="",s="";switch(n.settings.source.showingField){case"title":s="title";break;case"description":s="description";break;case"link":s="link";break;default:s="title"}var a="";void 0!==n.settings.source.seperator&&void 0!==typeof n.settings.source.seperator&&(a=n.settings.source.seperator);for(var o=0;o<t.items.length;o++)n.settings.source.linkEnabled?i+='<li><a target="'+n.settings.source.target+'" href="'+t.items[o].link+'">'+a+t.items[o][s]+"</a></li>":i+="<li><a>"+a+t.items[o][s]+"</a></li>";n._ul.empty().append(i),n._li=n._ul.children("li"),n._totalNews=n._ul.children("li").length,l(),"scroll"!=n.settings.effect&&f(),n._li.find(".bn-seperator").css({height:n.settings.height-2*n.settings.borderWidth}),_()}},e.open("GET","https://api.rss2json.com/v1/api.json?rss_url="+n.settings.source.url+"&count="+n.settings.source.limit+"&api_key="+n.settings.source.rss2jsonApiKey,!0),e.send()},o=function(){e.getJSON(n.settings.source.url,function(e){var t="",i="";i="undefined"===n.settings.source.showingField?"title":n.settings.source.showingField;var s="";void 0!==n.settings.source.seperator&&void 0!==typeof n.settings.source.seperator&&(s=n.settings.source.seperator);for(var a=0;a<e.length&&!(a>=n.settings.source.limit);a++)n.settings.source.linkEnabled?t+='<li><a target="'+n.settings.source.target+'" href="'+e[a].link+'">'+s+e[a][i]+"</a></li>":t+="<li><a>"+s+e[a][i]+"</a></li>","undefined"===e[a][i]&&console.log('"'+i+'" does not exist in this json.');n._ul.empty().append(t),n._li=n._ul.children("li"),n._totalNews=n._ul.children("li").length,l(),"scroll"!=n.settings.effect&&f(),n._li.find(".bn-seperator").css({height:n.settings.height-2*n.settings.borderWidth}),_()})},r=function(){var e=parseFloat(n._ul.css("marginLeft"));e-=n.settings.scrollSpeed/2,n._ul.css({marginLeft:e}),e<=-n._ul.find("li:first-child").outerWidth()&&(n._ul.find("li:first-child").insertAfter(n._ul.find("li:last-child")),n._ul.css({marginLeft:0})),!1===n._pause&&(n._frameId=requestAnimationFrame(r),window.requestAnimationFrame&&n._frameId||setTimeout(r,16))},c=function(){var e=parseFloat(n._ul.css("marginRight"));e-=n.settings.scrollSpeed/2,n._ul.css({marginRight:e}),e<=-n._ul.find("li:first-child").outerWidth()&&(n._ul.find("li:first-child").insertAfter(n._ul.find("li:last-child")),n._ul.css({marginRight:0})),!1===n._pause&&(n._frameId=requestAnimationFrame(c)),window.requestAnimationFrame&&n._frameId||setTimeout(c,16)},u=function(){"rtl"===n.settings.direction?n._ul.stop().animate({marginRight:-n._ul.find("li:first-child").outerWidth()},300,function(){n._ul.find("li:first-child").insertAfter(n._ul.find("li:last-child")),n._ul.css({marginRight:0}),n._controlsIsActive=!0}):n._ul.stop().animate({marginLeft:-n._ul.find("li:first-child").outerWidth()},300,function(){n._ul.find("li:first-child").insertAfter(n._ul.find("li:last-child")),n._ul.css({marginLeft:0}),n._controlsIsActive=!0})},d=function(){"rtl"===n.settings.direction?(parseInt(n._ul.css("marginRight"),10)>=0&&(n._ul.css({"margin-right":-n._ul.find("li:last-child").outerWidth()}),n._ul.find("li:last-child").insertBefore(n._ul.find("li:first-child"))),n._ul.stop().animate({marginRight:0},300,function(){n._controlsIsActive=!0})):(parseInt(n._ul.css("marginLeft"),10)>=0&&(n._ul.css({"margin-left":-n._ul.find("li:last-child").outerWidth()}),n._ul.find("li:last-child").insertBefore(n._ul.find("li:first-child"))),n._ul.stop().animate({marginLeft:0},300,function(){n._controlsIsActive=!0}))},f=function(){switch(n._controlsIsActive=!0,n.settings.effect){case"typography":n._ul.find("li").hide(),n._ul.find("li").eq(n._activeNews).width(30).show(),n._ul.find("li").eq(n._activeNews).animate({width:"100%",opacity:1},1500);break;case"fade":n._ul.find("li").hide(),n._ul.find("li").eq(n._activeNews).fadeIn();break;case"slide-down":n._totalNews<=1?n._ul.find("li").animate({top:30,opacity:0}
1,300,function(){e(this).css({top:-30,opacity:0,display:"block"}),e(this).animate({top:0,opacity:1},300)}):(n._ul.find("li:visible").animate({top:30,opacity:0},300,function(){e(this).hide()}),n._ul.find("li").eq(n._activeNews).css({top:-30,opacity:0}).show(),n._ul.find("li").eq(n._activeNews).animate({top:0,opacity:1},300));break;case"slide-up":n._totalNews<=1?n._ul.find("li").animate({top:-30,opacity:0},300,function(){e(this).css({top:30,opacity:0,display:"block"}),e(this).animate({top:0,opacity:1},300)}):(n._ul.find("li:visible").animate({top:-30,opacity:0},300,function(){e(this).hide()}),n._ul.find("li").eq(n._activeNews).css({top:30,opacity:0}).show(),n._ul.find("li").eq(n._activeNews).animate({top:0,opacity:1},300));break;case"slide-left":n._totalNews<=1?n._ul.find("li").animate({left:"50%",opacity:0},300,function(){e(this).css({left:-50,opacity:0,display:"block"}),e(this).animate({left:0,opacity:1},300)}):(n._ul.find("li:visible").animate({left:"50%",opacity:0},300,function(){e(this).hide()}),n._ul.find("li").eq(n._activeNews).css({left:-50,opacity:0}).show(),n._ul.find("li").eq(n._activeNews).animate({left:0,opacity:1},300));break;case"slide-right":n._totalNews<=1?n._ul.find("li").animate({left:"-50%",opacity:0}
1,300,function(){e(this).css({left:"50%",opacity:0,display:"block"}),e(this).animate({left:0,opacity:1},300)}):(n._ul.find("li:visible").animate({left:"-50%",opacity:0},300,function(){e(this).hide()}),n._ul.find("li").eq(n._activeNews).css({left:"50%",opacity:0}).show(),n._ul.find("li").eq(n._activeNews).animate({left:0,opacity:1},300));break;default:n._ul.find("li").hide(),n._ul.find("li").eq(n._activeNews).show()}},_=function(){if(n._pause=!1,n.settings.play)switch(n.settings.effect){case"scroll":"rtl"===n.settings.direction?n._ul.width()>n._news.width()?c():n._ul.css({marginRight:0}):n._ul.width()>n._news.width()?r():n._ul.css({marginLeft:0});break;default:n.pause(),n._interval=setInterval(function(){n.next()},n.settings.delayTimer)}},p=function(){n._element.width()<480?(n._label.hide(),"rtl"==n.settings.direction?n._news.css({right:0}):n._news.css({left:0})):(n._label.show(),"rtl"==n.settings.direction?n._news.css({right:n._label.outerWidth()}):n._news.css({left:n._label.outerWidth()}))};n.init=function(){if(n.settings=e.extend({},s,i),"fixed-top"===n.settings.position?n._element.addClass("bn-fixed-top").css({"z-index":n.settings.zIndex}):"fixed-bottom"===n.settings.position&&n._element.addClass("bn-fixed-bottom").css({"z-index":n.settings.zIndex}),"default"!=n.settings.fontSize&&n._element.css({"font-size":n.settings.fontSize}),"default"!=n.settings.themeColor&&(n._element.css({"border-color":n.settings.themeColor,color:n.settings.themeColor}),n._label.css({background:n.settings.themeColor})),"default"!=n.settings.background&&n._element.css({background:n.settings.background}),n._element.css({height:n.settings.height,"line-height":n.settings.height-2*n.settings.borderWidth+"px","border-radius":n.settings.radius,"border-width":n.settings.borderWidth}),n._li.find(".bn-seperator").css({height:n.settings.height-2*n.settings.borderWidth}),n._element.addClass("bn-effect-"+n.settings.effect+" bn-direction-"+n.settings.direction),l(),"object"==typeof n.settings.source)switch(n.settings.source.type){case"rss":"rss2json"===n.settings.source.usingApi?(a(),n.settings.source.refreshTime>0&&setInterval(function(){n._activeNews=0,n.pause(),n._ul.empty().append('<li style="display:block; padding-left:10px;"><span class="bn-loader-text">......</span></li>'),setTimeout(function(){a()},1e3)},1e3*n.settings.source.refreshTime*60)):n._ul.empty();break;case"json":o(),n.settings.source.refreshTime>0&&setInterval(function(){n._activeNews=0,n.pause(),n._ul.empty().append('<li style="display:block; padding-left:10px;"><span class="bn-loader-text">......</span></li>'),setTimeout(function(){o()},1e3)},1e3*n.settings.source.refreshTime*60);break;default:console.log('Please check your "source" object parameter. Incorrect Value')}else"html"===n.settings.source?("scroll"!=n.settings.effect&&f(),_()):console.log('Please check your "source" parameter. Incorrect Value');var t;n.settings.play?n._action.find("span").removeClass("bn-play").addClass("bn-pause"):n._action.find("span").removeClass("bn-pause").addClass("bn-play"),n._element.on("mouseleave",function(t){var i=e(document.elementFromPoint(t.clientX,t.clientY)).parents(".bn-breaking-news")[0];e(this)[0]!==i&&(!0===n.settings.stopOnHover?!0===n.settings.play&&n.play():!0===n.settings.play&&!0===n._pause&&n.play())}),n._element.on("mouseenter",function(){!0===n.settings.stopOnHover&&n.pause()}),n._next.on("click",function(){n._controlsIsActive&&(n._controlsIsActive=!1,n.pause(),n.next())}),n._prev.on("click",function(){n._controlsIsActive&&(n._controlsIsActive=!1,n.pause(),n.prev())}),n._action.on("click",function(){n._controlsIsActive&&(n._action.find("span").hasClass("bn-pause")?(n._action.find("span").removeClass("bn-pause").addClass("bn-play"),n.stop()):(n.settings.play=!0,n._action.find("span").removeClass("bn-play").addClass("bn-pause")))}),p(),e(window).on("resize",function(){p(),n.pause(),n.play()})},n.pause=function(){n._pause=!0,clearInterval(n._interval),cancelAnimationFrame(n._frameId)},n.stop=function(){n._pause=!0,n.settings.play=!1},n.play=function(){_()},n.next=function(){!function(){switch(n.settings.effect){case"scroll":u();break;default:n._activeNews++,n._activeNews>=n._totalNews&&(n._activeNews=0),f()}}()},n.prev=function(){!function(){switch(n.settings.effect){case"scroll":d();break;default:n._activeNews--,n._activeNews<0&&(n._activeNews=n._totalNews-1),f()}}()},n.init()},e.fn.breakingNews=function(t){return this.each(function(){if(null==e(this).data("breakingNews")){var i=new e.breakingNews(this,t);e(this).data("breakingNews",i)}})}}(jQuery); 2;;;
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.