Sam's Wiki

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
notes:skeuomorphic-indicator [2026/11/30 07:06] – Add skeuomorphic indicator samnotes:skeuomorphic-indicator [2026/11/30 07:12] (current) – sam
Line 2: Line 2:
  
 <HTML> <HTML>
-<div style="width: 100%" id="indicator"></div>+<div id="indicator"></div>
 <script> <script>
 const DIGIT3 = [ const DIGIT3 = [
Line 183: Line 183:
         this.#parentElt.append(this.#pointerElt);         this.#parentElt.append(this.#pointerElt);
  
-        this.#parentElt.style.display = "grid";+        this.#parentElt.style.display = "inline-grid";
         this.#parentElt.style.gridTemplateColumns = "200px";         this.#parentElt.style.gridTemplateColumns = "200px";
-        this.#parentElt.style.justifyContent = "center"; 
         this.#faceElt.style.gridArea = "1 / 1 / 1 / 1";         this.#faceElt.style.gridArea = "1 / 1 / 1 / 1";
         this.#pointerElt.style.gridArea = "1 / 1 / 1 / 1";         this.#pointerElt.style.gridArea = "1 / 1 / 1 / 1";
Line 197: Line 196:
         // DokuWiki to the wiki's base URL, e.g. "/" or "/wiki/".         // DokuWiki to the wiki's base URL, e.g. "/" or "/wiki/".
         const mediaUrl = (id) => DOKU_BASE + "lib/exe/fetch.php?media=" + id;         const mediaUrl = (id) => DOKU_BASE + "lib/exe/fetch.php?media=" + id;
-        this.#faceElt.innerHTML = await (await fetch(mediaUrl("indicator-images:face.svg"))).text(); +        this.#faceElt.innerHTML = await (await fetch(mediaUrl("notes:skeuomorphic-indicator:face.svg"))).text(); 
-        this.#pointerElt.innerHTML = await (await fetch(mediaUrl("indicator-images:pointer.svg"))).text();+        this.#pointerElt.innerHTML = await (await fetch(mediaUrl("notes: skeuomorphic-indicator:pointer.svg"))).text();
  
         // Populate #leds.         // Populate #leds.
notes/skeuomorphic-indicator.1796022390.txt.gz · Last modified: by sam