{"id":4,"date":"2019-07-19T08:29:07","date_gmt":"2019-07-19T08:29:07","guid":{"rendered":"http:\/\/lchholidays.com\/cn\/?page_id=4"},"modified":"2019-07-19T08:29:51","modified_gmt":"2019-07-19T08:29:51","slug":"homepage","status":"publish","type":"page","link":"https:\/\/lchholidays.com\/jp\/","title":{"rendered":"Homepage"},"content":{"rendered":"\n<input type=\"hidden\" id=\"cal_width1\" value=\"700\" \/>\n<div id='bigcalendar1' class=\"wdc_calendar\"><\/div>\n<script>\nlet i = 0;\n\nvar tb_pathToImage = \"https:\/\/lchholidays.com\/jp\/wp-content\/plugins\/spider-event-calendar\/images\/loadingAnimation.gif\";\nvar tb_closeImage = \"https:\/\/lchholidays.com\/jp\/wp-content\/plugins\/spider-event-calendar\/images\/tb-close.png\"\nvar randi;\nif (typeof showbigcalendar != 'function') {\n  function showbigcalendar(id, calendarlink, randi, widget) {\n    jQuery.ajax({\n      type: \"GET\",\n      url: calendarlink,\n      data: {},\n      success: function(data) {\n        jQuery('#' + id).html(data);\n        spider_calendar_ajax_success(id, calendarlink, randi, widget);\n        updateCalendar(null);\n      }\n    });\n  }\n\n  function spider_calendar_ajax_success(id, calendarlink, randi, widget) {\n    jQuery(document).ready(function() {\n      jQuery('#views_select').toggle(function() {\n        jQuery('#drop_down_views').stop(true, true).delay(200).slideDown(500);\n        jQuery('#views_select .arrow-down').addClass(\"show_arrow\");\n        jQuery('#views_select .arrow-right').removeClass(\"show_arrow\");\n      }, function() {\n        jQuery('#drop_down_views').stop(true, true).slideUp(500);\n        jQuery('#views_select .arrow-down').removeClass(\"show_arrow\");\n        jQuery('#views_select .arrow-right').addClass(\"show_arrow\");\n      });\n    });\n    if (widget != 1) {\n      jQuery('drop_down_views').hide();\n      var parent_width = document.getElementById('bigcalendar' + randi).parentNode.clientWidth;\n      var calwidth = document.getElementById('cal_width' + randi).value;\n      var responsive_width = (calwidth) \/ parent_width * 100;\n      \/\/ document.getElementById('bigcalendar' + randi).setAttribute('style', 'width:' + responsive_width + '%;');\n      jQuery('pop_table').css('height', '100%');\n    }\n    var thickDims, tbWidth, tbHeight;\n    jQuery(document).ready(function($) {\n      if (\/iPad|iPhone|iPod\/.test(navigator.userAgent) && !window.MSStream) {\n        jQuery('body').addClass('ios_device');\n      }\n      setInterval(function() {\n        if (jQuery(\"body\").hasClass(\"modal-open\")) jQuery(\"html\").addClass(\"thickbox_open\");\n        else jQuery(\"html\").removeClass(\"thickbox_open\");\n      }, 500);\n      thickDims = function() {\n        var tbWindow = jQuery('#TB_window'),\n          H = jQuery(window).height(),\n          W = jQuery(window).width(),\n          w, h;\n\n        \/\/ --- WIDTH LOGIC ---\n        \/\/ If the window is wider than 1000px, use 900px. \n        \/\/ Otherwise, use 90% of the screen width so it doesn't touch the edges.\n        if (W > 1000) {\n          w = 900;\n        } else {\n          w = W * 0.9;\n        }\n\n        \/\/ --- HEIGHT LOGIC ---\n        \/\/ Set height to 90% of the browser window height\n        h = H * 0.9;\n\n        if (tbWindow.length || tbWindow.size()) {\n          \/\/ Apply the calculated width and height\n          tbWindow.width(w).height(h);\n          jQuery('#TB_iframeContent').width(w).height(h - 27);\n\n          \/\/ Center the window horizontally\n          tbWindow.css({\n            'margin-left': '-' + parseInt((w \/ 2), 10) + 'px',\n            'left': '50%'\n          });\n\n          \/\/ Center the window vertically\n          if (typeof document.body.style.maxWidth != 'undefined') {\n            tbWindow.css({\n              'top': (H - h) \/ 2 + 'px',\n              'margin-top': '0'\n            });\n          }\n        }\n\n        \/\/ --- MOBILE OVERRIDE (Optional) ---\n        \/\/ For very small phones, we ensure it stays 90% wide and fills the screen\n        if (W < 768) {\n          tbWindow.css({\n            \"width\": \"90%\",\n            \"height\": \"90%\",\n            \"left\": \"5%\",\n            \"margin-left\": \"0\"\n          });\n        }\n      };\n      thickDims();\n      jQuery(window).resize(function() {\n        thickDims();\n      });\n      jQuery('a.thickbox-preview' + id).click(function() {\n        tb_click.call(this);\n        var alink = jQuery(this).parents('.available-theme').find('.activatelink'),\n          link = '',\n          href = jQuery(this).attr('href'),\n          url, text;\n        var reg_with = new RegExp(xx_cal_xx + \"tbWidth=[0-9]+\");\n        if (tbWidth = href.match(reg_with))\n          tbWidth = parseInt(tbWidth[0].replace(\/[^0-9]+\/g, ''), 10);\n        else\n          tbWidth = jQuery(window).width() - 90;\n        var reg_heght = new RegExp(xx_cal_xx + \"tbHeight=[0-9]+\");\n        if (tbHeight = href.match(reg_heght))\n          tbHeight = parseInt(tbHeight[0].replace(\/[^0-9]+\/g, ''), 10);\n        else\n          tbHeight = jQuery(window).height() - 60;\n        jQuery('#TB_ajaxWindowTitle').css({\n          'float': 'right'\n        }).html(link);\n        thickDims();\n        return false;\n      });\n\n    });\n\n\n  }\n\n  function updateCalendar(j) {\n\n    let calaDay = document.querySelectorAll('.cala_day');\n    let sitePage = document.getElementById('page');\n\n    if (j == null) return;\n\n    function updateTables() {\n      for (const cala of calaDay) {\n        cala.classList.add('current-day');\n      }\n    }\n\n    function removePast() {\n      sitePage.classList.add('future');\n    }\n\n    if (j) {\n      i--;\n      if (i < 0) {\n        updateTables();\n        console.log(i);\n      } else if (i > 0) {\n        sitePage.classList.add('future');\n        console.log(i);\n      } else {\n        sitePage.classList.remove('future');\n        console.log(i);\n      }\n    } else {\n      i++;\n      if (i < 0) {\n        updateTables();\n        console.log(i);\n      } else if (i > 0) {\n        sitePage.classList.add('future');\n        console.log(i);\n      } else {\n        console.log(i);\n        sitePage.classList.remove('future');\n      }\n    }\n\n  }\n\n\n\n}\ndocument.onkeydown = function(evt) {\n  evt = evt || window.event;\n  if (evt.keyCode == 27) {\n    document.getElementById('sbox-window').close();\n  }\n};\n showbigcalendar('bigcalendar1', 'https:\/\/lchholidays.com\/jp\/wp-admin\/admin-ajax.php?action=spiderbigcalendar_month&theme_id=13&calendar=1&select=month,&date=2026-04&months&many_sp_calendar=1&widget=0&rand=1', '1', '0');\n<\/script>\n\n<style>\n#TB_window iframe {\n  background: #FFFFFF;\n}\n<\/style>\n\n","protected":false},"excerpt":{"rendered":"<p> [&#8230;]<\/p>\n<p><a class=\"btn btn-secondary understrap-read-more-link\" href=\"https:\/\/lchholidays.com\/jp\/\">Read More&#8230;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-4","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/lchholidays.com\/jp\/wp-json\/wp\/v2\/pages\/4","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lchholidays.com\/jp\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/lchholidays.com\/jp\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/lchholidays.com\/jp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lchholidays.com\/jp\/wp-json\/wp\/v2\/comments?post=4"}],"version-history":[{"count":0,"href":"https:\/\/lchholidays.com\/jp\/wp-json\/wp\/v2\/pages\/4\/revisions"}],"wp:attachment":[{"href":"https:\/\/lchholidays.com\/jp\/wp-json\/wp\/v2\/media?parent=4"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}