1 2 3 4//-------------------------------------------------------------------- 5// wb_[Åè 6//-------------------------------------------------------------------- 7$(function() { 8 var $win = $(window), 9 $cloneNav = $('header').clone().addClass('is-fixed').appendTo('body'), 10 showClass = 'is-show'; 11 12 $win.on('load scroll', function() { 13 var value = $(this).scrollTop(); 14 if ( value > 300 ) { 15 $cloneNav.addClass(showClass); 16 } else { 17 $cloneNav.removeClass(showClass); 18 } 19 }); 20}); 21 22 23//-------------------------------------------------------------------- 24// y[WgbvÖ 25//-------------------------------------------------------------------- 26jQuery(function(){ 27 jQuery(".toTop a, a.toTop").click(function(){ 28 jQuery('html,body').animate({ scrollTop: jQuery(jQuery(this).attr("href")).offset().top }, 'slow','swing'); 29 return false; 30 }) 31}); 32 33 34jQuery(function() { 35 var topBtn = jQuery('#pagetop'); 36 topBtn.hide(); 37 jQuery(window).scroll(function () { 38 if (jQuery(this).scrollTop() > 100) { 39 topBtn.fadeIn(); 40 } else { 41 topBtn.fadeOut(); 42 } 43 }); 44 45 topBtn.click(function () { 46 jQuery('body,html').animate({ 47 scrollTop: 0 48 }, 500); 49 return false; 50 }); 51 }); 52 53 54 55//-------------------------------------------------------------------- 56// pagetopÅè 57//-------------------------------------------------------------------- 58$(function(){ 59 60 var $elem = $(".pagetop"), 61 $content = $("footer"), 62 $win = $(window); 63 64 var contentTop = 0; 65 66 $win 67 .load(function(){ 68 updatePosition(); 69 update(); 70 }) 71 .resize(function(){ 72 updatePosition(); 73 update(); 74 }) 75 .scroll(function(){ 76 update(); 77 }); 78 79 function updatePosition(){ 80 contentTop = $content.offset().top + $elem.outerHeight(); 81 } 82 83 function update(){ 84 if( $win.scrollTop() + $win.height() > contentTop ){ 85 $elem.addClass("absolute"); 86 }else if( $elem.hasClass("absolute") ){ 87 $elem.removeClass("absolute"); 88 } 89 } 90 91 92}); 93 94 95 96//-------------------------------------------------------------------- 97// AJ[N 98//-------------------------------------------------------------------- 99$(window).on('load', function() { 100var url = $(location).attr('href'); 101 if(url.indexOf("?id=") != -1){ 102 var id = url.split("?id="); 103 var $target = $('#' + id[id.length - 1]); 104 if($target.length){ 105 var pos = $target.offset().top; 106 $("html, body").animate({scrollTop:pos}, 1300); 107 } 108 } 109}); 110 111 112 113 114 115 116 117 118//-------------------------------------------------------------------- 119// X}zj [ 120//-------------------------------------------------------------------- 121(function($) { 122$(document).ready(function(){ 123 $('#menu .btn').click(function(){ 124 $(this).next('#menu .col').stop(true, true).slideToggle(); 125$(this).toggleClass("active"); 126 }); 127 $("#menu .col").css("display","none"); 128 $('#menu ul a').click(function(){ 129 $("#menu .col").css("display","none"); 130 }); 131}); 132})(jQuery); 133 134$(function(){ 135 var state = false; 136 var scrollpos; 137 138 $('#menu .btn').on('click', function(){ 139 if(state == false) { 140 scrollpos = $(window).scrollTop(); 141 $('body').addClass('fixed').css({'top': -scrollpos}); 142 $('#menu .col').addClass('open'); 143 state = true; 144 } else { 145 $('body').removeClass('fixed').css({'top': 0}); 146 window.scrollTo( 0 , scrollpos ); 147 $('#menu .col').removeClass('open'); 148 state = false; 149 } 150 }); 151 152}); 153 154 155//-------------------------------------------------------------------- 156// X}zj [ðÔ·Å\¦ 157//-------------------------------------------------------------------- 158$(window).load(function() { 159 $('#menu').fadeIn(0); 160 }); 161 162 163 164 165//-------------------------------------------------------------------- 166// X}zÅhoverøÊ 167//-------------------------------------------------------------------- 168(function () { 169 var tapClass = ""; 170 var hoverClass = ""; 171 172 var Hover = window.Hover = function (ele) { 173 return new Hover.fn.init(ele); 174 }; 175 Hover.fn = { 176 //Hover Instance 177 init : function (ele) { 178 this.prop = ele; 179 } 180 181 , bind : function (_hoverClass, _tapClass) { 182 hoverClass = _hoverClass; 183 tapClass = _tapClass; 184 185 $(window).bind("touchstart", function(event) { 186 var target = event.target || window.target; 187 188 var bindElement = null; 189 if (target.tagName == "A" || $(target).hasClass(tapClass)) { 190 bindElement = $(target); 191 } else if ($(target).parents("a").length > 0) { 192 bindElement = $(target).parents("a"); 193 } else if ($(target).parents("." + tapClass).length > 0) { 194 bindElement = $(target).parents("." + tapClass); 195 } 196 197 if (bindElement != null) { 198 Hover().touchstartHoverElement(bindElement); 199 } 200 }); 201 } 202 , touchstartHoverElement : function (bindElement) { 203 bindElement.addClass(hoverClass); 204 bindElement.unbind("touchmove", Hover().touchmoveHoverElement); 205 bindElement.bind("touchmove", Hover().touchmoveHoverElement); 206 207 bindElement.unbind("touchend", Hover().touchendHoverElement); 208 bindElement.bind("touchend", Hover().touchendHoverElement); 209 } 210 , touchmoveHoverElement : function (event) { 211 $(this).removeClass(hoverClass); 212 } 213 , touchendHoverElement : function (event) { 214 $(this).removeClass(hoverClass); 215 } 216 } 217 Hover.fn.init.prototype = Hover.fn; 218 219 Hover().bind("hover", "tap"); 220} 221)(); 222 223 224 225 226//-------------------------------------------------------------------- 227// ³ðµ¦é 228//-------------------------------------------------------------------- 229$(function() { 230 $('#top_newitem ul li').matchHeight(); 231}); 232 233$(function() { 234 $('#item ul.product_list li').matchHeight(); 235}); 236 237$(function() { 238 $('#check_item ul.product_list li').matchHeight(); 239}); 240 241$(function() { 242 $('#search_item_list ul.goods_list li').matchHeight(); 243}); 244 245 246 247 248 249 250 251 252
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.