diff --git a/_g2/assets/js/lightning.min.js b/_g2/assets/js/lightning.min.js index d6795d0c..758002d5 100644 --- a/_g2/assets/js/lightning.min.js +++ b/_g2/assets/js/lightning.min.js @@ -1 +1 @@ -(()=>{var e={805:e=>{"use strict";e.exports=o,e.exports.isMobile=o,e.exports.default=o;const t=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,n=/CrOS/,i=/android|ipad|playbook|silk/i;function o(e){e||(e={});let o=e.ua;if(o||"undefined"==typeof navigator||(o=navigator.userAgent),o&&o.headers&&"string"==typeof o.headers["user-agent"]&&(o=o.headers["user-agent"]),"string"!=typeof o)return!1;let a=t.test(o)&&!n.test(o)||!!e.tablet&&i.test(o);return!a&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&-1!==o.indexOf("Macintosh")&&-1!==o.indexOf("Safari")&&(a=!0),a}}},t={};function n(i){var o=t[i];if(void 0!==o)return o.exports;var a=t[i]={exports:{}};return e[i](a,a.exports,n),a.exports}!function(e){if(void 0===e.ltg){var t=function(e,t){Array.prototype.forEach.call(document.querySelectorAll(e),t)};e.ltg={},e.ltg.action=t,e.ltg.removeClass=function(e,n){t(e,(function(e){return e.classList.remove(n)}))},e.ltg.addClass=function(e,n){t(e,(function(e){return e.classList.add(n)}))},e.ltg.swap=function(e,n,i){t(e,(function(e){e.classList.remove(n),e.classList.add(i)}))}}}(window),function(e,t){var n=e.ltg.addClass,i=(e.ltg.swap,function(){e.pageYOffset>0?t.body.classList.add("scrolled"):t.body.classList.remove("scrolled")});if(e.addEventListener("scroll",i,!1),e.addEventListener("DOMContentLoaded",i,!1),lightningOpt.header_scrool){var o=!1,a=!1,s=function(){!a&&e.pageYOffset>160?t.body.classList.add("header_scrolled"):t.body.classList.remove("header_scrolled")},r=function(n){t.body.classList.remove("header_scrolled"),e.removeEventListener("scroll",s),!1!==o&&clearTimeout(o),a=!0,o=setTimeout((function(){e.addEventListener("scroll",s,!0),a=!1}),2e3)};e.addEventListener("DOMContentLoaded",(function(){Array.prototype.forEach.call(t.getElementsByTagName("a"),(function(e){var t=e.getAttribute("href");t&&0==t.indexOf("#")&&(["tab","button"].indexOf(e.getAttribute("role"))>0||e.getAttribute("data-toggle")||e.getAttribute("carousel-control")||e.addEventListener("click",r))}))})),e.addEventListener("scroll",s,!0),e.addEventListener("DOMContentLoaded",s,!1)}function l(){Array.prototype.forEach.call(t.getElementsByTagName("iframe"),(function(e){var t=e.getAttribute("src");if(t&&(t.indexOf("youtube")>=0||t.indexOf("vimeo")>=0||t.indexOf("maps")>=0)){var n=e.getAttribute("width"),i=e.getAttribute("height")/n,o=e.offsetWidth*i;e.style.maxWidth="100%",e.style.height=o+"px"}}))}e.addEventListener("DOMContentLoaded",(function(){n("#top__fullcarousel .carousel-indicators li:first-child","active"),n("#top__fullcarousel .item:first-child","active")})),e.addEventListener("DOMContentLoaded",l);var c=!1;e.addEventListener("resize",(function(){c&&clearTimeout(c),c=setTimeout(l,200)})),e.addEventListener("DOMContentLoaded",(function(){n("textarea","form-control"),n("select","form-control"),n("input[type=text]","form-control"),n("input[type=number]","form-control"),n("input[type=search]","form-control"),n("input[type=password]","form-control"),n("input[type=email]","form-control"),n("input[type=tel]","form-control"),n("input[type=submit]","btn"),n("input[type=submit]","btn-primary"),n("form#searchform","form-inline"),n("form#searchform input[type=text]","form-group")}),!1)}(window,document),function(e,t,n){var i=!1;function o(){if(!t.body.classList.contains("jpnstyle")){var e=t.getElementsByClassName("siteHeader")[0];e.style.position="fixed";var n=e.clientHeight;if(e.nextElementSibling.style.marginTop=n+"px",t.body.classList.contains("admin-bar")){var i=t.getElementById("wpadminbar").clientHeight;e.style.top=i+"px"}}}e.addEventListener("DOMContentLoaded",(function(){t.body.classList.contains("headfix")&&(e.addEventListener("resize",(function(){!1!==i&&clearTimeout(i),i=setTimeout(o,300)})),o())})),e.addEventListener("DOMContentLoaded",(function(){if(t.body.classList.contains("header_height_changer")){var i=t.querySelector(".navbar-brand img").clientHeight,a=t.body.clientWidth;i<38&&(i=a>=991?60:40),e.addEventListener("scroll",(function(){t.body.clientWidth>=991&&((e.pageYOffset||t.documentElement.scrollTop)>10?function(e){var t=.8*e;n(".siteHeader .siteHeadContainer").stop().animate({"padding-top":"5px","padding-bottom":"0px"},100),n(".navbar-brand img").stop().animate({"max-height":t+"px"},100)}(i):function(e){n(".siteHeader .siteHeadContainer").stop().animate({"padding-top":"20px","padding-bottom":"18px"},100,(function(){o()})),n(".navbar-brand img").stop().animate({"max-height":e+"px"},100)}(i))}))}}))}(window,document,jQuery),function(e,t){function n(){var e=t.getElementsByClassName("sideSection")[0];e.style.position=null,e.style.top=null,e.style.bottom=null,e.style.left=null,e.style.right=null,e.style.width=null}function i(){var e=t.getElementById("gMenu_outer"),n=e?e.getBoundingClientRect().bottom:0;return n<0&&(n=0),n+40}function o(){var o="top";1==t.body.classList.contains("sidebar-fix-priority-top")?o="top":1==t.body.classList.contains("sidebar-fix-priority-bottom")&&(o="bottom");var a=t.body.offsetWidth,s=t.documentElement.clientHeight;if(a<992)n();else{var r=t.getElementsByClassName("mainSection")[0],l=t.getElementsByClassName("sideSection")[0],c=l.parentNode,d=r.getBoundingClientRect().top+e.pageYOffset,u=r.offsetHeight,f=l.offsetHeight;l.style.position=null,l.style.width=null;var m=l.offsetWidth,p=d+f;l.style.position=null,l.style.left=null;var v=l.getBoundingClientRect().left+e.pageXOffset,g=s-i();"bottom"===o&&g>f&&(o="top");var b=d+u-s,y=u-f,h=p-s,L=d-i();if(f>u)return;var x=!1;Lr.getBoundingClientRect().bottom&&(E=!0);var k=!1;h{!function(e,t){function n(e,n){Array.prototype.forEach.call(t.querySelectorAll(e),n)}function i(e,t){n(e,(function(e){return e.classList.remove(t)}))}function o(e,t){n(e,(function(e){return e.classList.add(t)}))}!function(e,t,i){function a(e){t.getElementById("vk-mobile-nav-menu-btn").classList.remove("menu-open"),t.getElementById("vk-mobile-nav").classList.remove("vk-mobile-nav-open")}function s(e){var i=t.getElementById("vk-mobile-nav-menu-btn");i.addEventListener("click",(function(){i.classList.contains("menu-open")?a():(o(e,"menu-open"),t.getElementById("vk-mobile-nav").classList.add("vk-mobile-nav-open"))})),n(".vk-mobile-nav li > a",(function(e){e.addEventListener("click",(function(e){e.target.getAttribute("href").indexOf(!1)&&a()}))}))}"loading"===t.readyState?t.addEventListener("DOMContentLoaded",(function(){s(i)})):s(i)}(0,t,".vk-mobile-nav-menu-btn"),function(a){function s(){e.innerWidth<=5e3?(r(),o("ul.vk-menu-acc","vk-menu-acc-active"),n("ul.vk-menu-acc ul.sub-menu",(function(e){var n=t.createElement("span");n.classList.add("acc-btn","acc-btn-open"),n.addEventListener("click",l),e.parentNode.insertBefore(n,e),e.classList.add("acc-child-close")}))):r()}function r(){i("ul.vk-menu-acc","vk-menu-acc-active"),i("ul.vk-menu-acc li","acc-parent-open"),n("ul.vk-menu-acc li .acc-btn",(function(e){return e.remove()})),i("ul.vk-menu-acc li .acc-child-close","acc-child-close"),i("ul.vk-menu-acc li .acc-child-open","acc-child-open")}function l(e){var t=e.target,n=t.parentNode,i=t.nextSibling;t.classList.contains("acc-btn-open")?(n.classList.add("acc-parent-open"),t.classList.remove("acc-btn-open"),t.classList.add("acc-btn-close"),i.classList.remove("acc-child-close"),i.classList.add("acc-child-open")):(n.classList.remove("acc-parent-open"),t.classList.remove("acc-btn-close"),t.classList.add("acc-btn-open"),i.classList.remove("acc-child-open"),i.classList.add("acc-child-close"))}!function(){var n=!1,i=t.body.offsetWidth,o=function(){var e=t.body.offsetWidth;(e{var e={805:e=>{"use strict";e.exports=o,e.exports.isMobile=o,e.exports.default=o;const t=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,n=/CrOS/,i=/android|ipad|playbook|silk/i;function o(e){e||(e={});let o=e.ua;if(o||"undefined"==typeof navigator||(o=navigator.userAgent),o&&o.headers&&"string"==typeof o.headers["user-agent"]&&(o=o.headers["user-agent"]),"string"!=typeof o)return!1;let a=t.test(o)&&!n.test(o)||!!e.tablet&&i.test(o);return!a&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&-1!==o.indexOf("Macintosh")&&-1!==o.indexOf("Safari")&&(a=!0),a}}},t={};function n(i){var o=t[i];if(void 0!==o)return o.exports;var a=t[i]={exports:{}};return e[i](a,a.exports,n),a.exports}!function(e){if(void 0===e.ltg){var t=function(e,t){Array.prototype.forEach.call(document.querySelectorAll(e),t)};e.ltg={},e.ltg.action=t,e.ltg.removeClass=function(e,n){t(e,(function(e){return e.classList.remove(n)}))},e.ltg.addClass=function(e,n){t(e,(function(e){return e.classList.add(n)}))},e.ltg.swap=function(e,n,i){t(e,(function(e){e.classList.remove(n),e.classList.add(i)}))}}}(window),function(e,t){var n=e.ltg.addClass,i=(e.ltg.swap,function(){e.pageYOffset>0?t.body.classList.add("scrolled"):t.body.classList.remove("scrolled")});if(e.addEventListener("scroll",i,!1),e.addEventListener("DOMContentLoaded",i,!1),lightningOpt.header_scrool){var o=!1,a=!1,s=function(){!a&&e.pageYOffset>160?t.body.classList.add("header_scrolled"):t.body.classList.remove("header_scrolled")},r=function(n){t.body.classList.remove("header_scrolled"),e.removeEventListener("scroll",s),!1!==o&&clearTimeout(o),a=!0,o=setTimeout((function(){e.addEventListener("scroll",s,!0),a=!1}),2e3)};e.addEventListener("DOMContentLoaded",(function(){Array.prototype.forEach.call(t.getElementsByTagName("a"),(function(e){var t=e.getAttribute("href");t&&0==t.indexOf("#")&&(["tab","button"].indexOf(e.getAttribute("role"))>0||e.getAttribute("data-toggle")||e.getAttribute("carousel-control")||e.addEventListener("click",r))}))})),e.addEventListener("scroll",s,!0),e.addEventListener("DOMContentLoaded",s,!1)}function l(){Array.prototype.forEach.call(t.getElementsByTagName("iframe"),(function(e){var t=e.getAttribute("src");if(t&&(t.indexOf("youtube")>=0||t.indexOf("vimeo")>=0||t.indexOf("maps")>=0)){var n=e.getAttribute("width"),i=e.getAttribute("height")/n,o=e.offsetWidth*i;e.style.maxWidth="100%",e.style.height=o+"px"}}))}e.addEventListener("DOMContentLoaded",(function(){n("#top__fullcarousel .carousel-indicators li:first-child","active"),n("#top__fullcarousel .item:first-child","active")})),e.addEventListener("DOMContentLoaded",l);var c=!1;e.addEventListener("resize",(function(){c&&clearTimeout(c),c=setTimeout(l,200)})),e.addEventListener("DOMContentLoaded",(function(){n("textarea","form-control"),n("select","form-control"),n("input[type=text]","form-control"),n("input[type=number]","form-control"),n("input[type=search]","form-control"),n("input[type=password]","form-control"),n("input[type=email]","form-control"),n("input[type=tel]","form-control"),n("input[type=submit]","btn"),n("input[type=submit]","btn-primary"),n("form#searchform","form-inline"),n("form#searchform input[type=text]","form-group")}),!1)}(window,document),function(e,t,n){var i=!1;function o(){if(!t.body.classList.contains("jpnstyle")){var e=t.getElementsByClassName("siteHeader")[0];e.style.position="fixed";var n=e.clientHeight;if(e.nextElementSibling.style.marginTop=n+"px",t.body.classList.contains("admin-bar")){var i=t.getElementById("wpadminbar").clientHeight;e.style.top=i+"px"}}}e.addEventListener("DOMContentLoaded",(function(){t.body.classList.contains("headfix")&&(e.addEventListener("resize",(function(){!1!==i&&clearTimeout(i),i=setTimeout(o,300)})),o())})),e.addEventListener("DOMContentLoaded",(function(){if(t.body.classList.contains("header_height_changer")){var i=t.querySelector(".navbar-brand img").clientHeight,a=t.body.clientWidth;i<38&&(i=a>=991?60:40),e.addEventListener("scroll",(function(){t.body.clientWidth>=991&&((e.pageYOffset||t.documentElement.scrollTop)>10?function(e){var t=.8*e;n(".siteHeader .siteHeadContainer").stop().animate({"padding-top":"5px","padding-bottom":"0px"},100),n(".navbar-brand img").stop().animate({"max-height":t+"px"},100)}(i):function(e){n(".siteHeader .siteHeadContainer").stop().animate({"padding-top":"20px","padding-bottom":"18px"},100,(function(){o()})),n(".navbar-brand img").stop().animate({"max-height":e+"px"},100)}(i))}))}}))}(window,document,jQuery),function(e,t){function n(){var e=t.getElementsByClassName("sideSection")[0];e.style.position=null,e.style.top=null,e.style.bottom=null,e.style.left=null,e.style.right=null,e.style.width=null}function i(){var e=t.getElementById("gMenu_outer"),n=e?e.getBoundingClientRect().bottom:0;return n<0&&(n=0),n+40}function o(){var o="top";1==t.body.classList.contains("sidebar-fix-priority-top")?o="top":1==t.body.classList.contains("sidebar-fix-priority-bottom")&&(o="bottom");var a=t.body.offsetWidth,s=t.documentElement.clientHeight;if(a<992)n();else{var r=t.getElementsByClassName("mainSection")[0],l=t.getElementsByClassName("sideSection")[0],c=l.parentNode,d=r.getBoundingClientRect().top+e.pageYOffset,u=r.offsetHeight,f=l.offsetHeight;l.style.position=null,l.style.width=null;var m=l.offsetWidth,p=d+f;l.style.position=null,l.style.left=null;var v=l.getBoundingClientRect().left+e.pageXOffset,g=s-i();"bottom"===o&&g>f&&(o="top");var b=d+u-s,y=u-f,h=p-s,L=d-i();if(f>u)return;var x=!1;Lr.getBoundingClientRect().bottom&&(E=!0);var k=!1;h{!function(e,t){function n(e,n){Array.prototype.forEach.call(t.querySelectorAll(e),n)}function i(e,t){n(e,(function(e){return e.classList.remove(t)}))}function o(e,t){n(e,(function(e){return e.classList.add(t)}))}!function(e,t,i){function a(e){var n=t.getElementById("vk-mobile-nav-menu-btn");n&&n.classList.remove("menu-open");var i=t.getElementById("vk-mobile-nav");i&&i.classList.remove("vk-mobile-nav-open")}function s(e){var i=t.getElementById("vk-mobile-nav-menu-btn");i&&i.addEventListener("click",(function(){i.classList.contains("menu-open")?a():(o(e,"menu-open"),t.getElementById("vk-mobile-nav").classList.add("vk-mobile-nav-open"))})),n(".vk-mobile-nav li > a",(function(e){e.addEventListener("click",(function(e){e.target.getAttribute("href").indexOf(!1)&&a()}))}))}"loading"===t.readyState?t.addEventListener("DOMContentLoaded",(function(){s(i)})):s(i)}(0,t,".vk-mobile-nav-menu-btn"),function(a){function s(){e.innerWidth<=5e3?(r(),o("ul.vk-menu-acc","vk-menu-acc-active"),n("ul.vk-menu-acc ul.sub-menu",(function(e){var n=t.createElement("span");n.classList.add("acc-btn","acc-btn-open"),n.addEventListener("click",l),e.parentNode.insertBefore(n,e),e.classList.add("acc-child-close")}))):r()}function r(){i("ul.vk-menu-acc","vk-menu-acc-active"),i("ul.vk-menu-acc li","acc-parent-open"),n("ul.vk-menu-acc li .acc-btn",(function(e){return e.remove()})),i("ul.vk-menu-acc li .acc-child-close","acc-child-close"),i("ul.vk-menu-acc li .acc-child-open","acc-child-open")}function l(e){var t=e.target,n=t.parentNode,i=t.nextSibling;t.classList.contains("acc-btn-open")?(n.classList.add("acc-parent-open"),t.classList.remove("acc-btn-open"),t.classList.add("acc-btn-close"),i.classList.remove("acc-child-close"),i.classList.add("acc-child-open")):(n.classList.remove("acc-parent-open"),t.classList.remove("acc-btn-close"),t.classList.add("acc-btn-open"),i.classList.remove("acc-child-open"),i.classList.add("acc-child-close"))}!function(){var n=!1,i=t.body.offsetWidth,o=function(){var e=t.body.offsetWidth;(e { - if( button.classList.contains('menu-open') ){ - vk_mobile_nav_close(target); - }else{ - addClass(target, 'menu-open') - document.getElementById('vk-mobile-nav').classList.add('vk-mobile-nav-open') - } - }) + if (button) { + button.addEventListener('click', () => { + if( button.classList.contains('menu-open') ){ + vk_mobile_nav_close(target); + }else{ + addClass(target, 'menu-open') + document.getElementById('vk-mobile-nav').classList.add('vk-mobile-nav-open') + } + }) + } action('.vk-mobile-nav li > a', (elm) => { elm.addEventListener('click', (e) => { diff --git a/_g3/assets/js/main.js b/_g3/assets/js/main.js index fb0c8f61..e92faadc 100644 --- a/_g3/assets/js/main.js +++ b/_g3/assets/js/main.js @@ -1 +1 @@ -(()=>{var e={805:e=>{"use strict";e.exports=o,e.exports.isMobile=o,e.exports.default=o;const t=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,n=/CrOS/,i=/android|ipad|playbook|silk/i;function o(e){e||(e={});let o=e.ua;if(o||"undefined"==typeof navigator||(o=navigator.userAgent),o&&o.headers&&"string"==typeof o.headers["user-agent"]&&(o=o.headers["user-agent"]),"string"!=typeof o)return!1;let s=t.test(o)&&!n.test(o)||!!e.tablet&&i.test(o);return!s&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&-1!==o.indexOf("Macintosh")&&-1!==o.indexOf("Safari")&&(s=!0),s}}},t={};function n(i){var o=t[i];if(void 0!==o)return o.exports;var s=t[i]={exports:{}};return e[i](s,s.exports,n),s.exports}!function(e){if(void 0===e.ltg){var t=function(e,t){Array.prototype.forEach.call(document.querySelectorAll(e),t)};e.ltg={},e.ltg.action=t,e.ltg.removeClass=function(e,n){t(e,(function(e){return e.classList.remove(n)}))},e.ltg.addClass=function(e,n){t(e,(function(e){return e.classList.add(n)}))},e.ltg.swap=function(e,n,i){t(e,(function(e){e.classList.remove(n),e.classList.add(i)}))}}}(window),function(e,t){var n=function(){e.scrollY>0?t.body.classList.add("scrolled"):t.body.classList.remove("scrolled")};e.addEventListener("scroll",n,!1),"loading"!==t.readyState?n():e.addEventListener("DOMContentLoaded",n,!1);var i=t.getElementById("site-header");if(lightningOpt.header_scrool&&i){var o=t.getElementById("site-header").offsetHeight,s=!1,a=!1,l=function(){var n=t.getElementById("site-header").nextElementSibling;!a&&e.scrollY>o?(t.body.classList.add("header_scrolled"),lightningOpt.add_header_offset_margin&&(n.style.marginTop=o+"px")):(t.body.classList.remove("header_scrolled"),lightningOpt.add_header_offset_margin&&(n.style.marginTop=null))},c=function(n){t.body.classList.remove("header_scrolled"),e.removeEventListener("scroll",l),!1!==s&&clearTimeout(s),a=!0,s=setTimeout((function(){e.addEventListener("scroll",l,!0),a=!1}),2e3)};t.addEventListener("readystatechange",(function(){if("complete"===t.readyState){var e=t.getElementById("site-header").nextElementSibling;Array.prototype.forEach.call(t.getElementsByTagName("a"),(function(t){var n=t.getAttribute("href");"#top"===n&&t.addEventListener("click",(function(){e.style.marginTop=null})),n&&-1!==n.indexOf("#")&&(["tab"].indexOf(t.getAttribute("role"))>0||t.getAttribute("data-toggle")||t.getAttribute("carousel-control")||t.addEventListener("click",c))}))}})),t.addEventListener("DOMContentLoaded",(function(){location.hash?(e.removeEventListener("scroll",l,!1),setTimeout((function(){e.addEventListener("scroll",l,!1)}),500)):e.addEventListener("scroll",l,!1)}))}function r(){Array.prototype.forEach.call(t.getElementsByTagName("iframe"),(function(e){var t=e.getAttribute("src");if(t&&(t.indexOf("youtube")>=0||t.indexOf("vimeo")>=0||t.indexOf("maps")>=0))if("complete"===e.contentWindow.document.readyState){var n=e.getAttribute("width"),i=e.getAttribute("height")/n,o=e.offsetWidth*i;e.style.maxWidth="100%",e.style.height=o+"px"}else e.contentWindow.document.addEventListener("DOMContentLoaded",(function(){var t=e.getAttribute("width"),n=e.getAttribute("height")/t,i=e.offsetWidth*n;e.style.maxWidth="100%",e.style.height=i+"px"}))}))}e.addEventListener("DOMContentLoaded",r);var d=!1;e.addEventListener("resize",(function(){d&&clearTimeout(d),d=setTimeout(r,200)}))}(window,document),function(e,t){function n(){var e=t.getElementsByClassName("sub-section")[0];e.style.position=null,e.style.top=null,e.style.bottom=null,e.style.left=null,e.style.right=null}function i(){var e=t.getElementById("global-nav"),n=e?e.getBoundingClientRect().bottom:0;return n<0&&(n=0),n+40}function o(){var o="top";1==t.body.classList.contains("sidebar-fix-priority-top")?o="top":1==t.body.classList.contains("sidebar-fix-priority-bottom")&&(o="bottom");var s=t.body.offsetWidth,a=t.documentElement.clientHeight;if(s<992)n();else{var l=t.getElementsByClassName("main-section")[0],c=t.getElementsByClassName("sub-section")[0],r=c.parentNode,d=l.getBoundingClientRect().top+e.pageYOffset,u=l.offsetHeight,f=c.offsetHeight,m=d+f;c.style.position=null,c.style.left=null;var v=c.getBoundingClientRect().left+e.pageXOffset,p=a-i();"bottom"===o&&p>f&&(o="top");var g=d+u-a,b=u-f,y=m-a,h=d-i();if(f>u)return;var L=!1;hl.getBoundingClientRect().bottom&&(E=!0);var x=!1;y{!function(e,t){function n(e,n){Array.prototype.forEach.call(t.querySelectorAll(e),n)}function i(e,t){n(e,(function(e){return e.classList.remove(t)}))}function o(e,t){n(e,(function(e){return e.classList.add(t)}))}!function(e,t,i){function s(e){t.getElementById("vk-mobile-nav-menu-btn").classList.remove("menu-open"),t.getElementById("vk-mobile-nav").classList.remove("vk-mobile-nav-open")}function a(e){var i=t.getElementById("vk-mobile-nav-menu-btn");i.addEventListener("click",(function(){i.classList.contains("menu-open")?s():(o(e,"menu-open"),t.getElementById("vk-mobile-nav").classList.add("vk-mobile-nav-open"))})),n(".vk-mobile-nav li > a",(function(e){e.addEventListener("click",(function(e){e.target.getAttribute("href").indexOf(!1)&&s()}))}))}"loading"===t.readyState?t.addEventListener("DOMContentLoaded",(function(){a(i)})):a(i)}(0,t,".vk-mobile-nav-menu-btn"),function(s){function a(){e.innerWidth<=5e3?(l(),o("ul.vk-menu-acc","vk-menu-acc-active"),n("ul.vk-menu-acc ul.sub-menu",(function(e){var n=t.createElement("span");n.classList.add("acc-btn","acc-btn-open"),n.addEventListener("click",c),e.parentNode.insertBefore(n,e),e.classList.add("acc-child-close")}))):l()}function l(){i("ul.vk-menu-acc","vk-menu-acc-active"),i("ul.vk-menu-acc li","acc-parent-open"),n("ul.vk-menu-acc li .acc-btn",(function(e){return e.remove()})),i("ul.vk-menu-acc li .acc-child-close","acc-child-close"),i("ul.vk-menu-acc li .acc-child-open","acc-child-open")}function c(e){var t=e.target,n=t.parentNode,i=t.nextSibling;t.classList.contains("acc-btn-open")?(n.classList.add("acc-parent-open"),t.classList.remove("acc-btn-open"),t.classList.add("acc-btn-close"),i.classList.remove("acc-child-close"),i.classList.add("acc-child-open")):(n.classList.remove("acc-parent-open"),t.classList.remove("acc-btn-close"),t.classList.add("acc-btn-open"),i.classList.remove("acc-child-open"),i.classList.add("acc-child-close"))}!function(){var n=!1,i=t.body.offsetWidth,o=function(){var e=t.body.offsetWidth;(e{var e={805:e=>{"use strict";e.exports=o,e.exports.isMobile=o,e.exports.default=o;const t=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,n=/CrOS/,i=/android|ipad|playbook|silk/i;function o(e){e||(e={});let o=e.ua;if(o||"undefined"==typeof navigator||(o=navigator.userAgent),o&&o.headers&&"string"==typeof o.headers["user-agent"]&&(o=o.headers["user-agent"]),"string"!=typeof o)return!1;let s=t.test(o)&&!n.test(o)||!!e.tablet&&i.test(o);return!s&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&-1!==o.indexOf("Macintosh")&&-1!==o.indexOf("Safari")&&(s=!0),s}}},t={};function n(i){var o=t[i];if(void 0!==o)return o.exports;var s=t[i]={exports:{}};return e[i](s,s.exports,n),s.exports}!function(e){if(void 0===e.ltg){var t=function(e,t){Array.prototype.forEach.call(document.querySelectorAll(e),t)};e.ltg={},e.ltg.action=t,e.ltg.removeClass=function(e,n){t(e,(function(e){return e.classList.remove(n)}))},e.ltg.addClass=function(e,n){t(e,(function(e){return e.classList.add(n)}))},e.ltg.swap=function(e,n,i){t(e,(function(e){e.classList.remove(n),e.classList.add(i)}))}}}(window),function(e,t){var n=function(){e.scrollY>0?t.body.classList.add("scrolled"):t.body.classList.remove("scrolled")};e.addEventListener("scroll",n,!1),"loading"!==t.readyState?n():e.addEventListener("DOMContentLoaded",n,!1);var i=t.getElementById("site-header");if(lightningOpt.header_scrool&&i){var o=t.getElementById("site-header").offsetHeight,s=!1,a=!1,l=function(){var n=t.getElementById("site-header").nextElementSibling;!a&&e.scrollY>o?(t.body.classList.add("header_scrolled"),lightningOpt.add_header_offset_margin&&(n.style.marginTop=o+"px")):(t.body.classList.remove("header_scrolled"),lightningOpt.add_header_offset_margin&&(n.style.marginTop=null))},c=function(n){t.body.classList.remove("header_scrolled"),e.removeEventListener("scroll",l),!1!==s&&clearTimeout(s),a=!0,s=setTimeout((function(){e.addEventListener("scroll",l,!0),a=!1}),2e3)};t.addEventListener("readystatechange",(function(){if("complete"===t.readyState){var e=t.getElementById("site-header").nextElementSibling;Array.prototype.forEach.call(t.getElementsByTagName("a"),(function(t){var n=t.getAttribute("href");"#top"===n&&t.addEventListener("click",(function(){e.style.marginTop=null})),n&&-1!==n.indexOf("#")&&(["tab"].indexOf(t.getAttribute("role"))>0||t.getAttribute("data-toggle")||t.getAttribute("carousel-control")||t.addEventListener("click",c))}))}})),t.addEventListener("DOMContentLoaded",(function(){location.hash?(e.removeEventListener("scroll",l,!1),setTimeout((function(){e.addEventListener("scroll",l,!1)}),500)):e.addEventListener("scroll",l,!1)}))}function r(){Array.prototype.forEach.call(t.getElementsByTagName("iframe"),(function(e){var t=e.getAttribute("src");if(t&&(t.indexOf("youtube")>=0||t.indexOf("vimeo")>=0||t.indexOf("maps")>=0))if("complete"===e.contentWindow.document.readyState){var n=e.getAttribute("width"),i=e.getAttribute("height")/n,o=e.offsetWidth*i;e.style.maxWidth="100%",e.style.height=o+"px"}else e.contentWindow.document.addEventListener("DOMContentLoaded",(function(){var t=e.getAttribute("width"),n=e.getAttribute("height")/t,i=e.offsetWidth*n;e.style.maxWidth="100%",e.style.height=i+"px"}))}))}e.addEventListener("DOMContentLoaded",r);var d=!1;e.addEventListener("resize",(function(){d&&clearTimeout(d),d=setTimeout(r,200)}))}(window,document),function(e,t){function n(){var e=t.getElementsByClassName("sub-section")[0];e.style.position=null,e.style.top=null,e.style.bottom=null,e.style.left=null,e.style.right=null}function i(){var e=t.getElementById("global-nav"),n=e?e.getBoundingClientRect().bottom:0;return n<0&&(n=0),n+40}function o(){var o="top";1==t.body.classList.contains("sidebar-fix-priority-top")?o="top":1==t.body.classList.contains("sidebar-fix-priority-bottom")&&(o="bottom");var s=t.body.offsetWidth,a=t.documentElement.clientHeight;if(s<992)n();else{var l=t.getElementsByClassName("main-section")[0],c=t.getElementsByClassName("sub-section")[0],r=c.parentNode,d=l.getBoundingClientRect().top+e.pageYOffset,u=l.offsetHeight,f=c.offsetHeight,m=d+f;c.style.position=null,c.style.left=null;var v=c.getBoundingClientRect().left+e.pageXOffset,p=a-i();"bottom"===o&&p>f&&(o="top");var g=d+u-a,b=u-f,y=m-a,h=d-i();if(f>u)return;var L=!1;hl.getBoundingClientRect().bottom&&(E=!0);var x=!1;y{!function(e,t){function n(e,n){Array.prototype.forEach.call(t.querySelectorAll(e),n)}function i(e,t){n(e,(function(e){return e.classList.remove(t)}))}function o(e,t){n(e,(function(e){return e.classList.add(t)}))}!function(e,t,i){function s(e){var n=t.getElementById("vk-mobile-nav-menu-btn");n&&n.classList.remove("menu-open");var i=t.getElementById("vk-mobile-nav");i&&i.classList.remove("vk-mobile-nav-open")}function a(e){var i=t.getElementById("vk-mobile-nav-menu-btn");i&&i.addEventListener("click",(function(){i.classList.contains("menu-open")?s():(o(e,"menu-open"),t.getElementById("vk-mobile-nav").classList.add("vk-mobile-nav-open"))})),n(".vk-mobile-nav li > a",(function(e){e.addEventListener("click",(function(e){e.target.getAttribute("href").indexOf(!1)&&s()}))}))}"loading"===t.readyState?t.addEventListener("DOMContentLoaded",(function(){a(i)})):a(i)}(0,t,".vk-mobile-nav-menu-btn"),function(s){function a(){e.innerWidth<=5e3?(l(),o("ul.vk-menu-acc","vk-menu-acc-active"),n("ul.vk-menu-acc ul.sub-menu",(function(e){var n=t.createElement("span");n.classList.add("acc-btn","acc-btn-open"),n.addEventListener("click",c),e.parentNode.insertBefore(n,e),e.classList.add("acc-child-close")}))):l()}function l(){i("ul.vk-menu-acc","vk-menu-acc-active"),i("ul.vk-menu-acc li","acc-parent-open"),n("ul.vk-menu-acc li .acc-btn",(function(e){return e.remove()})),i("ul.vk-menu-acc li .acc-child-close","acc-child-close"),i("ul.vk-menu-acc li .acc-child-open","acc-child-open")}function c(e){var t=e.target,n=t.parentNode,i=t.nextSibling;t.classList.contains("acc-btn-open")?(n.classList.add("acc-parent-open"),t.classList.remove("acc-btn-open"),t.classList.add("acc-btn-close"),i.classList.remove("acc-child-close"),i.classList.add("acc-child-open")):(n.classList.remove("acc-parent-open"),t.classList.remove("acc-btn-close"),t.classList.add("acc-btn-open"),i.classList.remove("acc-child-open"),i.classList.add("acc-child-close"))}!function(){var n=!1,i=t.body.offsetWidth,o=function(){var e=t.body.offsetWidth;(e { - if( button.classList.contains('menu-open') ){ - vk_mobile_nav_close(target); - }else{ - addClass(target, 'menu-open') - document.getElementById('vk-mobile-nav').classList.add('vk-mobile-nav-open') - } - }) + if (button) { + button.addEventListener('click', () => { + if( button.classList.contains('menu-open') ){ + vk_mobile_nav_close(target); + }else{ + addClass(target, 'menu-open') + document.getElementById('vk-mobile-nav').classList.add('vk-mobile-nav-open') + } + }) + } action('.vk-mobile-nav li > a', (elm) => { elm.addEventListener('click', (e) => { diff --git a/readme.txt b/readme.txt index 96b19d2b..8aaad94d 100644 --- a/readme.txt +++ b/readme.txt @@ -38,6 +38,8 @@ https://www.vektor-inc.co.jp/inquiry/ == Changelog == +[ G3 / G2 ][ Bug fix ] Fixed a JavaScript error that occurs when the mobile navigation setting is disabled. + v15.15.0 [ G3 ][ Specification Change ] Added support for the background image feature in Group blocks, introduced in WordPress 6.4. [ G3 ][ Specification Change ] Update Swiper 9.3.2 -> 11.0.2