1$(window).load(function(){ 2 3 var def_width = 0; 4 var initPC = false, initSP = false; 5 //colorboxã®aã¿ã°ã¯ãªã³ã¯ã¤ãã³ãæ¶ã 6 $("a.cboxElement").on("click",function(event){ 7 event.preventDefault(); 8 }); 9 var speed = 0; 10 //ãã¼ãæã«URLä¸ã«ããã·ã¥ãåå¨ããå ´åã¯ãã®å ´æã¾ã§ã¹ã¯ãã¼ã« 11 if(location.hash != "" && $(location.hash).length > 0){ 12 var target = $(location.hash); 13 scrollTo(target); 14 } 15 //ãµã¤ããªã³ã¯å¯¾å¿ 16 $('a[href*="#"]').click(function(){ 17 var href = $(this).attr("href"); 18 var split = href.split("#"); 19 if(split[0] != "" && $("#"+split[1]).length > 0){ 20 target = $("#"+split[1]); 21 scrollTo(target); 22 return false; 23 } 24 }); 25 function scrollTo(target){ 26 var position = target.offset().top - 120; 27 $("html, body").animate({scrollTop:position}, speed, "swing"); 28 } 29 30 $(window).resize(function() { 31 32 // tile 33 /*$('dl.narrowSearch dt,dl.narrowSearch dd ul.subCategory li').click(function() { 34 $("#wrapper.list .narrowSearch ul.subCategory li").tile(2); 35 });*/ 36 37 var w = $(window).width(); 38 var x = 751; 39 40 if (def_width == w) { 41 return; 42 } else { 43 def_width = w; 44 } 45 46 if (w > x) { 47 //PC 48 if (!initPC) { 49 initPC = true; 50 setEventPCUser(); 51 } 52 } else { 53 //SP 54 if (!initSP) { 55 initSP = true; 56 setEventSPUser(); 57 } 58 } 59 }).trigger('resize'); 60 61 62 63 // PC -------------------------------------------------------------------- 64 function setEventPCUser() { 65 // slider 66 $('#pickUp').each(function() { 67 $('#pickUp ul').bxSlider({ 68 pager: false, 69 slideWidth: 220, 70 minSlides: 1, 71 maxSlides: 3, 72 moveSlides: 1, 73 slideMargin: 14 74 }); 75 }); 76 77 $('.itemMenu').each(function() { 78 $(".itemMenu ul li dd span").tile(2); 79 }); 80 81 // tile 82 /*$('dl.narrowSearch dt, dl.narrowSearch dd ul.subCategory li').click(function() { 83 $("#wrapper.list .narrowSearch ul.subCategory li").tile(2); 84 $("#wrapper.list .narrowSearch ul.setCategory li").not(".ptitle").tile(3); 85 $("#wrapper.list .narrowSearch ul.setCategory li.ptitle").prev("li").css({"height":"inherit"}); 86 });*/ 87 88 if($('.cboxElement').length){ 89 $(".cboxElement").colorbox(); 90 } 91 } 92 93 94 // SP -------------------------------------------------------------------- 95 function setEventSPUser() { 96 // slider 97 $('#pickUp').each(function() { 98 $('#pickUp ul').bxSlider({ 99 pager: false 100 }); 101 }); 102 103 // tile 104 /*$('dl.narrowSearch dt, dl.narrowSearch dd ul.subCategory li').click(function() { 105 $("#wrapper.list .narrowSearch ul.subCategory li").tile(2); 106 $("#wrapper.list .narrowSearch ul.setCategory li:not(.ptitle) ").tile(2); 107 $("#wrapper.list .narrowSearch ul.setCategory li.ptitle").prev("li").css({"height":"inherit"}); 108 });*/ 109 110 if($('.cboxElement').length){ 111 $(".cboxElement").colorbox({ 112 innerWidth:"82%" 113 }); 114 } 115 116 } 117});
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.