-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
68 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,30 @@ | ||
<div class="px-2 flex items-center absolute w-full flex-grow-0" style="height: 30px; background: #181a1c; bottom: 0; left: 0; color: #606060; "> | ||
nvAux v0.1.5 | ||
<script> | ||
import { onMount } from 'svelte'; | ||
import { format } from 'date-fns'; | ||
import { fullScreen } from './store'; | ||
let time = new Date(); | ||
onMount(() => { | ||
const interval = setInterval(() => { | ||
time = new Date(); | ||
}, 1000); | ||
return () => { | ||
clearInterval(interval); | ||
}; | ||
}); | ||
</script> | ||
|
||
<div | ||
class="px-2 flex items-center absolute w-full flex-grow-0" | ||
style="font-size: 12px; height: 35px; background: #181a1c; bottom: 0; left: 0; color: #606060; " | ||
> | ||
<div class="flex-grow">nvAux v0.1.5</div> | ||
<div> | ||
<button on:click={() => $fullScreen = !$fullScreen} style="margin-right: 10px; color: #ed0178" class="bg-transparent"> | ||
[ {$fullScreen ? '*' : ' '} ] | ||
</button> | ||
</div> | ||
<div>{format(time, 'hh:mm:ss a')}</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters