-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
47 lines (40 loc) · 1.84 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<!-- Load Fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Zen+Kaku+Gothic+New:wght@400;900&display=swap" rel="stylesheet">
<!-- Load CSS -->
<link rel="stylesheet" href="styles/main.css">
<!-- Load plotly.js into the DOM -->
<script src='https://cdn.plot.ly/plotly-2.4.2.min.js'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.17/d3.min.js'></script>
<!-- gstatic chart loader -->
<script src="https://www.gstatic.com/charts/loader.js"></script>
</head>
<body>
<div id="wrapper">
<h1 id="pageTitle">Bathymetry Graph</h1>
<div id="instructions">
<ol>
<li>Click <a href="https://docs.google.com/spreadsheets/d/1WxnpoX13uDJzKrUNuPs1nB4OtbRyybbPn-8eh2YrlHo/copy" target="_blank">Data entry template</a>, and make a copy of the template spreadsheet.</li>
<li>Fill in your data.</li>
<li>Go to share options and change the sharing settings to 'Anyone with the link.' </li>
<li>Copy the URL for your spreadsheet.</li>
<li>Paste it in the 'Spreadsheet URL' field below.</li>
<li>Click 'Generate Graph.'</li>
</ol>
<p>Note: if your graph isn't loading, check to make sure you set the sharing settings to 'Anyone with the link.'</p>
</div>
<div id="errorMessage" class="center"></div>
<div class="center">
<label for="spreadsheetURL">Spreadsheet URL:</label>
<input type="url" id="spreadsheetURL" name="spreadsheetURL">
</div>
<div id="generateGraphButton" class="center"><button class="button" onclick="generateGraph()">Generate Graph</button></div>
<div id='surfacePlot' class="center"><!-- Plotly chart will be drawn inside this DIV --></div>
</div>
<script src='scripts/main.js'></script>
</body>
</html>