PageSourceSearch

https://lecoeurblanc.jp/shoplist/js/shoplist.js?ver=1

js lecoeurblanc.jp collected 2026-10-02 07:46:38 UTC 13,486 bytes, 265 lines download raw bytes

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 + '&amp;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 + '&amp;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 + '&amp;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("京都市下京区烏丸通塩小路下ル 東塩小路町902番地京都ポルタB1F", "京都ポルタ");
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("愛媛県松山市湊町4-10-8 BE-FLAT1F", "愛媛県松山市湊町4-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.