FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
clock/script.js at ssh · riships/clock · GitHub
riships
/
clock
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Issues
0
Pull requests
0
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
clock
/
script.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
25 lines (22 loc) · 610 Bytes
Breadcrumbs
clock
/
script.js
Copy path
File metadata and controls
25 lines (22 loc) · 610 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
function
getthetime
(
)
{
var
date
=
new
Date
(
)
;
var
h
=
date
.
getHours
(
)
;
var
m
=
date
.
getMinutes
(
)
;
var
s
=
date
.
getSeconds
(
)
;
var
session
=
"AM"
;
if
(
h
==
0
)
{
h
=
12
;
}
if
(
h
>
12
)
{
h
=
h
-
12
;
session
=
"PM"
;
}
h
=
(
h
<
10
)
?
"0"
+
h
:
h
;
m
=
(
m
<
10
)
?
"0"
+
m
:
m
;
s
=
(
s
<
10
)
?
"0"
+
s
:
s
;
var
time
=
h
+
":"
+
m
+
":"
+
s
+
" "
+
session
;
document
.
getElementById
(
"gettime"
)
.
innerText
=
time
;
document
.
getElementById
(
"gettime"
)
.
textContent
=
time
;
setTimeout
(
getthetime
,
1000
)
}
getthetime
(
)
;
Back
|
FazBrowse Home
|
New Git URL