$(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['news'] = Array(); category['news']['title'] = "top/NEWS"; category['news']['description'] = ""; category['news']['type'] = "ground"; category['news']['pagenation'] = "1"; category['news']['format'] = "Part_Content_002"; category['news']['directory'] = "root"; category['reform'] = Array(); category['reform']['title'] = "top/リフォーム一覧"; category['reform']['description'] = ""; category['reform']['type'] = "ground"; category['reform']['pagenation'] = "2"; category['reform']['format'] = "Part_Content_003"; category['reform']['directory'] = "root"; category['works'] = Array(); category['works']['title'] = "top/施工例ビフォーアフター"; category['works']['description'] = ""; category['works']['type'] = "ground"; category['works']['pagenation'] = "3"; category['works']['format'] = "Part_Content_004"; category['works']['directory'] = "root"; category['ranking'] = Array(); category['ranking']['title'] = "top/住宅トラブルランキング"; category['ranking']['description'] = ""; category['ranking']['type'] = "ground"; category['ranking']['pagenation'] = "4"; category['ranking']['format'] = "Part_Content_005"; category['ranking']['directory'] = "root"; category['topics'] = Array(); category['topics']['title'] = "top/小さなリフォーム"; category['topics']['description'] = ""; category['topics']['type'] = "ground"; category['topics']['pagenation'] = "5"; category['topics']['format'] = "Part_Content_006"; category['topics']['directory'] = "root"; category['reason'] = Array(); category['reason']['title'] = "top/榎本建設が選ばれる理由"; category['reason']['description'] = ""; category['reason']['type'] = "ground"; category['reason']['pagenation'] = "6"; category['reason']['format'] = "Part_Content_007"; category['reason']['directory'] = "root"; category['blog'] = Array(); category['blog']['title'] = "top/榎本哲史のブログ"; category['blog']['description'] = ""; category['blog']['type'] = "ground"; category['blog']['pagenation'] = "7"; category['blog']['format'] = "Part_Content_008"; category['blog']['directory'] = "root"; category['news/'] = Array(); category['news/']['title'] = "NEWS"; category['news/']['description'] = ""; category['news/']['type'] = "page"; category['news/']['pagenation'] = "8"; category['news/']['format'] = "Part_Content_010"; category['news/']['directory'] = "news/"; category['news/all/'] = Array(); category['news/all/']['title'] = "NEWS - ALL"; category['news/all/']['description'] = ""; category['news/all/']['type'] = "page"; category['news/all/']['pagenation'] = "9"; category['news/all/']['format'] = "Part_Content_010"; category['news/all/']['directory'] = "news/all/"; category['reform/'] = Array(); category['reform/']['title'] = "リフォーム一覧"; category['reform/']['description'] = ""; category['reform/']['type'] = "page"; category['reform/']['pagenation'] = "10"; category['reform/']['format'] = "Part_Content_020"; category['reform/']['directory'] = "reform/"; category['works/'] = Array(); category['works/']['title'] = "施工例"; category['works/']['description'] = ""; category['works/']['type'] = "page"; category['works/']['pagenation'] = "11"; category['works/']['format'] = "Part_Content_030"; category['works/']['directory'] = "works/"; category['works/area-ishikari/'] = Array(); category['works/area-ishikari/']['title'] = "施工例 - 地域:石狩"; category['works/area-ishikari/']['description'] = ""; category['works/area-ishikari/']['type'] = "page"; category['works/area-ishikari/']['pagenation'] = "12"; category['works/area-ishikari/']['format'] = "Part_Content_030"; category['works/area-ishikari/']['directory'] = "works/area-ishikari/"; category['works/area-iwamizawa/'] = Array(); category['works/area-iwamizawa/']['title'] = "施工例 - 地域:岩見沢"; category['works/area-iwamizawa/']['description'] = ""; category['works/area-iwamizawa/']['type'] = "page"; category['works/area-iwamizawa/']['pagenation'] = "13"; category['works/area-iwamizawa/']['format'] = "Part_Content_030"; category['works/area-iwamizawa/']['directory'] = "works/area-iwamizawa/"; category['works/area-sapporo/'] = Array(); category['works/area-sapporo/']['title'] = "施工例 - 地域:札幌"; category['works/area-sapporo/']['description'] = ""; category['works/area-sapporo/']['type'] = "page"; category['works/area-sapporo/']['pagenation'] = "14"; category['works/area-sapporo/']['format'] = "Part_Content_030"; category['works/area-sapporo/']['directory'] = "works/area-sapporo/"; category['works/area-tobetsu/'] = Array(); category['works/area-tobetsu/']['title'] = "施工例 - 地域:当別"; category['works/area-tobetsu/']['description'] = ""; category['works/area-tobetsu/']['type'] = "page"; category['works/area-tobetsu/']['pagenation'] = "15"; category['works/area-tobetsu/']['format'] = "Part_Content_030"; category['works/area-tobetsu/']['directory'] = "works/area-tobetsu/"; category['works/cost-100-200/'] = Array(); category['works/cost-100-200/']['title'] = "施工例 - 価格:100〜200万円"; category['works/cost-100-200/']['description'] = ""; category['works/cost-100-200/']['type'] = "page"; category['works/cost-100-200/']['pagenation'] = "16"; category['works/cost-100-200/']['format'] = "Part_Content_030"; category['works/cost-100-200/']['directory'] = "works/cost-100-200/"; category['works/cost-300/'] = Array(); category['works/cost-300/']['title'] = "施工例 - 価格:300万円"; category['works/cost-300/']['description'] = ""; category['works/cost-300/']['type'] = "page"; category['works/cost-300/']['pagenation'] = "17"; category['works/cost-300/']['format'] = "Part_Content_030"; category['works/cost-300/']['directory'] = "works/cost-300/"; category['works/cost-400/'] = Array(); category['works/cost-400/']['title'] = "施工例 - 価格:400万円"; category['works/cost-400/']['description'] = ""; category['works/cost-400/']['type'] = "page"; category['works/cost-400/']['pagenation'] = "18"; category['works/cost-400/']['format'] = "Part_Content_030"; category['works/cost-400/']['directory'] = "works/cost-400/"; category['works/cost-over1000/'] = Array(); category['works/cost-over1000/']['title'] = "施工例 - 価格:1,000万円以上"; category['works/cost-over1000/']['description'] = ""; category['works/cost-over1000/']['type'] = "page"; category['works/cost-over1000/']['pagenation'] = "19"; category['works/cost-over1000/']['format'] = "Part_Content_030"; category['works/cost-over1000/']['directory'] = "works/cost-over1000/"; category['works/age-under20/'] = Array(); category['works/age-under20/']['title'] = "施工例 - 築年数:〜築20年"; category['works/age-under20/']['description'] = ""; category['works/age-under20/']['type'] = "page"; category['works/age-under20/']['pagenation'] = "20"; category['works/age-under20/']['format'] = "Part_Content_030"; category['works/age-under20/']['directory'] = "works/age-under20/"; category['works/age-30/'] = Array(); category['works/age-30/']['title'] = "施工例 - 築年数:築30年"; category['works/age-30/']['description'] = ""; category['works/age-30/']['type'] = "page"; category['works/age-30/']['pagenation'] = "21"; category['works/age-30/']['format'] = "Part_Content_030"; category['works/age-30/']['directory'] = "works/age-30/"; category['works/age-40/'] = Array(); category['works/age-40/']['title'] = "施工例 - 築年数:築40年"; category['works/age-40/']['description'] = ""; category['works/age-40/']['type'] = "page"; category['works/age-40/']['pagenation'] = "22"; category['works/age-40/']['format'] = "Part_Content_030"; category['works/age-40/']['directory'] = "works/age-40/"; category['works/age-over50/'] = Array(); category['works/age-over50/']['title'] = "施工例 - 築年数:築50年以上"; category['works/age-over50/']['description'] = ""; category['works/age-over50/']['type'] = "page"; category['works/age-over50/']['pagenation'] = "23"; category['works/age-over50/']['format'] = "Part_Content_030"; category['works/age-over50/']['directory'] = "works/age-over50/"; category['topics/'] = Array(); category['topics/']['title'] = "TOPICS"; category['topics/']['description'] = ""; category['topics/']['type'] = "page"; category['topics/']['pagenation'] = "24"; category['topics/']['format'] = "Part_Content_040"; category['topics/']['directory'] = "topics/"; category['topics/all/'] = Array(); category['topics/all/']['title'] = "TOPICS - ALL"; category['topics/all/']['description'] = ""; category['topics/all/']['type'] = "page"; category['topics/all/']['pagenation'] = "25"; category['topics/all/']['format'] = "Part_Content_040"; category['topics/all/']['directory'] = "topics/all/"; category['blog/'] = Array(); category['blog/']['title'] = "BLOG"; category['blog/']['description'] = ""; category['blog/']['type'] = "page"; category['blog/']['pagenation'] = "26"; category['blog/']['format'] = "Part_Content_050"; category['blog/']['directory'] = "blog/"; category['blog/trouble-spring/'] = Array(); category['blog/trouble-spring/']['title'] = "BLOG - 春の住宅トラブルランキング!"; category['blog/trouble-spring/']['description'] = ""; category['blog/trouble-spring/']['type'] = "page"; category['blog/trouble-spring/']['pagenation'] = "27"; category['blog/trouble-spring/']['format'] = "Part_Content_050"; category['blog/trouble-spring/']['directory'] = "blog/trouble-spring/"; category['blog/trouble-summer/'] = Array(); category['blog/trouble-summer/']['title'] = "BLOG - 夏の住宅トラブルランキング!"; category['blog/trouble-summer/']['description'] = ""; category['blog/trouble-summer/']['type'] = "page"; category['blog/trouble-summer/']['pagenation'] = "28"; category['blog/trouble-summer/']['format'] = "Part_Content_050"; category['blog/trouble-summer/']['directory'] = "blog/trouble-summer/"; category['blog/trouble-fall/'] = Array(); category['blog/trouble-fall/']['title'] = "BLOG - 秋の住宅トラブルランキング!"; category['blog/trouble-fall/']['description'] = ""; category['blog/trouble-fall/']['type'] = "page"; category['blog/trouble-fall/']['pagenation'] = "29"; category['blog/trouble-fall/']['format'] = "Part_Content_050"; category['blog/trouble-fall/']['directory'] = "blog/trouble-fall/"; category['blog/trouble-winter/'] = Array(); category['blog/trouble-winter/']['title'] = "BLOG - 冬の住宅トラブルランキング!"; category['blog/trouble-winter/']['description'] = ""; category['blog/trouble-winter/']['type'] = "page"; category['blog/trouble-winter/']['pagenation'] = "30"; category['blog/trouble-winter/']['format'] = "Part_Content_050"; category['blog/trouble-winter/']['directory'] = "blog/trouble-winter/"; category['blog/topics/'] = Array(); category['blog/topics/']['title'] = "BLOG - 小さなリフォーム"; category['blog/topics/']['description'] = ""; category['blog/topics/']['type'] = "page"; category['blog/topics/']['pagenation'] = "31"; category['blog/topics/']['format'] = "Part_Content_050"; category['blog/topics/']['directory'] = "blog/topics/"; category['contact/'] = Array(); category['contact/']['title'] = "お問い合わせ"; category['contact/']['description'] = ""; category['contact/']['type'] = "page"; category['contact/']['pagenation'] = "32"; category['contact/']['format'] = "Part_Content_090"; category['contact/']['directory'] = "contact/"; function htmlEncode(value){ return $('
').text(value).html(); } function htmlDecode(value){ return $('').html(value).text(); } var href = ""; var past_href = location.href; var history_back_url = ""; 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://reform.enomotok.co.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 ); } id = href.replace( "https://reform.enomotok.co.jp/", "" ).replace( "?mode=preview", "" ); var scroll_id = href.replace( "https://reform.enomotok.co.jp/", "" ).replace( "?mode=preview", "" ); if( scroll_id == "" ){ scroll_id = "root"; } var modal_remove_flg = 0 var modal_after_id = ""; if( id == "" ){ modal_after_id = "root"; }else{ modal_after_id = id; } if( typeof category[modal_after_id] != "undefined" ){ if( option == "by_onpop" || history_back_url == href ){ if( ($("body").hasClass("modal") || $("body").hasClass("entry")) && category[modal_after_id]['type'] != "modal" && category[modal_after_id]['type'] != "entry" ){ console.log("modal_remove") modal_remove_flg = 1; $("body").removeClass("modal entry"); float_elm_clear("modal"); setTimeout( function(){ if( $("body #entry").css("z-index") == -1 ){ $("body #entry").empty(); scroll_on(); } } , 1000); } } } var scroll_ground_flg = 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 ); } if( typeof entry[id] != "undefined" ){ id = entry[id]; href = href.replace( id, entry[id] ); } history_back_url = past_href; 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( scroll_ground_flg != 1 && modal_remove_flg != 1 && option != "by_scroll" && option != "by_load_more" ){ $("body").append('