1234567891011121314151617181920212223242526272829 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <title>Egghead D3 v4</title>
- <script src="node_modules/d3/build/d3.js"></script>
- <style>
- .block {
- background: lightgray;
- border: 1px solid black;
- width: 50px;
- height: 50px;
- margin-bottom: 1em;
- }
- </style>
- </head>
- <body>
- <div class="block a"></div>
- <div class="block b"></div>
- <button onclick="go()">Go</button>
- <button onclick="goNow()">Go now</button>
- <script src="data/data.json"></script>
- <script src="src/responsivefy.js"></script>
- <script src="src/app.js"></script>
- </body>
- </html>
|