From 4f49b16079b27d7ce633619e4cddfdf2bffbc952 Mon Sep 17 00:00:00 2001 From: cashmere Date: Fri, 4 Sep 2026 09:05:24 +0200 Subject: initial commit --- skins/eagle/header.txt | 111 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 111 insertions(+) create mode 100644 skins/eagle/header.txt (limited to 'skins/eagle/header.txt') diff --git a/skins/eagle/header.txt b/skins/eagle/header.txt new file mode 100644 index 0000000..fc04695 --- /dev/null +++ b/skins/eagle/header.txt @@ -0,0 +1,111 @@ +
+ +
$</div> + <div class="status"><nobr><th1> + if {[info exists login]} { + puts "Logged in as $login" + } else { + puts "Not logged in" + } + </th1></nobr><small><div id="clock"></div></small></div> +</header> +<th1>html "<script nonce='$nonce'>"</th1> + (function updateClock(){ + var e = document.getElementById("clock"); + if(!e) return; + if(!updateClock.fmt){ + updateClock.fmt = function(n){ + return n < 10 ? '0' + n : n; + }; + } + var d = new Date(); + e.innerHTML = d.getUTCFullYear()+ '-' + + updateClock.fmt(d.getUTCMonth() + 1) + '-' + + updateClock.fmt(d.getUTCDate()) + ' ' + + updateClock.fmt(d.getUTCHours()) + ':' + + updateClock.fmt(d.getUTCMinutes()); + setTimeout(updateClock,(60-d.getUTCSeconds())*1000); + })(); +</script> +<nav class="mainmenu" title="Main Menu"> + <th1> + html "<a id='hbbtn' href='$home/sitemap' aria-label='Site Map'>☰</a>\n" + builtin_request_js hbmenu.js + foreach {name url expr class} $mainmenu { + if {![capexpr $expr]} continue + if {[string match /* $url]} {set url $home$url} + html "<a href='$url' class='$class'>$name</a>\n" + } + </th1> +</nav> +<nav id="hbdrop" class='hbdrop' title="sitemap"></nav> -- cgit v1.3.1