1jQuery(document).ready(function($){ 2 3 $("a").bind("focus",function(){if(this.blur)this.blur();}); 4 $("a.target_blank").attr("target","_blank"); 5 6 //return top button 7 var topBtn = $('#return_top'); 8 topBtn.removeClass('active'); 9 $(window).scroll(function () { 10 if ($(this).scrollTop() > 100) { 11 topBtn.addClass('active'); 12 } else { 13 topBtn.removeClass('active'); 14 } 15 }); 16topBtn.click(function () { 17 $('body,html').scrollTop(0); // å³åº§ã«ã¹ã¯ãã¼ã« 18 return false; 19}); 20 21 //category widget 22 $(".collapse_category_list li").hover(function(){ 23 $(">ul:not(:animated)",this).slideDown("fast"); 24 $(this).addClass("active"); 25 }, function(){ 26 $(">ul",this).slideUp("fast"); 27 $(this).removeClass("active"); 28 }); 29 30 //profile widget 31 var sns_num = $('.tcdw_user_profile_widget .user_sns li').length; 32 if( sns_num > 5 ) { 33 $('.tcdw_user_profile_widget .user_sns').addClass('type2'); 34 }; 35 36 //comment tab 37 $("#trackback_switch").click(function(){ 38 $("#comment_switch").removeClass("comment_switch_active"); 39 $(this).addClass("comment_switch_active"); 40 $("#comment_area").animate({opacity: 'hide'}, 0); 41 $("#trackback_area").animate({opacity: 'show'}, 1000); 42 return false; 43 }); 44 45 $("#comment_switch").click(function(){ 46 $("#trackback_switch").removeClass("comment_switch_active"); 47 $(this).addClass("comment_switch_active"); 48 $("#trackback_area").animate({opacity: 'hide'}, 0); 49 $("#comment_area").animate({opacity: 'show'}, 1000); 50 return false; 51 }); 52 53function mediaQueryClass(width) { 54 55 if (width > 770) { //PC 56 57 $("html").removeClass("mobile"); 58 $("html").addClass("pc"); 59 60 $(".menu_button").css("display","none"); 61 62 $("#global_menu").show(); 63 64 $("#global_menu li").hover(function(){ 65 $(">ul:not(:animated)",this).slideDown("fast"); 66 $(this).addClass("active"); 67 }, function(){ 68 $(">ul",this).slideUp("fast"); 69 $(this).removeClass("active"); 70 }); 71 72 } else { //ã¹ãã 73 74 $("html").removeClass("pc"); 75 $("html").addClass("mobile"); 76 77 $("#global_menu li").off('hover'); 78 $("#global_menu ul ul").removeAttr('style'); 79 80 $(".menu_button").css("display", "block"); 81 $('.menu_button').off('click'); 82 83 $(".menu_button").on('click',function() { 84 if($(this).hasClass("active")) { 85 $(this).removeClass("active"); 86 $('#global_menu').hide(); 87 return false; 88 } else { 89 $(this).addClass("active"); 90 $('#global_menu').show(); 91 return false; 92 }; 93 }); 94 95 $(".child_menu_button").remove(); 96 $('#global_menu li > ul').parent().prepend("<span class='child_menu_button'><span class='icon'></span></span>"); 97 $("#global_menu .child_menu_button").on('click',function() { 98 if($(this).parent().hasClass("open")) { 99 $(this).parent().removeClass("open"); 100 return false; 101 } else { 102 $(this).parent().addClass("open"); 103 return false; 104 }; 105 }); 106 107 $("#global_menu li.menu-item-has-children a").hover(function(){ 108 $(this).prev().addClass("active"); 109 }, function(){ 110 $(this).prev().removeClass("active"); 111 }); 112 113 $('#mobile_footer_menu li > ul').parent().prepend("<span class='child_menu_button'><span class='icon'></span></span>"); 114 $("#mobile_footer_menu .child_menu_button").on('click',function() { 115 if($(this).parent().hasClass("open")) { 116 $(this).parent().removeClass("open"); 117 return false; 118 } else { 119 $(this).parent().addClass("open"); 120 return false; 121 }; 122 }); 123 124 $("#mobile_footer_menu li.menu-item-has-children a").hover(function(){ 125 $(this).prev().addClass("active"); 126 }, function(){ 127 $(this).prev().removeClass("active"); 128 }); 129 130 }; 131}; 132 133function viewport() { 134 var e = window, a = 'inner'; 135 if (!('innerWidth' in window )) { 136 a = 'client'; 137 e = document.documentElement || document.body; 138 } 139 return { width : e[ a+'Width' ] , height : e[ a+'Height' ] }; 140} 141 142var ww = viewport().width; 143var timer = false; 144 145mediaQueryClass(ww); 146 147$(window).bind("resize orientationchange", function() { 148 149 if (timer !== false) { 150 clearTimeout(timer); 151 } 152 timer = setTimeout(function() { 153 var ww = viewport().width; 154 mediaQueryClass(ww); 155 }, 200); 156 157}) 158 159 //search widget 160 $('.widget_search #searchsubmit').wrap('<div class="submit_button"></div>'); 161 $('.google_search #searchsubmit').wrap('<div class="submit_button"></div>'); 162 163 //calendar widget 164 $('.wp-calendar-table td').each(function () { 165 if ( $(this).children().length == 0 ) { 166 $(this).addClass('no_link'); 167 $(this).wrapInner('<span></span>'); 168 } else { 169 $(this).addClass('has_link'); 170 } 171 }); 172
173// ããã¹ãã¦ã£ã¸ã§ããã¨HTMLã¦ã£ã¸ã§ããã«ã¨ãã£ã¿ã¼ã®ã¯ã©ã¹ã追å ãã 174$('.widget_text .textwidget').addClass('post_content'); 175 176// ã¢ã¼ã«ã¤ãã¨ã«ãã´ãªã¼ã®ã»ã¬ã¯ãããã¯ã¹ã«select_wrapã®ã¯ã©ã¹ã追å ãã 177 $('.widget_archive select').wrap('<div class="select_wrap"></div>'); 178 $('.widget_categories form').wrap('<div class="select_wrap"></div>'); 179 180});
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.