abstractdragdrop_test.html 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <!DOCTYPE html>
  2. <html>
  3. <!--
  4. Copyright 2008 The Closure Library Authors. All Rights Reserved.
  5. Use of this source code is governed by the Apache License, Version 2.0.
  6. See the COPYING file for details.
  7. -->
  8. <!--
  9. Author: eae@google.com (Emil A Eklund)
  10. Author: dgajda@google.com (Damian Gajda)
  11. -->
  12. <head>
  13. <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  14. <meta charset="UTF-8" />
  15. <title>
  16. Closure Unit Tests - goog.fx.AbstractDragDrop
  17. </title>
  18. <script src="../base.js">
  19. </script>
  20. <script>
  21. goog.require('goog.fx.AbstractDragDropTest');
  22. </script>
  23. <style>
  24. #cont {
  25. position: relative;
  26. border: 1px solid black;
  27. height: 100px;
  28. width: 100px;
  29. }
  30. #cont div {
  31. position: absolute;
  32. overflow: hidden;
  33. }
  34. </style>
  35. </head>
  36. <body>
  37. <div id="cont" style="">
  38. </div>
  39. <button onclick="drawTargets(targets, 10)">
  40. draw targets 1
  41. </button>
  42. <br />
  43. <button onclick="drawTargets(targets2, 1)">
  44. draw targets 2
  45. </button>
  46. <br />
  47. <button onclick="drawTargets(targets3, 10)">
  48. draw targets 3
  49. </button>
  50. <div id="container1">
  51. <div id="child1">
  52. </div>
  53. <div id="child2">
  54. </div>
  55. </div>
  56. </body>
  57. </html>