1(function($) { 2 3$(function () { 4 5 var shuffleElm = $('.shuffle'), 6 shuffleSpeed = 10, 7 shuffleAnimation = 1500, 8 shuffleDelay = 400; 9 10 shuffleElm.each(function(){ 11 var self = $(this); 12 13 self.wrapInner('<span class="shuffleWrap"></span>'); 14 15 var shuffleWrap = self.find('.shuffleWrap'); 16 shuffleWrap.replaceWith(shuffleWrap.text().replace(/(\S)/g, '<span class="shuffleNum">$&</span>')); 17 18 var shuffleNum = self.find('.shuffleNum'), 19 numLength = shuffleNum.length; 20 21 shuffleNum.each(function(i){ 22 var selfNum = $(this), 23 thisNum = selfNum.text(), 24 shuffleTimer; 25 26 function timer(){ 27 shuffleTimer = setInterval(function(){ 28 rdm = Math.floor(Math.random()*(9))+1; 29 selfNum.text(rdm); 30 },shuffleSpeed); 31 } 32 timer(); 33 34 var i = -i + numLength; 35 36 setTimeout(function(){ 37 clearInterval(shuffleTimer); 38 selfNum.text(thisNum); 39 },shuffleAnimation + (i*shuffleDelay)); 40 }); 41 self.css({visibility:'visible'}); 42 }); 43 44 45 /* 46 var mainVisual = function(){ 47 48 49 var slider = $(".section--hero-img .block--key-visual .mainSlide").bxSlider({ 50 mode: "fade", 51 auto: false, 52 pause: 4000, 53 speed: 2000, 54 controls: false, 55 pager: false, 56 }); 57 58 $(".section--hero-img .block--key-visual.single").delay(5000).fadeOut(2000, function(){ 59 slider.startAuto(); 60 }); 61 62 }; 63 64 */ 65 66 67var attentionIn = function(){ 68 69 if($('.clockWrap').length){ 70 $("#attention").delay(3300).animate({ 'opacity': '1' }, 1000); 71 $("#attention-bnr").delay(3300).animate({'opacity': '1'}, 1000); 72 } else { 73 $("#attention").delay(1300).animate({ 'opacity': '1' }, 1000); 74 $("#attention-bnr").delay(1300).animate({'opacity': '1'}, 1000); 75 } 76}; 77 78 79 // ------------------------------ 80 // init 81 // ------------------------------ 82 attentionIn(); 83 //mainVisual(); 84 85 // $(window).resize(function () { 86 // // slider.resize(); 87 // }); 88 89 90}); 91})(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.