From 1bb0dd1f6c0587b1f37fdc2ad486dc67446e6afb Mon Sep 17 00:00:00 2001 From: Pierre Le Marre Date: Thu, 11 Jun 2026 18:12:57 +0200 Subject: [PATCH] feat(analyzer): Enable to choose the layers to show Possible layers (apart base): - AltGr - ODK - Mixed --- code/keebs.js | 14 +-- code/layout-analyzer.js | 4 +- code/x-keyboard.js | 137 +++++++++++++++++++------ www/content/stats.html | 17 +++ www/layouts/shortcodes/x-keyboard.html | 12 +-- 5 files changed, 140 insertions(+), 44 deletions(-) diff --git a/code/keebs.js b/code/keebs.js index 8fa27a30..e2bf9c41 100644 --- a/code/keebs.js +++ b/code/keebs.js @@ -5,7 +5,7 @@ * *
*
- *
+ *
*
* * @@ -40,12 +40,12 @@ window.addEventListener('DOMContentLoaded', () => { * - the first class can be used as the x-keyboard geometry. */ const geometryClasses = { - 'ISO-A': ['iso', 'intlBackslash', 'am'], // am = angle-mod CSS hack - 'ISO': ['iso', 'intlBackslash'], // default / pre-selected value - 'ANSI': ['ansi'], - 'TMx': ['ol60', 'ergo'], - '4×6': ['ol50', 'ergo'], - '3×6': ['ol40', 'ergo'], + 'iso-a': ['iso', 'intlBackslash', 'am'], // am = angle-mod CSS hack + 'iso': ['iso', 'intlBackslash'], // default / pre-selected value + 'ansi': ['ansi'], + 'ol60': ['ol60', 'ergo'], + 'ol50': ['ol50', 'ergo'], + 'ol40': ['ol40', 'ergo'], }; for (const keeb of document.querySelectorAll('.keyboard')) { diff --git a/code/layout-analyzer.js b/code/layout-analyzer.js index 77d1eb63..a6436b27 100644 --- a/code/layout-analyzer.js +++ b/code/layout-analyzer.js @@ -544,7 +544,7 @@ window.addEventListener('DOMContentLoaded', () => { // keyboard state: these + + + + - - - - -