index.ejs 10.3 KB
Newer Older
Porter Libby's avatar
Porter Libby committed
1
2
3
<!DOCTYPE html>
<html lang="en" dir="ltr">
    <head>
Porter Libby's avatar
Porter Libby committed
4
5
6
        <meta charset="utf-8">
        <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no">
        <title>Datavis 2.0</title>
Porter Libby's avatar
Porter Libby committed
7
        
Porter Libby's avatar
Porter Libby committed
8
        <link rel="stylesheet" href="https://js.arcgis.com/4.12/esri/css/main.css">
Porter Libby's avatar
Porter Libby committed
9

Porter Libby's avatar
Porter Libby committed
10
        <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
Porter Libby's avatar
Porter Libby committed
11
        <script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.20.1/moment.min.js"></script>
Porter Libby's avatar
Porter Libby committed
12
13
14
        <script src="https://cdn.jsdelivr.net/npm/chart.js@2.9.1"></script>
        <script src="https://cdn.jsdelivr.net/npm/hammerjs@2.0.8"></script>
        <script src="https://cdn.jsdelivr.net/npm/chartjs-plugin-zoom@0.7.4"></script>
Porter Libby's avatar
Porter Libby committed
15
        <script src="https://js.arcgis.com/4.12/"></script>
Porter Libby's avatar
Porter Libby committed
16

Porter Libby's avatar
Porter Libby committed
17
18
19
        <script type="text/javascript" src="js/map.js"></script>
        <script type="text/javascript" src="js/data.js"></script>
        <script type="text/javascript" src="js/graph.js"></script>
Porter Libby's avatar
Porter Libby committed
20
        <script type="text/javascript" src="js/main.js"></script>
Porter Libby's avatar
Porter Libby committed
21
        <script type="text/javascript" src="js/util.js"></script>
Porter Libby's avatar
Porter Libby committed
22
        
Porter Libby's avatar
Porter Libby committed
23
        <link rel="stylesheet" type="text/css" href="css/main.css" />
Porter Libby's avatar
Porter Libby committed
24
25
26
        <link rel="stylesheet" type="text/css" href="css/graph.css" />
        <link rel="stylesheet" type="text/css" href="css/data.css" />
        <link rel="stylesheet" type="text/css" href="css/map.css" />
Porter Libby's avatar
Porter Libby committed
27
        <link rel="stylesheet" type="text/css" href="css/mobile.css" />
Porter Libby's avatar
Porter Libby committed
28
29
    </head>
    <body>
30
31
32
        <div id='loading'>
                <div style='float: left; width: 100%; height: 10px; text-align:center; padding-top:20%;color: black'>Rendering...</div><div class='lds-ellipsis'><div></div><div></div><div></div><div></div></div>
        </div>
33
34
35
        <div id='mapView'>
            <div id="viewDiv"></div>
            <div id='navcontrols'>
Porter Libby's avatar
Porter Libby committed
36
37
                <div class='tooltip'2>
                    <span class="tooltiptext">Map View (current)</span>
Porter Libby's avatar
Porter Libby committed
38
39
40
41
                    <input 
                        id='nav-button-map'
                        class='nav-button-select nav-view-button' 
                        type="image" 
Porter Libby's avatar
fix    
Porter Libby committed
42
                        src="img/globe-icon.png" 
Porter Libby's avatar
Porter Libby committed
43
44
45
                        alt="Submit" 
                        width="24" height="24">
                </div>
Porter Libby's avatar
Porter Libby committed
46
47
                <div class='tooltip2'>
                    <span class="tooltiptext">open Graph View</span>
Porter Libby's avatar
Porter Libby committed
48
49
50
51
52
53
54
55
56
                    <input 
                        id='nav-button-graph'
                        class='nav-button-idle nav-view-button'                    
                        onclick='switchToGraph()' 
                        type="image" 
                        src="img/graph-icon.png" 
                        alt="Submit" 
                        width="24" height="24">
                </div>
Porter Libby's avatar
Porter Libby committed
57
58
                <div class='tooltip2'>
                    <span class="tooltiptext">open Data Selection</span>
