Sha256: c00b8bff3f48a0199e7a373864086c06e4fe81f37a159fb2bfe07847e17e5dd4

Contents?: true

Size: 1.51 KB

Versions: 2

Compression:

Stored size: 1.51 KB

Contents

"use strict";(self.webpackChunkkcc_gem_theme=self.webpackChunkkcc_gem_theme||[]).push([[282],{282:function(e,t,n){n.r(t);const c=["#gsc-i-id1","#gs_st50 .gsst_a",".gsc-search-button .gsc-search-button.gsc-search-button-v2"],s="header-global__search-icon",a="header-global__close-icon";function o(e,t,n){document.querySelector(e).setAttribute(t,n)}function r(e,t,n){t?(e.classList.add(n+"--hidden"),e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex","-1")):(e.classList.remove(n+"--hidden"),e.setAttribute("aria-hidden","false"),e.setAttribute("tabindex","0"))}function i(e){(e.target.closest("#openSearchButton")||e.target.closest("#closeSearchButton"))&&function(e){let t;e.target.closest("#openSearchButton")?t=!0:e.target.closest("#closeSearchButton")&&(t=!1),function(e){const t=document.getElementById("openSearchButton"),n=document.getElementById("closeSearchButton"),i=document.getElementById("gsc-i-id1");let l=c.length;if(e){r(t,!0,s),r(n,!1,a);for(var d=0;d<l;d++)o(c[d],"tabindex","0");i.focus()}else for(r(t,!1,s),r(n,!0,a),d=0;d<l;d++)o(c[d],"tabindex","-1")}(t),function(){const e=document.getElementById("searchCollapse"),t=document.getElementById("headerGlobalNavbar"),n=e.getAttribute("aria-hidden");e.classList.toggle("header-global__search-collapse--visible"),"true"===n?e.setAttribute("aria-hidden","false"):e.setAttribute("aria-hidden","true"),t.classList.toggle("header-global__navbar--search-toggle")}()}(e)}t.default=function(){document.getElementById("openSearchButton")&&document.addEventListener("click",i)}}}]);

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
kcc-gem-theme-2.20.1 assets/js/dist/282.8b3d98622bea01cba4d2.bundle.js
kcc-gem-theme-2.20.0 assets/js/dist/282.8b3d98622bea01cba4d2.bundle.js