index.html 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  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. <link rel="stylesheet" href="../resources/css/base.css" />
  8. <link rel="stylesheet" href="../common/css/style.css" />
  9. </head>
  10. <body>
  11. <div class="element">
  12. </div>
  13. <div class="container">
  14. <div class="pad"></div>
  15. <div class="target"></div>
  16. <div class="pad"></div>
  17. <div class="pad"></div>
  18. </div>
  19. <script src="//github.hubspot.com/tether/dist/js/tether.js"></script>
  20. <script>
  21. new Tether({
  22. element: '.element',
  23. target: '.target',
  24. attachment: 'top center',
  25. targetAttachment: 'bottom center',
  26. constraints: [{
  27. to: 'scrollParent',
  28. attachment: 'together'
  29. }]
  30. });
  31. </script>
  32. </body>
  33. </html>