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
9790d56c
Commit
9790d56c
authored
8 years ago
by
Hakim El Hattab
Committed by
GitHub
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Revert "For a fragment: allow to show a separate note defined in it"
parent
1413cbc1
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.js
+1
-10
1 addition, 10 deletions
plugin/notes/notes.js
with
1 addition
and
10 deletions
plugin/notes/notes.js
+
1
−
10
View file @
9790d56c
...
@@ -50,7 +50,7 @@ var RevealNotes = (function() {
...
@@ -50,7 +50,7 @@ var RevealNotes = (function() {
/**
/**
* Posts the current slide data to the notes window
* Posts the current slide data to the notes window
*/
*/
function
post
(
event
)
{
function
post
()
{
var
slideElement
=
Reveal
.
getCurrentSlide
(),
var
slideElement
=
Reveal
.
getCurrentSlide
(),
notesElement
=
slideElement
.
querySelector
(
'
aside.notes
'
);
notesElement
=
slideElement
.
querySelector
(
'
aside.notes
'
);
...
@@ -64,15 +64,6 @@ var RevealNotes = (function() {
...
@@ -64,15 +64,6 @@ var RevealNotes = (function() {
state
:
Reveal
.
getState
()
state
:
Reveal
.
getState
()
};
};
// Look for notes defined in a fragment, if it is a fragmentshown event
if
(
event
&&
event
.
hasOwnProperty
(
'
fragment
'
))
{
var
innerNotes
=
event
.
fragment
.
querySelector
(
'
aside.notes
'
);
if
(
innerNotes
)
{
notesElement
=
innerNotes
;
}
}
// Look for notes defined in a slide attribute
// Look for notes defined in a slide attribute
if
(
slideElement
.
hasAttribute
(
'
data-notes
'
)
)
{
if
(
slideElement
.
hasAttribute
(
'
data-notes
'
)
)
{
messageData
.
notes
=
slideElement
.
getAttribute
(
'
data-notes
'
);
messageData
.
notes
=
slideElement
.
getAttribute
(
'
data-notes
'
);
...
...
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