Skip to content

Commit

Permalink
Ignore divs that are not direct descendents of body. Fixes #65
Browse files Browse the repository at this point in the history
  • Loading branch information
tmcw committed Aug 16, 2016
1 parent 2043069 commit 0bf3125
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion big.css
Expand Up @@ -28,7 +28,7 @@ img {
width:100%;
}

div {
body > div {
cursor:pointer;
cursor:hand;
position:absolute;
Expand Down
2 changes: 1 addition & 1 deletion big.js
@@ -1,5 +1,5 @@
window.onload = function() {
var s = document.getElementsByTagName('div'), ti, i;
var s = document.querySelectorAll('body > div'), ti, i;
var notes = [];
for (i = 0; i < s.length; i++) {
s[i].setAttribute('tabindex', 0);
Expand Down
4 changes: 2 additions & 2 deletions big.quickstart.html
Expand Up @@ -29,7 +29,7 @@
width:100%;
}

div {
body > div {
cursor:pointer;
cursor:hand;
position:absolute;
Expand All @@ -56,7 +56,7 @@
}
</style><script type='text/javascript'>
window.onload = function() {
var s = document.getElementsByTagName('div'), ti, i;
var s = document.querySelectorAll('body > div'), ti, i;
var notes = [];
for (i = 0; i < s.length; i++) {
s[i].setAttribute('tabindex', 0);
Expand Down
1 change: 1 addition & 0 deletions demo.html
Expand Up @@ -14,6 +14,7 @@
<div class='center'><em>Presentation software</em> for busy busy hackers</div>
<div>+text</div>
<div>as <em>big</em> as it can be</div>
<div>with <div style='font-style:italic;background:#555;'>normal HTML</div></div>
<div data-time-to-next='3'>and now it's perfect for ignite talks (wait 3 seconds)</div>
<div>no config</div>
<div><em>1.5k</em></div>
Expand Down

0 comments on commit 0bf3125

Please sign in to comment.