$(function() { entry = Array(); // entry['catalog/b_az'] = "catalog/7530"; entry['catalog/7530'] = "catalog/b_az"; // entry['catalog/b_ps_re_hsp_ssp'] = "catalog/0446"; entry['catalog/0446'] = "catalog/b_ps_re_hsp_ssp"; // entry['catalog/b_an'] = "catalog/0751"; entry['catalog/0751'] = "catalog/b_an"; // entry['catalog/b_hc'] = "catalog/1055"; entry['catalog/1055'] = "catalog/b_hc"; // entry['catalog/b_ga'] = "catalog/8834"; entry['catalog/8834'] = "catalog/b_ga"; // entry['catalog/b_mohe'] = "catalog/1895"; entry['catalog/1895'] = "catalog/b_mohe"; // entry['catalog/b_gomu'] = "catalog/7758"; entry['catalog/7758'] = "catalog/b_gomu"; // entry['catalog/b_set'] = "catalog/4313"; entry['catalog/4313'] = "catalog/b_set"; // entry['catalog/b_mizu'] = "catalog/5007"; entry['catalog/5007'] = "catalog/b_mizu"; // entry['catalog/s_nan'] = "catalog/9665"; entry['catalog/9665'] = "catalog/s_nan"; // entry['catalog/s_gomu'] = "catalog/1978"; entry['catalog/1978'] = "catalog/s_gomu"; // entry['catalog/s_an'] = "catalog/5615"; entry['catalog/5615'] = "catalog/s_an"; // entry['catalog/s_mohe'] = "catalog/9673"; entry['catalog/9673'] = "catalog/s_mohe"; // entry['catalog/s_mizu'] = "catalog/7250"; entry['catalog/7250'] = "catalog/s_mizu"; // entry['catalog/r_sheet_sponge'] = "catalog/6782"; entry['catalog/6782'] = "catalog/r_sheet_sponge"; // entry['catalog/r_boushin'] = "catalog/5047"; entry['catalog/5047'] = "catalog/r_boushin"; // entry['catalog/r_mat'] = "catalog/8000"; entry['catalog/8000'] = "catalog/r_mat"; // entry['catalog/r_shaon'] = "catalog/0096"; entry['catalog/0096'] = "catalog/r_shaon"; // entry['catalog/r_eco'] = "catalog/4484"; entry['catalog/4484'] = "catalog/r_eco"; // entry['catalog/r_magnet'] = "catalog/6123"; entry['catalog/6123'] = "catalog/r_magnet"; // entry['catalog/c_hmag'] = "catalog/1255"; entry['catalog/1255'] = "catalog/c_hmag"; // entry['catalog/c_stopper'] = "catalog/7630"; entry['catalog/7630'] = "catalog/c_stopper"; // entry['catalog/c_schto'] = "catalog/1072"; entry['catalog/1072'] = "catalog/c_schto"; 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['catalog'] = Array(); category['catalog']['title'] = "top/カタログ"; category['catalog']['description'] = ""; category['catalog']['type'] = "ground"; category['catalog']['pagenation'] = "1"; category['catalog']['format'] = "Part_Content_002"; category['catalog']['directory'] = "root"; category['products'] = Array(); category['products']['title'] = "top/製品・用途"; category['products']['description'] = ""; category['products']['type'] = "ground"; category['products']['pagenation'] = "2"; category['products']['format'] = "Part_Content_003"; category['products']['directory'] = "root"; category['info'] = Array(); category['info']['title'] = "top/お知らせ"; category['info']['description'] = ""; category['info']['type'] = "ground"; category['info']['pagenation'] = "3"; category['info']['format'] = "Part_Content_004"; category['info']['directory'] = "root"; category['company'] = Array(); category['company']['title'] = "top/COMPANY"; category['company']['description'] = ""; category['company']['type'] = "ground"; category['company']['pagenation'] = "4"; category['company']['format'] = "Part_Content_005"; category['company']['directory'] = "root"; category['catalog/'] = Array(); category['catalog/']['title'] = "カタログ"; category['catalog/']['description'] = ""; category['catalog/']['type'] = "page"; category['catalog/']['pagenation'] = "5"; category['catalog/']['format'] = "Part_Content_010"; category['catalog/']['directory'] = "catalog/"; category['catalog/bestex/'] = Array(); category['catalog/bestex/']['title'] = "カタログ - BESTEX"; category['catalog/bestex/']['description'] = ""; category['catalog/bestex/']['type'] = "page"; category['catalog/bestex/']['pagenation'] = "6"; category['catalog/bestex/']['format'] = "Part_Content_010"; category['catalog/bestex/']['directory'] = "catalog/bestex/"; category['catalog/selecty/'] = Array(); category['catalog/selecty/']['title'] = "カタログ - SELECTY"; category['catalog/selecty/']['description'] = ""; category['catalog/selecty/']['type'] = "page"; category['catalog/selecty/']['pagenation'] = "7"; category['catalog/selecty/']['format'] = "Part_Content_010"; category['catalog/selecty/']['directory'] = "catalog/selecty/"; category['catalog/rubber-sheet/'] = Array(); category['catalog/rubber-sheet/']['title'] = "カタログ - ゴムシート類"; category['catalog/rubber-sheet/']['description'] = ""; category['catalog/rubber-sheet/']['type'] = "page"; category['catalog/rubber-sheet/']['pagenation'] = "8"; category['catalog/rubber-sheet/']['format'] = "Part_Content_010"; category['catalog/rubber-sheet/']['directory'] = "catalog/rubber-sheet/"; category['catalog/custom-made/'] = Array(); category['catalog/custom-made/']['title'] = "カタログ - オーダー品"; category['catalog/custom-made/']['description'] = ""; category['catalog/custom-made/']['type'] = "page"; category['catalog/custom-made/']['pagenation'] = "9"; category['catalog/custom-made/']['format'] = "Part_Content_010"; category['catalog/custom-made/']['directory'] = "catalog/custom-made/"; category['info/'] = Array(); category['info/']['title'] = "INFO"; category['info/']['description'] = ""; category['info/']['type'] = "page"; category['info/']['pagenation'] = "10"; category['info/']['format'] = "Part_Content_050"; category['info/']['directory'] = "info/"; category['info/news/'] = Array(); category['info/news/']['title'] = "INFO - お知らせ"; category['info/news/']['description'] = ""; category['info/news/']['type'] = "page"; category['info/news/']['pagenation'] = "11"; category['info/news/']['format'] = "Part_Content_050"; category['info/news/']['directory'] = "info/news/"; category['info/recruit/'] = Array(); category['info/recruit/']['title'] = "INFO - 採用情報"; category['info/recruit/']['description'] = ""; category['info/recruit/']['type'] = "page"; category['info/recruit/']['pagenation'] = "12"; category['info/recruit/']['format'] = "Part_Content_050"; category['info/recruit/']['directory'] = "info/recruit/"; category['info/other/'] = Array(); category['info/other/']['title'] = "INFO - その他"; category['info/other/']['description'] = ""; category['info/other/']['type'] = "page"; category['info/other/']['pagenation'] = "13"; category['info/other/']['format'] = "Part_Content_050"; category['info/other/']['directory'] = "info/other/"; category['products/'] = Array(); category['products/']['title'] = "製品・用途"; category['products/']['description'] = ""; category['products/']['type'] = "page"; category['products/']['pagenation'] = "14"; category['products/']['format'] = "Part_Content_060"; category['products/']['directory'] = "products/"; category['products/door/'] = Array(); category['products/door/']['title'] = "製品・用途 - ドアまわり"; category['products/door/']['description'] = ""; category['products/door/']['type'] = "page"; category['products/door/']['pagenation'] = "15"; category['products/door/']['format'] = "Part_Content_060"; category['products/door/']['directory'] = "products/door/"; category['products/curtain-wall/'] = Array(); category['products/curtain-wall/']['title'] = "製品・用途 - カーテンウォール"; category['products/curtain-wall/']['description'] = ""; category['products/curtain-wall/']['type'] = "page"; category['products/curtain-wall/']['pagenation'] = "16"; category['products/curtain-wall/']['format'] = "Part_Content_060"; category['products/curtain-wall/']['directory'] = "products/curtain-wall/"; category['products/window-glass/'] = Array(); category['products/window-glass/']['title'] = "製品・用途 - 窓・ガラスまわり"; category['products/window-glass/']['description'] = ""; category['products/window-glass/']['type'] = "page"; category['products/window-glass/']['pagenation'] = "17"; category['products/window-glass/']['format'] = "Part_Content_060"; category['products/window-glass/']['directory'] = "products/window-glass/"; category['products/cover-protector/'] = Array(); category['products/cover-protector/']['title'] = "製品・用途 - カバー材・プロテクター"; category['products/cover-protector/']['description'] = ""; category['products/cover-protector/']['type'] = "page"; category['products/cover-protector/']['pagenation'] = "18"; category['products/cover-protector/']['format'] = "Part_Content_060"; category['products/cover-protector/']['directory'] = "products/cover-protector/"; category['products/seismicisolation-expansion/'] = Array(); category['products/seismicisolation-expansion/']['title'] = "製品・用途 - 免震関連・エキスパンション"; category['products/seismicisolation-expansion/']['description'] = ""; category['products/seismicisolation-expansion/']['type'] = "page"; category['products/seismicisolation-expansion/']['pagenation'] = "19"; category['products/seismicisolation-expansion/']['format'] = "Part_Content_060"; category['products/seismicisolation-expansion/']['directory'] = "products/seismicisolation-expansion/"; category['products/renewal/'] = Array(); category['products/renewal/']['title'] = "製品・用途 - ゴムパーツのリニューアル"; category['products/renewal/']['description'] = ""; category['products/renewal/']['type'] = "page"; category['products/renewal/']['pagenation'] = "20"; category['products/renewal/']['format'] = "Part_Content_060"; category['products/renewal/']['directory'] = "products/renewal/"; category['company/'] = Array(); category['company/']['title'] = "会社概要"; category['company/']['description'] = ""; category['company/']['type'] = "page"; category['company/']['pagenation'] = "21"; category['company/']['format'] = "Part_Content_070"; category['company/']['directory'] = "company/"; category['company/message/'] = Array(); category['company/message/']['title'] = "ごあいさつ"; category['company/message/']['description'] = ""; category['company/message/']['type'] = "page"; category['company/message/']['pagenation'] = "22"; category['company/message/']['format'] = "Part_Content_071"; category['company/message/']['directory'] = "company/message/"; category['company/outline/'] = Array(); category['company/outline/']['title'] = "沿革"; category['company/outline/']['description'] = ""; category['company/outline/']['type'] = "page"; category['company/outline/']['pagenation'] = "23"; category['company/outline/']['format'] = "Part_Content_072"; category['company/outline/']['directory'] = "company/outline/"; category['company/quality/'] = Array(); category['company/quality/']['title'] = "品質方針"; category['company/quality/']['description'] = ""; category['company/quality/']['type'] = "page"; category['company/quality/']['pagenation'] = "24"; category['company/quality/']['format'] = "Part_Content_073"; category['company/quality/']['directory'] = "company/quality/"; category['company/sdgs/'] = Array(); category['company/sdgs/']['title'] = "SDGs"; category['company/sdgs/']['description'] = ""; category['company/sdgs/']['type'] = "page"; category['company/sdgs/']['pagenation'] = "25"; category['company/sdgs/']['format'] = "Part_Content_075"; category['company/sdgs/']['directory'] = "company/sdgs/"; category['company/philosophy/'] = Array(); category['company/philosophy/']['title'] = "ホクシヨー3本の柱"; category['company/philosophy/']['description'] = ""; category['company/philosophy/']['type'] = "page"; category['company/philosophy/']['pagenation'] = "26"; category['company/philosophy/']['format'] = "Part_Content_074"; category['company/philosophy/']['directory'] = "company/philosophy/"; category['contact/'] = Array(); category['contact/']['title'] = "お問合わせ・カタログ請求"; category['contact/']['description'] = ""; category['contact/']['type'] = "page"; category['contact/']['pagenation'] = "27"; 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'] = "28"; 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 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://www.hokusyo.co.jp/", "" ).replace( "?mode=preview", "" ); var option = ""; class_active(past_directory); gnav_active(past_directory); function PJAX_pjax( href, option, target ) { console.log(option); hash = ""; if(href.indexOf( "#/" ) != -1){ hash_arr = href.split("#/"); href = hash_arr[0]; hash = hash_arr[1]; hashchange_action( hash ); } if(href.indexOf( "#p/" ) != -1){ hash_arr = href.split("#p/"); href = hash_arr[0]; hash = "#p/"+hash_arr[1]; // hashchange_action( hash ); } var scroll_id = href.replace( "https://www.hokusyo.co.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://www.hokusyo.co.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('