1/** 2 * SThemes 3 * Created by ÐолÑзоваÑÐµÐ»Ñ on 17.01.2017. 4 */ 5 6(function($) { 7 $(document).ready(function() { 8 if($("body").find(".stmTickerPostsList").find("li").length > 0) { 9 10 var tm = $(".stmTickerPostsList").attr("data-auto_play_speed"); 11 var animateSpeed = $(".stmTickerPostsList").attr("data-animate_speed"); 12 var timerId = setInterval(function () { 13 var tickerList = $(".stmTickerPostsList"); 14 15 var tickerFirstItem = (tickerList.attr("data-direction") == "up") ? $(".stmTickerPostsList li:first-child") : $(".stmTickerPostsList li:last-child"); 16 var tickerFirstItemHtml = (tickerList.attr("data-direction") == "up") ? document.getElementsByClassName('tickerItem').item(0).outerHTML : document.getElementsByClassName('tickerItem').item(parseInt(tickerList.attr("data-count-posts")) - 1).outerHTML; 17 18 if (tickerList.attr("data-direction") == "up") { 19 $(".stmTickerPostsList").append(tickerFirstItemHtml); 20 tickerFirstItem.animate({ 21 'marginTop': '-60px' 22 }, animateSpeed, function () { 23 tickerFirstItem.remove(); 24 }); 25 } else { 26 $(".stmTickerPostsList").prepend(tickerFirstItemHtml); 27 28 tickerFirstItem.animate({ 29 'marginBottom': '-60px' 30 }, animateSpeed, function () { 31 tickerFirstItem.remove(); 32 }); 33 } 34 35 }, tm); 36 } 37 }); 38})(jQuery);
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.