-
Notifications
You must be signed in to change notification settings - Fork 1
/
indexOld.html
executable file
·222 lines (167 loc) · 8.3 KB
/
indexOld.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>EpiForecast</title>
<link rel="icon" type="image/png" href="images/favicon.png?v=1">
<!-- <script src="src/lib/d3/d3.min.js"></script> -->
<!-- <script src="src/lib/taffydb/taffy.js"></script> -->
<!-- <script src="src/lib/gaussian.js"></script> -->
<!-- <script src="src/forecast.js"></script> -->
<!-- <link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3"
crossorigin="anonymous"> -->
<link href="https://fonts.googleapis.com/icon?family=Material+Icons"
rel="stylesheet">
<link rel="stylesheet" href="styleOld.css">
</head>
<body id="body">
<div id="file-upload-overlay" class="overlay" style="display:none"></div>
<div class="top">
<div class="top-element"><h1>epiForecast</h1></div>
<span class="top-link"> [<a href="https://github.com/episphere/forecast">code</a>] </span>
<span class="top-link"> [<a href="https://observablehq.com/@siliconjazz/edm-interpretable-forecasting">notebook</a>] </span>
<span class="top-link"> [<a href="https://youtu.be/kU31yz6kiQA">video</a>] </span>
<span class="top-link"> [<a href="https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0277149">paper</a>] </span>
</div>
<div class="main">
<div id="file-warning" class="file-request"></div>
<div class="file-select-block">
<div class="collapsible">
Data Configuration
<span class="collapsible-arrow material-icons">arrow_drop_down</span>
</div>
<div id="file-select-content" class="content">
Load and configure the data here. You can either upload a data file or link to a
<a href="https://enable-cors.org/"> CORS-enabled</a> data URL. The data must be in CSV or
JSON format. The data should consist of a series of rows with at least one time field
(with values which are either valid dates or integers) and at least one value field
(with values which are numbers). The data can also have a group field. Within each group,
the time values should be evenly spaced.
<!-- <a
onclick="window.location.href = 'http://127.0.0.1:5500/#tField=submission_date&vField=new_case&sField=NONE&timeIsDate=true&url=https%3A%2F%2Fdata.cdc.gov%2Fresource%2F9mfq-cb36.json%3Fstate%3DFL'; location.reload()">Click here</a> to see an example of loading Florida
COVID-19 data directly from the CDC API. -->
<!-- <a
onclick="console.log(`${window.location.origin}${window.location.pathname}`); window.location.href = '${window.location.origin}${window.location.pathname}#tField=submission_date&vField=new_case&sField=NONE&timeIsDate=true&url=https%3A%2F%2Fdata.cdc.gov%2Fresource%2F9mfq-cb36.json%3Fstate%3DFL'; location.reload()">Click here</a> to see an example of loading Florida
COVID-19 data directly from the CDC API. -->
<a id="example-link" class="state-link">Click here</a> to see an example of loading Florida
COVID-19 data directly from the CDC API.
<div>
<div class="file-select" >
<label for="data-select">File:</label>
<input type="file" id="data-select" accept=".json,.csv" style="display: none;" />
<input type="button" value="Browse..." onclick="document.getElementById('data-select').click();" />
<label id="data-select-label" class="file-select-label" for="data-select">No file selected</label>
</div>
<span class="or"><b>OR</b></span>
<span class="url-select">
<label for="url-input">URL:</label>
<input id="url-input" type="url">
<button id="get-button" type="button">Get</button>
</span>
<span class="or"><b>OR</b></span>
<button id="default-data-button" type="button">Default Mortality Data</button>
<span id="upload-error"></span>
</div>
<div id="field-selects">
<div class="field-stack">
<div>
<label for="tfield-select">Time Field:</label>
<select class="field-select" id="tfield-select" /></select>
</div>
<div>
<input type="checkbox" id="tfield-toggle" checked>
<label>Field Is Date</label><br>
</div>
</div>
<div>
<label for="vfield-select">Value Field:</label>
<select class="field-select" id="vfield-select"></select>
</div>
<div class="field-stack" style="align-items: flex-end">
<div>
<label for="gfield-select">Group Field:</label>
<select class="field-select" id="gfield-select"></select>
</div>
<div>
<label for="g-select">Group:</label>
<select class="field-select" id="g-select"></select>
</div>
</div>
<div style="margin-left: auto;">
<button id="run-button" type="button">Run</button>
</div>
</div>
</div>
</div>
<div id="loader-container">
<div id="loader"></div>
</div>
<div id="plots" class="plots">
<div class="plot-row">
<div class="plot">
<div id="plot_ts" ></div>
<div class="time-control">
<div id="time-slider-container" class="slidecontainer">
</div>
</div>
</div><div class="plot"><div id="plot_alt"></div></div>
</div>
<div class="plot-row">
<div class="plot"><div id="plot_phase"></div></div>
<div id="plot-params" class="params">
<div>
<label for="tp" class="inform-label" id="param-label-tp">Horizon:</label>
<input id="param-input-tp" type="number" id="nn" value=16>
</div>
<div>
<label for="E" id="param-label-E" >Embedding:</label>
<input id="param-input-E" class="inform-label" type="number" value=6>
</div>
<div>
<label for="param-input-nn" id="param-label-nn" class="inform-label">Neighbors:</label>
<input id="param-input-nn" type="number" value=8>
</div>
<div>
<label for="param-input-theta" id="param-label-theta" class="inform-label">θ:</label>
<input id="param-input-theta" type="number" value=1.0 step=0.1>
</div>
<button id="param-run" type="button">Run</button>
<div>
<label for="param-kernel-width" id="param-label-kernel-width" class="inform-label">Kernel Width:</label>
<input id="param-kernel-width" type="number" value=0.1 step="0.1">
</div>
<div>
<label for="weight-coloring-toggle"> Weight Coloring</label>
<input type="checkbox" id="weight-coloring-toggle" checked>
</div>
<div>
<label for="show-dates-toggle">Show Dates</label>
<input type="checkbox" id="show-dates-toggle" checked>
</div>
<div style="margin-top: 10px">
<label for="export-all-toggle" id="param-label-export" class="inform-label">Export All Futures</label>
<input type="checkbox" id="export-all-toggle" checked/>
</div>
<!-- <div>
<label for="export-all-toggle">Export All Times</label>
<input type="checkbox" id="export-all-toggle">
</div> -->
<button id="export-button" type="button">Export</button>
</div>
<div class="plot"><div id="plot_weight"></div></div>
</div>
</div>
<div style="clear:both;"></div>
<!-- <div >
Hello!
</div> -->
</div>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p"
crossorigin="anonymous"></script>
</body>
<!-- <script src="src/main_test.js" type="module"></script> -->
<script src="src/mainOld.js" type="module"></script>
</html>