$(function() { entry = Array(); category = Array(); category['root'] = Array(); category['root']['title'] = "top"; category['root']['description'] = ""; category['root']['type'] = "page"; category['root']['pagenation'] = "0"; category['root']['format'] = "Part_Content_001"; category['root']['directory'] = "root"; category['intro'] = Array(); category['intro']['title'] = "top/はじめての方へ"; category['intro']['description'] = ""; category['intro']['type'] = "ground"; category['intro']['pagenation'] = "1"; category['intro']['format'] = "Part_Content_002"; category['intro']['directory'] = "root"; category['about'] = Array(); category['about']['title'] = "top/コンテナハウスとは"; category['about']['description'] = ""; category['about']['type'] = "ground"; category['about']['pagenation'] = "2"; category['about']['format'] = "Part_Content_003"; category['about']['directory'] = "root"; category['gallery'] = Array(); category['gallery']['title'] = "top/施工実績"; category['gallery']['description'] = ""; category['gallery']['type'] = "ground"; category['gallery']['pagenation'] = "3"; category['gallery']['format'] = "Part_Content_004"; category['gallery']['directory'] = "root"; category['news'] = Array(); category['news']['title'] = "top/ニュース"; category['news']['description'] = ""; category['news']['type'] = "ground"; category['news']['pagenation'] = "4"; category['news']['format'] = "Part_Content_005"; category['news']['directory'] = "root"; category['flow'] = Array(); category['flow']['title'] = "top/お問合せからお引渡しまで"; category['flow']['description'] = ""; category['flow']['type'] = "ground"; category['flow']['pagenation'] = "5"; category['flow']['format'] = "Part_Content_006"; category['flow']['directory'] = "root"; category['sns'] = Array(); category['sns']['title'] = "top/SNS"; category['sns']['description'] = ""; category['sns']['type'] = "ground"; category['sns']['pagenation'] = "6"; category['sns']['format'] = "Part_Content_007"; category['sns']['directory'] = "root"; category['intro/'] = Array(); category['intro/']['title'] = "INTRO - はじめての方へ"; category['intro/']['description'] = ""; category['intro/']['type'] = "page"; category['intro/']['pagenation'] = "7"; category['intro/']['format'] = "Part_Content_010"; category['intro/']['directory'] = "intro/"; category['intro/concept'] = Array(); category['intro/concept']['title'] = "コンセプト"; category['intro/concept']['description'] = ""; category['intro/concept']['type'] = "ground"; category['intro/concept']['pagenation'] = "8"; category['intro/concept']['format'] = "Part_Content_011"; category['intro/concept']['directory'] = "intro/"; category['intro/outline'] = Array(); category['intro/outline']['title'] = "会社概要・協力会社"; category['intro/outline']['description'] = ""; category['intro/outline']['type'] = "ground"; category['intro/outline']['pagenation'] = "9"; category['intro/outline']['format'] = "Part_Content_012"; category['intro/outline']['directory'] = "intro/"; category['about/'] = Array(); category['about/']['title'] = "ABOUT - コンテナハウスとは"; category['about/']['description'] = ""; category['about/']['type'] = "page"; category['about/']['pagenation'] = "10"; category['about/']['format'] = "Part_Content_020"; category['about/']['directory'] = "about/"; category['about/feature'] = Array(); category['about/feature']['title'] = "コンテナハウスの特徴"; category['about/feature']['description'] = ""; category['about/feature']['type'] = "ground"; category['about/feature']['pagenation'] = "11"; category['about/feature']['format'] = "Part_Content_021"; category['about/feature']['directory'] = "about/"; category['about/lineup'] = Array(); category['about/lineup']['title'] = "ラインナップ"; category['about/lineup']['description'] = ""; category['about/lineup']['type'] = "ground"; category['about/lineup']['pagenation'] = "12"; category['about/lineup']['format'] = "Part_Content_022"; category['about/lineup']['directory'] = "about/"; category['about/spec'] = Array(); category['about/spec']['title'] = "基本仕様"; category['about/spec']['description'] = ""; category['about/spec']['type'] = "ground"; category['about/spec']['pagenation'] = "13"; category['about/spec']['format'] = "Part_Content_023"; category['about/spec']['directory'] = "about/"; category['flow/'] = Array(); category['flow/']['title'] = "FLOW - お問合せからお引渡しまで"; category['flow/']['description'] = ""; category['flow/']['type'] = "page"; category['flow/']['pagenation'] = "14"; category['flow/']['format'] = "Part_Content_030"; category['flow/']['directory'] = "flow/"; category['gallery/'] = Array(); category['gallery/']['title'] = "GALLERY - 施工実績"; category['gallery/']['description'] = ""; category['gallery/']['type'] = "page"; category['gallery/']['pagenation'] = "15"; category['gallery/']['format'] = "Part_Content_040"; category['gallery/']['directory'] = "gallery/"; category['gallery/house/'] = Array(); category['gallery/house/']['title'] = "施工実績/HOUSE"; category['gallery/house/']['description'] = ""; category['gallery/house/']['type'] = "page"; category['gallery/house/']['pagenation'] = "16"; category['gallery/house/']['format'] = "Part_Content_040"; category['gallery/house/']['directory'] = "gallery/house/"; category['gallery/store/'] = Array(); category['gallery/store/']['title'] = "施工実績/STORE"; category['gallery/store/']['description'] = ""; category['gallery/store/']['type'] = "page"; category['gallery/store/']['pagenation'] = "17"; category['gallery/store/']['format'] = "Part_Content_040"; category['gallery/store/']['directory'] = "gallery/store/"; category['gallery/office/'] = Array(); category['gallery/office/']['title'] = "施工実績/OFFICE"; category['gallery/office/']['description'] = ""; category['gallery/office/']['type'] = "page"; category['gallery/office/']['pagenation'] = "18"; category['gallery/office/']['format'] = "Part_Content_040"; category['gallery/office/']['directory'] = "gallery/office/"; category['gallery/accommodation/'] = Array(); category['gallery/accommodation/']['title'] = "施工実績/ACCOMMODATION"; category['gallery/accommodation/']['description'] = ""; category['gallery/accommodation/']['type'] = "page"; category['gallery/accommodation/']['pagenation'] = "19"; category['gallery/accommodation/']['format'] = "Part_Content_040"; category['gallery/accommodation/']['directory'] = "gallery/accommodation/"; category['gallery/others/'] = Array(); category['gallery/others/']['title'] = "施工実績/OTHERS"; category['gallery/others/']['description'] = ""; category['gallery/others/']['type'] = "page"; category['gallery/others/']['pagenation'] = "20"; category['gallery/others/']['format'] = "Part_Content_040"; category['gallery/others/']['directory'] = "gallery/others/"; category['news/'] = Array(); category['news/']['title'] = "NEWS - ニュース"; category['news/']['description'] = ""; category['news/']['type'] = "page"; category['news/']['pagenation'] = "21"; category['news/']['format'] = "Part_Content_050"; category['news/']['directory'] = "news/"; category['news/new_project/'] = Array(); category['news/new_project/']['title'] = "ニュース/NEW PROJECT"; category['news/new_project/']['description'] = ""; category['news/new_project/']['type'] = "page"; category['news/new_project/']['pagenation'] = "22"; category['news/new_project/']['format'] = "Part_Content_050"; category['news/new_project/']['directory'] = "news/new_project/"; category['news/times/'] = Array(); category['news/times/']['title'] = "ニュース/TIMES"; category['news/times/']['description'] = ""; category['news/times/']['type'] = "page"; category['news/times/']['pagenation'] = "23"; category['news/times/']['format'] = "Part_Content_050"; category['news/times/']['directory'] = "news/times/"; category['news/union/'] = Array(); category['news/union/']['title'] = "ニュース/union"; category['news/union/']['description'] = ""; category['news/union/']['type'] = "page"; category['news/union/']['pagenation'] = "24"; category['news/union/']['format'] = "Part_Content_050"; category['news/union/']['directory'] = "news/union/"; category['news/column/'] = Array(); category['news/column/']['title'] = "ニュース/マキノコラム"; category['news/column/']['description'] = ""; category['news/column/']['type'] = "page"; category['news/column/']['pagenation'] = "25"; category['news/column/']['format'] = "Part_Content_050"; category['news/column/']['directory'] = "news/column/"; category['faq/'] = Array(); category['faq/']['title'] = "FAQ - よくある質問"; category['faq/']['description'] = ""; category['faq/']['type'] = "page"; category['faq/']['pagenation'] = "26"; category['faq/']['format'] = "Part_Content_060"; category['faq/']['directory'] = "faq/"; category['contact/'] = Array(); category['contact/']['title'] = "CONTACT - お問い合わせ"; category['contact/']['description'] = ""; category['contact/']['type'] = "page"; category['contact/']['pagenation'] = "27"; category['contact/']['format'] = "Part_Content_070"; category['contact/']['directory'] = "contact/"; category['event/'] = Array(); category['event/']['title'] = "EVENT - イベント参加申込"; category['event/']['description'] = ""; category['event/']['type'] = "page"; category['event/']['pagenation'] = "28"; category['event/']['format'] = "Part_Content_080"; category['event/']['directory'] = "event/"; category['privacy/'] = Array(); category['privacy/']['title'] = "PRIVACY POLICY - プライバシーポリシー"; category['privacy/']['description'] = ""; category['privacy/']['type'] = "page"; category['privacy/']['pagenation'] = "29"; category['privacy/']['format'] = "Part_Content_090"; category['privacy/']['directory'] = "privacy/"; function htmlEncode(value){ return $('
').text(value).html(); } function htmlDecode(value){ return $('').html(value).text(); } var href = ""; var past_href = location.href; var past_directory = $("body").attr("data-directory"); var past_index_num = $("body").attr("data-index_num"); var past_archive_year_dir = $("body").attr("data-archive_year_dir"); var past_modal_content_type = ""; var memo_scroll = 0; var id = past_href.replace( "https://2040shinshu.jp/", "" ).replace( "?mode=preview", "" ); var option = ""; class_active(past_directory); var hash = ""; if(past_href.indexOf( "#/" ) != -1){ hash_arr = past_href.split("#/"); past_href = hash_arr[0]; hash = hash_arr[1]; PJAX_hash( hash ); } function PJAX_pjax( href, option, target ) { hash = ""; if(href.indexOf( "#/" ) != -1){ hash_arr = href.split("#/"); href = hash_arr[0]; hash = hash_arr[1]; PJAX_hash( hash ); } var scroll_id = href.replace( "https://2040shinshu.jp/", "" ).replace( "?mode=preview", "" ); if( scroll_id == "" ){ scroll_id = "root"; } PJAX_scroll_ground( scroll_id, option ); if( href && past_href != href && href.indexOf( "#" ) == -1 ){ scroll_action_flag = false; if( typeof scroll_action_limiter != "undefined" ){ clearTimeout( scroll_action_limiter ); } id = href.replace( "https://2040shinshu.jp/", "" ).replace( "?mode=preview", "" ); if( typeof entry[id] != "undefined" ){ id = entry[id]; href = href.replace( id, entry[id] ); } past_href = href; console.log("──── pjax ────"); console.log("href: " + href); console.log("id: " + id); console.log("option: " + option); console.log("target: " + target); var data_directory = ""; if( typeof $("body").attr("data-directory") !== 'undefined' && $("body").attr("data-directory") !== false ){ var data_directory = String($("body").attr("data-directory")); } var data_archive_year_dir = ""; if( typeof $("body").attr("data-archive_year_dir") !== 'undefined' && $("body").attr("data-archive_year_dir") !== false ){ var data_archive_year_dir = String($("body").attr("data-archive_year_dir")); } var data_index_num = ""; if( typeof $("body").attr("data-index_num") !== 'undefined' && $("body").attr("data-index_num") !== false ){ var data_index_num = String($("body").attr("data-index_num")); } if( option != "by_scroll" && typeof category[scroll_id] != "undefined" && category[scroll_id]['type'] != "modal" && category[scroll_id]['directory'] == data_directory && data_archive_year_dir+data_index_num == "" ){ }else if( option != "by_onpop" && option != "by_scroll" && option != "by_load_more" ){ $("body").append('