mirror of
https://github.com/mileswolfallen2/miles-web.git
synced 2026-12-05 16:20:44 +00:00
working
This commit is contained in:
1 parent
d8a9d74912
commit
d27792b813
9 files changed
+1570
-1
No files matched your search
+12
-1
@@ -167,7 +167,7 @@
|
||||
<img class="avatar" src="https://avatars.githubusercontent.com/u/115095719?v=4" alt="miles wolf allen" width="120" height="120">
|
||||
<div class="name">miles wolf allen</div>
|
||||
<div class="handle">@wolf_reaper90 · software engineer</div>
|
||||
<div class="meta">he/him · <b>MN, USA</b></div>
|
||||
<div class="meta">he/him · <b>MN, USA</b> · <span id="tzWatch">local time --:--:--</span></div>
|
||||
|
||||
<p class="bio">Developer and 3D artist interested in coding, games, and web technology. Currently learning Rust. <a href="https://milesallen.site">↗ milesallen.site</a></p>
|
||||
|
||||
@@ -274,6 +274,17 @@
|
||||
flash(vcBtn, 'Saved!');
|
||||
});
|
||||
|
||||
function tzClock(){
|
||||
var d = new Date(), tf;
|
||||
try {
|
||||
tf = new Intl.DateTimeFormat('en-US', { timeZone:'America/Chicago', hour:'2-digit', minute:'2-digit', hour12:true });
|
||||
} catch(e){ return; }
|
||||
var w = document.getElementById('tzWatch');
|
||||
if(w) w.textContent = 'local time ' + tf.format(d);
|
||||
}
|
||||
tzClock();
|
||||
setInterval(tzClock, 30000);
|
||||
|
||||
function copyText(txt, btn, done){
|
||||
var ok = function(){ if(done) done(); };
|
||||
var fail = function(){
|
||||
|
||||
Reference in new issue
Block a user