|
4 | 4 | <meta charset="UTF-8" /> |
5 | 5 | <meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
6 | 6 | <link rel="stylesheet" href="./src/assets/css/style.css" /> |
| 7 | + <link rel="icon" href="vite.svg" /> |
7 | 8 | <title>Map Chart Table</title> |
8 | 9 | </head> |
9 | 10 | <body> |
| 11 | + <button class="glossary">glossary</button> |
| 12 | + <button class="about">about</button> |
| 13 | + <button class="error-example">error example</button> |
| 14 | + <button class="extra">Extra filter button</button> |
10 | 15 | <div id="app"></div> |
11 | | - <!-- Main App --> |
| 16 | + |
| 17 | + <!-- Import as file --> |
| 18 | + <!-- |
| 19 | + <script src="./dist/mct-1.6.1.js"></script> |
| 20 | + <script> |
| 21 | + const dashboard = new MCT({ api: "http://localhost" }); |
| 22 | + </script> |
| 23 | + --> |
| 24 | + |
| 25 | + <!-- Import as module --> |
| 26 | + |
12 | 27 | <script type="module"> |
13 | | - import Mct from "./src/main.js"; |
14 | | - const dashboard = new Mct("http://localhost:5000/"); |
| 28 | + import MCT from "./src/main.js"; |
| 29 | + const dashboard = new MCT({ api: "http://localhost" }); |
| 30 | + |
| 31 | + /* |
| 32 | + document.querySelector(".glossary").addEventListener("click", () => { |
| 33 | + dashboard.genericModal("Glossário", "?slug=glossario-vacinabr") |
| 34 | + }); |
| 35 | +
|
| 36 | + document.querySelector(".about").addEventListener("click", () => { |
| 37 | + dashboard.genericModal("Sobre", "?slug=sobre-vacinabr") |
| 38 | + }); |
| 39 | +
|
| 40 | + document.querySelector(".error-example").addEventListener("click", () => { |
| 41 | + dashboard.genericModal("Error example", "?slug=sobre-vacinabr2") |
| 42 | + }); |
| 43 | +
|
| 44 | + dashboard.genericModalWithFilterButton("Extra filter button", "?slug=sobre-vacinabr") |
| 45 | +
|
| 46 | + document.querySelector(".extra").addEventListener("click", () => { |
| 47 | + dashboard.genericModal("Extra filter button", "?slug=sobre-vacinabr") |
| 48 | + }); |
| 49 | + */ |
15 | 50 | </script> |
16 | 51 | </body> |
17 | 52 | </html> |
0 commit comments