index.html 660 B

1234567891011121314151617181920212223242526272829
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Egghead D3 v4</title>
  6. <script src="node_modules/d3/build/d3.js"></script>
  7. <style>
  8. .block {
  9. background: lightgray;
  10. border: 1px solid black;
  11. width: 50px;
  12. height: 50px;
  13. margin-bottom: 1em;
  14. }
  15. </style>
  16. </head>
  17. <body>
  18. <div class="block a"></div>
  19. <div class="block b"></div>
  20. <button onclick="go()">Go</button>
  21. <button onclick="goNow()">Go now</button>
  22. <script src="data/data.json"></script>
  23. <script src="src/responsivefy.js"></script>
  24. <script src="src/app.js"></script>
  25. </body>
  26. </html>