1// JavaScript Document 2 3 4 5 6$(function(){ 7if (!slider_type()){ 8 $(".banner-container li").width("100%"); 9 //$(".banner-container li").height("400px"); 10 $(".banner-container li .description ").css({"position":"relative"}); 11 $(".banner-container li").find("img").width("100%"); 12 $(".ul-width").width("100%"); 13 $(".banner-container li .description ").fadeIn(); 14 $(".banners-big").hide(); 15 $(".banner-container").show(); 16} 17else{ 18 $(".banners-big").show(); 19 $(".banner-container").hide(); 20} 21 $(".ul-width ").fadeIn(); 22 $(".banner-container li").hover(function(){ 23 if (!slider_type()){return false;} 24 var winWidth = $(".banner-container").width(); 25 ulWidthCount = $('.banner-container li').size(); 26 var imgWidth = $(this).find("img").width(); 27 var bannerLi = winWidth - imgWidth; 28 var remWidth = ulWidthCount - 1; 29 var appWidth = bannerLi/remWidth; 30 $(".banner-container li").stop(true, false).animate({width: appWidth},700); 31 $(this).stop(true, false).animate({width: imgWidth},700); 32 //$(this).find("span.overlay").stop(true, false).fadeOut(); 33 $('.bgDescription',$(this)).stop(true,true).slideDown(700); 34 $(this).find(".description ").fadeIn(); 35 }, function(){ 36 if (!slider_type()){return false;} 37 var winWidth = $(".banner-container").width(); 38 $(this).animate({width: winWidth/ulWidthCount},700); 39 $(".banner-container li").animate({width:winWidth/ulWidthCount},700); 40 //$(this).find("span.overlay").fadeIn(); 41 $('.bgDescription',$(this)).stop(true,true).slideUp(700); 42 $(this).find(".description").stop(true, false).fadeOut(); 43 }); 44 45 }); 46 47$( window ).resize(function() { 48if (!slider_type()){ 49 $(".banners-big").hide(); 50 $(".banner-container").show();} 51else{ 52 $(".banners-big").show(); 53 $(".banner-container").hide(); 54} 55}); 56 57 58 59function slider_type(){ 60// alert($(".banner-container").width()); 61 console.log($(".banner-container").width()); 62 var ww=$(".banner-container").width(); 63 if (ww<667){ 64 return false; 65 } 66 else{ 67 return true; 68 } 69}
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.