Fossil SCM

eagle skin: cleaned up the clock-update JS function and modernized the logo appearance a bit. /fileedit: fixed a help test typo.

stephan 2021-09-14 22:07 trunk
Commit 7912deb5fd401ac943b19ba86831a86436328f8afb0efa02dc9a0e6232370a61
--- skins/eagle/css.txt
+++ skins/eagle/css.txt
@@ -13,12 +13,18 @@
1313
text-align: center;
1414
vertical-align: bottom;
1515
font-weight: bold;
1616
color: white;
1717
min-width: 50px;
18
- padding: 5 0 5 0em;
1918
white-space: nowrap;
19
+ position: relative;
20
+ filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.75));
21
+ top: 0.5em;
22
+ right: -0.5em;
23
+}
24
+div.logo img{
25
+ border-radius: 2mm;
2026
}
2127
2228
/* The page title centered at the top of each page */
2329
div.title {
2430
display: table-cell;
2531
--- skins/eagle/css.txt
+++ skins/eagle/css.txt
@@ -13,12 +13,18 @@
13 text-align: center;
14 vertical-align: bottom;
15 font-weight: bold;
16 color: white;
17 min-width: 50px;
18 padding: 5 0 5 0em;
19 white-space: nowrap;
 
 
 
 
 
 
 
20 }
21
22 /* The page title centered at the top of each page */
23 div.title {
24 display: table-cell;
25
--- skins/eagle/css.txt
+++ skins/eagle/css.txt
@@ -13,12 +13,18 @@
13 text-align: center;
14 vertical-align: bottom;
15 font-weight: bold;
16 color: white;
17 min-width: 50px;
 
18 white-space: nowrap;
19 position: relative;
20 filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.75));
21 top: 0.5em;
22 right: -0.5em;
23 }
24 div.logo img{
25 border-radius: 2mm;
26 }
27
28 /* The page title centered at the top of each page */
29 div.title {
30 display: table-cell;
31
--- skins/eagle/header.txt
+++ skins/eagle/header.txt
@@ -72,26 +72,26 @@
7272
puts "Not logged in"
7373
}
7474
</th1></nobr><small><div id="clock"></div></small></div>
7575
</div>
7676
<th1>html "<script nonce='$nonce'>"</th1>
77
-function updateClock(){
77
+(function updateClock(){
7878
var e = document.getElementById("clock");
79
- if(e){
80
- var d = new Date();
81
- function f(n) {
79
+ if(!e) return;
80
+ if(!updateClock.fmt){
81
+ updateClock.fmt = function(n){
8282
return n < 10 ? '0' + n : n;
83
- }
84
- e.innerHTML = d.getUTCFullYear()+ '-' +
85
- f(d.getUTCMonth() + 1) + '-' +
86
- f(d.getUTCDate()) + ' ' +
87
- f(d.getUTCHours()) + ':' +
88
- f(d.getUTCMinutes());
89
- setTimeout(updateClock,(60-d.getUTCSeconds())*1000);
90
- }
91
-}
92
-updateClock();
83
+ };
84
+ }
85
+ var d = new Date();
86
+ e.innerHTML = d.getUTCFullYear()+ '-' +
87
+ updateClock.fmt(d.getUTCMonth() + 1) + '-' +
88
+ updateClock.fmt(d.getUTCDate()) + ' ' +
89
+ updateClock.fmt(d.getUTCHours()) + ':' +
90
+ updateClock.fmt(d.getUTCMinutes());
91
+ setTimeout(updateClock,(60-d.getUTCSeconds())*1000);
92
+})();
9393
</script>
9494
<div class="mainmenu"><th1>
9595
html "<a id='hbbtn' href='$home/sitemap' aria-label='Site Map'>&#9776;</a>\n"
9696
builtin_request_js hbmenu.js
9797
foreach {name url expr class} $mainmenu {
9898
--- skins/eagle/header.txt
+++ skins/eagle/header.txt
@@ -72,26 +72,26 @@
72 puts "Not logged in"
73 }
74 </th1></nobr><small><div id="clock"></div></small></div>
75 </div>
76 <th1>html "<script nonce='$nonce'>"</th1>
77 function updateClock(){
78 var e = document.getElementById("clock");
79 if(e){
80 var d = new Date();
81 function f(n) {
82 return n < 10 ? '0' + n : n;
83 }
84 e.innerHTML = d.getUTCFullYear()+ '-' +
85 f(d.getUTCMonth() + 1) + '-' +
86 f(d.getUTCDate()) + ' ' +
87 f(d.getUTCHours()) + ':' +
88 f(d.getUTCMinutes());
89 setTimeout(updateClock,(60-d.getUTCSeconds())*1000);
90 }
91 }
92 updateClock();
93 </script>
94 <div class="mainmenu"><th1>
95 html "<a id='hbbtn' href='$home/sitemap' aria-label='Site Map'>&#9776;</a>\n"
96 builtin_request_js hbmenu.js
97 foreach {name url expr class} $mainmenu {
98
--- skins/eagle/header.txt
+++ skins/eagle/header.txt
@@ -72,26 +72,26 @@
72 puts "Not logged in"
73 }
74 </th1></nobr><small><div id="clock"></div></small></div>
75 </div>
76 <th1>html "<script nonce='$nonce'>"</th1>
77 (function updateClock(){
78 var e = document.getElementById("clock");
79 if(!e) return;
80 if(!updateClock.fmt){
81 updateClock.fmt = function(n){
82 return n < 10 ? '0' + n : n;
83 };
84 }
85 var d = new Date();
86 e.innerHTML = d.getUTCFullYear()+ '-' +
87 updateClock.fmt(d.getUTCMonth() + 1) + '-' +
88 updateClock.fmt(d.getUTCDate()) + ' ' +
89 updateClock.fmt(d.getUTCHours()) + ':' +
90 updateClock.fmt(d.getUTCMinutes());
91 setTimeout(updateClock,(60-d.getUTCSeconds())*1000);
92 })();
93 </script>
94 <div class="mainmenu"><th1>
95 html "<a id='hbbtn' href='$home/sitemap' aria-label='Site Map'>&#9776;</a>\n"
96 builtin_request_js hbmenu.js
97 foreach {name url expr class} $mainmenu {
98
+1 -1
--- src/fileedit.c
+++ src/fileedit.c
@@ -1847,11 +1847,11 @@
18471847
/******* Commit flags/options *******/
18481848
CX("<div class='fileedit-options flex-container flex-row'>");
18491849
style_labeled_checkbox("cb-dry-run",
18501850
"dry_run", "Dry-run?", "1",
18511851
0,
1852
- "In dry-run mode, the Commit button performs"
1852
+ "In dry-run mode, the Commit button performs "
18531853
"all work needed for committing changes but "
18541854
"then rolls back the transaction, and thus "
18551855
"does not really commit.");
18561856
style_labeled_checkbox("cb-allow-fork",
18571857
"allow_fork", "Allow fork?", "1",
18581858
--- src/fileedit.c
+++ src/fileedit.c
@@ -1847,11 +1847,11 @@
1847 /******* Commit flags/options *******/
1848 CX("<div class='fileedit-options flex-container flex-row'>");
1849 style_labeled_checkbox("cb-dry-run",
1850 "dry_run", "Dry-run?", "1",
1851 0,
1852 "In dry-run mode, the Commit button performs"
1853 "all work needed for committing changes but "
1854 "then rolls back the transaction, and thus "
1855 "does not really commit.");
1856 style_labeled_checkbox("cb-allow-fork",
1857 "allow_fork", "Allow fork?", "1",
1858
--- src/fileedit.c
+++ src/fileedit.c
@@ -1847,11 +1847,11 @@
1847 /******* Commit flags/options *******/
1848 CX("<div class='fileedit-options flex-container flex-row'>");
1849 style_labeled_checkbox("cb-dry-run",
1850 "dry_run", "Dry-run?", "1",
1851 0,
1852 "In dry-run mode, the Commit button performs "
1853 "all work needed for committing changes but "
1854 "then rolls back the transaction, and thus "
1855 "does not really commit.");
1856 style_labeled_checkbox("cb-allow-fork",
1857 "allow_fork", "Allow fork?", "1",
1858

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button