Porter Libby's avatar
Porter Libby committed
59
60
61
62
63
64
65
66
67
68
                    <input 
                        id='nav-button-data'
                        class='nav-button-idle nav-view-button'
                        onclick='switchToData()' 
                        id='data'
                        type="image" 
                        src="img/data-icon.png" 
                        alt="Submit" 
                        width="48" height="48">
                </div>
69
            </div>
Porter Libby's avatar
Porter Libby committed
70
        </div>
71
72
73

        <div id='graphView'>
            <div id='graph'>
Porter Libby's avatar
Porter Libby committed
74
                <canvas id="line-chart"></canvas>
Porter Libby's avatar
Porter Libby committed
75
                <div id='readingStats' style='position:absolute;z-index: 10;width: 100%; height: 100%;'></div>
76
77
            </div>
            <div id='navcontrols'>
Porter Libby's avatar
Porter Libby committed
78
79
                <div class='tooltip2'>
                    <span class="tooltiptext">open Map View</span>
Porter Libby's avatar
Porter Libby committed
80
81
82
83
84
                    <input 
                        id='nav-button-map'
                        class='nav-button-idle nav-view-button'
                        onclick='switchToMap()' 
                        type="image" 
Porter Libby's avatar
fix    
Porter Libby committed
85
                        src="img/globe-icon.png" 
Porter Libby's avatar
Porter Libby committed
86
87
88
                        alt="Submit" 
                        width="24" height="24">
                </div>
Porter Libby's avatar
Porter Libby committed
89
90
                <div class='tooltip2'>
                    <span class="tooltiptext">Graph View (current)</span>
Porter Libby's avatar
Porter Libby committed
91
92
93
94
95
96
97
98
                    <input 
                        id='nav-button-graph'
                        class='nav-button-select nav-view-button'
                        type="image" 
                        src="img/graph-icon.png" 
                        alt="Submit" 
                        width="24" height="24">
                </div>
Porter Libby's avatar
Porter Libby committed
99
100
                <div class='tooltip2'>
                    <span class="tooltiptext">open Data Selection</span>
Porter Libby's avatar
Porter Libby committed
101
102
103
104
105
106
107
108
109
110
                    <input 
                        id='nav-button-data'
                        class='nav-button-idle nav-view-button'
                        onclick='switchToData()'
                        id='data' 
                        type="image" 
                        src="img/data-icon.png" 
                        alt="Submit" 
                        width="48" height="48">
                </div>
111
            </div>
Porter Libby's avatar
Porter Libby committed
112
        </div>
113
114

        <div id='dataView'>
Porter Libby's avatar
Porter Libby committed
115
            <div id='title'>
Porter Libby's avatar
Porter Libby committed
116
                <span style='font-size:20px;'>IFS Datavis Tool v0.1.5</span><br>
Porter Libby's avatar
Porter Libby committed
117
            </div>
Porter Libby's avatar
Porter Libby committed
118
            <div id='data'>
119
                <div class='data-catagory' id='query_type'>
Porter Libby's avatar
Porter Libby committed
120
                    <div class='data-header' style='padding-bottom:15px;''>
121
                        <input class="data-radio form-radio" onchange="setReading();" type="radio" name="data-type" id="readings"/>
Porter Libby's avatar
Porter Libby committed
122
                        <label for="readings"><strong>Readings</strong></label>
Porter Libby's avatar
Porter Libby committed
123

124
                        <input class="data-radio form-radio" onchange="setStreaming();" type="radio" name="data-type" id="streamings"/>
Porter Libby's avatar
Porter Libby committed
125
                        <label for="streamings"><strong>Stream Data</strong></label>
Porter Libby's avatar
Porter Libby committed
126
127
                    </div>
                </div>
128
129
130
131
                <div class='data-catagory data-catagory-simple' id='trips'></div>
                <div class='data-catagory data-catagory-simple' id='sites'></div>
                <div class='data-catagory data-catagory-simple' id='sectors'></div>
                <div class='data-catagory data-catagory-simple' id='spots'></div>
Porter Libby's avatar
Porter Libby committed
132
                <div class='data-catagory data-catagory-simple' id='streaminghost'></div>
133
134
135
                <div class='data-catagory data-catagory-simple' id='streamingplatform'></div>
                <div class='data-catagory data-catagory-simple' id='streamingdates'></div>
                <div class='data-catagory data-catagory-simple' id='streaming'></div>
136
137
                <div class='data-catagory data-catagory-simple' id='readingplatform'></div>
                <div class='data-catagory data-catagory-simple' id='readingdates'></div>
138
                <div class='data-catagory data-catagory-simple' id='reading'></div>
Porter Libby's avatar
Porter Libby committed
139
                <div id='data-prompt-box'>
Porter Libby's avatar
Porter Libby committed
140
141
142
143
144
145
146
147
            
                    <div id='text'>
                        <strong id='prompt-text'>
                            <span id='data-prompt'>Select a data type</span>
                        </strong>
                    </div>

                    <div id='buttons'>
Porter Libby's avatar
Porter Libby committed
148
                        <div class='tooltip' style='position:absolute; bottom: 0px;'>
Porter Libby's avatar
Porter Libby committed
149
150
151
152
153
154
155
156
157
                            <input 
                                id='button_permalink'
                                onclick='buildQuery()' 
                                type="image" 
                                src="img/link-icon.png" 
                                alt="Submit" 
                                width="32" height="32">
                                <span class="tooltiptext">Create permalink</span>
                        </div>
Porter Libby's avatar
Porter Libby committed
158
159
160
161
162
163
164
165
166
167
168
                        <div class='tooltip' style='position:absolute; bottom: 0px;left: 60px;'>
                            <input 
                                id='button_csv'
                                onclick='createCSV()' 
                                type="image" 
                                src="img/csv-icon.png" 
                                alt="Submit" 
                                width="32" height="32">
                                <span class="tooltiptext">Create CSV</span>
                        </div>
                        <div class='tooltip' style='position:absolute; bottom: 0px;left: 120px;'>
169
170
171
172
173
174
175
176
177
                            <input 
                                id='button_details'
                                onclick='toggleDetails()' 
                                type="image" 
                                src="img/detail-icon.png" 
                                alt="Submit" 
                                width="32" height="32">
                                <span class="tooltiptext">Toggle Details</span>
                        </div>
Porter Libby's avatar
Porter Libby committed
178
179
                    </div>

Porter Libby's avatar
Porter Libby committed
180
                </div>
Porter Libby's avatar
Porter Libby committed
181
182
            </div>
            <div id='navcontrols'>
Porter Libby's avatar
Porter Libby committed
183
184
                <div class='tooltip2'>
                    <span class="tooltiptext">open Map View</span>
Porter Libby's avatar
Porter Libby committed
185
186
187
188
189
                    <input 
                        id='nav-button-map'
                        class='nav-button-idle nav-view-button' 
                        onclick='switchToMap()' 
                        type="image" 
Porter Libby's avatar
fix    
Porter Libby committed
190
                        src="img/globe-icon.png" 
Porter Libby's avatar
Porter Libby committed
191
192
193
                        alt="Submit" 
                        width="24" height="24">
                </div>
Porter Libby's avatar
Porter Libby committed
194
195
                <div class='tooltip2'>
                    <span class="tooltiptext">open Graph View</span>
Porter Libby's avatar
Porter Libby committed
196
197
198
199
200
201
202
203
204
                    <input 
                        id='nav-button-graph'
                        class='nav-button-idle nav-view-button'
                        onclick='switchToGraph()' 
                        type="image" 
                        src="img/graph-icon.png" 
                        alt="Submit" 
                        width="24" height="24">
                </div>
Porter Libby's avatar
Porter Libby committed
205
206
                <div class='tooltip2'>
                    <span class="tooltiptext">Data Selection (current)</span>
Porter Libby's avatar
Porter Libby committed
207
208
209
210
211
212
213
214
215
                    <input 
                        id='nav-button-data'
                        class='nav-button-select nav-view-button' 
                        type="image" 
                        id='data'
                        src="img/data-icon.png" 
                        alt="Submit" 
                        width="48" height="48">
                </div>
216
            </div>
Porter Libby's avatar
Porter Libby committed
217
        </div>
218
        <script>
Porter Libby's avatar
Porter Libby committed
219
            ready();
220
        </script>
Porter Libby's avatar
Porter Libby committed
221
    </body>
Porter Libby's avatar
bug    
Porter Libby committed
222
</html>