Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
2
2015-12-uni-ffm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CmS
2015-12-uni-ffm
Commits
c02d185c
Commit
c02d185c
authored
10 years ago
by
Hakim El Hattab
Browse files
Options
Downloads
Patches
Plain Diff
notes code format tweaks
parent
ce05138f
No related branches found
Branches containing commit
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
+29
-18
29 additions, 18 deletions
plugin/notes/notes.html
with
29 additions
and
18 deletions
plugin/notes/notes.html
+
29
−
18
View file @
c02d185c
...
...
@@ -11,7 +11,7 @@
}
#current-slide
,
#
next
-slide
,
#
upcoming
-slide
,
#speaker-controls
{
padding
:
6px
;
box-sizing
:
border-box
;
...
...
@@ -19,14 +19,14 @@
}
#current-slide
iframe
,
#
next
-slide
iframe
{
#
upcoming
-slide
iframe
{
width
:
100%
;
height
:
100%
;
border
:
1px
solid
#ddd
;
}
#current-slide
.label
,
#
next
-slide
.label
{
#
upcoming
-slide
.label
{
position
:
absolute
;
top
:
10px
;
left
:
10px
;
...
...
@@ -45,7 +45,7 @@
padding-right
:
0
;
}
#
next
-slide
{
#
upcoming
-slide
{
position
:
absolute
;
width
:
35%
;
height
:
40%
;
...
...
@@ -141,7 +141,7 @@
<body>
<div
id=
"current-slide"
></div>
<div
id=
"
next
-slide"
><span
class=
"label"
>
UPCOMING:
</span></div>
<div
id=
"
upcoming
-slide"
><span
class=
"label"
>
UPCOMING:
</span></div>
<div
id=
"speaker-controls"
>
<div
class=
"speaker-controls-time"
>
<h4
class=
"label"
>
Time
</h4>
...
...
@@ -169,7 +169,7 @@
notesValue
,
currentState
,
currentSlide
,
next
Slide
,
upcoming
Slide
,
connected
=
false
;
window
.
addEventListener
(
'
message
'
,
function
(
event
)
{
...
...
@@ -239,8 +239,8 @@
// Update the note slides
currentSlide
.
contentWindow
.
postMessage
(
JSON
.
stringify
({
method
:
'
setState
'
,
args
:
[
data
.
state
]
}),
'
*
'
);
next
Slide
.
contentWindow
.
postMessage
(
JSON
.
stringify
({
method
:
'
setState
'
,
args
:
[
data
.
state
]
}),
'
*
'
);
next
Slide
.
contentWindow
.
postMessage
(
JSON
.
stringify
({
method
:
'
next
'
}),
'
*
'
);
upcoming
Slide
.
contentWindow
.
postMessage
(
JSON
.
stringify
({
method
:
'
setState
'
,
args
:
[
data
.
state
]
}),
'
*
'
);
upcoming
Slide
.
contentWindow
.
postMessage
(
JSON
.
stringify
({
method
:
'
next
'
}),
'
*
'
);
}
...
...
@@ -249,26 +249,37 @@
*/
function
setupIframes
(
data
)
{
var
p
arams
=
[
var
currentP
arams
=
[
'
receiver
'
,
'
progress=false
'
,
'
history=false
'
];
'
history=false
'
,
'
postMessageEvents=true
'
].
join
(
'
&
'
);
var
upcomingParams
=
[
'
receiver
'
,
'
progress=false
'
,
'
history=false
'
,
'
controls=false
'
,
'
transition=none
'
,
'
backgroundTransition=none
'
].
join
(
'
&
'
);
var
url
=
data
.
url
+
'
?
'
+
params
.
join
(
'
&
'
);
var
hash
=
'
#/
'
+
data
.
state
.
indexh
+
'
/
'
+
data
.
state
.
indexv
;
var
currentURL
=
data
.
url
+
'
?
'
+
currentParams
+
hash
;
var
upcomingURL
=
data
.
url
+
'
?
'
+
upcomingParams
+
hash
;
currentSlide
=
document
.
createElement
(
'
iframe
'
);
currentSlide
.
setAttribute
(
'
width
'
,
1280
);
currentSlide
.
setAttribute
(
'
height
'
,
1024
);
currentSlide
.
setAttribute
(
'
src
'
,
ur
l
+
'
&postMessageEvents=true
'
+
hash
);
currentSlide
.
setAttribute
(
'
src
'
,
c
ur
rentURL
);
document
.
querySelector
(
'
#current-slide
'
).
appendChild
(
currentSlide
);
next
Slide
=
document
.
createElement
(
'
iframe
'
);
next
Slide
.
setAttribute
(
'
width
'
,
640
);
next
Slide
.
setAttribute
(
'
height
'
,
512
);
next
Slide
.
setAttribute
(
'
src
'
,
u
rl
+
'
&controls=false&transition=none&backgroundTransition=none
'
+
hash
);
document
.
querySelector
(
'
#
next
-slide
'
).
appendChild
(
next
Slide
);
upcoming
Slide
=
document
.
createElement
(
'
iframe
'
);
upcoming
Slide
.
setAttribute
(
'
width
'
,
640
);
upcoming
Slide
.
setAttribute
(
'
height
'
,
512
);
upcoming
Slide
.
setAttribute
(
'
src
'
,
u
pcomingURL
);
document
.
querySelector
(
'
#
upcoming
-slide
'
).
appendChild
(
upcoming
Slide
);
}
...
...
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