1$(document).ready(function(){ 2 $('.anons-block-item-bottom').each(function(){ 3 var element=$(this).text().split(','); 4 for(j=0;j<element.length;j++){ 5 var divs=element[j];$(this).append('<div class="'+divs+'"></div>'); 6 } 7 }); 8 $('.anons-block-item').hover(function(){ 9 $(this).addClass('anons-block-item-active'); 10 }, function(){ 11 $(this).removeClass('anons-block-item-active'); 12 }); 13 /*$('.index-tabs2 span').hover(function(){ 14 $(this).addClass('index-tab-hover'); 15 }, function(){ 16 $(this).removeClass('index-tab-hover'); 17 });*/ 18 $('.play').hover(function(){ 19 $(this).addClass('play2');},function(){ 20 $(this).removeClass('play2'); 21 }); 22 $('.hidden-shotstory').each(function(){ 23 var fixedWidth=$(this).width(); 24 var fixedHeight=$(this).height(); 25 $(this).css({'margin-left':-fixedWidth/2,'margin-top':-fixedHeight/2}); 26 }); 27 $('.play').click(function(){ 28 $(this).parent().parent().find('.hidden-shotstory').fadeIn();$('.dark').fadeIn(); 29 }); 30 $('.close, .dark').click(function(){ 31 $('.hidden-shotstory').fadeOut(0);$('.dark').fadeOut(); 32 }); 33 $('.video-news:first').addClass('video-news-active'); 34 function showVideoNext(){ 35 $('.video-news').removeClass('video-news-active'); 36 var currentVideo=$(this).parent().parent().parent(); 37 currentVideo.addClass('video-news-active'); 38 var nextVideo=currentVideo.next('.video-news').length?currentVideo.next('.video-news'):$('.video-news:first'); 39 currentVideo.find('.hidden-shotstory').fadeOut(0); 40 nextVideo.find('.hidden-shotstory').fadeIn(1000); 41 nextVideo.find('.shadow-x').fadeIn(0).fadeOut(800); 42 } 43 function showVideoPrev(){ 44 $('.video-news').removeClass('video-news-active'); 45 var currentVideo=$(this).parent().parent().parent(); 46 currentVideo.addClass('video-news-active'); 47 var nextVideo=currentVideo.prev('.video-news').length?currentVideo.prev('.video-news'):$('.video-news:last'); 48 currentVideo.find('.hidden-shotstory').fadeOut(0); 49 nextVideo.find('.hidden-shotstory').fadeIn(1000); 50 nextVideo.find('.shadow-x').fadeIn(0).fadeOut(800); 51 } 52 $('.panel-right').click(showVideoNext); 53 $('.panel-left').click(showVideoPrev); 54 $('.panel-right').hover(function(){ 55 $(this).addClass('panel-right2'); 56 }, function(){ 57 $(this).removeClass('panel-right2'); 58 }); 59 $('.panel-left').hover(function(){ 60 $(this).addClass('panel-left2'); 61 }, function(){ 62 $(this).removeClass('panel-left2'); 63 }); 64 $('.slide-menu-1').hover(function(){ 65 $(this).addClass('slide-menu-2'); 66 }, function(){ 67 $(this).removeClass('slide-menu-2'); 68 }); 69 $('.slide-menu-1').click(function(){ 70 $(this).toggleClass('slide-menu-3').next('.slide-menu-hidden').slideToggle(); 71 }); 72 $('.login-panel-open').click(function(){ 73 $('.login-block').slideToggle(); 74 }); 75 $('body').click(function(e){ 76 if (!$(e.target).is('.login-panel-open') && !$(e.target).is('.login-panel-open span') && !$(e.target).hasClass('login-input-text')){ 77 $('.login-block').slideUp(); 78 } 79 }); 80});
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.