GhostManSec
Server: LiteSpeed
System: Linux premium197.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: parhudrw (1725)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: /home/parhudrw/venice-restaurants.anqa.it/wp-content/themes/blogxer/assets/js/jquery.ticker.js
!function(e){e.fn.ticker=function(t){var o=e.extend({},e.fn.ticker.defaults,t);if(0==e(this).length)return window.console&&window.console.log?window.console.log("Element does not exist in DOM!"):alert("Element does not exist in DOM!"),!1;var n="#"+e(this).attr("id"),i=e(this).get(0).tagName;return this.each(function(){var t=(new Date).getTime(),d={position:0,time:0,distance:0,newsArr:{},play:!0,paused:!1,contentLoaded:!1,dom:{contentID:"#ticker-content-"+t,titleID:"#ticker-title-"+t,titleElem:"#ticker-title-"+t+" SPAN",tickerID:"#ticker-"+t,wrapperID:"#ticker-wrapper-"+t,revealID:"#ticker-swipe-"+t,revealElem:"#ticker-swipe-"+t+" SPAN",controlsID:"#ticker-controls-"+t,prevID:"#prev-"+t,nextID:"#next-"+t,playPauseID:"#play-pause-"+t}};if("UL"!=i&&"OL"!=i&&!0===o.htmlFeed)return a("Cannot use <"+i.toLowerCase()+"> type of element for this plugin - must of type <ul> or <ol>"),!1;function s(e){var t,o=0;for(t in e)e.hasOwnProperty(t)&&o++;return o}function a(e){o.debugMode&&(window.console&&window.console.log?window.console.log(e):alert(e))}function l(){d.contentLoaded=!0,e(d.dom.titleElem).html(d.newsArr["item-"+d.position].type),e(d.dom.contentID).html(d.newsArr["item-"+d.position].content),d.position==s(d.newsArr)-1?d.position=0:d.position++,distance=e(d.dom.contentID).width(),time=distance/o.speed,function(){{if(e(d.dom.contentID).css("opacity","1"),!d.play)return!1;var t=e(d.dom.titleID).width()+20;e(d.dom.revealID).css(o.direction,t+"px"),"fade"==o.displayType?e(d.dom.revealID).hide(0,function(){e(d.dom.contentID).css(o.direction,t+"px").fadeIn(o.fadeInSpeed,r)}):"scroll"==o.displayType||e(d.dom.revealElem).show(0,function(){e(d.dom.contentID).css(o.direction,t+"px").show(),animationAction="right"==o.direction?{marginRight:distance+"px"}:{marginLeft:distance+"px"},e(d.dom.revealID).css("margin-"+o.direction,"0px").delay(20).animate(animationAction,time,"linear",r)})}}()}function r(){d.play?(e(d.dom.contentID).delay(o.pauseOnItems).fadeOut(o.fadeOutSpeed),"fade"==o.displayType?e(d.dom.contentID).fadeOut(o.fadeOutSpeed,function(){e(d.dom.wrapperID).find(d.dom.revealElem+","+d.dom.contentID).hide().end().find(d.dom.tickerID+","+d.dom.revealID).show().end().find(d.dom.tickerID+","+d.dom.revealID).removeAttr("style"),l()}):e(d.dom.revealID).hide(0,function(){e(d.dom.contentID).fadeOut(o.fadeOutSpeed,function(){e(d.dom.wrapperID).find(d.dom.revealElem+","+d.dom.contentID).hide().end().find(d.dom.tickerID+","+d.dom.revealID).show().end().find(d.dom.tickerID+","+d.dom.revealID).removeAttr("style"),l()})})):e(d.dom.revealElem).hide()}function c(){d.play=!1,e(d.dom.tickerID+","+d.dom.revealID+","+d.dom.titleID+","+d.dom.titleElem+","+d.dom.revealElem+","+d.dom.contentID).stop(!0,!0),e(d.dom.revealID+","+d.dom.revealElem).hide(),e(d.dom.wrapperID).find(d.dom.titleID+","+d.dom.titleElem).show().end().find(d.dom.contentID).show()}function m(){d.play=!0,d.paused=!1,r()}function p(t){switch(c(),t){case"prev":0==d.position?d.position=s(d.newsArr)-2:1==d.position?d.position=s(d.newsArr)-1:d.position=d.position-2,e(d.dom.titleElem).html(d.newsArr["item-"+d.position].type),e(d.dom.contentID).html(d.newsArr["item-"+d.position].content);break;case"next":e(d.dom.titleElem).html(d.newsArr["item-"+d.position].type),e(d.dom.contentID).html(d.newsArr["item-"+d.position].content)}d.position==s(d.newsArr)-1?d.position=0:d.position++}"rtl"==o.direction?o.direction="right":o.direction="left",function(){(function(){if(0==d.contentLoaded)if(o.ajaxFeed)"xml"==o.feedType?e.ajax({url:o.feedUrl,cache:!1,dataType:o.feedType,async:!0,success:function(e){count=0;for(var t=0;t<e.childNodes.length;t++)"rss"==e.childNodes[t].nodeName&&(xmlContent=e.childNodes[t]);for(var n=0;n<xmlContent.childNodes.length;n++)"channel"==xmlContent.childNodes[n].nodeName&&(xmlChannel=xmlContent.childNodes[n]);for(var i=0;i<xmlChannel.childNodes.length;i++)if("item"==xmlChannel.childNodes[i].nodeName){xmlItems=xmlChannel.childNodes[i];for(var r,c=!1,m=0;m<xmlItems.childNodes.length;m++)"title"==xmlItems.childNodes[m].nodeName?r=xmlItems.childNodes[m].lastChild.nodeValue:"link"==xmlItems.childNodes[m].nodeName&&(c=xmlItems.childNodes[m].lastChild.nodeValue),!1!==r&&""!=r&&!1!==c&&(d.newsArr["item-"+count]={type:o.titleText,content:'<a href="'+c+'">'+r+"</a>"},count++,r=!1,c=!1)}if(s(d.newsArr<1))return a("Couldn't find any content from the XML feed for the ticker to use!"),!1;d.contentLoaded=!0,l()}}):a("Code Me!");else{if(!o.htmlFeed)return a("The ticker is set to not use any types of content! Check the settings for the ticker."),!1;if(!(e(n+" LI").length>0))return a("Couldn't find HTML any content for the ticker to use!"),!1;e(n+" LI").each(function(t){d.newsArr["item-"+t]={type:o.titleText,content:e(this).html()}})}})(),e(n).wrap('<div id="'+d.dom.wrapperID.replace("#","")+'"></div>'),e(d.dom.wrapperID).children().remove(),e(d.dom.wrapperID).append('<div id="'+d.dom.tickerID.replace("#","")+'" class="ticker"><div id="'+d.dom.titleID.replace("#","")+'" class="ticker-title"><span>\x3c!-- --\x3e</span><div class="boltu-right"></div></div><p id="'+d.dom.contentID.replace("#","")+'" class="ticker-content"></p><div id="'+d.dom.revealID.replace("#","")+'" class="ticker-swipe"><span>\x3c!-- --\x3e</span></div></div>'),e(d.dom.wrapperID).removeClass("no-js").addClass("ticker-wrapper has-js "+o.direction),e(d.dom.tickerElem+","+d.dom.contentID).hide(),o.controls&&(e(d.dom.controlsID).live("click mouseover mousedown mouseout mouseup",function(t){var o=t.target.id;if("click"==t.type)switch(o){case d.dom.prevID.replace("#",""):d.paused=!0,e(d.dom.playPauseID).addClass("paused"),p("prev");break;case d.dom.nextID.replace("#",""):d.paused=!0,e(d.dom.playPauseID).addClass("paused"),p("next");break;case d.dom.playPauseID.replace("#",""):1==d.play?(d.paused=!0,e(d.dom.playPauseID).addClass("paused"),c()):(d.paused=!1,e(d.dom.playPauseID).removeClass("paused"),m())}else"mouseover"==t.type&&e("#"+o).hasClass("controls")?e("#"+o).addClass("over"):"mousedown"==t.type&&e("#"+o).hasClass("controls")?e("#"+o).addClass("down"):"mouseup"==t.type&&e("#"+o).hasClass("controls")?e("#"+o).removeClass("down"):"mouseout"==t.type&&e("#"+o).hasClass("controls")&&e("#"+o).removeClass("over")}),e(d.dom.wrapperID).append('<ul id="'+d.dom.controlsID.replace("#","")+'" class="ticker-controls"><li id="'+d.dom.playPauseID.replace("#","")+'" class="jnt-play-pause controls"><a href="">\x3c!-- --\x3e</a></li><li id="'+d.dom.prevID.replace("#","")+'" class="jnt-prev controls"><a href="">\x3c!-- --\x3e</a></li><li id="'+d.dom.nextID.replace("#","")+'" class="jnt-next controls"><a href="">\x3c!-- --\x3e</a></li></ul>'));"fade"!=o.displayType&&e(d.dom.contentID).mouseover(function(){0==d.paused&&c()}).mouseout(function(){0==d.paused&&m()});o.ajaxFeed||l()}()})},e.fn.ticker.defaults={speed:.9,ajaxFeed:!1,feedUrl:"",feedType:"xml",displayType:"reveal",htmlFeed:!0,debugMode:!0,controls:!0,titleText:"Latest",direction:"ltr",pauseOnItems:3e3,fadeInSpeed:600,fadeOutSpeed:300}}(jQuery);