PageSourceSearch

https://www.kenkenpuzzle.com/assets/controllers/game_header_contro…e5ab069e306ced0a06dfa0a9a81119b4283a6cd0.js

js kenkenpuzzle.com collected 2026-10-01 11:36:40 UTC 876 bytes, 1 lines download raw bytes

1import{Controller}from"@hotwired/stimulus";export default class extends Controller{connect(){const e=this.element.dataset.currentController;this.checkAndSelectLevel(),"play"===e&&this.togglePuzzleChooser()}togglePuzzleChooser(){const e=this.element.querySelector(".custom-puzzle-btn"),t=document.querySelector("#collapsePuzzleBox");t&&(t.hidden?(t.hidden=!1,e.setAttribute("aria-expanded","true"),e.disabled=!0):(t.hidden=!0,e.setAttribute("aria-expanded","false"),e.disabled=!1))}hidePuzzleChooser(){this.checkAndSelectLevel();const e=document.querySelector("#collapsePuzzleBox");if(e){e.hidden=!0;this.element.setAttribute("aria-expanded","false")}}checkAndSelectLevel(){const e=this.element.querySelector("a.level.selected.notAvailable");if(e){e.classList.remove("selected");const t=this.element.querySelector("a.selectable.level.easiest");t&&t.classList.add("selected")}}}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.