$(function() { entry = Array(); category = Array(); category['profile/'] = Array(); category['profile/']['title'] = "profile"; category['profile/']['description'] = ""; category['profile/']['type'] = "page"; category['profile/']['pagenation'] = "0"; category['profile/']['format'] = "Profile_Format_001"; category['profile/']['directory'] = "profile/"; 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['info/'] = Array(); category['info/']['title'] = "info"; category['info/']['description'] = ""; category['info/']['type'] = "page"; category['info/']['pagenation'] = "2"; category['info/']['format'] = "Part_Content_040"; category['info/']['directory'] = "info/"; category['vue/'] = Array(); category['vue/']['title'] = "vue."; category['vue/']['description'] = ""; category['vue/']['type'] = "page"; category['vue/']['pagenation'] = "3"; category['vue/']['format'] = "Part_Content_002"; category['vue/']['directory'] = "vue/"; category['vue/about'] = Array(); category['vue/about']['title'] = "vue./about"; category['vue/about']['description'] = ""; category['vue/about']['type'] = "ground"; category['vue/about']['pagenation'] = "4"; category['vue/about']['format'] = "Part_Content_003"; category['vue/about']['directory'] = "vue/"; category['vue/gallery'] = Array(); category['vue/gallery']['title'] = "vue./gallery"; category['vue/gallery']['description'] = ""; category['vue/gallery']['type'] = "ground"; category['vue/gallery']['pagenation'] = "5"; category['vue/gallery']['format'] = "Part_Content_004"; category['vue/gallery']['directory'] = "vue/"; category['vue/shoplist'] = Array(); category['vue/shoplist']['title'] = "vue./shop list"; category['vue/shoplist']['description'] = ""; category['vue/shoplist']['type'] = "ground"; category['vue/shoplist']['pagenation'] = "6"; category['vue/shoplist']['format'] = "Part_Content_005"; category['vue/shoplist']['directory'] = "vue/"; category['sinsin/'] = Array(); category['sinsin/']['title'] = "sinsin"; category['sinsin/']['description'] = ""; category['sinsin/']['type'] = "page"; category['sinsin/']['pagenation'] = "7"; category['sinsin/']['format'] = "Part_Content_006"; category['sinsin/']['directory'] = "sinsin/"; category['sinsin/about'] = Array(); category['sinsin/about']['title'] = "sinsin/about"; category['sinsin/about']['description'] = ""; category['sinsin/about']['type'] = "ground"; category['sinsin/about']['pagenation'] = "8"; category['sinsin/about']['format'] = "Part_Content_007"; category['sinsin/about']['directory'] = "sinsin/"; category['sinsin/gallery'] = Array(); category['sinsin/gallery']['title'] = "sinsin/gallery"; category['sinsin/gallery']['description'] = ""; category['sinsin/gallery']['type'] = "ground"; category['sinsin/gallery']['pagenation'] = "9"; category['sinsin/gallery']['format'] = "Part_Content_008"; category['sinsin/gallery']['directory'] = "sinsin/"; category['sinsin/shoplist'] = Array(); category['sinsin/shoplist']['title'] = "sinsin/shop list"; category['sinsin/shoplist']['description'] = ""; category['sinsin/shoplist']['type'] = "ground"; category['sinsin/shoplist']['pagenation'] = "10"; category['sinsin/shoplist']['format'] = "Part_Content_009"; category['sinsin/shoplist']['directory'] = "sinsin/"; 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://babo.world/", "" ).replace( "?mode=preview", "" ); var option = ""; 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://babo.world/", "" ).replace( "?mode=preview", "" ); var scroll_id = href.replace( "https://babo.world/", "" ).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('