Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add button to add items to the list

  • Loading branch information...
commit 93fe0dde53d9d6ab9ae081dbea4fa6564a7f86d6 1 parent e33ea57
Jason Johnston authored
Showing with 11 additions and 5 deletions.
  1. +11 −5 FisheyeMenu-test.html
16 FisheyeMenu-test.html
View
@@ -50,17 +50,23 @@
<li><a href="">Submenu</a></li>
</ul>
</li>
- <li><a href="#">Label 8</a></li>
- <li><a href="#">Label 9</a></li>
- <li><a href="#">Label 10</a></li>
-
</ul>
<style type="text/css">
</style>
- <div id="controller" title="menu"></div>
+ <div id="controller" title="menu">
+ <p><input type="button" onclick="
+ var menu = document.getElementById('menu');
+ var item = document.createElement('li');
+ var link = document.createElement('a');
+ link.href = 'http://lojjic.net';
+ link.appendChild(document.createTextNode('extra'));
+ item.appendChild(link);
+ menu.appendChild(item);
+ " value="Add Item" /></p>
+ </div>
<p style="margin-top:200em; margin-left:200em; text-align:right; font-size:.8em;">Making the page scroll...</p>
Please sign in to comment.
Something went wrong with that request. Please try again.