1var rule = ["åæµ·é","鿣®ç","岩æç","å®®åç","ä»å°å¸","ç§ç°ç","山形ç","ç¦å³¶ç","è¨åç","æ æ¨ç","群馬ç","å¼çç","åèç","æ±äº¬é½","ç¥å¥å·","横æµå¸","æ°æ½ç","æ°æ½å¸","å¯å±±ç","ç³å·ç","ç¦äºç","山梨ç","é·éç","é·éå¸","å²éç","é岡ç","æç¥ç","ä¸éç","æ»è³ç","京é½å¸","京é½åº","大éªåº","大éªå¸","å µåº«ç","å¥è¯ç","åæå±±","é³¥åç","å³¶æ ¹ç","岡山ç","åºå³¶ç","å±±å£ç","徳島ç","é¦å·ç","æåªç","é«ç¥ç","ç¦å²¡ç","ç¦å²¡å¸","ä½è³ç","é·å´ç","çæ¬ç","大åç","å®®å´ç","鹿å å³¶","æ²ç¸ç","使",""]; 2var locSet = {"åæµ·":{"head":"HOKKAIDO / TOHOKU","child":"åæµ·é / æ±å"},"鿣®":{"head":"HOKKAIDO / TOHOKU","child":"åæµ·é / æ±å"},"岩æ":{"head":"HOKKAIDO / TOHOKU","child":"åæµ·é / æ±å"},"å®®å":{"head":"HOKKAIDO / TOHOKU","child":"åæµ·é / æ±å"},"ä»å°":{"head":"HOKKAIDO / TOHOKU","child":"åæµ·é / æ±å"},"ç§ç°":{"head":"HOKKAIDO / TOHOKU","child":"åæµ·é / æ±å"},"ç¦å³¶":{"head":"HOKKAIDO / TOHOKU","child":"åæµ·é / æ±å"},"è¨å":{"head":"KANTOU","child":"颿±"},"æ æ¨":{"head":"KANTOU","child":"颿±"},"群馬":{"head":"KANTOU","child":"颿±"},"å¼ç":{"head":"KANTOU","child":"颿±"},"åè":{"head":"KANTOU","child":"颿±"},"æ±äº¬":{"head":"KANTOU","child":"颿±"},"ç¥å¥":{"head":"KANTOU","child":"颿±"},"横æµ":{"head":"KANTOU","child":"颿±"},"æ°æ½":{"head":"CHUBU / HOKURIKU","child":"ä¸é¨ / åé¸"},"å¯å±±":{"head":"CHUBU / HOKURIKU","child":"ä¸é¨ / åé¸"},"ç³å·":{"head":"CHUBU / HOKURIKU","child":"ä¸é¨ / åé¸"},"é·é":{"head":"CHUBU / HOKURIKU","child":"ä¸é¨ / åé¸"},"é岡":{"head":"CHUBU / HOKURIKU","child":"ä¸é¨ / åé¸"},"æç¥":{"head":"CHUBU / HOKURIKU","child":"ä¸é¨ / åé¸"},"ä¸é":{"head":"CHUBU / HOKURIKU","child":"ä¸é¨ / åé¸"},"æ»è³":{"head":"KINKI","child":"è¿ç¿"},"京é½":{"head":"KINKI","child":"è¿ç¿"},"大éª":{"head":"KINKI","child":"è¿ç¿"},"å µåº«":{"head":"KINKI","child":"è¿ç¿"},"åæ":{"head":"KINKI","child":"è¿ç¿"},"å³¶æ ¹":{"head":"CHUGOKU / SHIKOKU","child":"ä¸å½ / åå½"},"é³¥å":{"head":"CHUGOKU / SHIKOKU","child":"ä¸å½ / åå½"},"岡山":{"head":"CHUGOKU / SHIKOKU","child":"ä¸å½ / åå½"},"åºå³¶":{"head":"CHUGOKU / SHIKOKU","child":"ä¸å½ / åå½"},"å±±å£":{"head":"CHUGOKU / SHIKOKU","child":"ä¸å½ / åå½"},"徳島":{"head":"CHUGOKU / SHIKOKU","child":"ä¸å½ / åå½"},"æåª":{"head":"CHUGOKU / SHIKOKU","child":"ä¸å½ / åå½"},"ç¦å²¡":{"head":"KYUSYU / OKINAWA","child":"ä¹å· / æ²ç¸"},"ä½è³":{"head":"KYUSYU / OKINAWA","child":"ä¹å· / æ²ç¸"},"é·å´":{"head":"KYUSYU / OKINAWA","child":"ä¹å· / æ²ç¸"},"çæ¬":{"head":"KYUSYU / OKINAWA","child":"ä¹å· / æ²ç¸"},"鹿å ":{"head":"KYUSYU / OKINAWA","child":"ä¹å· / æ²ç¸"},"æ²ç¸":{"head":"KYUSYU / OKINAWA","child":"ä¹å· / æ²ç¸"}}; 3var mapObj = []; 4var locationPathObj = []; 5var latlngObj = []; 6 7 8 9jQuery(document).ready(function($) { 10 getShoplist(); 11}); 12 13function getShoplist(){ 14 15 var path = "https://www.cityhill.co.jp/shop/sl_lecoeurblanc.json", 16 // var path = "/shoplist/js/le.json", 17 obj = "", 18 nowLoc = "", 19 nowHead = "", 20 nowChild = "", 21 saveLoc = "", 22 flg = 0, 23 storeObj = "", 24 storeItem = "", 25 overseasFlg = 0, 26 outletObj = "", 27 outletItem = "", 28 storeObj = "", 29 storeItem = "", 30 storeFlg = ""; 31 32 $.ajax({ 33 url: path, 34 type: 'GET', 35 dataType: 'jsonp', 36 jsonpCallback: 'MTCallback', 37 }) 38 .done(function(json) { 39 40 //console.log(json); 41 42 // é½éåºç+α ã½ã¼ã 43 for(var i=0; i < json.length; i++){ 44 var index = rule.indexOf(json[i]["address"].substring(0, 3)); 45 json[i]["index"] = index; 46 } 47 48 json.sort(function(a,b){ 49 if(a["index"]<b["index"])return -1; 50 if(a["index"]>b["index"])return 1; 51 return 0; 52 }); 53 54 var locationArry = []; 55 56 for (var i = 0; i < json.length; i++) { 57 58 var title = json[i].title; 59 title = title.replace("ã«ã¯ã¼ã«ãã©ã³", ""); 60 title = title.replace("ã", ""); 61 title = title.replace(" ", ""); 62 var zip = json[i].zip; 63 var address = json[i].address; 64 var addressName = address.replace(/ã/g, "<br>"); 65 var tel = json[i].tel; 66 var blog_url = json[i].blog_url; 67 var nowLoc = address.substring(0, 2); 68 var thumbnail = json[i].thumbnail; 69 var store_url = json[i].store_url; 70 var tag_BrandLine = getBrandLine(json[i].tag_BrandLine); 71 var tag_Line_A = json[i].tag_Line_A; 72 73 $.each(locSet ,function(key, value) { 74 if(nowLoc == key) nowHead = value.head; 75 if(nowLoc == key) nowChild = value.child; 76 }); 77 78 var location = changesLocation(address); 79 80 if(saveLoc != nowHead){ 81 if (flg != 0) obj += '</ul></div>'; 82 83 if(!title.match(/ã¢ã¦ãã¬ãã/ig)) { 84 obj += '<div id="' + nowHead.toLowerCase().replace(" / ", "_") + '" class="area">'; 85 } 86 if(title.match(/ã¢ã¦ãã¬ãã/ig)) { 87 // ã¢ã¦ãã¬ããã®ã¨ã 88 // obj += '<p>OUTLET ' + nowHead + '<br><span>ã¢ã¦ãã¬ãã ' + nowChild + '</span></p>'; 89 }else{ 90 obj += '<p>' + nowHead + '<br><span>' + nowChild + '</span></p>'; 91 } 92 93 obj += '<ul>'; 94 locationArry.push(nowHead.toLowerCase().replace(" / ", "_")); 95 saveLoc = nowHead; 96 flg = 1; 97 } 98 99 if (address == "") { 100 101 storeItem += "<li>"; 102 storeItem += '<dl>'; 103 storeItem += '<dt>' + title + '</dt>'; 104 storeItem += '<dd class="buttons">'; 105 storeItem += '<a class="button" href="' + store_url + '" target="_blank">CHECK IT</a>'; 106 storeItem += '</dd>'; 107 storeItem += '</dl>'; 108 storeItem += "</li>"; 109 110 }else if(title.match(/ã¢ã¦ãã¬ãã/ig)){ 111 outletItem += '<li>'; 112 outletItem += '<dl>'; 113 outletItem += '<dt>' + title + '</dt>'; 114 outletItem += '<dd class="address">'; 115 outletItem += '<a href="https://maps.google.co.jp/maps?q=' + location + '&iwloc=J" target="_blank">' + zip + '<br>' + addressName + '<span class="map">MAP</span></a><br>'; 116 outletItem += 'TEL : ' + tel; 117 outletItem += '</dd>'; 118 if(tag_BrandLine && !title.match(/ã¢ã¦ãã¬ãã/ig)) outletItem += '<div class="areaBlock__brands"><p>åãæ±ããã©ã³ã</p>' + tag_BrandLine + '</div>'; 119 outletItem += '<a class="button" href="' + blog_url + '" target="_blank">STYLE</a>'; 120 if(tag_Line_A) outletItem += '<a class="button" href="' + tag_Line_A + '" target="_blank">LINE@</a>'; 121 outletItem += '</dd>'; 122 outletItem += '</dl>'; 123 outletItem += '</li>'; 124 }else{ 125 obj += '<li>'; 126 obj += '<dl>'; 127 obj += '<dt>' + title + '</dt>'; 128 obj += '<dd class="address">'; 129 obj += '<a href="https://maps.google.co.jp/maps?q=' + location + '&iwloc=J" target="_blank">' + zip + '<br>' + addressName + '<span class="map">MAP</span></a><br>'; 130 obj += 'TEL : ' + tel; 131 obj += '</dd>'; 132 if(tag_BrandLine && !title.match(/ã¢ã¦ãã¬ãã/ig)) obj += '<div class="areaBlock__brands"><p>åãæ±ããã©ã³ã</p>' + tag_BrandLine + '</div>'; 133 // if(tag_BrandLine) obj += '<div class="areaBlock__brands"><p>[åãæ±ããã©ã³ã]</p>' + tag_BrandLine + '</div>'; 134 135 // obj += '<a class="button" href="https://maps.google.co.jp/maps?q=' + location + '&iwloc=J" target="_blank">MAP</a>'; 136 obj += '<a class="button" href="' + blog_url + '" target="_blank">STYLE</a>'; 137 if(tag_Line_A) obj += '<a class="button" href="' + tag_Line_A + '" target="_blank">LINE@</a>'; 138 obj += '</dd>'; 139 obj += '</dl>'; 140 obj += '</li>'; 141 } 142 }; 143 144 // ãªã³ã©ã¤ã³ã¹ãã¢åãéããçºã®ã¿ã°...ã 145 obj += '</ul></div>'; 146 147 outletObj += '<div id="outlet" class="area">'; 148 outletObj += '<p>OUTLET<br><span>ã¢ã¦ãã¬ãã</span></p>'; 149 outletObj += '<ul>'; 150 outletObj += outletItem; 151 outletObj += '</ul>'; 152 outletObj += '</div>'; 153 154 storeObj += '<div id="online_store" class="area">'; 155 storeObj += '<p>ONLINE STORE<br><span>ãªã³ã©ã¤ã³ã¹ãã¢</span></p>'; 156 storeObj += '<ul>'; 157 storeObj += storeItem; 158 storeObj += '</ul>'; 159 storeObj += '</div>'; 160 161 obj += outletObj; 162 obj += storeObj; 163 164 $('.shopblock').append(obj); 165 166 // console.log(locationArry); 167 168 $('.shop').imagesLoaded(function(){ 169 for (var i = 0; i < locationArry.length; i++) { 170 locationFlat(locationArry[i]); 171 } 172 }); 173 174 }) 175 .error(function(json) { 176 console.log("e"); 177 }); 178} 179 180function changesLocation(location){ 181 location = location.replace("æ±äº¬é½å¤§ç°åºå¤§æ£®å1-6-16 ã¢ãã¬å¤§æ£® 3F", "ã¢ãã¬å¤§æ£®"); 182 location = location.replace("æ±äº¬é½å¤æ©å¸é¢æ¸1-10-1ã京çèè¹æ¡ã¶ä¸SCB館2F", "京çèè¹æ¡ã¶ä¸SCB館"); 183 location = location.replace("æç¥çåå¤å±å¸ä¸å¤®åºé¦3-15-13ãåå¤å±ã»ã³ãã©ã«ãã¼ã¯B1F", "åå
183¤å±ã»ã³ãã©ã«ãã¼ã¯"); 184 location = location.replace("京é½åºäº¬é½å¸ä¸äº¬åºå¯ºçºéåæ¡ä¸ã«è²å®åä¹çº605è¤äºå¤§ä¸¸ 3F", "è¤äºå¤§ä¸¸"); 185 location = location.replace("京é½å¸ä¸äº¬åºç丸éå¡©å°è·¯ä¸ã«ãæ±å¡©å°è·¯çºï¼ï¼ï¼çªå°äº¬é½ãã«ã¿ï¼¢ï¼ï¼¦", "京é½ãã«ã¿"); 186 location = location.replace("大éªåºå¤§éªå¸ååºæ¢ ç°3-1-3ãï¾ï½¸ï½±å¤§éª6F", "ã«ã¯ã¢å¤§éª"); 187 location = location.replace("大éªåºå¤§éªå¸å¤©çå¯ºåºæ²ç°é¢çº10-48 天ç寺ï¾ï½µï¾ï¾ï¾ï½»ï¾é¤¨3F", "天ç寺ï¾ï½µï¾ï¾ï¾ï½»"); 188 location = location.replace("é³¥åçé³¥å叿±åæ²»çº111-1ãã·ã£ããé³¥å1F", "ã·ã£ããé³¥å"); 189 location = location.replace("æåªçæ¾å±±å¸æ¹çºï¼-10-8 BE-FLAT1F", "æåªçæ¾å±±å¸æ¹çºï¼-10-8"); 190 location = location.replace("ç¦å²¡çç¦å²¡å¸ä¸å¤®åºå¤©ç¥2ä¸ç®å°ä¸1å· 050åºç»", "天ç¥å°ä¸è¡"); 191 return location; 192} 193 194 195function locationFlat(location){ 196 flatHeights1(3); 197 flatHeights2(3); 198 function flatHeights1(column){ 199 var sets = [], temp = []; 200 $('#' + location).find("li").each(function(i){ 201 temp.push(this); 202 if (i % column == column - 1){ // 1è¡ã®æ°ãæå®ãã1ãå¼ããæ°ãå³ã«æå® 203 sets.push(temp); 204 temp = []; 205 } 206 }); 207 if (temp.length) sets.push(temp); 208 $.each(sets, function(){ $(this).flatHeights(); }); 209 }; 210 function flatHeights2(column){ 211 var sets = [], temp = []; 212 $('#' + location).find("dl").each(function(i){ 213 temp.push(this); 214 if (i % column == column - 1){ // 1è¡ã®æ°ãæå®ãã1ãå¼ããæ°ãå³ã«æå® 215 sets.push(temp); 216 temp = []; 217 } 218 }); 219 if (temp.length) sets.push(temp); 220 $.each(sets, function(){ $(this).flatHeights(); }); 221 }; 222} 223 224function getBrandLine(tag_BrandLine){ 225 226 brandsObj = ""; 227 228 var brands = $(tag_BrandLine).map(function(index, elem) { 229 if ($(this).attr('href')) { 230 if($(this).find('span').attr('class') != "le_coeur_blanc") var brand = $(this).find('span').attr('class'); 231 }else{ 232 if($(this).attr('class') != "le_coeur_blanc") var brand = $(this).attr('class'); 233 } 234 return brand; 235 }).get(); 236 237 for (var i = 0; i < brands.length; i++) { 238 if (brands[i] != "le_coeur_blanc") { 239 240 if (brands[i] == "relaxing_line"){ 241 var title = "relaxing line"; 242 brandsObj += "<li class='" + brands[i] + "'>" + title + "</li>" 243 }else{ 244 245 if (brands[i] == "amelier_majestic_legon"){ 246 var title = "amelier", 247 link = "http://amelier.jp/"; 248 } 249 if (brands[i] == "le_coeur_blanc"){ 250 var title = "le.coeur blanc", 251 link = "https://lecoeurblanc.jp/"; 252 } 253 if (brands[i] == "perle_peche"){ 254 var title = "Perle Peche", 255 link = "http://perlepeche.jp/"; 256 } 257 258 brandsObj += "<a href='" + link + "' target='_blank'>" + title + "</a>" 259 260 } 261 } 262 } 263 264 return brandsObj; 265}
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.