1jQuery(document).ready(function() { 2 ! function(x) { 3 "use strict"; 4 x.breakingNews = function(e, t) { 5 var s = { effect: "scroll", direction: "ltr", height: 40, fontSize: "default", themeColor: "default", background: "default", borderWidth: 1, radius: 2, source: "html", play: !0, delayTimer: 4e3, scrollSpeed: 2, stopOnHover: !0, position: "auto", zIndex: 99999 }, 6 a = this; 7 a.settings = {}; 8 9 function l() { var e; "scroll" === a.settings.effect && (e = 0, p.each(function() { e += x(this).outerWidth() }), e += 10, f.css({ width: e })) } 10 11 function i() { "rtl" === a.settings.direction ? f.stop().animate({ marginRight: -f.find("li:first-child").outerWidth() }, 300, function() { f.find("li:first-child").insertAfter(f.find("li:last-child")), f.css({ marginRight: 0 }), w = !0 }) : f.stop().animate({ marginLeft: -f.find("li:first-child").outerWidth() }, 300, function() { f.find("li:first-child").insertAfter(f.find("li:last-child")), f.css({ marginLeft: 0 }), w = !0 }) } 12 13 function n() { "rtl" === a.settings.direction ? (0 <= parseInt(f.css("marginRight"), 10) && (f.css({ "margin-right": -f.find("li:last-child").outerWidth() }), f.find("li:last-child").insertBefore(f.find("li:first-child"))), f.stop().animate({ marginRight: 0 }, 300, function() { w = !0 })) : (0 <= parseInt(f.css("marginLeft"), 10) && (f.css({ "margin-left": -f.find("li:last-child").outerWidth() }), f.find("li:last-child").insertBefore(f.find("li:first-child"))), f.stop().animate({ marginLeft: 0 }, 300, function() { w = !0 })) } 14 var c = x(e), 15 e = e, 16 d = c.children(".ticker-title"), 17 f = c.children(".blog-tickers").children("ul"), 18 p = f.children("li"), 19 r = c.children(".blog-ticker-controls"), 20 g = r.find(".blog-ticker-arrow-prev").parent(), 21 u = r.find(".wpos-action").parent(), 22 h = r.find(".blog-ticker-arrow-next").parent(), 23 m = !1, 24 w = !0, 25 k = f.children("li").length, 26 o = 0, 27 v = !1, 28 y = function() { 29 var e = parseFloat(f.css("marginLeft")); 30 e -= a.settings.scrollSpeed / 2, f.css({ marginLeft: e }), e <= -f.find("li:first-child").outerWidth() && (f.find("li:first-child").insertAfter(f.find("li:last-child")), f.css({ marginLeft: 0 })), !1 === m && (window.requestAnimationFrame && requestAnimationFrame(y) || setTimeout(y, 16)) 31 }, 32 b = function() { 33 var e = parseFloat(f.css("marginRight")); 34 e -= a.settings.scrollSpeed / 2, f.css({ marginRight: e }), e <= -f.find("li:first-child").outerWidth() && (f.find("li:first-child").insertAfter(f.find("li:last-child")), f.css({ marginRight: 0 })), !1 === m && (window.requestAnimationFrame && requestAnimationFrame(b) || setTimeout(b, 16)) 35 }, 36 C = function() { 37 switch (w = !0, a.settings.effect) { 38 case "typography": 39 f.find("li").hide(), f.find("li").eq(o).width(30).show(), f.find("li").eq(o).animate({ width: "100%", opacity: 1 }, 1500); 40 break; 41 case "fade": 42 f.find("li").hide(), f.find("li").eq(o).fadeIn(); 43 break; 44 case "slide-down": 45 f.find("li.blog-ticker-list-active").animate({ top: 30, opacity: 0 }, 300, function() { x(this).removeClass("blog-ticker-list-active").hide() }), f.find("li").eq(o).css({ top: -30, opacity: 0 }).addClass("blog-ticker-list-active").show(), f.find("li").eq(o).animate({ top: 0, opacity: 1 }, 300); 46 break; 47 case "slide-up": 48 f.find("li.blog-ticker-list-active").animate({ top: -30, opacity: 0 }, 300, function() { x(this).removeClass("blog-ticker-list-active").hide() }), f.find("li").eq(o).css({ top: 30, opacity: 0 }).addClass("blog-ticker-list-active").show(), f.find("li").eq(o).animate({ top: 0, opacity: 1 }, 300); 49 break; 50 case "slide-left": 51 f.find("li.blog-ticker-list-active").animate({ left: "50%", opacity: 0 }, 300, function() { x(this).removeClass("blog-ticker-list-active").hide() }), f.find("li").eq(o).css({ left: -50, opacity: 0 }).addClass("blog-ticker-list-active").show(), f.find("li").eq(o).animate({ left: 0, opacity: 1 }, 300); 52 break; 53 case "slide-right": 54 f.find("li.blog-ticker-list-active").animate({ left: "-50%", op
54acity: 0 }, 300, function() { x(this).removeClass("blog-ticker-list-active").hide() }), f.find("li").eq(o).css({ left: "50%", opacity: 0 }).addClass("blog-ticker-list-active").show(), f.find("li").eq(o).animate({ left: 0, opacity: 1 }, 300); 55 break; 56 default: 57 f.find("li").hide(), f.find("li").eq(o).show() 58 } 59 }, 60 q = function() { 61 if (m = !1, a.settings.play) switch (a.settings.effect) { 62 case "scroll": 63 ("rtl" === a.settings.direction ? b : y)(); 64 break; 65 default: 66 a.pause(), v = setInterval(function() { a.next() }, a.settings.delayTimer) 67 } 68 }; 69 a.init = function() { 70 if (a.settings = x.extend({}, s, t), c.addClass("blog-ticker-effect-" + a.settings.effect + " blog-ticker-direction-" + a.settings.direction), l()) { 71 72 } else "html" === a.settings.source ? ("scroll" != a.settings.effect && C(), q()) : console.log('Please check your "source" parameter. Incorrect Value'); 73 var r, o; 74 a.settings.play ? u.find("span").removeClass("blog-ticker-play").addClass("blog-ticker-pause") : u.find("span").removeClass("blog-ticker-pause").addClass("blog-ticker-play"), c.on("mouseleave", function(e) { 75 var t = x(document.elementFromPoint(e.clientX, e.clientY)).parents(".blog-ticker-breaking-news")[0]; 76 x(this)[0] !== t && (!0 === a.settings.stopOnHover ? !0 === a.settings.play && a.play() : !0 === a.settings.play && !0 === m && a.play()) 77 }), c.on("mouseenter", function() {!0 === a.settings.stopOnHover && a.pause() }), h.on("click", function() { w && (w = !1, a.pause(), a.next()) }), g.on("click", function() { w && (w = !1, a.pause(), a.prev()) }), u.on("click", function() { w && (u.find("span").hasClass("blog-ticker-pause") ? (u.find("span").removeClass("blog-ticker-pause").addClass("blog-ticker-play"), a.stop()) : (a.settings.play = !0, u.find("span").removeClass("blog-ticker-play").addClass("blog-ticker-pause"))) }), x(window).on("resize", function() { var e; "scroll" === a.settings.effect && (e = 0, p.each(function() { e += x(this).outerWidth() }), e += 10, f.css({ width: e })) }) 78 }, a.pause = function() { m = !0, clearInterval(v) }, a.stop = function() { m = !0, a.settings.play = !1 }, a.play = function() { q() }, a.next = function() { 79 ! function() { 80 switch (a.settings.effect) { 81 case "scroll": 82 i(); 83 break; 84 default: 85 k <= ++o && (o = 0), C() 86 } 87 }() 88 }, a.prev = function() { 89 ! function() { 90 switch (a.settings.effect) { 91 case "scroll": 92 n(); 93 break; 94 default: 95 --o < 0 && (o = k - 1), C() 96 } 97 }() 98 }, a.init() 99 }, x.fn.breakingNews = function(t) { 100 return this.each(function() { 101 var e; 102 null == x(this).data("breakingNews") && (e = new x.breakingNews(this, t), x(this).data("breakingNews", e)) 103 }) 104 } 105 }(jQuery); 106 107 function bdp_post_ticker_init() { 108 jQuery(".blog-ticker-wrapper").each(function(i) { 109 var WpspwPro = { 110 "is_rtl": "0", 111 "no_post_msg": "Sorry, No more post to display." 112 }; 113 var s = jQuery(this).attr("id"), 114 t = JSON.parse(jQuery(this).attr("data-conf")); 115 void 0 !== s && "" != s && "undefined" != t && ("italic" == t.font_style && jQuery(this).addClass("blog-ticker-italic"), "bold" == t.font_style && jQuery(this).addClass("wpos-bold"), "bold-italic" == t.font_style && jQuery(this).addClass("wpos-bold blog-ticker-italic"), jQuery("#" + s).breakingNews({ direction: 1 == WpspwPro.is_rtl ? "rtl" : "ltr", effect: t.ticker_effect, delayTimer: parseInt(t.speed), scrollSpeed: parseInt(t.scroll_speed), borderWidth: "false" == t.border ? "0px" : "2px", radius: "2px", play: "false" != t.autoplay, stopOnHover: !0 })) 116 }) 117 }! function(t) { 118 "use strict"; 119 bdp_post_ticker_init() 120 }(jQuery); 121});
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.