1$(function(){ 2 var $form = $('form#filter'); 3 if ($form.length > 0) { 4 5 // çµãè¾¼ã¿ãªã³ã¯ 6 var $searchLinksNarrowDown = $('.narrowDown a'); 7 8 // çµãã®ãªã³ã¯ãã¯ãªã㯠9 $searchLinksNarrowDown.bind('click', function(event) { 10 var $target = $(this), 11 href = $target.attr("href"); 12 13 if (href == "") { 14 event.preventDefault(); 15 return false; 16 } 17 18 var elm = $('<a>', { href:href } )[0]; 19 if (elm.pathname == '/item' || elm.pathname == 'item') { 20 var key = ''; 21 var value = ''; 22 if (elm.search != '') { 23 var params = elm.search.replace('?', '').split('&'); 24 var param = params[0].split('='); 25 key = param[0]; 26 value = param[1]; 27 } 28 29 if ($target.parent().hasClass('checked') || $target.children().hasClass('checked')) { 30 // 鏿æ¸ã¿ 31 $form.find('input[name=' + key + ']').val(''); 32 33 if (key.indexOf('from') >= 0) { 34 $form.find('input[name=' + key.replace('from', 'to') + ']').val(''); 35 } 36 formSubmit(); 37 } else { 38 // æªé¸æ 39 if (elm.search == '') { 40 $form.find('input[name=goods_status_id]').val(''); 41 $form.find('input[name=new]').val(''); 42 $form.find('input[name=special]').val(''); 43 } else { 44 if (key == 'goods_status_id') { 45 $form.find('input[name=new]').val(''); 46 $form.find('input[name=special]').val(''); 47 } else if (key == 'special') { 48 $form.find('input[name=new]').val(''); 49 $form.find('input[name=goods_status_id]').val(''); 50 } else if (key == 'new') { 51 $form.find('input[name=goods_status_id]').val(''); 52 $form.find('input[name=special]').val(''); 53 } 54 $form.find('input[name=' + key + ']').val(value); 55 // ä¾¡æ ¼å¯¾å¿ 56 if (params[1]){ 57 var param = params[1].split('='); 58 var key2 = param[0]; 59 var value2 = param[1]; 60 $form.find('input[name=' + key2 + ']').val(value2); 61 } 62 } 63 formSubmit(); 64 } 65 } 66 67 return false; 68 }); 69 70 function formSubmit() { 71 $form.find('input[value=""]').remove(); 72 73 $form.find('input[type=hidden]').each(function() { 74 $(this).val(decodeURIComponent($(this).val())); 75 }); 76 $form.submit(); 77 } 78 79 // categoryã¡ãã¥ã¼ 80 $('#category_pc').bind('click', function() { 81 var $target = $("#category_pc"); 82 toggleMenu($target); 83 }); 84 $('#category_sp').bind('click', function() { 85 var $target = $("#category_sp"); 86 toggleMenu($target); 87 }); 88 89 // sceneã¡ãã¥ã¼ 90 $('#scene_pc').bind('click', function() { 91 var $target = $("#scene_pc"); 92 toggleMenu($target); 93 }); 94 $('#scene_sp').bind('click', function() { 95 var $target = $("#scene_sp"); 96 toggleMenu($target); 97 }); 98 99 // colorã¡ãã¥ã¼ 100 $('#color_pc').bind('click', function() { 101 var $target = $("#color_pc"); 102 toggleMenu($target); 103 }); 104 $('#color_sp').bind('click', function() { 105 var $target = $("#color_sp"); 106 toggleMenu($target); 107 }); 108 109 // priceã¡ãã¥ã¼ 110 $('#price_pc').bind('click', function() { 111 var $target = $("#price_pc"); 112 toggleMenu($target); 113 }); 114 $('#price_sp').bind('click', function() { 115 var $target = $("#price_sp"); 116 toggleMenu($target); 117 }); 118 119 function toggleMenu($target) { 120 $contents = $target.next("ul"); 121 if ($contents.css('display') == 'none'){ 122 $contents.stop().slideDown("normal", function() { 123 }); 124 $target.addClass('down'); 125 }else{ 126 $contents.stop().slideUp("normal", function() { 127 }); 128 $target.removeClass('down'); 129 } 130 } 131 132 // çµãè¾¼ã¿é¸æä¸ã®å ´åãã¡ãã¥ã¼ãéãã¦ãã 133 if ($form.find('input[name=scene_id]').val()){ 134 $('#scene_pc').click(); 135 $('#scene_sp').click(); 136 } 137 if ($form.find('input[name=color_search_group_id]').val()){ 138 $('#color_pc').click(); 139 $('#color_sp').click(); 140 } 141 if ($form.find('input[name=price_from]').val() || $form.find('input[name=price_to]').val()){ 142 $('#price_pc').click(); 143 $('#price_sp').click(); 144 } 145 } 146 147 //ã«ã©ã¼ãããããã¼ã¢ã¯ã·ã§ã³ 148 var $chip = $(".goodsList .chip"), 149 changeurl,changeimg,$thischip; 150 151 $chip.hover(function(){ 152 153 $thischip = $(this), 154 changeurl = $thischip.data("url"), 155 changeimg = $thischip.data("image"); 156 157 if (changeimg.length){ 158 $thischip.parent().parent().parent().children('.images').children('.itemImage').children('a').children('img').attr('src',changeimg); 159 $thischip.parent().parent().parent().children('.images').children('.itemImage').children('a').attr('href',changeurl); 160 $thischip.parent().parent().parent().children('.goodsNameWrapper').children('a').attr('href',changeurl); 161 } 162 }); 163 164 //ã«ã©ã¼ãããããã¼ã¢ã¯ã·ã§ã³(recommend)
165 var $reco_chip = $(".recommend-list .color-list > li"), 166 changeurl,changeimg,$thischip; 167 168 $reco_chip.hover(function(){ 169 170 $thischip = $(this), 171 changeurl = $thischip.data("url"), 172 changeimg = $thischip.data("image"); 173 174 if (changeimg.length){ 175 $thischip.parent().parent().children('.img').children('.item_checked__img').attr('src',changeimg); 176 $thischip.parent().parent().children('.item-name').children('a').attr('href',changeurl); 177 } 178 }); 179 180 //ãµã ãã¤ã«ããã¼ã¢ã¯ã·ã§ã³ 181// var $image = $(".image"), 182// changeimg,beforeimg,thisimg; 183// 184// $image.hover(function(){ 185// 186// $thisimg = $(this), 187// changeimg = $thisimg.data("image"); 188// beforeimg = $thisimg.children('img').attr("src"); 189// if (changeimg.length){ 190// $thisimg.children('img').attr('src',changeimg); 191// $thisimg.data('image',beforeimg); 192// } 193// }); 194 var $image = $("img.switch_image"), 195 changeimg,beforeimg,$thisimg; 196 197 $image.hover(function(){ 198 // iphone safari ãã¹ããªã¼ããã¯å¯¾å¿ 199 var windowSize = (new WindowSize()).get(); 200 if (windowSize != "large") { 201 return; 202 } 203 204 $thisimg = $(this); 205 changeimg = $thisimg.data("image"); 206 beforeimg = $thisimg.attr("src"); 207 if (changeimg.length){ 208 $thisimg.attr('src',changeimg); 209 $thisimg.data('image',beforeimg); 210 } 211 }); 212 213 214 //ãã£ã«ã¿ã¼ã«ã©ã¼ãããããã¼ã¢ã¯ã·ã§ã³ 215 $(".color_select li a").hover( 216 function () { 217 $('.color_name').text('ï¼'+$(this).text()); 218 }, 219 function () { 220 $('.color_name').text(''); 221 } 222 ); 223 224 var $checked_color_select = $(".color_select:first li.checked a"); 225 if ($checked_color_select.length > 0) { 226 $('.color_name').text('ï¼'+$checked_color_select.text()); 227 } 228 229 // small 230 var selector = '.open-submenu'; 231 var closeselector = '.close-reveal'; 232 var submenuselector = '.header-submenu'; 233 $(selector).bind('click', function() { 234 var windowSize = (new WindowSize()).get(); 235 if (windowSize == "small") { 236 var $target = $(this); 237 id = $target.data('open_id'); 238 if (typeof id != 'undefined') { 239 $('#' + id).foundation('reveal', 'open', { 240 'animation' : 'fade' 241 }); 242 return false; 243 } 244 } 245 }); 246 247 $(closeselector).bind('click', function() { 248 var $target = $(this); 249 id = $target.parents('.reveal-modal').attr('id'); 250 251 $('#' + id).foundation('reveal', 'close'); 252 }); 253 254 $(window).bind('resize', function () { 255 var windowSize = (new WindowSize()).get(); 256 if (windowSize != "small") { 257 $(closeselector).trigger('click'); 258 } 259 }); 260 261 //ã¹ã©ã¤ãã¼é¢é£ 262 $('.imageArea').flexslider({ 263 controlNav:true, 264 slideshow:false, 265 animation:"slide", 266 directionNav:true, 267 prevText:'', 268 nextText:'', 269 }); 270 // ã¹ã©ã¤ãã¼ç»å表示 271 $('.slider_main').show(); 272}); 273 274$(function(){ 275 // æ¤ç´¢æ¡ä»¶ããªã¼ãã³ 276 (function(){ 277 var $target = $(".searchArea .searchItem"); 278 279 $(window).bind('resize', attachSearchItemEvent); 280 281 attachSearchItemEvent(); 282 283 function attachSearchItemEvent() { 284 var windowSize = (new WindowSize()).get(); 285 if (windowSize != "small") { 286 $target.unbind('mouseover', openSearchItem); 287 $target.unbind('mouseout', closeSearchItem); 288 289 $target.bind('mouseover', openSearchItem); 290 $target.bind('mouseout', closeSearchItem); 291 292 $target.find("a").unbind('click', clickSearchItem); 293 } else { 294 $target.unbind('mouseover', openSearchItem); 295 $target.unbind('mouseout', closeSearchItem); 296 297 $target.find("a").unbind('click', clickSearchItem); 298 $target.find("a").bind('click', clickSearchItem); 299 } 300 } 301 302 303 function clickSearchItem(event) { 304 var $target = $(event.currentTarget), 305 $contents = $target.next("ul"); 306 307 if ($contents.css("display") == "none") { 308 $(".searchItem ul").hide(); 309 openSearchItem(event); 310 } else { 311 closeSearchItem(event); 312 } 313 } 314 315 function openSearchItem(event) { 316 var $eventTarget = $(event.currentTarget); 317 var $target = null; 318 if ($eventTarget.hasClass("searchItem")) { 319 $target = $eventTarget.find('a.open_select'); 320 } else { 321 $target = $eventTarget; 322 } 323 324 $contents = $target.next("ul"); 325 $contents.stop().slideDown("fast", function() { 326 }); 327 } 328 329 function closeSearchItem(event) { 330 var $eventTarget = $(event.currentTarget); 331 var $target = null; 332 if ($eventTarget.hasClass("searchItem")) { 333 $target = $eventTarget.find('a.open_select'); 334 } else { 335 $target = $eventTarget; 336 } 337 338 $contents = $target.next("ul"); 339 $contents.stop().slideUp("fast", function() { 340 }); 341 } 342 })(); 343}); 344 345$(function(){ 346 // å¨åº«ã®ãããªã鏿 347 $('#stock-check').click(function() { 348 var stock_flg = ''; 349 if ($(this).prop("checked") == true) { 350 stock_flg = 1; 351 } 352 $('#form_sold').val(stock_flg); 353 $('#filteringForm').submit(); 354 return false;
355 }); 356});
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.