index.html 4.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="chrome=1">
  6. <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
  7. <script type="text/javascript" src="//use.typekit.net/jbn8qxr.js"></script>
  8. <script type="text/javascript">try{Typekit.load();}catch(e){}</script>
  9. <link rel="stylesheet" href="../../css/drop.css" />
  10. <link rel="stylesheet" href="../../css/drop-tooltip-theme-arrows.css" />
  11. <style>
  12. body {
  13. font-family: "proxima-nova", "Helvetica Neue", sans-serif;
  14. color: #444;
  15. }
  16. .scroll-parent {
  17. margin: 200px;
  18. height: 300px;
  19. width: 300px;
  20. display: inline-block;
  21. overflow: auto;
  22. border: 2px solid #eee;
  23. padding: 40px;
  24. }
  25. </style>
  26. </head>
  27. <body>
  28. <div class="scroll-parent">
  29. <p>This is a paragraph of text</p>
  30. <p>This is a paragraph of text</p>
  31. <p><a href="javascript:;" class="drop-tooltip" data-tooltip-content="Whoa, I'm a tooltip" data-attach="top center">Tooltip on Top</a></p>
  32. <p>This is a paragraph of text</p>
  33. <p>This is a paragraph of text</p>
  34. <p><a href="javascript:;" class="drop-tooltip" data-tooltip-content="Whoa, I'm a tooltip" data-attach="bottom center">Tooltip on Bottom</a></p>
  35. <p>This is a paragraph of text</p>
  36. <p>This is a paragraph of text</p>
  37. <p><a href="javascript:;" class="drop-tooltip" data-tooltip-content="Whoa, I'm a tooltip" data-attach="left middle">Tooltip on Left</a></p>
  38. <p>This is a paragraph of text</p>
  39. <p>This is a paragraph of text</p>
  40. <p><a href="javascript:;" class="drop-tooltip" data-tooltip-content="Whoa, I'm a tooltip" data-attach="right middle">Tooltip on Right</a></p>
  41. <p>This is a paragraph of text</p>
  42. <p>This is a paragraph of text</p>
  43. <p><a href="javascript:;" class="drop-tooltip" data-tooltip-content="Whoa, I'm a tooltip" data-attach="bottom left">Tooltip on Bottom Left</a></p>
  44. <p>This is a paragraph of text</p>
  45. <p>This is a paragraph of text</p>
  46. <p><a href="javascript:;" class="drop-tooltip" data-tooltip-content="Whoa, I'm a tooltip" data-attach="bottom right">Tooltip on Bottom Right</a></p>
  47. <p>This is a paragraph of text</p>
  48. <p>This is a paragraph of text</p>
  49. <p><a href="javascript:;" class="drop-tooltip" data-tooltip-content="Whoa, I'm a tooltip" data-attach="top left">Tooltip on Top Left</a></p>
  50. <p>This is a paragraph of text</p>
  51. <p>This is a paragraph of text</p>
  52. <p><a href="javascript:;" class="drop-tooltip" data-tooltip-content="Whoa, I'm a tooltip" data-attach="top right">Tooltip on Top Right</a></p>
  53. <p>This is a paragraph of text</p>
  54. <p>This is a paragraph of text</p>
  55. <p><a href="javascript:;" class="drop-tooltip" data-tooltip-content="Whoa, I'm a tooltip" data-attach="left bottom">Tooltip on Left Bottom</a></p>
  56. <p>This is a paragraph of text</p>
  57. <p>This is a paragraph of text</p>
  58. <p><a href="javascript:;" class="drop-tooltip" data-tooltip-content="Whoa, I'm a tooltip" data-attach="left top">Tooltip on Left Top</a></p>
  59. <p>This is a paragraph of text</p>
  60. <p>This is a paragraph of text</p>
  61. <p><a href="javascript:;" class="drop-tooltip" data-tooltip-content="Whoa, I'm a tooltip" data-attach="right bottom">Tooltip on Right Bottom</a></p>
  62. <p>This is a paragraph of text</p>
  63. <p>This is a paragraph of text</p>
  64. <p><a href="javascript:;" class="drop-tooltip" data-tooltip-content="Whoa, I'm a tooltip" data-attach="right top">Tooltip on Right Top</a></p>
  65. <p>This is a paragraph of text</p>
  66. <p>This is a paragraph of text</p>
  67. </div>
  68. <script src="../resources/js/log.js"></script>
  69. <script src="../resources/js/jquery.js"></script>
  70. <script src="../../utils.js"></script>
  71. <script src="../../tether.js"></script>
  72. <script src="/drop/drop.min.js"></script>
  73. <script src="../../tooltip.js"></script>
  74. <script src="../../constraint.js"></script>
  75. <script>
  76. $('.drop-tooltip').each(function(){
  77. new Tooltip({
  78. el: this,
  79. attach: $(this).data('attach')
  80. });
  81. });
  82. </script>
  83. </body>
  84. </html>