1$(document).ready(function(){ 2 3 4 5 6//rollover for body class 7 var bodyClass;// = jQuery("body").attr("class"); 8 9 switch(true) 10 { 11 case ($("body").hasClass("index")): 12 bodyClass = "index"; 13 break; 14 15 case ($("body").hasClass("otoku")): 16 bodyClass = "otoku"; 17 break; 18 19 case ($("body").hasClass("shop")): 20 bodyClass = "shop"; 21 break; 22 23 case ($("body").hasClass("campaign")): 24 bodyClass = "campaign"; 25 break; 26 27 case ($("body").hasClass("chirashi")): 28 bodyClass = "chirashi"; 29 break; 30 31 case ($("body").hasClass("shopnet")): 32 bodyClass = "shopnet"; 33 break; 34 35 case ($("body").hasClass("gallery")): 36 bodyClass = "gallery"; 37 break; 38 } 39 40 if(0 < jQuery("#global_nav img[src*="+bodyClass+"_off]").length){ 41 jQuery("#global_nav img[src*="+bodyClass+"_off]").addClass("current").attr("src",jQuery("#global_nav img[src*="+bodyClass+"_off]").attr("src").replace("_off.", "_on.")); 42 } 43 if(0 < jQuery("#nav_area img[src*="+bodyClass+"_off]").length){ 44 jQuery("#nav_area img[src*="+bodyClass+"_off]").addClass("current").attr("src",jQuery("#nav_area img[src*="+bodyClass+"_off]").attr("src").replace("_off.", "_on.")); 45 } 46 47 48//rollover 49 $("a img").filter(function() { 50 return /_on\.[^\.]+$/i.test($(this).attr('src')) 51 }).addClass("current"); 52 53 $("a img").mouseover(function(){ 54 if ($(this).attr("src").match(/_off./)){ 55 $(this).attr("src",$(this).attr("src").replace("_off.", "_on.")); 56 return; 57 }else if($(this).attr("src").match(/btn_/) || $(this).attr("src").match(/bnr_/) ){ 58 $(this).fadeTo("1",0.7); 59 return; 60 } 61 }); 62 63 $("a img[class!='current']").mouseout(function(){ 64 if ($(this).attr("src").match(/_on\.[^\.]+$/)){ 65 $(this).attr("src",$(this).attr("src").replace("_on.", "_off.")); 66 return; 67 }else if($(this).attr("src").match(/btn_/) || $(this).attr("src").match(/bnr_/) ){ 68 $(this).fadeTo("1",1); 69 return; 70 } 71 }); 72 73// popup 74// class="popup400x600" -> window.open(this.href,"popup","width=400,height=600,...) 75 $("a[class^='popup']").click(function(){ 76 var className = $(this).attr("class").match(/^popup([0-9]{1,})x([0-9]{1,})/); 77 var width = RegExp.$1; 78 var height = RegExp.$2; 79 var state = "width="+width+",height="+height+","; 80 state += "location=no,toolbar=no,directories=no,"; 81 state += "status=yes,menubar=no,scrollbars=yes,resizable=yes,alwaysRaised=yes"; 82 window.name = "root"; 83 window.open(this.href,className[0],state); 84 return false; 85 }); 86 // open in popup parent window. 87 // add class="openParentWin" on a-tag in a popup window. 88 $("a.openParentWin").click(function(){ 89 window.open(this.href,"root"); 90 return false; 91 }); 92 93// target _blank 94 var domains = [document.domain,'www.aeonretail.jp',]; 95 var domain_selector = "",left_str= ":not([@href^=http://",left_str_https= ":not([@href^=https://",right_str = "])"; 96 97 domain_selector = left_str+domains.join(right_str+left_str)+right_str; 98 domain_selector+= left_str_https+domains.join(right_str+left_str_https)+right_str; 99 $("a[@href^=http][class!^='popup']"+domain_selector+",area[@href^=http][class!^='popup']"+domain_selector).click(function(){ 100 window.open(this.href,"_blank"); 101 return false; 102 }); 103 104 $("a.external").click(function(){ 105 window.open(this.href,"_blank"); 106 return false; 107 }); 108 109// bnr_switcher 110// set banner under the ul has id "bnr_switcher" 111 if($("#bnr_switch li").length != 0) 112 { 113 $("#bnr_switch li").each(function() 114 { 115 $(this).hide(); 116 }); 117 118 var n=Math.floor( $("#bnr_switch li").length*Math.random()); 119 $("#bnr_switch li:eq("+n+")").show(); 120 } 121 122// Gallery 123 124 $("#movie_list li:nth-child:even").addClass("even"); 125 $("#movie_list li:nth-child:odd").addClass("odd"); 126 127 $("#movie_list li:even").each(function(){ 128 129 var nH = $(this).children().children("dt").height(); 130 var mH = $(this).next().children().children("dt").height(); 131 132 if(nH != mH) { 133 if(nH > mH){ 134 $(this).next().children().children("dt").height(nH); 135 }else{ 136 $(this).children().children("dt").height(mH); 137 } 138 } 139 }); 140 141// map link 142 set_map(); 143 144 /* y[Wgbv{^ */ 145 $(window).scroll(function(){ 146 var 147 s = $(this).scrollTop(), 148 m = 300; 149 if(s > m) { 150 $(".page_top_sub").fadeIn('slow'); 151 } else if(s < m) { 152 $(".page_top_sub").fadeOut('slow'); 153 } 154 }); 155 156 // js_CNg 157 redirect(); 158 159 function redirect(){ 160 var deviceWidth = window.innerWidth; 161 var $body = $('body'); 162 if ($('body').hasClass('page_redirect')) { 163 $('meta[name="viewport"]').remove(); 164 $('head').prepend('<meta name="viewport" content="980px">'); 165 }
166 if(deviceWidth <= 767) { 167 var referrer = ""; 168 if (document.referrer) { 169 referrer = "?referrer=" + encodeURIComponent(document.referrer); 170 } 171 if($body.hasClass('js-campaign')) { 172 location.href = "/sp/campaign/" + referrer; 173 } else if($body.hasClass('js-otoku')) { 174 location.href = "/sp/otoku/" + referrer; 175 } else if($body.hasClass('js-goodscampaign')) { 176 location.href = "/sp/goodscampaign/" + referrer; 177 } else if($body.hasClass('js-gallery')) { 178 location.href = "/sp/gallery/" + referrer; 179 } else if($body.hasClass('js-netshop')) { 180 location.href = "/sp/netshop/" + referrer; 181 } else if($body.hasClass('js-shop')) { 182 location.href = "/sp/shop/" + referrer; 183 } else if($body.hasClass('js-calendar_next')) { 184 location.href = "/sp/otoku/aeon_calendar/next.html" + referrer; 185 } else if($body.hasClass('js-calendar_index')) { 186 location.href = "/sp/otoku/aeon_calendar/" + referrer; 187 } 188 } 189 } 190 191 /* 192 htmlȺÉ#AJ[ª éêÉN® 193 shop_nav̪¾¯}[Wæé 194 --------------------------------------------------------------------------*/ 195 196 if(location.href.indexOf(".html#") > 0) 197 { 198 var url=location.href; 199 var pattern=".html#"; 200 var result=url.match(pattern); 201 202 var local=url.substr(result.index+5); 203 204 $.scrollTo(local, 800,{offset:-$("div.nav_scroll").height()-15}); 205 } 206 207 208 $("a[href^=#]").click(function(){ 209 if ($("div#contents").attr("class") == "shoplist") 210 { 211 $.scrollTo( $($(this).attr('href').toString()), 800,{offset:-$("div.nav_scroll").height()-60}); 212 } 213 else 214 { 215 $.scrollTo( $($(this).attr('href').toString()), 800,{}); 216 } 217 return false; 218 }); 219 220}); 221 222$.easing.elasout = function(x, t, b, c, d) { 223 var s=1.70158;var p=0;var a=c; 224 if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3; 225 if (a < Math.abs(c)) { a=c; var s=p/4; } 226 else var s = p/(2*Math.PI) * Math.asin (c/a); 227 return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b; 228}; 229 230function winpopup(url,type){ 231 switch(type){ 232 case "1" : 233 window.open(url,"pupup01","width=630,height=630,location=no,toolbar=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,alwaysRaised=yes"); 234 break; 235 case "2" : 236 window.open(url,"popup02","width=630,height=540,location=no,toolbar=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,alwaysRaised=yes"); 237 break; 238 case "3" : 239 window.open(url,"popup03","width=410,height=615,location=no,toolbar=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,alwaysRaised=yes") 240 break; 241 case "4" : 242 window.open(url,"popup04","width=530,height=640,location=no,toolbar=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,alwaysRaised=yes") 243 break; 244 } 245 return ; 246} 247 248function openken(form, sel) { 249 adrs = sel.options[sel.selectedIndex].value; 250 if(adrs != ""){ 251 window.open(adrs,"_blank"); 252 } 253} 254 255function set_map(){ 256 if($("img[usemap]").length !=0){ 257 var str = $("img[usemap]").attr("usemap").substring(1); 258 $("img[usemap]").attr("id",str+"00") 259 var num = $("map[name="+str+"] area").length; 260 for (i=1;i<num+1;i++){ 261 $("map[name="+str+"] :nth-child("+i+")").addClass("maplinks ").attr("id",str+"0"+i) 262 } 263 $("area.maplinks").mouseover(function(){ 264 $("img[usemap=#"+str+"] ").attr("src",$("img[usemap=#"+str+"] ").attr("src").replace($("img[usemap=#"+str+"] ").attr("id")+".",$(this).attr("id")+".")); 265 }); 266 $("area.maplinks").mouseout(function(){ 267 $("img[usemap=#"+str+"] ").attr("src",$("img[usemap=#"+str+"] ").attr("src").replace($(this).attr("id")+".",$("img[usemap=#"+str+"] ").attr("id")+".")); 268 }); 269 } 270}
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.