index.ejs 9.99 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
        <script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.4.0/Chart.min.js"></script>
Porter Libby's avatar
Porter Libby committed
13
        <script src="https://js.arcgis.com/4.12/"></script>
Porter Libby's avatar
Porter Libby committed
14
15
16
        <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
17
        <script type="text/javascript" src="js/main.js"></script>
Porter Libby's avatar
Porter Libby committed
18
        <script type="text/javascript" src="js/util.js"></script>
Porter Libby's avatar
Porter Libby committed
19
        <link rel="stylesheet" type="text/css" href="css/main.css" />
Porter Libby's avatar
Porter Libby committed
20
21
22
        <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
23
24
    </head>
    <body>
25
26
27
        <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>
28
29
30
        <div id='mapView'>
            <div id="viewDiv"></div>
            <div id='navcontrols'>
Porter Libby's avatar
Porter Libby committed
31
32
                <div class='tooltip'2>
                    <span class="tooltiptext">Map View (current)</span>
Porter Libby's avatar
Porter Libby committed
33
34
35
36
37
38
39
40
                    <input 
                        id='nav-button-map'
                        class='nav-button-select nav-view-button' 
                        type="image" 
                        src="img/map-icon.png" 
                        alt="Submit" 
                        width="24" height="24">
                </div>
Porter Libby's avatar
Porter Libby committed
41
42
                <div class='tooltip2'>
                    <span class="tooltiptext">open Graph View</span>
Porter Libby's avatar
Porter Libby committed
43
44
45
46
47
48
49
50
51
                    <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
52
53
                <div class='tooltip2'>
                    <span class="tooltiptext">open Data Selection</span>
Porter Libby's avatar
Porter Libby committed
54
55
56
57
58
59
60
61
62
63
                    <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>
64
            </div>
Porter Libby's avatar
Porter Libby committed
65
        </div>
66
67
68

        <div id='graphView'>
            <div id='graph'>
Porter Libby's avatar
Porter Libby committed
69
                <canvas id="line-chart"></canvas>
70
71
            </div>
            <div id='navcontrols'>
Porter Libby's avatar
Porter Libby committed
72
73
                <div class='tooltip2'>
                    <span class="tooltiptext">open Map View</span>
Porter Libby's avatar
Porter Libby committed
74
75
76
77
78
79
80
81
82
                    <input 
                        id='nav-button-map'
                        class='nav-button-idle nav-view-button'
                        onclick='switchToMap()' 
                        type="image" 
                        src="img/map-icon.png" 
                        alt="Submit" 
                        width="24" height="24">
                </div>
Porter Libby's avatar
Porter Libby committed
83
84
                <div class='tooltip2'>
                    <span class="tooltiptext">Graph View (current)</span>
Porter Libby's avatar
Porter Libby committed
85
86
87
88
89
90
91
92
                    <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
93
94
                <div class='tooltip2'>
                    <span class="tooltiptext">open Data Selection</span>
Porter Libby's avatar
Porter Libby committed
95
96
97
98
99
100
101
102
103
104
                    <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>
105
            </div>
Porter Libby's avatar
Porter Libby committed
106
        </div>
107
108

        <div id='dataView'>
Porter Libby's avatar
Porter Libby committed
109
110
111
112
            <div id='title'>
                <span style='font-size:30px;'>IFS Datavis Tool</span><br>
                <span style='font-size:15px;'>Additional Info</span>
            </div>
Porter Libby's avatar
Porter Libby committed
113
            <div id='data'>
114
                <div class='data-catagory' id='query_type'>
Porter Libby's avatar
Porter Libby committed
115
                    <div class='data-header' style='padding-bottom:15px;''>
116
                        <input class="data-radio form-radio" onchange="setReading();" type="radio" name="data-type" id="readings"/>
Porter Libby's avatar
Porter Libby committed
117
                        <label for="readings"><strong>Readings</strong></label>
Porter Libby's avatar
Porter Libby committed
118

119
                        <input class="data-radio form-radio" onchange="setStreaming();" type="radio" name="data-type" id="streamings"/>
Porter Libby's avatar
Porter Libby committed
120
                        <label for="streamings"><strong>Stream Data</strong></label>
Porter Libby's avatar
Porter Libby committed
121
122
                    </div>
                </div>
123
124
125
126
127
128
129
                <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>
                <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>
130
131
                <div class='data-catagory data-catagory-simple' id='readingplatform'></div>
                <div class='data-catagory data-catagory-simple' id='readingdates'></div>
132
                <div class='data-catagory data-catagory-simple' id='reading'></div>
Porter Libby's avatar
Porter Libby committed
133
                <div id='data-prompt-box'>
Porter Libby's avatar
Porter Libby committed
134
135
136
137
138
139
140
141
            
                    <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
142
                        <div class='tooltip' style='position:absolute; bottom: 0px;'>
Porter Libby's avatar
Porter Libby committed
143
144
145
146
147
148
149
150
151
                            <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
152
153
154
155
156
157
158
159
160
161
162
                        <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;'>
163
164
165
166
167
168
169
170
171
                            <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
172
173
                    </div>

Porter Libby's avatar
Porter Libby committed
174
                </div>
Porter Libby's avatar
Porter Libby committed
175
176
            </div>
            <div id='navcontrols'>
Porter Libby's avatar
Porter Libby committed
177
178
                <div class='tooltip2'>
                    <span class="tooltiptext">open Map View</span>
Porter Libby's avatar
Porter Libby committed
179
180
181
182
183
184
185
186
187
                    <input 
                        id='nav-button-map'
                        class='nav-button-idle nav-view-button' 
                        onclick='switchToMap()' 
                        type="image" 
                        src="img/map-icon.png" 
                        alt="Submit" 
                        width="24" height="24">
                </div>
Porter Libby's avatar
Porter Libby committed
188
189
                <div class='tooltip2'>
                    <span class="tooltiptext">open Graph View</span>
Porter Libby's avatar
Porter Libby committed
190
191
192
193
194
195
196
197
198
                    <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
199
200
                <div class='tooltip2'>
                    <span class="tooltiptext">Data Selection (current)</span>
Porter Libby's avatar
Porter Libby committed
201
202
203
204
205
206
207
208
209
                    <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>
210
            </div>
Porter Libby's avatar
Porter Libby committed
211
        </div>
212
        <script>
Porter Libby's avatar
Porter Libby committed
213
            ready();
214
        </script>
Porter Libby's avatar
Porter Libby committed
215
    </body>
Porter Libby's avatar
bug    
Porter Libby committed
216
</html>