FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
angular-timer/examples/plain-javascript.html at master · papasax/angular-timer · GitHub
papasax
/
angular-timer
Public
forked from
siddii/angular-timer
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
angular-timer
/
examples
/
plain-javascript.html
Copy path
More file actions
More file actions
Latest commit
History
History
History
26 lines (25 loc) · 676 Bytes
Breadcrumbs
angular-timer
/
examples
/
plain-javascript.html
Copy path
File metadata and controls
26 lines (25 loc) · 676 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
26
<!DOCTYPE html
>
<
html
>
<
head
>
<
title
>
Plain Javascript Timer Example
</
title
>
<
script
src
="
../bower_components/angular/angular.min.js
"
>
</
script
>
<
script
src
="
../app/js/timer.js
"
>
</
script
>
<
script
>
function
startTimer
(
)
{
document
.
getElementsByTagName
(
'timer'
)
[
0
]
.
start
(
)
;
}
function
stopTimer
(
)
{
document
.
getElementsByTagName
(
'timer'
)
[
0
]
.
stop
(
)
;
}
</
script
>
</
head
>
<
body
>
<
div
>
<
h2
>
Plain JavaScript - Timer Example
</
h2
>
<
h3
>
<
timer
ng-app
="
timer
"
/>
</
h3
>
<
button
onclick
="
startTimer()
"
>
Start Timer
</
button
>
<
button
onclick
="
stopTimer()
"
>
Stop Timer
</
button
>
</
div
>
<
br
/>
</
body
>
</
html
>
Back
|
FazBrowse Home
|
New Git URL