drawer.html 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <div class="view" id="touchView">
  2. <header><h1></h1></header>
  3. <div class="pages">
  4. <div class="panel" data-title="hello" id="hello">
  5. Hello world
  6. </div>
  7. <div class="panel" id="foobar" data-title="foobar">
  8. </div>
  9. </div>
  10. <footer>
  11. <a href="#hello">Hello</a>
  12. <a href="#foobar"></a>
  13. </footer>
  14. <nav id="left">
  15. <div class="view active" id="navView1">
  16. <header>
  17. <h1>What</h1>
  18. </header>
  19. <div class="pages">
  20. <div class="panel active" id="drawer" data-title="Drawer">
  21. <a href="#" class="button" onclick="$.afui.drawer.hide('#left')">Hide Left</a>
  22. <a href="#" id="hideactive" class="button" data-menu-close>Hide Active</a>
  23. <a href="#" id="hideright" class="button" data-menu-close data-right-menu="right">Hide Right</a>
  24. <br>
  25. <a href="#" id="leftcover" class="button" data-left-menu="left" >Cover Left</a>
  26. <br>
  27. <a href="#" id="rightcover" class="button" onclick="$.afui.drawer.show('#right','right')">Cover Right</a>
  28. <br>
  29. <a href="#" id="leftpush" class="button" data-left-menu="left" data-transition="push">Left Push</a>
  30. <br>
  31. <a href="#" id="leftreveal" class="button" onclick="$.afui.drawer.show('#left','left','reveal')">Left Reveal</a>
  32. <br>
  33. <a href="#" id="rightpush" class="button" onclick="$.afui.drawer.show('#right','right','push')">Right Push</a>
  34. <br>
  35. <a href="#" id="rightreveal" class="button" onclick="$.afui.drawer.show('#right','right','reveal')">Right Reveal</a>
  36. </div>
  37. </div>
  38. </div>
  39. </nav>
  40. <nav id="right">
  41. <div class="view active" id="navView2">
  42. <header>
  43. <h1>What</h1>
  44. </header>
  45. <div class="pages">
  46. <div class="panel active" id="rightNav" data-title="Foobar">
  47. This is the right nav
  48. </div>
  49. </div>
  50. </div>
  51. </nav>
  52. </div>