Added clocks tool
This commit is contained in:
parent
8dc2621f87
commit
7073a2d3f2
23 changed files with 1061 additions and 3 deletions
18
cmds/clocks/models.go
Normal file
18
cmds/clocks/models.go
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"syscall/js"
|
||||
"time"
|
||||
)
|
||||
|
||||
type clock struct {
|
||||
name string
|
||||
loc *time.Location
|
||||
elements htmlElements
|
||||
}
|
||||
|
||||
type htmlElements struct {
|
||||
locationDiv js.Value
|
||||
timeDiv js.Value
|
||||
dateDiv js.Value
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue