|
| 1 | +<!DOCTYPE html> |
| 2 | +<html> |
| 3 | + |
| 4 | +<head> |
| 5 | + <title>Home (Dark)</title> |
| 6 | + <style> |
| 7 | + body { |
| 8 | + font-family: Arial, sans-serif; |
| 9 | + margin: 0; |
| 10 | + padding: 0; |
| 11 | + background-color: #1a1a1a; |
| 12 | + color: #ddd; |
| 13 | + } |
| 14 | + |
| 15 | + h1 { |
| 16 | + text-align: center; |
| 17 | + margin-top: 50px; |
| 18 | + } |
| 19 | + |
| 20 | + #placeholder { |
| 21 | + width: 100%; |
| 22 | + height: 500px; |
| 23 | + background-color: #212121; |
| 24 | + margin-top: 20px; |
| 25 | + } |
| 26 | + </style> |
| 27 | +</head> |
| 28 | + |
| 29 | +<body onresize="doResize()"> |
| 30 | + <h1>ESM Quick Test (Dark)</h1> |
| 31 | + <div id="placeholder"></div> |
| 32 | + <script type="module"> |
| 33 | + import { Table } from "./src/index.ts"; |
| 34 | + |
| 35 | + window.__widget = new Table() |
| 36 | + .target("placeholder") |
| 37 | + .darkMode(true) |
| 38 | + .columns(["Category", "Series-1", "Series-2", "Series-3", "Series-4"]) |
| 39 | + .data([ |
| 40 | + ["A", -25, -23, -25, -22], |
| 41 | + ["B", -20, -21, -25, -21], |
| 42 | + ["C", -18, -20, -25, -19], |
| 43 | + ["D", -17, -17, -25, -18], |
| 44 | + ["E", -16, -15, -19, -18], |
| 45 | + ["F", -15, -14, -16, -16], |
| 46 | + ["G", -12, -10, -14, -15], |
| 47 | + ["H", -12, -8, -13, -15], |
| 48 | + ["I", -11, -6, -12, -12], |
| 49 | + ["J", -11, -6, -8, -12], |
| 50 | + ["K", -9, 0, -5, -10], |
| 51 | + ["L", -5, 1, -5, -9], |
| 52 | + ["M", -5, 2, -4, -8], |
| 53 | + ["N", -1, 4, -2, -7], |
| 54 | + ["O", 3, 7, 0, -5], |
| 55 | + ["P", 3, 8, 0, -3], |
| 56 | + ["Q", 4, 8, 7, 0], |
| 57 | + ["R", 6, 9, 11, 1], |
| 58 | + ["S", 9, 11, 11, 5], |
| 59 | + ["T", 10, 20, 12, 6], |
| 60 | + ["U", 12, 20, 16, 8], |
| 61 | + ["V", 12, 21, 18, 14], |
| 62 | + ["W", 14, 21, 18, 18], |
| 63 | + ["X", 15, 23, 21, 18], |
| 64 | + ["Y", 21, 23, 23, 21], |
| 65 | + ["Z", 23, 24, 24, 24] |
| 66 | + ]) |
| 67 | + .render() |
| 68 | + ; |
| 69 | + </script> |
| 70 | + <script> |
| 71 | + function doResize() { |
| 72 | + window.__widget?.resize()?.render(); |
| 73 | + } |
| 74 | + </script> |
| 75 | +</body> |
| 76 | + |
| 77 | +</html> |
0 commit comments