Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
Reveal.js
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Pixel Humain
Reveal.js
Commits
ab3f4e5b
Commit
ab3f4e5b
authored
12 years ago
by
Charlie DeTar
Browse files
Options
Downloads
Patches
Plain Diff
Add clock and elapsed time to notes view
parent
f3b4881c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
plugin/notes/notes.html
+59
-0
59 additions, 0 deletions
plugin/notes/notes.html
with
59 additions
and
0 deletions
plugin/notes/notes.html
+
59
−
0
View file @
ab3f4e5b
...
@@ -95,6 +95,28 @@
...
@@ -95,6 +95,28 @@
.error
code
{
.error
code
{
font-family
:
monospace
;
font-family
:
monospace
;
}
}
.time
{
text-align
:
center
;
}
.elapsed
,
.clock
{
color
:
#333
;
font-size
:
2em
;
text-align
:
center
;
display
:
inline-block
;
padding
:
0.5em
;
background-color
:
#eee
;
border-radius
:
10px
;
}
.elapsed
h2
,
.clock
h2
{
font-size
:
0.8em
;
line-height
:
100%
;
margin
:
0
;
color
:
#aaa
;
}
.elapsed
.mute
{
color
:
#ddd
;
}
</style>
</style>
</head>
</head>
...
@@ -108,10 +130,24 @@
...
@@ -108,10 +130,24 @@
<script>
document
.
write
(
'
<iframe width="640" height="512" id="next-slide" src="
'
+
window
.
opener
.
location
.
href
+
'
"></iframe>
'
);
</script>
<script>
document
.
write
(
'
<iframe width="640" height="512" id="next-slide" src="
'
+
window
.
opener
.
location
.
href
+
'
"></iframe>
'
);
</script>
<span>
UPCOMING:
</span>
<span>
UPCOMING:
</span>
</div>
</div>
<div
class=
'time'
>
<div
class=
'clock'
>
<h2>
Time
</h2>
<span
id=
'clock'
>
0:00:00 AM
</span>
</div>
<div
class=
'elapsed'
>
<h2>
Elapsed
</h2>
<span
id=
'hours'
>
00
</span><span
id=
'minutes'
>
:00
</span><span
id=
'seconds'
>
:00
</span>
</div>
</div>
<div
id=
"notes"
></div>
<div
id=
"notes"
></div>
<script
src=
"../../plugin/markdown/showdown.js"
></script>
<script
src=
"../../plugin/markdown/showdown.js"
></script>
<script>
<script>
function
zeroPadInteger
(
num
)
{
var
str
=
"
00
"
+
parseInt
(
num
);
return
str
.
substring
(
str
.
length
-
2
);
}
window
.
addEventListener
(
'
load
'
,
function
()
{
window
.
addEventListener
(
'
load
'
,
function
()
{
if
(
window
.
opener
&&
window
.
opener
.
location
&&
window
.
opener
.
location
.
href
)
{
if
(
window
.
opener
&&
window
.
opener
.
location
&&
window
.
opener
.
location
.
href
)
{
...
@@ -157,6 +193,29 @@
...
@@ -157,6 +193,29 @@
}
}
var
start
=
new
Date
(),
clockEl
=
document
.
getElementById
(
'
clock
'
),
hoursEl
=
document
.
getElementById
(
'
hours
'
),
minutesEl
=
document
.
getElementById
(
'
minutes
'
),
secondsEl
=
document
.
getElementById
(
'
seconds
'
);
setInterval
(
function
()
{
var
diff
,
hours
,
minutes
,
seconds
,
now
=
new
Date
();
diff
=
now
.
getTime
()
-
start
.
getTime
();
hours
=
parseInt
(
diff
/
(
1000
*
60
*
60
));
minutes
=
parseInt
((
diff
/
(
1000
*
60
))
%
60
);
seconds
=
parseInt
((
diff
/
1000
)
%
60
);
clockEl
.
innerHTML
=
now
.
toLocaleTimeString
();
hoursEl
.
innerHTML
=
zeroPadInteger
(
hours
);
hoursEl
.
className
=
hours
>
0
?
""
:
"
mute
"
;
minutesEl
.
innerHTML
=
"
:
"
+
zeroPadInteger
(
minutes
);
minutesEl
.
className
=
minutes
>
0
?
""
:
"
mute
"
;
secondsEl
.
innerHTML
=
"
:
"
+
zeroPadInteger
(
seconds
);
},
1000
);
},
false
);
},
false
);
</script>
</script>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment