$(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['modelhouse'] = Array(); category['modelhouse']['title'] = "top/modelhouse"; category['modelhouse']['description'] = ""; category['modelhouse']['type'] = "ground"; category['modelhouse']['pagenation'] = "1"; category['modelhouse']['format'] = "Part_Content_002"; category['modelhouse']['directory'] = "root"; category['land'] = Array(); category['land']['title'] = "top/land"; category['land']['description'] = ""; category['land']['type'] = "ground"; category['land']['pagenation'] = "2"; category['land']['format'] = "Part_Content_009"; category['land']['directory'] = "root"; category['alohastyle'] = Array(); category['alohastyle']['title'] = "top/alohastyle"; category['alohastyle']['description'] = ""; category['alohastyle']['type'] = "ground"; category['alohastyle']['pagenation'] = "3"; category['alohastyle']['format'] = "Part_Content_003"; category['alohastyle']['directory'] = "root"; category['works'] = Array(); category['works']['title'] = "top/works"; category['works']['description'] = ""; category['works']['type'] = "ground"; category['works']['pagenation'] = "4"; category['works']['format'] = "Part_Content_005"; category['works']['directory'] = "root"; category['about'] = Array(); category['about']['title'] = "top/about"; category['about']['description'] = ""; category['about']['type'] = "ground"; category['about']['pagenation'] = "5"; category['about']['format'] = "Part_Content_006"; category['about']['directory'] = "root"; category['brand'] = Array(); category['brand']['title'] = "top/brand"; category['brand']['description'] = ""; category['brand']['type'] = "ground"; category['brand']['pagenation'] = "6"; category['brand']['format'] = "Part_Content_007"; category['brand']['directory'] = "root"; category['request'] = Array(); category['request']['title'] = "top/request"; category['request']['description'] = ""; category['request']['type'] = "ground"; category['request']['pagenation'] = "7"; category['request']['format'] = "Part_Content_008"; category['request']['directory'] = "root"; category['sns'] = Array(); category['sns']['title'] = "top/sns"; category['sns']['description'] = ""; category['sns']['type'] = "ground"; category['sns']['pagenation'] = "8"; category['sns']['format'] = "Part_Content_004"; category['sns']['directory'] = "root"; category['about/'] = Array(); category['about/']['title'] = "ABOUT US"; category['about/']['description'] = ""; category['about/']['type'] = "page"; category['about/']['pagenation'] = "9"; category['about/']['format'] = "Part_Content_010"; category['about/']['directory'] = "about/"; category['brand/'] = Array(); category['brand/']['title'] = "BRAND"; category['brand/']['description'] = ""; category['brand/']['type'] = "page"; category['brand/']['pagenation'] = "10"; category['brand/']['format'] = "Part_Content_020"; category['brand/']['directory'] = "brand/"; category['brand/quality'] = Array(); category['brand/quality']['title'] = "BRAND | 北海道品質"; category['brand/quality']['description'] = ""; category['brand/quality']['type'] = "ground"; category['brand/quality']['pagenation'] = "11"; category['brand/quality']['format'] = "Part_Content_021"; category['brand/quality']['directory'] = "brand/"; category['kutchan/'] = Array(); category['kutchan/']['title'] = "倶知安店"; category['kutchan/']['description'] = ""; category['kutchan/']['type'] = "page"; category['kutchan/']['pagenation'] = "12"; category['kutchan/']['format'] = "Part_Content_030"; category['kutchan/']['directory'] = "kutchan/"; category['asahikawa/'] = Array(); category['asahikawa/']['title'] = "旭川店"; category['asahikawa/']['description'] = ""; category['asahikawa/']['type'] = "page"; category['asahikawa/']['pagenation'] = "13"; category['asahikawa/']['format'] = "Part_Content_031"; category['asahikawa/']['directory'] = "asahikawa/"; category['info/'] = Array(); category['info/']['title'] = "INFO"; category['info/']['description'] = ""; category['info/']['type'] = "page"; category['info/']['pagenation'] = "14"; category['info/']['format'] = "Part_Content_050"; category['info/']['directory'] = "info/"; category['info/news/'] = Array(); category['info/news/']['title'] = "INFO - News"; category['info/news/']['description'] = ""; category['info/news/']['type'] = "page"; category['info/news/']['pagenation'] = "15"; category['info/news/']['format'] = "Part_Content_050"; category['info/news/']['directory'] = "info/news/"; category['info/openhouse/'] = Array(); category['info/openhouse/']['title'] = "INFO - OpenHouse"; category['info/openhouse/']['description'] = ""; category['info/openhouse/']['type'] = "page"; category['info/openhouse/']['pagenation'] = "16"; category['info/openhouse/']['format'] = "Part_Content_050"; category['info/openhouse/']['directory'] = "info/openhouse/"; category['info/modelhouse/'] = Array(); category['info/modelhouse/']['title'] = "INFO - ModelHouse"; category['info/modelhouse/']['description'] = ""; category['info/modelhouse/']['type'] = "page"; category['info/modelhouse/']['pagenation'] = "17"; category['info/modelhouse/']['format'] = "Part_Content_050"; category['info/modelhouse/']['directory'] = "info/modelhouse/"; category['info/sapporo/'] = Array(); category['info/sapporo/']['title'] = "INFO - 札幌北店"; category['info/sapporo/']['description'] = ""; category['info/sapporo/']['type'] = "page"; category['info/sapporo/']['pagenation'] = "18"; category['info/sapporo/']['format'] = "Part_Content_050"; category['info/sapporo/']['directory'] = "info/sapporo/"; category['info/kutchan/'] = Array(); category['info/kutchan/']['title'] = "INFO - 倶知安店"; category['info/kutchan/']['description'] = ""; category['info/kutchan/']['type'] = "page"; category['info/kutchan/']['pagenation'] = "19"; category['info/kutchan/']['format'] = "Part_Content_050"; category['info/kutchan/']['directory'] = "info/kutchan/"; category['info/asahikawa/'] = Array(); category['info/asahikawa/']['title'] = "INFO - 旭川店"; category['info/asahikawa/']['description'] = ""; category['info/asahikawa/']['type'] = "page"; category['info/asahikawa/']['pagenation'] = "20"; category['info/asahikawa/']['format'] = "Part_Content_050"; category['info/asahikawa/']['directory'] = "info/asahikawa/"; category['works/'] = Array(); category['works/']['title'] = "施工例"; category['works/']['description'] = ""; category['works/']['type'] = "page"; category['works/']['pagenation'] = "21"; category['works/']['format'] = "Part_Content_060"; category['works/']['directory'] = "works/"; category['works/sapporo/'] = Array(); category['works/sapporo/']['title'] = "施工例 - 札幌"; category['works/sapporo/']['description'] = ""; category['works/sapporo/']['type'] = "page"; category['works/sapporo/']['pagenation'] = "22"; category['works/sapporo/']['format'] = "Part_Content_060"; category['works/sapporo/']['directory'] = "works/sapporo/"; category['works/niseko-kutchan/'] = Array(); category['works/niseko-kutchan/']['title'] = "施工例 - ニセコ・倶知安"; category['works/niseko-kutchan/']['description'] = ""; category['works/niseko-kutchan/']['type'] = "page"; category['works/niseko-kutchan/']['pagenation'] = "23"; category['works/niseko-kutchan/']['format'] = "Part_Content_060"; category['works/niseko-kutchan/']['directory'] = "works/niseko-kutchan/"; category['works/asahikawa-biei/'] = Array(); category['works/asahikawa-biei/']['title'] = "施工例 - 旭川・美瑛"; category['works/asahikawa-biei/']['description'] = ""; category['works/asahikawa-biei/']['type'] = "page"; category['works/asahikawa-biei/']['pagenation'] = "24"; category['works/asahikawa-biei/']['format'] = "Part_Content_060"; category['works/asahikawa-biei/']['directory'] = "works/asahikawa-biei/"; category['land/'] = Array(); category['land/']['title'] = "土地/建売"; category['land/']['description'] = ""; category['land/']['type'] = "page"; category['land/']['pagenation'] = "25"; category['land/']['format'] = "Part_Content_040"; category['land/']['directory'] = "land/"; category['land/sapporo'] = Array(); category['land/sapporo']['title'] = "土地/建売 - 札幌エリア"; category['land/sapporo']['description'] = ""; category['land/sapporo']['type'] = "ground"; category['land/sapporo']['pagenation'] = "26"; category['land/sapporo']['format'] = "Part_Content_041"; category['land/sapporo']['directory'] = "land/"; category['land/kutchan'] = Array(); category['land/kutchan']['title'] = "土地/建売 - 倶知安エリア"; category['land/kutchan']['description'] = ""; category['land/kutchan']['type'] = "ground"; category['land/kutchan']['pagenation'] = "27"; category['land/kutchan']['format'] = "Part_Content_041"; category['land/kutchan']['directory'] = "land/"; category['land/biei-asahikawa'] = Array(); category['land/biei-asahikawa']['title'] = "土地/建売 - 美瑛旭川エリア"; category['land/biei-asahikawa']['description'] = ""; category['land/biei-asahikawa']['type'] = "ground"; category['land/biei-asahikawa']['pagenation'] = "28"; category['land/biei-asahikawa']['format'] = "Part_Content_041"; category['land/biei-asahikawa']['directory'] = "land/"; category['company/'] = Array(); category['company/']['title'] = "会社概要"; category['company/']['description'] = ""; category['company/']['type'] = "page"; category['company/']['pagenation'] = "29"; category['company/']['format'] = "Part_Content_070"; category['company/']['directory'] = "company/"; category['contact/'] = Array(); category['contact/']['title'] = "資料請求・お問い合せ"; category['contact/']['description'] = ""; category['contact/']['type'] = "page"; category['contact/']['pagenation'] = "30"; category['contact/']['format'] = "Part_Content_100"; category['contact/']['directory'] = "contact/"; category['privacy/'] = Array(); category['privacy/']['title'] = "プライバシーポリシー"; category['privacy/']['description'] = ""; category['privacy/']['type'] = "page"; category['privacy/']['pagenation'] = "31"; category['privacy/']['format'] = "Part_Content_080"; 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 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://sciencehome-s.com/", "" ).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://sciencehome-s.com/", "" ).replace( "?mode=preview", "" ); var scroll_id = href.replace( "https://sciencehome-s.com/", "" ).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"); 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('