Sha256: aa9e9f901d9190432d4c58c7906502c8acf3458f851d5731e569bacff19110e0
Contents?: true
Size: 1.1 KB
Versions: 15
Compression:
Stored size: 1.1 KB
Contents
"use strict";(self.webpackChunkkcc_gem_theme=self.webpackChunkkcc_gem_theme||[]).push([[640],{640:function(e,o,t){const n=/^id=/g,c=/^\?/g,a=/\/$/g,l="userPrefersReducedMotion",r={behavior:"smooth",block:"center"},s={block:"center"};function i(e){return"true"==window.localStorage.getItem(l)?e.scrollIntoView(s):e.scrollIntoView(r),e.focus()}function u(e,o){-1!==e.search(n)&&function(e,o){let t=e.replace(n,"");i(document.querySelector(o).querySelector(`#${t}`))}(e,o)}function h(e){i(document.querySelector(e))}function w(){var e;window.location.hash&&(e=window.location.hash.replace(a,""),document.querySelector(`.nav-tabs a[href="${e}"]`)?$(`.nav-tabs a[href="${e}"]`).on("shown.bs.tab",(()=>{window.location.search?u(window.location.search.replace(c,""),e):h(`${e}-label`)})).tab("show"):document.querySelector(`${e}.collapse`)&&$(e).on("shown.bs.collapse",(()=>{window.location.search?u(window.location.search.replace(c,""),e):h(`button[data-target="${e}"]`)})).collapse("show"))}o.default=function(){w(),window.addEventListener("hashchange",w,!1),t.e(814).then(t.bind(t,814)).then((e=>{let{default:o}=e;o()}))}}}]);
Version data entries
15 entries across 15 versions & 1 rubygems