chamesle

chamesle.org: the site of Chamesle, a small Linux distribution
git clone https://github.com/tortr-rs/chamesle
Log | Files | Refs | README

commit 933769cf8ae393e03f647cc651865a32e38cfdf0
parent d63854e0b8d090bbab7ccbb276aad4d833bffcaf
Author: torter <koubbamohamedrayan@gmail.com>
Date:   Wed, 21 Oct 2026 19:43:37 +0000

website: konami code forgives extra presses and caps lock

Diffstat:
Mdocs/404.html | 2+-
Mdocs/about.html | 2+-
Mdocs/board.html | 2+-
Mdocs/docs.html | 2+-
Mdocs/download.html | 2+-
Mdocs/editions.html | 2+-
Mdocs/egg.js | 11++++++-----
Mdocs/index.html | 2+-
Mdocs/new.html | 2+-
Mdocs/packages.html | 2+-
Mdocs/post.html | 2+-
Mdocs/submit.html | 2+-
12 files changed, 17 insertions(+), 16 deletions(-)

diff --git a/docs/404.html b/docs/404.html @@ -41,6 +41,6 @@ <p>Chamesle Linux. Source code for every package is available on request.</p> </footer> -<script src="/egg.js"></script> +<script src="/egg.js?2"></script> </body> </html> diff --git a/docs/about.html b/docs/about.html @@ -89,6 +89,6 @@ Least favourite: the Konami code. Don't ask.</p> <p>Chamesle Linux. Source code for every package is available on request.</p> </footer> -<script src="egg.js"></script> +<script src="egg.js?2"></script> </body> </html> diff --git a/docs/board.html b/docs/board.html @@ -110,6 +110,6 @@ fetch('board.json?' + Date.now()).then(function (r) { return r.json(); }).then(f .catch(function () { document.getElementById('empty').textContent = "Couldn't load the board. Try reloading."; }); </script> -<script src="egg.js"></script> +<script src="egg.js?2"></script> </body> </html> diff --git a/docs/docs.html b/docs/docs.html @@ -149,6 +149,6 @@ the driver manager coming in 0.3 will set it up for you.</p> <p>Chamesle Linux. Source code for every package is available on request.</p> </footer> -<script src="egg.js"></script> +<script src="egg.js?2"></script> </body> </html> diff --git a/docs/download.html b/docs/download.html @@ -103,6 +103,6 @@ depending on the computer. Pick the USB stick. You'll get a menu with a few choi <p>Chamesle Linux. Source code for every package is available on request.</p> </footer> -<script src="egg.js"></script> +<script src="egg.js?2"></script> </body> </html> diff --git a/docs/editions.html b/docs/editions.html @@ -79,6 +79,6 @@ already know it from Mint, pick that.</p> <p>Chamesle Linux. Source code for every package is available on request.</p> </footer> -<script src="egg.js"></script> +<script src="egg.js?2"></script> </body> </html> diff --git a/docs/egg.js b/docs/egg.js @@ -30,8 +30,8 @@ // up up down down left right left right b a (function () { - var code = ['ArrowUp', 'ArrowUp', 'ArrowDown', 'ArrowDown', 'ArrowLeft', 'ArrowRight', 'ArrowLeft', 'ArrowRight', 'b', 'a']; - var at = 0, typed = ''; + var code = 'arrowup arrowup arrowdown arrowdown arrowleft arrowright arrowleft arrowright b a'; + var keys = [], typed = ''; function banner(text, color, sub) { var d = document.createElement('div'); d.style.cssText = 'position:fixed;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;' + @@ -47,9 +47,10 @@ } document.addEventListener('keydown', function (e) { if (e.target.tagName === 'INPUT' || e.target.tagName === 'TEXTAREA') return; - at = (e.key === code[at]) ? at + 1 : (e.key === code[0] ? 1 : 0); - if (at === code.length) { - at = 0; + // the last ten keys, any case, so an extra press at the start doesn't matter + keys = keys.concat(e.key.toLowerCase()).slice(-10); + if (keys.join(' ') === code) { + keys = []; banner('GREAT ENEMY FELLED', '#e8c872'); } if (e.key.length === 1) { diff --git a/docs/index.html b/docs/index.html @@ -96,6 +96,6 @@ <p>Chamesle Linux. Source code for every package is available on request.</p> </footer> -<script src="egg.js"></script> +<script src="egg.js?2"></script> </body> </html> diff --git a/docs/new.html b/docs/new.html @@ -89,6 +89,6 @@ than rushed. See the <a href="about.html#roadmap">roadmap</a>.</p> <p>Chamesle Linux. Source code for every package is available on request.</p> </footer> -<script src="egg.js"></script> +<script src="egg.js?2"></script> </body> </html> diff --git a/docs/packages.html b/docs/packages.html @@ -133,6 +133,6 @@ q.addEventListener('input', function () { }); </script> -<script src="egg.js"></script> +<script src="egg.js?2"></script> </body> </html> diff --git a/docs/post.html b/docs/post.html @@ -84,6 +84,6 @@ fetch('board.json?' + Date.now()).then(function (r) { return r.json(); }).then(f }); </script> -<script src="egg.js"></script> +<script src="egg.js?2"></script> </body> </html> diff --git a/docs/submit.html b/docs/submit.html @@ -90,6 +90,6 @@ document.getElementById('form').addEventListener('submit', function (e) { }); </script> -<script src="egg.js"></script> +<script src="egg.js?2"></script> </body> </html>