Skip to content

Commit

Permalink
fix demo element increment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
elbywan committed Aug 30, 2017
1 parent 646474e commit 6551d58
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion demo/basic/basic.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<h1>Quadtree-lib</h1>
<h2>Basic demo</h2>
<p class="intro">
<span class="highlight">Left click</span> to add <input type="number" value="10" min="0" onchange="eltIncrement = this.value">
<span class="highlight">Left click</span> to add <input type="number" value="10" min="0" onchange="demo.eltIncrement = this.value">
elements, <span class="highlight">right click</span> to reset, <span class="highlight">mouseover</span> to highlight collisions.
</p>
<strong id="counter"></strong>
Expand Down
2 changes: 1 addition & 1 deletion docs/demo/basic/basic.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<h1>Quadtree-lib</h1>
<h2>Basic demo</h2>
<p class="intro">
<span class="highlight">Left click</span> to add <input type="number" value="10" min="0" onchange="eltIncrement = this.value">
<span class="highlight">Left click</span> to add <input type="number" value="10" min="0" onchange="demo.eltIncrement = this.value">
elements, <span class="highlight">right click</span> to reset, <span class="highlight">mouseover</span> to highlight collisions.
</p>
<strong id="counter"></strong>
Expand Down

0 comments on commit 6551d58

Please sign in to comment.