hovercard_test.html 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <html>
  2. <!--
  3. Copyright 2010 The Closure Library Authors. All Rights Reserved.
  4. Use of this source code is governed by the Apache License, Version 2.0.
  5. See the COPYING file for details.
  6. -->
  7. <head>
  8. <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  9. <meta charset="UTF-8" />
  10. <title>
  11. Closure Unit Tests - goog.ui.HoverCard
  12. </title>
  13. <style type="text/css">
  14. .goog-tooltip {
  15. background: infobackground;
  16. color: infotext;
  17. border: 1px solid infotext;
  18. padding: 1px;
  19. font:menu;
  20. }
  21. </style>
  22. <script type="text/javascript" src="../base.js">
  23. </script>
  24. <script type="text/javascript">
  25. goog.require('goog.ui.HoverCardTest');
  26. </script>
  27. </head>
  28. <body>
  29. <p id="notpopup">
  30. Content
  31. </p>
  32. <span id="john" email="john@gmail.com">
  33. Span for John that can trigger a
  34. hovercard.
  35. </span>
  36. <br />
  37. <span id="jane">
  38. Span for Jane that doesn't trigger a hovercard (no email
  39. attribute)
  40. </span>
  41. <br />
  42. <span id="james" email="james@gmail.com">
  43. Span for James that can trigger a
  44. hovercard
  45. <span id="child">
  46. Child of james
  47. </span>
  48. </span>
  49. <br />
  50. <div id="bill" email="bill@gmail.com">
  51. Doesn't trigger for Bill because
  52. it's a div
  53. </div>
  54. </body>
  55. </html>