FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
cequel.github.io/plugin/notes/notes.html at master · cequel/cequel.github.io · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
cequel
/
cequel.github.io
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Issues
0
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
cequel.github.io
/
plugin
/
notes
/
notes.html
Copy path
More file actions
More file actions
Latest commit
History
History
History
267 lines (212 loc) · 6.46 KB
Breadcrumbs
cequel.github.io
/
plugin
/
notes
/
notes.html
Copy path
File metadata and controls
267 lines (212 loc) · 6.46 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
<!doctype html
>
<
html
lang
="
en
"
>
<
head
>
<
meta
charset
="
utf-8
"
>
<
title
>
reveal.js - Slide Notes
</
title
>
<
style
>
body
{
font-family
:
Helvetica;
}
#
notes
{
font-size
:
24
px
;
width
:
640
px
;
margin-top
:
5
px
;
clear
:
left;
}
#
wrap-current-slide
{
width
:
640
px
;
height
:
512
px
;
float
:
left;
overflow
:
hidden;
}
#
current-slide
{
width
:
1280
px
;
height
:
1024
px
;
border
:
none;
-webkit-transform-origin
:
0
0
;
-moz-transform-origin
:
0
0
;
-ms-transform-origin
:
0
0
;
-o-transform-origin
:
0
0
;
transform-origin
:
0
0
;
-webkit-transform
:
scale
(
0.5
);
-moz-transform
:
scale
(
0.5
);
-ms-transform
:
scale
(
0.5
);
-o-transform
:
scale
(
0.5
);
transform
:
scale
(
0.5
);
}
#
wrap-next-slide
{
width
:
448
px
;
height
:
358
px
;
float
:
left;
margin
:
0
0
0
10
px
;
overflow
:
hidden;
}
#
next-slide
{
width
:
1280
px
;
height
:
1024
px
;
border
:
none;
-webkit-transform-origin
:
0
0
;
-moz-transform-origin
:
0
0
;
-ms-transform-origin
:
0
0
;
-o-transform-origin
:
0
0
;
transform-origin
:
0
0
;
-webkit-transform
:
scale
(
0.35
);
-moz-transform
:
scale
(
0.35
);
-ms-transform
:
scale
(
0.35
);
-o-transform
:
scale
(
0.35
);
transform
:
scale
(
0.35
);
}
.
slides
{
position
:
relative;
margin-bottom
:
10
px
;
border
:
1
px
solid black;
border-radius
:
2
px
;
background
:
rgb
(
28
,
30
,
32
);
}
.
slides
span
{
position
:
absolute;
top
:
3
px
;
left
:
3
px
;
font-weight
:
bold;
font-size
:
14
px
;
color
:
rgba
(
255
,
255
,
255
,
0.9
);
}
.
error
{
font-weight
:
bold;
color
:
red;
font-size
:
1.5
em
;
text-align
:
center;
margin-top
:
10
%
;
}
.
error
code
{
font-family
:
monospace;
}
.
time
{
width
:
448
px
;
margin
:
30
px
0
0
10
px
;
float
:
left;
text-align
:
center;
opacity
:
0
;
-webkit-transition
:
opacity
0.4
s
;
-moz-transition
:
opacity
0.4
s
;
-o-transition
:
opacity
0.4
s
;
transition
:
opacity
0.4
s
;
}
.
elapsed
,
.
clock
{
color
:
#
333
;
font-size
:
2
em
;
text-align
:
center;
display
:
inline-block;
padding
:
0.5
em
;
background-color
:
#
eee
;
border-radius
:
10
px
;
}
.
elapsed
h2
,
.
clock
h2
{
font-size
:
0.8
em
;
line-height
:
100
%
;
margin
:
0
;
color
:
#
aaa
;
}
.
elapsed
.
mute
{
color
:
#
ddd
;
}
</
style
>
</
head
>
<
body
>
<
script
>
function
getNotesURL
(
controls
)
{
return
window
.
opener
.
location
.
protocol
+
'//'
+
window
.
opener
.
location
.
host
+
window
.
opener
.
location
.
pathname
+
'?receiver&controls='
+
(
controls
||
'false'
)
+
'&progress=false&overview=false'
+
window
.
opener
.
location
.
hash
;
}
var
notesCurrentSlideURL
=
getNotesURL
(
true
)
;
var
notesNextSlideURL
=
getNotesURL
(
false
)
;
</
script
>
<
div
id
="
wrap-current-slide
"
class
="
slides
"
>
<
script
>
document
.
write
(
'<iframe width="1280" height="1024" id="current-slide" src="'
+
notesCurrentSlideURL
+
'"></iframe>'
)
;
</
script
>
</
div
>
<
div
id
="
wrap-next-slide
"
class
="
slides
"
>
<
script
>
document
.
write
(
'<iframe width="640" height="512" id="next-slide" src="'
+
notesNextSlideURL
+
'"></iframe>'
)
;
</
script
>
<
span
>
UPCOMING:
</
span
>
</
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
>
<
script
src
="
../../plugin/markdown/marked.js
"
>
</
script
>
<
script
>
window
.
addEventListener
(
'load'
,
function
(
)
{
if
(
window
.
opener
&&
window
.
opener
.
location
&&
window
.
opener
.
location
.
href
)
{
var
notes
=
document
.
getElementById
(
'notes'
)
,
currentSlide
=
document
.
getElementById
(
'current-slide'
)
,
nextSlide
=
document
.
getElementById
(
'next-slide'
)
,
silenced
=
false
;
window
.
addEventListener
(
'message'
,
function
(
event
)
{
var
data
=
JSON
.
parse
(
event
.
data
)
;
// No need for updating the notes in case of fragment changes
if
(
data
.
notes
!==
undefined
)
{
if
(
data
.
markdown
)
{
notes
.
innerHTML
=
marked
(
data
.
notes
)
;
}
else
{
notes
.
innerHTML
=
data
.
notes
;
}
}
silenced
=
true
;
// Update the note slides
currentSlide
.
contentWindow
.
Reveal
.
slide
(
data
.
indexh
,
data
.
indexv
,
data
.
indexf
)
;
nextSlide
.
contentWindow
.
Reveal
.
slide
(
data
.
nextindexh
,
data
.
nextindexv
)
;
silenced
=
false
;
}
,
false
)
;
var
start
=
new
Date
(
)
,
timeEl
=
document
.
querySelector
(
'.time'
)
,
clockEl
=
document
.
getElementById
(
'clock'
)
,
hoursEl
=
document
.
getElementById
(
'hours'
)
,
minutesEl
=
document
.
getElementById
(
'minutes'
)
,
secondsEl
=
document
.
getElementById
(
'seconds'
)
;
setInterval
(
function
(
)
{
timeEl
.
style
.
opacity
=
1
;
var
diff
,
hours
,
minutes
,
seconds
,
now
=
new
Date
(
)
;
diff
=
now
.
getTime
(
)
-
start
.
getTime
(
)
;
hours
=
Math
.
floor
(
diff
/
(
1000
*
60
*
60
)
)
;
minutes
=
Math
.
floor
(
(
diff
/
(
1000
*
60
)
)
%
60
)
;
seconds
=
Math
.
floor
(
(
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
)
;
// Broadcasts the state of the notes window to synchronize
// the main window
function
synchronizeMainWindow
(
)
{
if
(
!
silenced
)
{
var
indices
=
currentSlide
.
contentWindow
.
Reveal
.
getIndices
(
)
;
window
.
opener
.
Reveal
.
slide
(
indices
.
h
,
indices
.
v
,
indices
.
f
)
;
}
}
// Navigate the main window when the notes slide changes
currentSlide
.
contentWindow
.
Reveal
.
addEventListener
(
'slidechanged'
,
synchronizeMainWindow
)
;
currentSlide
.
contentWindow
.
Reveal
.
addEventListener
(
'fragmentshown'
,
synchronizeMainWindow
)
;
currentSlide
.
contentWindow
.
Reveal
.
addEventListener
(
'fragmenthidden'
,
synchronizeMainWindow
)
;
}
else
{
document
.
body
.
innerHTML
=
'<p class="error">Unable to access <code>window.opener.location</code>.<br>Make sure the presentation is running on a web server.</p>'
;
}
}
,
false
)
;
function
zeroPadInteger
(
num
)
{
var
str
=
"00"
+
parseInt
(
num
)
;
return
str
.
substring
(
str
.
length
-
2
)
;
}
</
script
>
</
body
>
</
html
>
Back
|
FazBrowse Home
|
New Git URL