CINXE.COM
小金井・国分寺・国立のコワーキングスペース・シェアオフィス一覧 - OFFICE PASS 日経のシェアオフィス・コワーキングスペースサービス
<!DOCTYPE html> <html lang="ja"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0"> <meta name="format-detection" content="telephone=no"> <meta name="format-detection" content="email=no"> <title>小金井・国分寺・国立のコワーキングスペース・シェアオフィス一覧 - OFFICE PASS 日経のシェアオフィス・コワーキングスペースサービス</title> <meta name="keywords" content=""> <meta name="author" content="日経, Nikkei"> <meta name="facebook-domain-verification" content="9wq8y9i53vn6w9u1ya6mgseuiju7be" /> <meta name="facebook-domain-verification" content="9k2216t5d3npla827j5tp3p9kbjnf3" /> <link rel="stylesheet" type="text/css" href="/common/bootstrap.min.css"> <link rel="stylesheet" type="text/css" href="/common/resource/css/utility.css"> <link rel="stylesheet" href="/common/resource/css/common.css"> <link rel="apple-touch-icon" href="https://officepass.nikkei.com/apple-touch-icon.png"> <link rel="canonical" href="https://officepass.nikkei.com/locations/tokyo/012/"> <script type="text/javascript" src="/common/jquery-3.2.1.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/picturefill/3.0.3/picturefill.min.js"></script> <meta name="description" content="小金井・国分寺・国立にあるシェアオフィス・コワーキングスペースの一覧です。"> <!-- OGP --> <meta property="og:title" content="小金井・国分寺・国立のコワーキングスペース・シェアオフィス一覧 - OFFICE PASS 日経のシェアオフィス・コワーキングスペースサービス"> <meta property="og:type" content="website"> <meta property="og:url" content="https://officepass.nikkei.com/locations/tokyo/012/"> <meta property="og:image" content="https://officepass.nikkei.com/common/img/ogp.png" /> <meta property="og:site_name" content="OFFICE PASS 日経のシェアオフィス・コワーキングスペースサービス"> <meta property="og:description" content=""> <meta property="fb:app_id"> <!-- for Twitter --> <meta name="twitter:image" content="https://officepass.nikkei.com/common/img/ogp.png"> <meta name="twitter:card" content="summary_large_image"> <meta name="twitter:description" content=""> <!-- Google Tag Manager --><script>(function (w, d, s, l, i) { w[l] = w[l] || []; w[l].push({ 'gtm.start': new Date().getTime(), event: 'gtm.js' }); var f = d.getElementsByTagName(s)[0], j = d.createElement(s), dl = l != 'dataLayer' ? '&l=' + l : ''; j.async = true; j.src = 'https://www.googletagmanager.com/gtm.js?id=' + i + dl; f.parentNode.insertBefore(j, f); })(window, document, 'script', 'dataLayer', 'GTM-T5W3WPH');</script> <!-- End Google Tag Manager --> <script type="text/javascript" src="/common/bootstrap.min.js"></script> <script type="text/javascript" src="/user/js/oputil.js"></script> <script type="text/javascript" src="/user/js/opmap.js"></script> <script type="application/ld+json"> { "@context": "https://schema.org", "@type": "BreadcrumbList", "itemListElement": [ { "@type": "ListItem", "position": 1, "name": "TOP", "item": "https://officepass.nikkei.com/" }, { "@type": "ListItem", "position": 2, "name": "オフィス検索", "item": "https://officepass.nikkei.com/user/search.php" }, { "@type": "ListItem", "position": 3, "name": "全国", "item": "https://officepass.nikkei.com/locations/" }, { "@type": "ListItem", "position": 4, "name": "東京都", "item": "https://officepass.nikkei.com/locations/tokyo/" }, { "@type": "ListItem", "position": 5, "name": "小金井・国分寺・国立", "item": "https://officepass.nikkei.com/locations/tokyo/012/" } ] } </script> </head> <body style="overflow-y: visible;"> <!-- Google Tag Manager (noscript) --> <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-T5W3WPH" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> <!-- End Google Tag Manager (noscript) --> <!-- ===== header ====== --> <header class="ly_header inc_header"> <div class="inner"> <div class="logo"> <a href="/"> <div class="logoImg"> <img class="officepassLogo" src="/common/img/new_logo_twoline.svg" alt="NIKKEI OFFICE PASS"> </div> </a> <button type="button" class="spMenuBtn" id="headerSpMenuBtn" aria-expanded="false" aria-controls="headerSiteFunctions" aria-label="メニュー"><i></i><span>メニュー</span></button> <a class="spLoginBtn" href="https://id.nikkei.com/v2/connect/authorization?response_type=code&state=2&nonce=KqMdfZgKV&client_id=OFFICEP&scope=openid+profile_nid&redirect_uri=https://officepass.nikkei.com/php/nikkei_if.php&required_attributes=name+job_info">ログイン</a> </div> </div> <!-- siteFunctions --> <div class="siteFunctions" id="headerSiteFunctions"> <div class="drawer"> <div class="headerToolDialog" id="headerSearchDialog" role="dialog" aria-labelledby="headerSpRegionBtn" aria-hidden="true"></div> </div><!-- /drawer --> </div><!-- /siteFunctions --> </header> <nav id="globalNav" class="ly_globalNav inc_globalnav"> <ul class="menuLv1"> <li class="parent"><a href="javascript:;">サービス</a> <div class="subGnav"> <div class="inner"> <div class="menus"> <ul class="menuLv2"> <li><a class="subGnavAnc" href="/#about">NIKKEI OFFICE PASSとは</a></li> <li><a class="subGnavAnc" href="/#merit">導入メリット</a></li> <li><a class="subGnavAnc" href="/#use_case">利用シーン</a></li> <li><a class="subGnavAnc" href="/#how_to_use">利用方法</a></li> <li><a class="subGnavAnc" href="/#network">全国に広がる1000カ所以上の拠点</a></li> <li><a class="subGnavAnc" href="/#case_study">導入事例</a></li> <li><a class="subGnavAnc" href="/#information">お知らせ</a></li> </ul> </div> </div> </div> </li> <li class="index"><a href="/plan/">料金プラン</a></li> <li class="index"><a href="/user/search.php">オフィス検索</a></li> <li class="index"><a href="/download/">お役立ち資料</a></li> <li class="index"><a href="https://officepass-service.nikkei.com/magazine/">マガジン</a></li> <li class="indexRequest"><a href="https://officepass.nikkei.com/user/inquiry.php" target="_blank" id="form_top_header_A1"><span class="_tabHide">申込・問合せ<br>資料請求</span><span class="_tabShow">申込・問合せ・資料請求</span></a></li> <li class="indexLogin"><a href="https://id.nikkei.com/v2/connect/authorization?response_type=code&state=2&nonce=KqMdfZgKV&client_id=OFFICEP&scope=openid+profile_nid&redirect_uri=https://officepass.nikkei.com/php/nikkei_if.php&required_attributes=name+job_info">ログイン</a> </li> </ul><!-- /menuLv1 --> </nav> <script type="application/ld+json"> [{ "@context": "https://schema.org", "@type": "SiteNavigationElement", "hasPart": [ { "@type": "WebPage", "name": "NIKKEI OFFICE PASSとは", "url": "https://officepass.nikkei.com/#about" }, { "@type": "WebPage", "name": "導入メリット", "url": "https://officepass.nikkei.com/#merit" }, { "@type": "WebPage", "name": "利用シーン", "url": "https://officepass.nikkei.com/#use_case" }, { "@type": "WebPage", "name": "利用方法", "url": "https://officepass.nikkei.com/#how_to_use" }, { "@type": "WebPage", "name": "全国に広がる400カ所以上の拠点", "url": "https://officepass.nikkei.com/#network" }, { "@type": "WebPage", "name": "導入事例", "url": "https://officepass.nikkei.com/#case_study" }, { "@type": "WebPage", "name": "お知らせ", "url": "https://officepass.nikkei.com/#information" }, { "@type": "WebPage", "name": "料金プラン", "url": "https://officepass.nikkei.com/plan/" }, { "@type": "WebPage", "name": "オフィス検索", "url": "https://officepass.nikkei.com/user/search.php" }, { "@type": "WebPage", "name": "個人プラン", "url": "https://officepass.nikkei.com/personal/" }, { "@type": "WebPage", "name": "申込・問合せ・資料請求", "url": "https://officepass.nikkei.com/user/inquiry.php" }, { "@type": "WebPage", "name": "ログイン", "url": "https://id.nikkei.com/v2/connect/authorization?response_type=code&state=2&nonce=KqMdfZgKV&client_id=OFFICEP&scope=openid+profile_nid&redirect_uri=https://officepass.nikkei.com/php/nikkei_if.php&required_attributes=name+job_info" } ] }] </script> <!-- ===== /header ====== --> <!-- ===== contents ====== --> <main id="contents" class="ly_mainContents"> <div class="modal fade modal_style" id="officeModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true"> <div class="bl_cardOfficeWrap modal-dialog modal-dialog-centered" role="document" style="max-width: none; margin-top: 0px; margin-bottom: 0px;"> <div class="bl_cardUnit -col1 modal-content modal_radius max_width_340" style="position: absolute; left: 50%; transform: translateX(-50%);"> <div id="direction-icon-wrapper" style="position: absolute; top: 50%; left: 80%; z-index: 9999;"> <a href="" id="officeModalLinkDirection" target="_blank"> <img src="/common/img/directions.svg" class="direction-icon" alt="distination-icon"> </a> </div> <a href="" class="bl_card" id="officeModalLinkDetail2" target="_blank" style="text-decoration: none;"> <figure id="modalImg" class="cardImg"></figure> <div class="cardBody"> <div data-mh="mh" style="height: 250px;"> <div class="area-label" style="top: 200px;"> <span id="modalNearStation" class="near_station_b"></span> </div> <div class="office-name"> <span id="modalOfficeDescript"></span><p id="modalOfficeName"></p> </div> <div class="office-hours"> <p id="officeBusinessHour3"></p> </div> <div class="office-plan"> <p id="premiumOffice">個人プレミアムプラン、法人契約のみご利用可</p> </div> <div id="modalStockInfo"></div> </div> </div> </a> </div> </div> </div> </div> <div class="ly_container -headingLv1 -typeA"> <div class="ly_inner"> <h1 class="bl_headingLv1 -spSmall"><span data-system="state">小金井・国分寺・国立</span>の<br> コワーキングスペース・シェアオフィス一覧</h1> </div> </div><!-- /ly_container--> <div class="ly_container breadcrumbHeader -pcPbMin"> <div class="ly_inner"> <ul class="breadcrumb__list"> <li class="breadcrumb__item"> <a href="/">TOP</a> </li> <li class="breadcrumb__item"> <a href="/user/search.php">オフィス検索</a> </li> <li class="breadcrumb__item"><a href="/locations/">全国</a></li> <li class="breadcrumb__item"><a href="/locations/tokyo/"><span data-system="state">東京都</span></a></li> <li class="breadcrumb__item"><span data-system="state">小金井・国分寺・国立</span></li> </ul> </div> </div><!-- /ly_container--> <div class="ly_container"> <div class="ly_inner _pt0 _pb0"> <p class="uq_discHeading _mt0"><span data-system="state">小金井・国分寺・国立</span></p> <div class="uq_mapArea"> <div id="map" style="height: 40vh"></div> </div> <p class="bl_toggleTtl -search">設備・条件で絞り込む<span class="el_plusIcon js_toggleBtn"></span></p> <div class="js_toggleShow"> <div class="searchTable"> <table> <tr> <th>店舗で使えるサービス</th> <td> <ul class="checkboxListService"> <li><input type="checkbox" name="options[]" id="option-4" class="el_checkbox" value="4" checked disabled><label for="option-4">Wi-Fi</label></li><li><input type="checkbox" name="options[]" id="option-5" class="el_checkbox" value="5" checked disabled><label for="option-5">電源</label></li><li><input type="checkbox" name="options[]" id="option-16" class="el_checkbox" value="16"><label for="option-16">自席で電話・オンライン会議可能</label></li><li><input type="checkbox" name="options[]" id="option-17" class="el_checkbox" value="17"><label for="option-17">フォンブース・1人用個室(無料)</label></li><li><input type="checkbox" name="options[]" id="option-18" class="el_checkbox" value="18"><label for="option-18">会議室(無料)</label></li><li><input type="checkbox" name="options[]" id="option-19" class="el_checkbox" value="19"><label for="option-19">会議室(有料)</label></li><li><input type="checkbox" name="options[]" id="option-12" class="el_checkbox" value="12"><label for="option-12">フリードリンク</label></li><li><input type="checkbox" name="options[]" id="option-20" class="el_checkbox" value="20"><label for="option-20">モニター貸出</label></li><li><input type="checkbox" name="options[]" id="option-6" class="el_checkbox" value="6"><label for="option-6">ホワイトボード貸出</label></li><li><input type="checkbox" name="options[]" id="option-8" class="el_checkbox" value="8"><label for="option-8">プロジェクター貸出</label></li><li><input type="checkbox" name="options[]" id="option-9" class="el_checkbox" value="9"><label for="option-9">複合機(有料)</label></li><li><input type="checkbox" name="options[]" id="option-14" class="el_checkbox" value="14"><label for="option-14">同伴者ドロップイン(有料)</label></li><li><input type="checkbox" name="options[]" id="option-25" class="el_checkbox" value="25"><label for="option-25">駐車場(無料)</label></li><li><input type="checkbox" name="options[]" id="option-26" class="el_checkbox" value="26"><label for="option-26">喫煙所</label></li> </ul> </td> </tr> <tr> <th>時間帯</th> <td> <ul class="searchTableList"> <li><input type="checkbox" name="options[]" id="option-22" class="el_checkbox" value="22"><label for="option-22">朝から利用可能 (9:00以前に開店)</label></li><li><input type="checkbox" name="options[]" id="option-23" class="el_checkbox" value="23"><label for="option-23">遅くでも利用可能 (18:00以降も開店)</label></li><li><input type="checkbox" name="options[]" id="option-24" class="el_checkbox" value="24"><label for="option-24">利用制限時間なし</label></li><li><input type="checkbox" name="options[]" id="option-27" class="el_checkbox" value="27"><label for="option-27">土日も利用可能</label></li> </ul> </td> </tr> </table> </div> </div> <h2 class="bl_headingLv2"><span data-system="state">小金井・国分寺・国立</span>の<br>コワーキングスペース・シェアオフィス一覧</h2> <div class="bl_cardOfficeWrap -search"> <div class="bl_cardUnit -col3 searchOffice"> </div> </div> <button type="button" class="el_moreBtn js_moreBtn -stand -center -spMaxWide">もっと見る</button> <h2 class="bl_headingLv2"><span data-system="state">東京都</span>の他エリア一覧</h2> <ul class="el_iconLink -col4 -locations"> <li><a href="/locations/tokyo/001/"><span data-system="area">渋谷・原宿・青山</span></a></li><li><a href="/locations/tokyo/002/"><span data-system="area">新宿・代々木</span></a></li><li><a href="/locations/tokyo/003/"><span data-system="area">新橋・浜松町・田町</span></a></li><li><a href="/locations/tokyo/004/"><span data-system="area">東京駅・丸の内・日本橋</span></a></li><li><a href="/locations/tokyo/005/"><span data-system="area">神田・秋葉原・水道橋</span></a></li><li><a href="/locations/tokyo/006/"><span data-system="area">人形町・門前仲町・葛西</span></a></li><li><a href="/locations/tokyo/007/"><span data-system="area">飯田橋・四ツ谷・神楽坂</span></a></li><li><a href="/locations/tokyo/008/"><span data-system="area">銀座・有楽町・築地</span></a></li><li><a href="/locations/tokyo/009/"><span data-system="area">池袋・巣鴨・駒込</span></a></li><li><a href="/locations/tokyo/010/"><span data-system="area">品川・五反田・大崎</span></a></li><li><a href="/locations/tokyo/011/"><span data-system="area">中野・吉祥寺・三鷹</span></a></li><li><a href="/locations/tokyo/013/"><span data-system="area">下北沢・明大前・成城学園前</span></a></li><li><a href="/locations/tokyo/014/"><span data-system="area">上野・浅草・日暮里</span></a></li><li><a href="/locations/tokyo/015/"><span data-system="area">赤坂・六本木・麻布</span></a></li><li><a href="/locations/tokyo/016/"><span data-system="area">大井町・大森・蒲田</span></a></li><li><a href="/locations/tokyo/017/"><span data-system="area">大久保・高田馬場</span></a></li><li><a href="/locations/tokyo/018/"><span data-system="area">北千住・綾瀬・亀有</span></a></li><li><a href="/locations/tokyo/019/"><span data-system="area">立川・八王子・青梅</span></a></li> </ul> </div> </div><!-- /ly_container--> <div class="ly_container breadcrumbFooter"> <div class="ly_inner"> <ul class="breadcrumb__list"> <li class="breadcrumb__item"> <a href="/">TOP</a> </li> <li class="breadcrumb__item"> <a href="/user/search.php">オフィス検索</a> </li> <li class="breadcrumb__item"><a href="/locations/">全国</a></li> <li class="breadcrumb__item"><a href="/locations/tokyo/"><span data-system="state">東京都</span></a></li> <li class="breadcrumb__item"><span data-system="state">小金井・国分寺・国立</span></li> </ul> </div> </div><!-- /ly_container--> <!-- お問い合わせエリア --> <div class="ly_container -typeC -areaContact inc_area_contact"> <div class="ly_inner"> <h2 class="bl_headingLv2 -white"><span class="subHeading">Contact</span>お問い合わせ</h2> <div class="bl_grid -col2"> <div class="grid"> <h3>お問い合わせや申込書類の<br class="_spShow">ダウンロードはこちらから</h3> <a class="el_btn -widePtn2 -center -brown -document -spMaxWide" href="https://officepass.nikkei.com/user/inquiry.php" target="_blank" id="form_top_contact_A9">お申し込み・問い合わせ・資料請求</a> </div> <div class="grid"> <h3>ご利用開始までの手順など、<br class="_spShow">ご不明点の確認はこちらから</h3> <a class="el_btn -center -white -spMaxWide" href="https://officepass-service.nikkei.com/agreement/corporate">よくある質問</a> </div> </div> </div> </div> </main> <!-- ===== /contents ====== --> <!-- ===== footer ====== --> <footer class="ly_footer inc_footer"> <div class="ly_inner"> <div class="footLinks"> <a href="/resource/corporate_term.pdf" target="_blank">利用規約</a><span> | </span> <a href="/agreement/information_usage.php" target="_blank">特定商取引法に基づく表示</a><span> | </span> <a href="/agreement/privacy_policy.php" target="_blank">個人情報の取り扱い</a><span> | </span> <a href="https://www.nikkei.com/lounge/privacy/cookie/optout.html#nikkeiofficepass" target="_blank" rel="noopener noreferrer">外部送信</a><span> | </span> <a href="https://www.nikkei.com/lounge/privacy/cookie/policy.html" target="_blank" rel="noopener noreferrer">クッキーポリシー</a><span> | </span> <a href="https://officepass-service.nikkei.com/agreement/corporate" target="_blank">よくある質問</a><span> | </span> <a href="https://officepass.lcbform.nikkei.com/office.html" target="_blank" rel="noopener noreferrer">シェアオフィス運営の方はこちら</a> </div> <div class="bl_copyrightWrap"> <p id="el_nikkeiLogo"><a href="https://www.nikkei.com/" target="_blank"><img src="/common/img/nikkei_logo_nv.svg" alt="NIKKEI"></a></p> <p id="el_copyright">Nikkei Inc. No reproduction without permission.</p> </div> </div> </footer> <!-- ===== /footer ====== --> <p id="pagetop" class="pagetop"><a href=""></a></p> <script src="/common/resource/js/plugins.js"></script> <script src="/common/resource/js/base.js"></script> <script type="text/javascript"> // map表示 function initMap() { opmap.initMap(); opmap.is_loggedin = false; opmap.centerMarker.setMap(null); } // モーダルにoffice情報を挿入 function fillModal (office) { let stock_info = ''; $('#officeModalLinkDetail').attr('href', 'https://officepass.nikkei.com/user/office-detail.php?product_id=' + office.id); $('#officeModalLinkDetail2').attr('href', 'https://officepass.nikkei.com/user/office-detail.php?product_id=' + office.id); let thumbnail = office.thumbnail_1; if (thumbnail == '../resource/no_photo.png') { thumbnail = '/resource/no_photo.png'; } $('#modalImg').css({'background-image':'url(' + thumbnail + ')'}); $('#officeModalLabel').text(office.name); $('#officeModalLinkDirection').attr('href', 'https://www.google.com/maps/dir/?api=1&destination=' + office.latitude + ',' + office.longitude); $('#modalOfficeName').text(office.name); // 駅より徒歩 分 $('#modalOfficeDescript').text(office.near_station+"より"+office.publish_info); $('#modalNearStation').text(office.near_station); $('#officeBusinessHour1').text(office.business_hour1); $('#officeBusinessHour2').text(office.business_hour2); $('#officeBusinessHour3').text(office.business_notice); if(office.office_rank == '0') { $('#premiumOffice').hide(); } else { $('#premiumOffice').show(); } if (!office.reservation_show_flag) { $('#modalStockInfo').removeClass('current-info-box'); $('#modalStockInfo').removeClass('current-warning'); $('#modalStockInfo').removeClass('current-danger'); $('#modalStockInfo').addClass('current-not-reservation'); stock_info = '<p>アプリからのみ予約利用可能</p>'; } else if(office.stock_info == 1){ $('#modalStockInfo').addClass('current-info-box'); $('#modalStockInfo').removeClass('current-warning'); $('#modalStockInfo').removeClass('current-danger'); $('#modalStockInfo').removeClass('current-not-reservation'); stock_info = '<p>空席情報:◯</p>'; } else if(office.stock_info == 2){ $('#modalStockInfo').removeClass('current-info-box'); $('#modalStockInfo').addClass('current-warning'); $('#modalStockInfo').removeClass('current-danger'); $('#modalStockInfo').removeClass('current-not-reservation'); stock_info = '<p>空席情報:△</p>'; } else{ $('#modalStockInfo').removeClass('current-info-box'); $('#modalStockInfo').removeClass('current-warning'); $('#modalStockInfo').addClass('current-danger'); $('#modalStockInfo').removeClass('current-not-reservation'); stock_info = '<p>空席情報:×</p>'; } $('#modalStockInfo').html(stock_info); } // marker clickでモーダルを表示 function setMarkerClickEv(marker, office) { marker.addListener('click', function () { fillModal(office); $('#officeModal').modal('show'); }); } // 条件検索 function initFilter (offices, options) { let option_checkboxes = document.querySelectorAll('input[id^=option-]'); let officerank_radios = document.querySelectorAll('input[id^=plan-]'); let target = { checked: 0 }; // html要素にその属性を持つoffice_idを付与 Object.keys(option_checkboxes).forEach(function (i) { let el = option_checkboxes[i]; el.__data__ = options[el.value]; }); Object.keys(officerank_radios).forEach(function (i) { let el = officerank_radios[i]; let target_offices = []; if (el.value == '2') { offices.forEach(function (office) { if(office.office_rank == '0') { target_offices.push(office.id); } }); } else { offices.forEach(function (office) { target_offices.push(office.id); }); } el.__data__ = target_offices; }); offices.forEach(function (office) { target[office.id] = 0; }) let update = function (selector, id) { let selected = document.getElementById(selector); let calc = selected.checked ? 'inc' : 'dec'; let office_id_list = selected.__data__ ? selected.__data__ : [] ; // filter制御 if(calc == 'inc') { ++target.checked; } else if (calc == 'dec') { --target.checked; } office_id_list.forEach(function (id) { if(calc == 'inc') { ++target[id]; } else if (calc == 'dec') { --target[id]; } }); if(target.checked <= 0) { target.checked = 0; office_id_list.forEach(function (id) { target[id] = 0; }); } // Marker更新 opmap.markers.forEach(function (marker) { if(target.checked != target[marker.id]) { marker.marker.setMap(null); } else { marker.marker.setMap(opmap.map); } }); // Card更新 showmore.elements.forEach(function (el) { if(target.checked != target[el.id]) { el.element.classList.add('is-hidden'); el.element.classList.add('not-search'); } else { el.element.classList.remove('is-hidden'); el.element.classList.remove('not-search'); } }); }; let reset = function () { Object.keys(option_checkboxes).forEach(function (i) { let el = option_checkboxes[i]; el.checked = false; }); Object.keys(officerank_radios).forEach(function (i) { let el = officerank_radios[i]; el.checked = false; }); target = { checked: 0 }; }; return { update: update, reset: reset }; } // イベント関数をまたぐためグローバルに宣言 var filter = ''; $(window).on('load', function (ev) { if(filter != '') filter.reset(); let center = { lat: 35.70022, lng: 139.48027 }; opmap.updateMap(center, 16, opmap.setCenterMarker, 'pyl'); opmap.getNearOffices(center, 10000, function (data) { let offices_area = []; let area_id = 12; if (data.offices.length > 0) { data.offices.forEach(function (office) { if(office.area.id == area_id) { offices_area.push(office); } }); } opmap.setMarkers(offices_area, setMarkerClickEv); createOfficeCards(offices_area); filter = initFilter(offices_area, data.options); setOfficeRank(); officeCardHiddenToggle(); defaultCheckOptions(); }, function (e) { createOfficeCards([]); alert('近くに加盟オフィスはありません'); }); }); // 条件検索 $('.el_checkbox').on('change', function (ev) { filter.update($(this).attr('id'), $(this).val()); officeCardReset(); officeCardSizeReset(); }); $('.el_radio').on('change', function (ev) { let officerank_radios = document.querySelectorAll('input[id^=plan-]'); Object.keys(officerank_radios).forEach(function (i) { let el = officerank_radios[i]; if (!el.checked) { filter.update(el.id, el.value); } }); filter.update($(this).attr('id'), $(this).val()); officeCardReset(); officeCardSizeReset(); }); function defaultCheckOptions() { $(':checkbox[id=option-4]').change(); $(':checkbox[id=option-5]').change(); } function setOfficeRank() { let plan_search = ""; if (plan_search == "basic" || plan_search == "premium") { $('.js_toggleBtn').click(); if (plan_search == 'basic') { $(':radio[id=plan-2]').prop('checked', true); $(':radio[id=plan-2]').change(); } else if (plan_search == 'premium') { $(':radio[id=plan-1]').prop('checked', true); $(':radio[id=plan-1]').change(); } } else { $(':radio[id=plan-1]').prop('checked', true); $(':radio[id=plan-1]').change(); } } function officeCardHiddenToggle() { $('.searchOffice .bl_card:not(".not-search")').each(function(index, el) { if (index < show) { return true; } $(this).addClass('is-hidden'); }); } function officeCardSizeReset() { const mediaQuery = window.matchMedia('print, screen and (min-width: 768px)'); if (mediaQuery.matches) { $('.searchOffice .bl_card:not(".not-search")').each(function(index, el) { if (index % 3 != 0) { $(this).css({'margin-left': '3.3%'}); } else { $(this).css({'margin-left': '0px'}); } }); } else { $('.searchOffice .bl_card:not(".not-search")').each(function(index, el) { $(this).css({'margin-left': 'auto'}); }); } } function officeCardReset() { $('.searchOffice .bl_card:not(".not-search")').removeClass('is-hidden'); $('.searchOffice .bl_card:not(".not-search")').each(function(index, el) { if(index < show) { return true; } $(this).addClass('is-hidden'); }); if ($('.searchOffice .bl_card:not(".not-search")').length > show) { $('.js_moreBtn').fadeIn(); } else { $('.js_moreBtn').fadeOut(); } } </script> <script src="//maps.googleapis.com/maps/api/js?key=AIzaSyC9zIH8xkJ2XTd-POLmMGzskCkw16LE0eY&callback=initMap" async></script> <script type="text/javascript"> function setDataToCard (data) { let card_body = document.createElement('a'); let stock_info_str = ''; if (!data.reservation_show_flag) { stock_info_str = '<div class="current-not-reservation"><p>アプリからのみ予約利用可能</p></div>'; } else if (data.stock_info == 1){ stock_info_str = '<div class="current-info-box"><p>空席情報:◯</p></div>'; } else if (data.stock_info == 2) { stock_info_str = '<div class="current-warning"><p>空席情報:△</p></div>'; } else { stock_info_str = '<div class="current-danger"><p>空席情報:×</p></div>'; } let office_rank = ''; if (data.office_rank == '1') { office_rank = '個人向け31回利用プランまたは法人契約のみご利用可'; } card_body.className = 'bl_card' card_body.href = '/user/office-detail.php?product_id='+data.id; let thumbnail = data.thumbnail_1; if (thumbnail == '../resource/no_photo.png') { thumbnail = '/resource/no_photo.png'; } card_body.innerHTML = ''+ '<figure class="cardImg" style="background-image: url('+thumbnail+');"></figure>'+ '<div class="cardBody">'+ '<div data-mh="mh">'+ '<div class="area-label">'+ '<span class="near_station_b">'+data.near_station+'</span>'+ '</div>'+ '<div class="office-name">'+ '<span>'+data.near_station+'より'+data.publish_info+'</span><p>'+data.name+'</p>'+ '</div>'+ '<div class="office-hours">'+ data.business_notice+ '</div>'+ '<div class="office-plan">'+ office_rank+ '</div>'+ '</div>'+ stock_info_str+ '</div>'; let card_add = document.getElementsByClassName('bl_cardUnit searchOffice'); card_add[0].appendChild(card_body); showmore.elements.push({ id: data.id, element: card_body }); } function createOfficeCards (data) { // オフィスカードをクリア let parentCard = document.getElementsByClassName('bl_cardUnit searchOffice'); while (parentCard[0].firstChild) { parentCard[0].removeChild(parentCard[0].firstChild); } showmore.elements = []; // html要素にデータを入れる if (data.length > 0) { data.forEach(function (office) { setDataToCard(office); }); } } var showmore = {}; </script> </body> </html>