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
82bd8e4f
Commit
82bd8e4f
authored
12 years ago
by
Michael Kühnel
Browse files
Options
Downloads
Patches
Plain Diff
Renaming key within fragmentData
Might be better to use one variable with different values.
parent
d02e64ad
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
plugin/speakernotes/client.js
+2
-2
2 additions, 2 deletions
plugin/speakernotes/client.js
plugin/speakernotes/notes.html
+2
-2
2 additions, 2 deletions
plugin/speakernotes/notes.html
with
4 additions
and
4 deletions
plugin/speakernotes/client.js
+
2
−
2
View file @
82bd8e4f
...
...
@@ -11,7 +11,7 @@
// Fires when a fragment is shown
Reveal
.
addEventListener
(
'
fragmentshown
'
,
function
(
event
)
{
var
fragmentData
=
{
showF
ragment
:
true
,
f
ragment
:
'
next
'
,
socketId
:
socketId
};
socket
.
emit
(
'
fragmentchanged
'
,
fragmentData
);
...
...
@@ -20,7 +20,7 @@
// Fires when a fragment is hidden
Reveal
.
addEventListener
(
'
fragmenthidden
'
,
function
(
event
)
{
var
fragmentData
=
{
hideF
ragment
:
true
,
f
ragment
:
'
previous
'
,
socketId
:
socketId
};
socket
.
emit
(
'
fragmentchanged
'
,
fragmentData
);
...
...
This diff is collapsed.
Click to expand it.
plugin/speakernotes/notes.html
+
2
−
2
View file @
82bd8e4f
...
...
@@ -128,10 +128,10 @@
console
.
dir
(
data
);
if
(
data
.
socketId
!==
socketId
)
{
return
;
}
if
(
data
.
showF
ragment
===
true
)
{
if
(
data
.
f
ragment
===
'
next
'
)
{
currentSlide
.
contentWindow
.
Reveal
.
nextFragment
();
}
else
if
(
data
.
hideF
ragment
===
true
)
{
else
if
(
data
.
f
ragment
===
'
previous
'
)
{
currentSlide
.
contentWindow
.
Reveal
.
previousFragment
();
}
});
...
...
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