$(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['about'] = Array(); category['about']['title'] = "top/ココントフォト"; category['about']['description'] = ""; category['about']['type'] = "ground"; category['about']['pagenation'] = "1"; category['about']['format'] = "Part_Content_002"; category['about']['directory'] = "root"; category['gallery'] = Array(); category['gallery']['title'] = "top/PHOTO GALLERY"; category['gallery']['description'] = ""; category['gallery']['type'] = "ground"; category['gallery']['pagenation'] = "2"; category['gallery']['format'] = "Part_Content_003"; category['gallery']['directory'] = "root"; category['menu'] = Array(); category['menu']['title'] = "top/撮影料金"; category['menu']['description'] = ""; category['menu']['type'] = "ground"; category['menu']['pagenation'] = "3"; category['menu']['format'] = "Part_Content_004"; category['menu']['directory'] = "root"; category['flow'] = Array(); category['flow']['title'] = "top/ご予約の流れ・撮影リクエスト"; category['flow']['description'] = ""; category['flow']['type'] = "ground"; category['flow']['pagenation'] = "4"; category['flow']['format'] = "Part_Content_005"; category['flow']['directory'] = "root"; category['news'] = Array(); category['news']['title'] = "top/最新情報"; category['news']['description'] = ""; category['news']['type'] = "ground"; category['news']['pagenation'] = "5"; category['news']['format'] = "Part_Content_006"; category['news']['directory'] = "root"; category['blog'] = Array(); category['blog']['title'] = "top/COCONTO PHOTO BLOG"; category['blog']['description'] = ""; category['blog']['type'] = "ground"; category['blog']['pagenation'] = "6"; category['blog']['format'] = "Part_Content_007"; category['blog']['directory'] = "root"; category['menu/'] = Array(); category['menu/']['title'] = "撮影料金一覧"; category['menu/']['description'] = ""; category['menu/']['type'] = "page"; category['menu/']['pagenation'] = "7"; category['menu/']['format'] = "Part_Content_010"; category['menu/']['directory'] = "menu/"; category['menu/newborn'] = Array(); category['menu/newborn']['title'] = "撮影料金一覧/ニューボーンフォト"; category['menu/newborn']['description'] = ""; category['menu/newborn']['type'] = "ground"; category['menu/newborn']['pagenation'] = "8"; category['menu/newborn']['format'] = "Part_Content_011"; category['menu/newborn']['directory'] = "menu/"; category['menu/100days'] = Array(); category['menu/100days']['title'] = "撮影料金一覧/100日記念フォト"; category['menu/100days']['description'] = ""; category['menu/100days']['type'] = "ground"; category['menu/100days']['pagenation'] = "9"; category['menu/100days']['format'] = "Part_Content_011"; category['menu/100days']['directory'] = "menu/"; category['menu/location'] = Array(); category['menu/location']['title'] = "撮影料金一覧/おさんぽフォト"; category['menu/location']['description'] = ""; category['menu/location']['type'] = "ground"; category['menu/location']['pagenation'] = "10"; category['menu/location']['format'] = "Part_Content_011"; category['menu/location']['directory'] = "menu/"; category['menu/wedding'] = Array(); category['menu/wedding']['title'] = "撮影料金一覧/ウェディングフォト"; category['menu/wedding']['description'] = ""; category['menu/wedding']['type'] = "ground"; category['menu/wedding']['pagenation'] = "11"; category['menu/wedding']['format'] = "Part_Content_011"; category['menu/wedding']['directory'] = "menu/"; category['flow/'] = Array(); category['flow/']['title'] = "ご利用の流れ"; category['flow/']['description'] = ""; category['flow/']['type'] = "page"; category['flow/']['pagenation'] = "12"; category['flow/']['format'] = "Part_Content_020"; category['flow/']['directory'] = "flow/"; category['studio/'] = Array(); category['studio/']['title'] = "ココントフォトについて"; category['studio/']['description'] = ""; category['studio/']['type'] = "page"; category['studio/']['pagenation'] = "13"; category['studio/']['format'] = "Part_Content_030"; category['studio/']['directory'] = "studio/"; category['studio/photographer'] = Array(); category['studio/photographer']['title'] = "ココントフォトについて/フォトグラファー"; category['studio/photographer']['description'] = ""; category['studio/photographer']['type'] = "ground"; category['studio/photographer']['pagenation'] = "14"; category['studio/photographer']['format'] = "Part_Content_031"; category['studio/photographer']['directory'] = "studio/"; category['studio/about'] = Array(); category['studio/about']['title'] = "ココントフォトについて/スタジオ設備"; category['studio/about']['description'] = ""; category['studio/about']['type'] = "ground"; category['studio/about']['pagenation'] = "15"; category['studio/about']['format'] = "Part_Content_032"; category['studio/about']['directory'] = "studio/"; category['studio/access'] = Array(); category['studio/access']['title'] = "ココントフォトについて/アクセス"; category['studio/access']['description'] = ""; category['studio/access']['type'] = "ground"; category['studio/access']['pagenation'] = "16"; category['studio/access']['format'] = "Part_Content_033"; category['studio/access']['directory'] = "studio/"; category['products/'] = Array(); category['products/']['title'] = "オプションアイテム"; category['products/']['description'] = ""; category['products/']['type'] = "page"; category['products/']['pagenation'] = "17"; category['products/']['format'] = "Part_Content_040"; category['products/']['directory'] = "products/"; category['gallery/'] = Array(); category['gallery/']['title'] = "GALLERY"; category['gallery/']['description'] = ""; category['gallery/']['type'] = "page"; category['gallery/']['pagenation'] = "18"; category['gallery/']['format'] = "Part_Content_050"; category['gallery/']['directory'] = "gallery/"; category['gallery/newborn/'] = Array(); category['gallery/newborn/']['title'] = "GALLERY - NEWBORN"; category['gallery/newborn/']['description'] = ""; category['gallery/newborn/']['type'] = "page"; category['gallery/newborn/']['pagenation'] = "19"; category['gallery/newborn/']['format'] = "Part_Content_050"; category['gallery/newborn/']['directory'] = "gallery/newborn/"; category['gallery/location/'] = Array(); category['gallery/location/']['title'] = "GALLERY - おさんぽフォト"; category['gallery/location/']['description'] = ""; category['gallery/location/']['type'] = "page"; category['gallery/location/']['pagenation'] = "20"; category['gallery/location/']['format'] = "Part_Content_050"; category['gallery/location/']['directory'] = "gallery/location/"; category['gallery/wedding/'] = Array(); category['gallery/wedding/']['title'] = "GALLERY - WEDDING"; category['gallery/wedding/']['description'] = ""; category['gallery/wedding/']['type'] = "page"; category['gallery/wedding/']['pagenation'] = "21"; category['gallery/wedding/']['format'] = "Part_Content_050"; category['gallery/wedding/']['directory'] = "gallery/wedding/"; category['gallery/100days/'] = Array(); category['gallery/100days/']['title'] = "GALLERY - 100DAYS"; category['gallery/100days/']['description'] = ""; category['gallery/100days/']['type'] = "page"; category['gallery/100days/']['pagenation'] = "22"; category['gallery/100days/']['format'] = "Part_Content_050"; category['gallery/100days/']['directory'] = "gallery/100days/"; category['news-blog/'] = Array(); category['news-blog/']['title'] = "News/Blog"; category['news-blog/']['description'] = ""; category['news-blog/']['type'] = "page"; category['news-blog/']['pagenation'] = "23"; category['news-blog/']['format'] = "Part_Content_060"; category['news-blog/']['directory'] = "news-blog/"; category['news-blog/news/'] = Array(); category['news-blog/news/']['title'] = "News/Blog - news"; category['news-blog/news/']['description'] = ""; category['news-blog/news/']['type'] = "page"; category['news-blog/news/']['pagenation'] = "24"; category['news-blog/news/']['format'] = "Part_Content_060"; category['news-blog/news/']['directory'] = "news-blog/news/"; category['news-blog/event/'] = Array(); category['news-blog/event/']['title'] = "News/Blog - event"; category['news-blog/event/']['description'] = ""; category['news-blog/event/']['type'] = "page"; category['news-blog/event/']['pagenation'] = "25"; category['news-blog/event/']['format'] = "Part_Content_060"; category['news-blog/event/']['directory'] = "news-blog/event/"; category['news-blog/blog/'] = Array(); category['news-blog/blog/']['title'] = "News/Blog - blog"; category['news-blog/blog/']['description'] = ""; category['news-blog/blog/']['type'] = "page"; category['news-blog/blog/']['pagenation'] = "26"; category['news-blog/blog/']['format'] = "Part_Content_060"; category['news-blog/blog/']['directory'] = "news-blog/blog/"; category['privacy/'] = Array(); category['privacy/']['title'] = "プライバシーポリシー"; category['privacy/']['description'] = ""; category['privacy/']['type'] = "page"; category['privacy/']['pagenation'] = "27"; 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 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://itsumono-photo.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]; if( option != "by_onpop" ){ PJAX_hash( hash ); } } id = href.replace( "https://itsumono-photo.jp/", "" ).replace( "?mode=preview", "" ); var scroll_id = href.replace( "https://itsumono-photo.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"); 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('