Skip to content

Commit

Permalink
Show notes in the embedder shell. (In a new file.)
Browse files Browse the repository at this point in the history
As discussed in paulrouget#101
  • Loading branch information
SimonSapin committed Sep 25, 2012
1 parent 0023714 commit bf13721
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
23 changes: 21 additions & 2 deletions shells/embedder+notes.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
<div id="slides">
<iframe allowfullscreen mozallowfullscreen webkitallowfullscreen></iframe>
</div>
<div id="notes">
<p id="content"></p>
</div>
<div id="controls">
<button title="prev" id="back" onclick="Dz.back()">&#9664;</button>
<button title="next" id="forward" onclick="Dz.forward()">&#9654;</button>
Expand All @@ -23,7 +26,7 @@
height: 100%;
width: 100%;
}
#slides, #controls {
#slides, #controls, #notes {
left: 0;
position: absolute;
right: 0;
Expand All @@ -36,9 +39,21 @@
padding: 5px;
}
#slides {
bottom: 40px;
bottom: 206px;
top: 0;
}
#notes {
bottom: 40px;
height: 150px;

background: #EEE;
color: #444;
padding: 0 20px;
overflow: auto;
font: 25px sans-serif;
border: 8px solid #555;
border-style: solid none;
}
iframe {
border: none;
background-color: white;
Expand Down Expand Up @@ -149,6 +164,7 @@
argv.forEach(function(e, i, a) { a[i] = decodeURIComponent(e) });
if (argv[0] === "CURSOR" && argc === 2) {
var cursor = argv[1].split(".");
this.postMsg(this.view, "GET_NOTES");
this.idx = ~~cursor[0];
this.step = ~~cursor[1];
$("#slideidx").value = this.idx;
Expand All @@ -159,6 +175,9 @@
$("#slidecount").innerHTML = this.count = argv[2];
document.title = argv[1];
}
if (argv[0] === "NOTES" && argc === 2) {
$("#notes > #content").innerHTML = this.notes = argv[1];
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion template.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ <h3>An incremental list</h3>
<li>Item 2
<li>Item 3
</ul>
<details>Some notes. They are only visible using onstage shell.</details>
<details>Some notes. They are only visible using onstage or embedder+notes shell.</details>
</section>

<section>
Expand Down

0 comments on commit bf13721

Please sign in to comment.