From 4f49b16079b27d7ce633619e4cddfdf2bffbc952 Mon Sep 17 00:00:00 2001 From: cashmere Date: Fri, 4 Sep 2026 09:05:24 +0200 Subject: initial commit --- src/hbmenu.js | 259 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 259 insertions(+) create mode 100644 src/hbmenu.js (limited to 'src/hbmenu.js') diff --git a/src/hbmenu.js b/src/hbmenu.js new file mode 100644 index 0000000..48218cd --- /dev/null +++ b/src/hbmenu.js @@ -0,0 +1,259 @@ +/* +** Originally: Copyright © 2018 Warren Young +** +** This program is free software; you can redistribute it and/or +** modify it under the terms of the Simplified BSD License (also +** known as the "2-Clause License" or "FreeBSD License".) +** +** This program is distributed in the hope that it will be useful, +** but without any warranty; without even the implied warranty of +** merchantability or fitness for a particular purpose. +** +** Contact: wyoung on the Fossil forum, https://fossil-scm.org/forum/ +** Modified by others. +** +******************************************************************************* +** +** This file contains the JS code used to implement the expanding hamburger +** menu on various skins. +** +** This was original the "js.txt" file for the default skin. It was subsequently +** moved into src/hbmenu.js so that it could be more easily reused by other skins +** using the "builtin_request_js" TH1 command. +** +** Operation: +** +** This script expects the HTML to contain two elements: +** +** <--- The hamburger menu button +**