1jQuery(document).ready(function($){ 2 3 $("a").bind("focus",function(){if(this.blur)this.blur();}); 4 $("a.target_blank").attr("target","_blank"); 5 6 $(".post_list:last").addClass("last"); 7 $(".widget_post_list > li:last-child").addClass("last"); 8 9 $("#comment_area ol > li:even").addClass("even_comment"); 10 $("#comment_area ol > li:odd").addClass("odd_comment"); 11 $(".even_comment > .children > li").addClass("even_comment_children"); 12 $(".odd_comment > .children > li").addClass("odd_comment_children"); 13 $(".even_comment_children > .children > li").addClass("odd_comment_children"); 14 $(".odd_comment_children > .children > li").addClass("even_comment_children"); 15 $(".even_comment_children > .children > li").addClass("odd_comment_children"); 16 $(".odd_comment_children > .children > li").addClass("even_comment_children"); 17 18 $("#trackback_switch").click(function(){ 19 $("#comment_switch").removeClass("comment_switch_active"); 20 $(this).addClass("comment_switch_active"); 21 $("#comment_area").animate({opacity: 'hide'}, 0); 22 $("#trackback_area").animate({opacity: 'show'}, 1000); 23 return false; 24 }); 25 26 $("#comment_switch").click(function(){ 27 $("#trackback_switch").removeClass("comment_switch_active"); 28 $(this).addClass("comment_switch_active"); 29 $("#trackback_area").animate({opacity: 'hide'}, 0); 30 $("#comment_area").animate({opacity: 'show'}, 1000); 31 return false; 32 }); 33 34 35function mediaQueryClass(width) { 36 37 if (width > 641) { //PC 38 39 $("html").removeClass("mobile"); 40 $("html").addClass("pc"); 41 42 var n_size=$("#global_menu > ul > li").size(); 43 var aWidth = 980/n_size; 44 $("#global_menu > ul > li").css("width", aWidth+"px"); 45 $("#global_menu ul ul li").css("width", (aWidth+25)+"px"); 46 $("#global_menu ul li:has(ul)").addClass("parent_menu"); 47 48 $(".menu_button").css("display","none"); 49 $("#global_menu").show(); 50 $("#global_menu ul ul").hide(); 51 $("#global_menu a:has(ul)").removeClass("active_menu").off("click"); 52 53 $("#global_menu li").hover(function(){ 54 $(">ul:not(:animated)",this).slideDown("fast"); 55 $(this).addClass("active_menu"); 56 }, function(){ 57 $(">ul",this).slideUp("fast"); 58 $(this).removeClass("active_menu"); 59 }); 60 61 } else { //X}z 62 63 $("html").removeClass("pc"); 64 $("html").addClass("mobile"); 65 66 $("#global_menu ul ul").show(); 67 $("#global_menu > ul > li").css("width", ""); 68 $("#global_menu ul ul li").css("width", ""); 69 $("#global_menu ul").removeClass("active_menu"); 70 $(".menu_button").css("display", "block"); 71 $("#global_menu li").off('hover'); 72 73 $('.menu_button').off('click'); 74 75 if($(".menu_button").hasClass("active")) { 76 $(".menu_button").removeClass("active") 77 }; 78 79 $(".menu_button").on('click',function() { 80 if($(this).hasClass("active")) { 81 $(this).removeClass("active"); 82 $('#global_menu').hide(); 83 return false; 84 } else { 85 $(this).addClass("active"); 86 $('#global_menu').show(); 87 return false; 88 }; 89 }); 90 91 }; 92}; 93 94mediaQueryClass(document.documentElement.clientWidth); 95 96$(window).bind("resize orientationchange", function() { 97 mediaQueryClass(document.documentElement.clientWidth); 98}) 99 100 101 102});
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.