$(function() { entry = Array(); entry['work/6677'] = "work/Talo-Niseko(2020)"; entry['work/6457'] = "work/Corridor-of-the-Fold-(2018)"; entry['work/6656'] = "work/Four-Rectangles-(2017)"; entry['work/2258'] = "work/House-Vision-(2016)"; entry['work/4095'] = "work/Roof-and-Rectangular-(2016)"; entry['work/6644'] = "work/Little-Rectangular-(2016)"; entry['work/4571'] = "work/Bent-house-of-\"Oasa\"-(2015)"; entry['work/9898'] = "work/houseD-(2015)"; entry['work/8276'] = "work/hat-H-(2015)"; entry['work/9725'] = "work/Stairs-of-residence-(2013)"; entry['work/2566'] = "work/House-of-the-confluence-(2013)"; entry['work/9766'] = "work/casa-nord-(2012)"; entry['work/5210'] = "work/polyphonic-(2012)"; entry['work/4018'] = "work/case-(2012)"; entry['work/2826'] = "work/repository-(2012)"; entry['work/4506'] = "work/House-M-(2009)"; entry['work/5917'] = "work/Small-Atelier-(2010)"; entry['work/7428'] = "work/Shonan-House-(2009)"; entry['work/4169'] = "work/houseO-(2009)"; entry['work/3235'] = "work/Ordos-100-(2008)"; entry['work/0504'] = "work/Layered-House-(2008)"; entry['work/8269'] = "work/Agricultural-Barn-(2008)"; entry['work/6213'] = "work/House-of-Trough-(2008)"; entry['work/8535'] = "work/Rectangle-of-Light-(2007)"; entry['work/8307'] = "work/ware-house-(2007)"; entry['work/7028'] = "work/room/set-(2007)"; entry['work/7864'] = "work/Corridor-of-the-wilderness-(2006)"; entry['work/2016'] = "work/tea-house-(2006)"; entry['work/6520'] = "work/Annex-(2005)"; entry['work/7370'] = "work/White-Courthouse-(2005)"; entry['work/1333'] = "work/Rhombus-of-Sea-(2004)"; entry['work/2512'] = "work/Rectangular-Solid-of-Uncultivated-Field-Hororo-(2004)"; entry['work/8699'] = "work/Void-of-the-Sky-(2003)"; entry['work/4562'] = "work/Rectangular-Under-Truss-(2004)"; entry['work/5095'] = "work/Kaze-no-wa-–wind-circle--(2002)"; entry['work/0840'] = "work/Tokorotosa-U-House-(2001)"; entry['work/7757'] = "work/Rectangular-Forest-(2000)"; entry['work/6447'] = "work/Mirror-Site-House-(1999)"; entry['work/2234'] = "work/world-love-(2015)"; entry['work/8386'] = "work/Beauty-Salon-Renovation-(2016)"; entry['work/1207'] = "work/Sushi-Isono-(2016)"; entry['work/0438'] = "work/Office-Refurbishment-(2016)"; entry['work/6644'] = "work/Little-Rectangular-(2016)"; entry['work/0358'] = "work/MUSEUM-(2014)"; entry['work/9227'] = "work/SYMBIOSIS-(2011)"; entry['work/4152'] = "work/CHAGETUSAI-(2011)"; entry['work/0909'] = "work/place-M-(2006)"; entry['work/6677'] = "work/Talo-Niseko(2020)"; entry['work/6457'] = "work/Corridor-of-the-Fold-(2018)"; entry['work/2234'] = "work/world-love-(2015)"; entry['work/8386'] = "work/Beauty-Salon-Renovation-(2016)"; entry['work/1207'] = "work/Sushi-Isono-(2016)"; entry['work/0438'] = "work/Office-Refurbishment-(2016)"; entry['work/0358'] = "work/MUSEUM-(2014)"; entry['work/8800'] = "work/Shury\'s-Shop-(2013)"; entry['work/9227'] = "work/SYMBIOSIS-(2011)"; entry['work/4152'] = "work/CHAGETUSAI-(2011)"; entry['work/8140'] = "work/Farm-Tomita-Project-Roof2-(2010)"; entry['work/3844'] = "work/Farm-Tomita-Project-Roof-East-(2010)"; entry['work/5320'] = "work/Farm-Tomita-Project-Corridor3-(2010)"; entry['work/4739'] = "work/Farm-Tomita-Project-Roof1-(2010)"; entry['work/4381'] = "work/Farm-Tomita-Project-Corridor1-(2010)"; entry['work/7965'] = "work/Farm-Tomita-Project-Corridor2-(2010)"; entry['work/5917'] = "work/Small-Atelier-(2010)"; entry['work/4234'] = "work/Signal-Barn-(2009)"; entry['work/4538'] = "work/Hotel-Extension-(2008)"; entry['work/8307'] = "work/ware-house-(2007)"; entry['work/3768'] = "work/Hair-salon-Extension-(2006)"; entry['work/0909'] = "work/place-M-(2006)"; entry['work/2016'] = "work/tea-house-(2006)"; entry['work/7478'] = "work/SAPPORO-ART-STAGE-2018-(2018)"; entry['work/1598'] = "work/IFDA-(2017)"; entry['work/2258'] = "work/House-Vision-(2016)"; entry['work/6278'] = "work/7-COOL-ARCHITECTS-(2015)"; entry['work/7086'] = "work/\"Korogaru\"-Park-in-Nature-YCAM-InterLab+Jun-Igarashi-(2014)"; entry['work/7332'] = "work/scale-forest-(2014)"; entry['work/6822'] = "work/density-(2007)"; entry['work/4933'] = "work/Winter-Circus-(2007)"; entry['work/2016'] = "work/tea-house-(2006)"; entry['work/3068'] = "work/Osaka-contemporary-theater-festival’s-temporary-playhouse-(2004)"; entry['work/7478'] = "work/SAPPORO-ART-STAGE-2018-(2018)"; entry['work/6278'] = "work/7-COOL-ARCHITECTS-(2015)"; entry['work/7086'] = "work/\"Korogaru\"-Park-in-Nature-YCAM-InterLab+Jun-Igarashi-(2014)"; entry['work/4933'] = "work/Winter-Circus-(2007)"; entry['work/2016'] = "work/tea-house-(2006)"; entry['work/3068'] = "work/Osaka-contemporary-theater-festival’s-temporary-playhouse-(2004)"; entry['work/6677'] = "work/Talo-Niseko(2020)"; entry['work/6278'] = "work/7-COOL-ARCHITECTS-(2015)"; entry['work/7238'] = "work/Storehouse-(2010)"; entry['work/1237'] = "work/Library-(2010)"; entry['work/9182'] = "work/House-of-Eden-(2010)"; entry['work/4538'] = "work/Hotel-Extension-(2008)"; entry['work/3235'] = "work/Ordos-100-(2008)"; entry['work/2070'] = "work/My-cup-support-project-(2006)"; entry['work/1333'] = "work/Rhombus-of-Sea-(2004)"; entry['work/7180'] = "work/Void-of-Rectangular-Solid-(2002)"; entry['work/6447'] = "work/Mirror-Site-House-(1999)"; entry['work/2258'] = "work/House-Vision-(2016)"; entry['work/6278'] = "work/7-COOL-ARCHITECTS-(2015)"; entry['work/4282'] = "work/Project-Yubari-(2014)"; entry['work/9408'] = "work/Multistory-detached-house-apartment-building-(2013)"; entry['work/1930'] = "work/Taichung-City-Cultural-Center-(2013)"; entry['work/9182'] = "work/House-of-Eden-(2010)"; entry['work/5905'] = "work/Rokkousan-Project-(2008)"; entry['work/3235'] = "work/Ordos-100-(2008)"; entry['work/8647'] = "work/The-Bezalel-Academy-of-Arts-and-Design-(2006)"; entry['work/3806'] = "work/KOKUEIKAN-PROJECT-(2006)"; entry['work/2909'] = "work/Toyota-City-Aitai-Exchange-Pavilion-(2006)"; entry['work/1326'] = "work/Shiretoko-syari-Station-project-(2006)"; entry['work/6741'] = "work/Ferrous-Park-(2006)"; entry['work/5002'] = "work/Korean-museum-competition-(2006)"; entry['work/2849'] = "work/Iwamizawa-Station-project-(2005)"; entry['work/3886'] = "work/Nakanoshima-Shinsen-station-project-(2004)"; entry['work/3068'] = "work/Osaka-contemporary-theater-festival’s-temporary-playhouse-(2004)"; entry['work/8104'] = "work/water-cube-project-(2005)"; entry['work/1598'] = "work/IFDA-(2017)"; entry['work/2258'] = "work/House-Vision-(2016)"; entry['work/6278'] = "work/7-COOL-ARCHITECTS-(2015)"; entry['work/7086'] = "work/\"Korogaru\"-Park-in-Nature-YCAM-InterLab+Jun-Igarashi-(2014)"; entry['work/7332'] = "work/scale-forest-(2014)"; entry['work/5029'] = "work/TOTO-GALLERY・MA-The-Construction-of-A-State-(2011)"; entry['work/8598'] = "work/forest-islanad-(2011)"; entry['work/7165'] = "work/Japan-Design-Committee-Design-Gallery-1953-(2009)"; entry['work/7147'] = "work/modello-Chair-(2008)"; entry['work/6822'] = "work/density-(2007)"; entry['work/4933'] = "work/Winter-Circus-(2007)"; entry['work/3068'] = "work/Osaka-contemporary-theater-festival’s-temporary-playhouse-(2004)"; entry['news/8621'] = "news/Niseko-House"; entry['news/7856'] = "news/TENTOZAN-Village-Project"; entry['news/3534'] = "news/Talo-Niseko(2020)"; entry['news/5567'] = "news/Instagram"; entry['news/8072'] = "news/HP-was-renewed."; 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['menu/'] = Array(); category['menu/']['title'] = "MENU"; category['menu/']['description'] = ""; category['menu/']['type'] = "page"; category['menu/']['pagenation'] = "1"; category['menu/']['format'] = "Part_Content_002"; category['menu/']['directory'] = "menu/"; category['bio/'] = Array(); category['bio/']['title'] = "BIOGRAPHY"; category['bio/']['description'] = ""; category['bio/']['type'] = "page"; category['bio/']['pagenation'] = "2"; category['bio/']['format'] = "Part_Content_003"; category['bio/']['directory'] = "bio/"; category['work/'] = Array(); category['work/']['title'] = "WORK"; category['work/']['description'] = ""; category['work/']['type'] = "page"; category['work/']['pagenation'] = "3"; category['work/']['format'] = "Part_Content_004"; category['work/']['directory'] = "work/"; category['work/house/'] = Array(); category['work/house/']['title'] = "WORK - HOUSE"; category['work/house/']['description'] = ""; category['work/house/']['type'] = "page"; category['work/house/']['pagenation'] = "4"; category['work/house/']['format'] = "Part_Content_004"; category['work/house/']['directory'] = "work/house/"; category['work/renovation/'] = Array(); category['work/renovation/']['title'] = "WORK - RENOVATION"; category['work/renovation/']['description'] = ""; category['work/renovation/']['type'] = "page"; category['work/renovation/']['pagenation'] = "5"; category['work/renovation/']['format'] = "Part_Content_004"; category['work/renovation/']['directory'] = "work/renovation/"; category['work/shop/'] = Array(); category['work/shop/']['title'] = "WORK - SHOP"; category['work/shop/']['description'] = ""; category['work/shop/']['type'] = "page"; category['work/shop/']['pagenation'] = "6"; category['work/shop/']['format'] = "Part_Content_004"; category['work/shop/']['directory'] = "work/shop/"; category['work/other/'] = Array(); category['work/other/']['title'] = "WORK - OTHER"; category['work/other/']['description'] = ""; category['work/other/']['type'] = "page"; category['work/other/']['pagenation'] = "7"; category['work/other/']['format'] = "Part_Content_005"; category['work/other/']['directory'] = "work/other/"; category['news/'] = Array(); category['news/']['title'] = "NEWS"; category['news/']['description'] = ""; category['news/']['type'] = "page"; category['news/']['pagenation'] = "8"; category['news/']['format'] = "Part_Content_006"; category['news/']['directory'] = "news/"; category['books/'] = Array(); category['books/']['title'] = "BOOKS"; category['books/']['description'] = ""; category['books/']['type'] = "page"; category['books/']['pagenation'] = "9"; category['books/']['format'] = "Part_Content_007"; category['books/']['directory'] = "books/"; category['contact/'] = Array(); category['contact/']['title'] = "CONTACT"; category['contact/']['description'] = ""; category['contact/']['type'] = "page"; category['contact/']['pagenation'] = "10"; category['contact/']['format'] = "Part_Content_008"; 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://jun-igarashi.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 ); } window.pjax = function(href, option, target){ $(".float_menu_toggle").removeClass("on"); hash = ""; if(href.indexOf( "#/" ) != -1){ hash_arr = href.split("#/"); href = hash_arr[0]; hash = hash_arr[1]; } id = href.replace( "https://jun-igarashi.jp/", "" ).replace( "?mode=preview", "" ); var scroll_id = href.replace( "https://jun-igarashi.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('