1/*========plugins.js=======*/ 2 3jQuery(function () { 4 jQuery("ul#ticker01").liScroll(); 5 }); 6 7 /*========plugins.js=======*/ 8 9 /*========news_ticker.js=======*/ 10 /*! 11 * liScroll 1.0 12 * Examples and documentation at: 13 * http://www.gcmingati.net/wordpress/wp-content/lab/jquery/newsticker/jq-liscroll/scrollanimate.html 14 * 2007-2010 Gian Carlo Mingati 15 * Version: 1.0.2.1 (22-APRIL-2011) 16 * Dual licensed under the MIT and GPL licenses: 17 * https://www.opensource.org/licenses/mit-license.php 18 * http://www.gnu.org/licenses/gpl.html 19 * Requires: 20 * jQuery v1.2.x or later 21 * 22 */ 23 24 jQuery.fn.liScroll = function (settings) { 25 settings = jQuery.extend( 26 { 27 travelocity: 0.07 28 }, 29 settings 30 ); 31 return this.each(function () { 32 var $strip = jQuery(this); 33 $strip.addClass("newsticker"); 34 var stripWidth = 1; 35 $strip.find("li").each(function (i) { 36 stripWidth += jQuery(this, i).outerWidth(true); // thanks to Michael Haszprunar and Fabien Volpi 37 }); 38 var $mask = $strip.wrap("<div class='mask'></div>"); 39 var $tickercontainer = $strip 40 .parent() 41 .wrap("<div class='tickercontainer'></div>"); 42 var containerWidth = $strip.parent().parent().width(); //a.k.a. 'mask' width 43 $strip.width(stripWidth); 44 var totalTravel = stripWidth + containerWidth; 45 var defTiming = totalTravel / settings.travelocity; // thanks to Scott Waye 46 function scrollnews(spazio, tempo) { 47 $strip.animate({ left: "-=" + spazio }, tempo, "linear", function () { 48 $strip.css("left", containerWidth); 49 scrollnews(totalTravel, defTiming); 50 }); 51 } 52 scrollnews(totalTravel, defTiming); 53 $strip.hover( 54 function () { 55 jQuery(this).stop(); 56 }, 57 function () { 58 var offset = jQuery(this).offset(); 59 var residualSpace = offset.left + stripWidth; 60 var residualTime = residualSpace / settings.travelocity; 61 scrollnews(residualSpace, residualTime); 62 } 63 ); 64 }); 65 }; 66 67 /*========news_ticker.js=======*/ 68 var myModal = document.getElementById('exampleModal') 69var myInput = document.getElementById('myInput') 70 71myModal.addEventListener('shown.bs.modal', function () { 72 myInput.focus() 73})
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.