PageSourceSearch

https://massimolamorgia.com/assets/al_search/js/shortcut-key.js

js massimolamorgia.com collected 2026-09-24 14:47:38 UTC 526 bytes, 11 lines download raw bytes

1// Check if the user is on a Mac and update the shortcut key for search accordingly
2document.addEventListener("readystatechange", () => {
3  if (document.readyState === "interactive") {
4    let isMac = navigator.platform.toUpperCase().indexOf("MAC") >= 0;
5    let shortcutKeyElement = document.querySelector("#search-toggle .nav-link");
6    if (shortcutKeyElement && isMac) {
7      // use the unicode for command key
8      shortcutKeyElement.innerHTML = '&#x2318; k <i class="fa-solid fa-magnifying-glass"></i>';
9    }
10  }
11});

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.