$(function() { entry = Array(); category = Array(); category['list/'] = Array(); category['list/']['title'] = "ENTRY-施工実績-DEALER:HQ"; category['list/']['description'] = "コンテナハウス 2040JP"; category['list/']['type'] = "https://2040.jp"; category['list/']['pagenation'] = "0"; category['list/']['format'] = "Content_Format_001"; category['list/']['directory'] = "list/"; category['list/'] = Array(); category['list/']['title'] = "ENTRY-施工実績-DEALER:HOKKAIDO"; category['list/']['description'] = "コンテナハウス 2040北海道.jp"; category['list/']['type'] = "https://2040hokkaido.jp"; category['list/']['pagenation'] = "1"; category['list/']['format'] = "Content_Format_001"; category['list/']['directory'] = "list/"; category['list/'] = Array(); category['list/']['title'] = "ENTRY-施工実績-DEALER:TOHOKU"; category['list/']['description'] = "コンテナハウス 2040東北.jp"; category['list/']['type'] = "https://2040tohoku.jp"; category['list/']['pagenation'] = "2"; category['list/']['format'] = "Content_Format_001"; category['list/']['directory'] = "list/"; category['list/'] = Array(); category['list/']['title'] = "ENTRY-施工実績-DEALER:SHINSHU"; category['list/']['description'] = "コンテナハウス 2040信州.jp"; category['list/']['type'] = "https://2040shinshu.jp"; category['list/']['pagenation'] = "3"; category['list/']['format'] = "Content_Format_001"; category['list/']['directory'] = "list/"; category['list/'] = Array(); category['list/']['title'] = "ENTRY-施工実績-DEALER:SAITAMA"; category['list/']['description'] = "コンテナハウス 2040埼玉.jp"; category['list/']['type'] = "https://2040saitama.jp"; category['list/']['pagenation'] = "4"; category['list/']['format'] = "Content_Format_001"; category['list/']['directory'] = "list/"; category['list/'] = Array(); category['list/']['title'] = "ENTRY-施工実績-DEALER:YAMANASHI"; category['list/']['description'] = "コンテナハウス 2040山梨.jp"; category['list/']['type'] = "https://2040yamanashi.jp"; category['list/']['pagenation'] = "5"; category['list/']['format'] = "Content_Format_001"; category['list/']['directory'] = "list/"; category['list/'] = Array(); category['list/']['title'] = "ENTRY-施工実績-DEALER:WAKAYAMA"; category['list/']['description'] = "コンテナハウス 2040和歌山.jp"; category['list/']['type'] = "https://2040wakayama.jp"; category['list/']['pagenation'] = "6"; category['list/']['format'] = "Content_Format_001"; category['list/']['directory'] = "list/"; category['list/'] = Array(); category['list/']['title'] = "ENTRY-施工実績-DEALER:HYOGO"; category['list/']['description'] = "コンテナハウス 2040兵庫.jp"; category['list/']['type'] = "https://2040hyogo.jp"; category['list/']['pagenation'] = "7"; category['list/']['format'] = "Content_Format_001"; category['list/']['directory'] = "list/"; category['list/'] = Array(); category['list/']['title'] = "ENTRY-施工実績-DEALER:FUKUOKA"; category['list/']['description'] = "コンテナハウス 2040福岡.jp"; category['list/']['type'] = "https://2040fukuoka.jp"; category['list/']['pagenation'] = "8"; category['list/']['format'] = "Content_Format_001"; category['list/']['directory'] = "list/"; 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['list/'] = Array(); category['list/']['title'] = "GALLERY - 施工実績"; category['list/']['description'] = ""; category['list/']['type'] = "page"; category['list/']['pagenation'] = "10"; category['list/']['format'] = "Part_Content_040"; category['list/']['directory'] = "list/"; category['list/house/'] = Array(); category['list/house/']['title'] = "施工実績/TYPE:HOUSE"; category['list/house/']['description'] = ""; category['list/house/']['type'] = "page"; category['list/house/']['pagenation'] = "11"; category['list/house/']['format'] = "Part_Content_040"; category['list/house/']['directory'] = "list/house/"; category['list/store/'] = Array(); category['list/store/']['title'] = "施工実績/TYPE:STORE"; category['list/store/']['description'] = ""; category['list/store/']['type'] = "page"; category['list/store/']['pagenation'] = "12"; category['list/store/']['format'] = "Part_Content_040"; category['list/store/']['directory'] = "list/store/"; category['list/office/'] = Array(); category['list/office/']['title'] = "施工実績/TYPE:OFFICE"; category['list/office/']['description'] = ""; category['list/office/']['type'] = "page"; category['list/office/']['pagenation'] = "13"; category['list/office/']['format'] = "Part_Content_040"; category['list/office/']['directory'] = "list/office/"; category['list/accommodation/'] = Array(); category['list/accommodation/']['title'] = "施工実績/TYPE:ACCOMMODATION"; category['list/accommodation/']['description'] = ""; category['list/accommodation/']['type'] = "page"; category['list/accommodation/']['pagenation'] = "14"; category['list/accommodation/']['format'] = "Part_Content_040"; category['list/accommodation/']['directory'] = "list/accommodation/"; category['list/others/'] = Array(); category['list/others/']['title'] = "施工実績/TYPE:OTHERS"; category['list/others/']['description'] = ""; category['list/others/']['type'] = "page"; category['list/others/']['pagenation'] = "15"; category['list/others/']['format'] = "Part_Content_040"; category['list/others/']['directory'] = "list/others/"; category['list/hq/'] = Array(); category['list/hq/']['title'] = "施工実績/DEALER:HQ"; category['list/hq/']['description'] = ""; category['list/hq/']['type'] = "page"; category['list/hq/']['pagenation'] = "16"; category['list/hq/']['format'] = "Part_Content_040"; category['list/hq/']['directory'] = "list/hq/"; category['list/hokkaido/'] = Array(); category['list/hokkaido/']['title'] = "施工実績/DEALER:HOKKAIDO"; category['list/hokkaido/']['description'] = ""; category['list/hokkaido/']['type'] = "page"; category['list/hokkaido/']['pagenation'] = "17"; category['list/hokkaido/']['format'] = "Part_Content_040"; category['list/hokkaido/']['directory'] = "list/hokkaido/"; category['list/tohoku/'] = Array(); category['list/tohoku/']['title'] = "施工実績/DEALER:TOHOKU"; category['list/tohoku/']['description'] = ""; category['list/tohoku/']['type'] = "page"; category['list/tohoku/']['pagenation'] = "18"; category['list/tohoku/']['format'] = "Part_Content_040"; category['list/tohoku/']['directory'] = "list/tohoku/"; category['list/shinshu/'] = Array(); category['list/shinshu/']['title'] = "施工実績/DEALER:SHINSHU"; category['list/shinshu/']['description'] = ""; category['list/shinshu/']['type'] = "page"; category['list/shinshu/']['pagenation'] = "19"; category['list/shinshu/']['format'] = "Part_Content_040"; category['list/shinshu/']['directory'] = "list/shinshu/"; category['list/saitama/'] = Array(); category['list/saitama/']['title'] = "施工実績/DEALER:SAITAMA"; category['list/saitama/']['description'] = ""; category['list/saitama/']['type'] = "page"; category['list/saitama/']['pagenation'] = "20"; category['list/saitama/']['format'] = "Part_Content_040"; category['list/saitama/']['directory'] = "list/saitama/"; category['list/yamanashi/'] = Array(); category['list/yamanashi/']['title'] = "施工実績/DEALER:YAMANASHI"; category['list/yamanashi/']['description'] = ""; category['list/yamanashi/']['type'] = "page"; category['list/yamanashi/']['pagenation'] = "21"; category['list/yamanashi/']['format'] = "Part_Content_040"; category['list/yamanashi/']['directory'] = "list/yamanashi/"; category['list/wakayama/'] = Array(); category['list/wakayama/']['title'] = "施工実績/DEALER:WAKAYAMA"; category['list/wakayama/']['description'] = ""; category['list/wakayama/']['type'] = "page"; category['list/wakayama/']['pagenation'] = "22"; category['list/wakayama/']['format'] = "Part_Content_040"; category['list/wakayama/']['directory'] = "list/wakayama/"; category['list/hyogo/'] = Array(); category['list/hyogo/']['title'] = "施工実績/DEALER:HYOGO"; category['list/hyogo/']['description'] = ""; category['list/hyogo/']['type'] = "page"; category['list/hyogo/']['pagenation'] = "23"; category['list/hyogo/']['format'] = "Part_Content_040"; category['list/hyogo/']['directory'] = "list/hyogo/"; category['list/fukuoka/'] = Array(); category['list/fukuoka/']['title'] = "施工実績/DEALER:FUKUOKA"; category['list/fukuoka/']['description'] = ""; category['list/fukuoka/']['type'] = "page"; category['list/fukuoka/']['pagenation'] = "24"; category['list/fukuoka/']['format'] = "Part_Content_040"; category['list/fukuoka/']['directory'] = "list/fukuoka/"; 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://2040gallery.jp/", "" ).replace( "?mode=preview", "" ); var option = ""; navi_active(past_href); 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://2040gallery.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://2040gallery.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('