PageSourceSearch

https://shareinindia.in/wp-content/plugins/notice-bar/js/jquery.ticker.min.js

js shareinindia.in collected 2026-10-03 02:49:54 UTC 5,816 bytes, 1 lines download raw bytes

1!function(e){e.fn.ticker=function(t){var n=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 o="#"+e(this).attr("id"),i=e(this).get(0).tagName;return this.each(function(){function t(e){var t,n=0;for(t in e)e.hasOwnProperty(t)&&n++;return n}function d(){var e=new Date;return e.getTime()}function l(e){n.debugMode&&(window.console&&window.console.log?window.console.log(e):alert(e))}function r(){a(),e(o).wrap('<div id="'+I.dom.wrapperID.replace("#","")+'"></div>'),e(I.dom.wrapperID).children().remove(),e(I.dom.wrapperID).append('<div id="'+I.dom.tickerID.replace("#","")+'" class="ticker"><div id="'+I.dom.titleID.replace("#","")+'" class="ticker-title"><span class="nb-right-arw"><!-- --></span></div><p id="'+I.dom.contentID.replace("#","")+'" class="ticker-content"></p><div id="'+I.dom.revealID.replace("#","")+'" class="ticker-swipe"><span><!-- --></span></div></div>'),e(I.dom.wrapperID).removeClass("no-js").addClass("ticker-wrapper has-js "+n.direction),e(I.dom.tickerElem+","+I.dom.contentID).hide(),"fade"!=n.displayType&&e(I.dom.contentID).mouseover(function(){0==I.paused&&p()}).mouseout(function(){0==I.paused&&h()}),n.ajaxFeed||c()}function a(){if(0==I.contentLoaded)if(n.ajaxFeed)"xml"==n.feedType?e.ajax({url:n.feedUrl,cache:!1,dataType:n.feedType,async:!0,success:function(e){count=0;for(var o=0;o<e.childNodes.length;o++)"rss"==e.childNodes[o].nodeName&&(xmlContent=e.childNodes[o]);for(var i=0;i<xmlContent.childNodes.length;i++)"channel"==xmlContent.childNodes[i].nodeName&&(xmlChannel=xmlContent.childNodes[i]);for(var d=0;d<xmlChannel.childNodes.length;d++)if("item"==xmlChannel.childNodes[d].nodeName){xmlItems=xmlChannel.childNodes[d];for(var r,a=!1,s=0;s<xmlItems.childNodes.length;s++)"title"==xmlItems.childNodes[s].nodeName?r=xmlItems.childNodes[s].lastChild.nodeValue:"link"==xmlItems.childNodes[s].nodeName&&(a=xmlItems.childNodes[s].lastChild.nodeValue),r!==!1&&""!=r&&a!==!1&&(I.newsArr["item-"+count]={type:n.titleText,content:'<a href="'+a+'">'+r+"</a>"},count++,r=!1,a=!1)}return t(I.newsArr)<1?(l("Couldn't find any content from the XML feed for the ticker to use!"),!1):(I.contentLoaded=!0,void c())}}):l("Code Me!");else{if(!n.htmlFeed)return l("The ticker is set to not use any types of content! Check the settings for the ticker."),!1;if(!(e(o+" LI").length>0))return l("Couldn't find HTML any content for the ticker to use!"),!1;e(o+" LI").each(function(t){I.newsArr["item-"+t]={type:n.titleText,content:e(this).html()}})}}function c(){I.contentLoaded=!0,e(I.dom.titleElem).html(I.newsArr["item-"+I.position].type),e(I.dom.contentID).html(I.newsArr["item-"+I.position].content),I.position==t(I.newsArr)-1?I.position=0:I.position++,distance=e(I.dom.contentID).width(),time=distance/n.speed,s()}function s(){if(e(I.dom.contentID).css("opacity","1"),!I.play)return!1;var t=e(I.dom.titleID).width()+20;e(I.dom.revealID).css(n.direction,t+"px"),"fade"==n.displayType?e(I.dom.revealID).hide(0,function(){e(I.dom.contentID).css(n.direction,t+"px").fadeIn(n.fadeInSpeed,m)}):"scroll"==n.displayType||e(I.dom.revealElem).show(0,function(){e(I.dom.contentID).css(n.direction,t+"px").show(),contentWindowSize=e(I.dom.tickerID).width()-e(I.dom.titleID).width()-20,e(I.dom.contentID).width()<=contentWindowSize?(animationAction="right"==n.direction?{marginRight:distance+"px"}:{marginLeft:distance+"px"},e(I.dom.revealID).css("margin-"+n.direction,"0px").delay(20).animate(animationAction,time,"linear",m)):(delay_scroll=contentWindowSize/n.speed,time_scroll=e(I.dom.contentID).width()/n.speed-delay_scroll,animationAction="right"==n.direction?{marginRight:contentWindowSize-7+"px"}:{marginLeft:contentWindowSize-7+"px"},e(I.dom.revealID).css("margin-"+n.direction,"0px").delay(20).animate(animationAction,delay_scroll,"linear"),scrollSize=e(I.dom.titleID).width()+20-e(I.dom.contentID).width()+contentWindowSize,animationAction_scroll="right"==n.direction?{right:scrollSize+"px"}:{left:scrollSize+"px"},e(I.dom.contentID).delay(delay_scroll).animate(animationAction_scroll,t
1ime_scroll,"linear",m))})}function m(){I.play?(e(I.dom.contentID).delay(n.pauseOnItems).fadeOut(n.fadeOutSpeed),"fade"==n.displayType?e(I.dom.contentID).fadeOut(n.fadeOutSpeed,function(){e(I.dom.wrapperID).find(I.dom.revealElem+","+I.dom.contentID).hide().end().find(I.dom.tickerID+","+I.dom.revealID).show().end().find(I.dom.tickerID+","+I.dom.revealID).removeAttr("style"),c()}):e(I.dom.revealID).hide(0,function(){e(I.dom.contentID).fadeOut(n.fadeOutSpeed,function(){e(I.dom.wrapperID).find(I.dom.revealElem+","+I.dom.contentID).hide().end().find(I.dom.tickerID+","+I.dom.revealID).show().end().find(I.dom.tickerID+","+I.dom.revealID).removeAttr("style"),c()})})):e(I.dom.revealElem).hide()}function p(){I.play=!1,e(I.dom.tickerID+","+I.dom.revealID+","+I.dom.titleID+","+I.dom.titleElem+","+I.dom.revealElem+","+I.dom.contentID).stop(!0,!0),e(I.dom.revealID+","+I.dom.revealElem).hide(),e(I.dom.wrapperID).find(I.dom.titleID+","+I.dom.titleElem).show().end().find(I.dom.contentID).show()}function h(){I.play=!0,I.paused=!1,m()}var f=d(),I={position:0,time:0,distance:0,newsArr:{},play:!0,paused:!1,contentLoaded:!1,dom:{contentID:"#ticker-content-"+f,titleID:"#ticker-title-"+f,titleElem:"#ticker-title-"+f+" SPAN",tickerID:"#ticker-"+f,wrapperID:"#ticker-wrapper-"+f,revealID:"#ticker-swipe-"+f,revealElem:"#ticker-swipe-"+f+" SPAN",controlsID:"#ticker-controls-"+f,prevID:"#prev-"+f,nextID:"#next-"+f,playPauseID:"#play-pause-"+f}};return"UL"!=i&&"OL"!=i&&n.htmlFeed===!0?(l("Cannot use <"+i.toLowerCase()+"> type of element for this plugin - must of type <ul> or <ol>"),!1):("rtl"==n.direction?n.direction="right":n.direction="left",void r())})}}(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.