index.ejs 6.7 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
        <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
Porter Libby's avatar
Porter Libby committed
10
        <script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.4.0/Chart.min.js"></script>
Porter Libby's avatar
Porter Libby committed
11
        <script src="https://js.arcgis.com/4.12/"></script>
Porter Libby's avatar
Porter Libby committed
12
13
14
        <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
15
        <script type="text/javascript" src="js/main.js"></script>
Porter Libby's avatar
Porter Libby committed
16
        <script type="text/javascript" src="js/util.js"></script>
Porter Libby's avatar
Porter Libby committed
17
        <link rel="stylesheet" type="text/css" href="css/main.css" />
Porter Libby's avatar
Porter Libby committed
18
19
20
        <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
21
22
    </head>
    <body>
23
24
25
        <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>
26
27
28
        <div id='mapView'>
            <div id="viewDiv"></div>
            <div id='navcontrols'>
Porter Libby's avatar
Porter Libby committed
29
                <input 
Porter Libby's avatar
Porter Libby committed
30
31
                    id='nav-button-map'
                    class='nav-button-select nav-view-button' 
Porter Libby's avatar
Porter Libby committed
32
33
34
                    type="image" 
                    src="img/map-icon.png" 
                    alt="Submit" 
Porter Libby's avatar
Porter Libby committed
35
                    width="24" height="24">
Porter Libby's avatar
Porter Libby committed
36
                <input 
Porter Libby's avatar
Porter Libby committed
37
38
                    id='nav-button-graph'
                    class='nav-button-idle nav-view-button'                    
Porter Libby's avatar
Porter Libby committed
39
                    onclick='switchToGraph()' 
Porter Libby's avatar
Porter Libby committed
40
                    type="image" 
Porter Libby's avatar
Porter Libby committed
41
                    src="img/graph-icon.png" 
Porter Libby's avatar
Porter Libby committed
42
                    alt="Submit" 
Porter Libby's avatar
Porter Libby committed
43
                    width="24" height="24">
Porter Libby's avatar
Porter Libby committed
44
                <input 
Porter Libby's avatar
Porter Libby committed
45
46
                    id='nav-button-data'
                    class='nav-button-idle nav-view-button'
Porter Libby's avatar
Porter Libby committed
47
                    onclick='switchToData()' 
Porter Libby's avatar
Porter Libby committed
48
                    id='data'
Porter Libby's avatar
Porter Libby committed
49
                    type="image" 
Porter Libby's avatar
Porter Libby committed
50
                    src="img/data-icon.png" 
Porter Libby's avatar
Porter Libby committed
51
                    alt="Submit" 
Porter Libby's avatar
Porter Libby committed
52
                    width="48" height="48">
53
            </div>
Porter Libby's avatar
Porter Libby committed
54
        </div>
55
56
57

        <div id='graphView'>
            <div id='graph'>
Porter Libby's avatar
Porter Libby committed
58
                <canvas id="line-chart"></canvas>
59
60
            </div>
            <div id='navcontrols'>
Porter Libby's avatar
Porter Libby committed
61
                <input 
Porter Libby's avatar
Porter Libby committed
62
63
                    id='nav-button-map'
                    class='nav-button-idle nav-view-button'
Porter Libby's avatar
Porter Libby committed
64
65
66
67
                    onclick='switchToMap()' 
                    type="image" 
                    src="img/map-icon.png" 
                    alt="Submit" 
Porter Libby's avatar
Porter Libby committed
68
                    width="24" height="24">
Porter Libby's avatar
Porter Libby committed
69
                <input 
Porter Libby's avatar
Porter Libby committed
70
71
                    id='nav-button-graph'
                    class='nav-button-select nav-view-button'
Porter Libby's avatar
Porter Libby committed
72
                    type="image" 
Porter Libby's avatar
Porter Libby committed
73
                    src="img/graph-icon.png" 
Porter Libby's avatar
Porter Libby committed
74
                    alt="Submit" 
Porter Libby's avatar
Porter Libby committed
75
                    width="24" height="24">
Porter Libby's avatar
Porter Libby committed
76
                <input 
Porter Libby's avatar
Porter Libby committed
77
78
                    id='nav-button-data'
                    class='nav-button-idle nav-view-button'
Porter Libby's avatar
Porter Libby committed
79
80
                    onclick='switchToData()'
                    id='data' 
Porter Libby's avatar
Porter Libby committed
81
                    type="image" 
Porter Libby's avatar
Porter Libby committed
82
                    src="img/data-icon.png" 
Porter Libby's avatar
Porter Libby committed
83
                    alt="Submit" 
Porter Libby's avatar
Porter Libby committed
84
                    width="48" height="48">
85
            </div>
Porter Libby's avatar
Porter Libby committed
86
        </div>
87
88

        <div id='dataView'>
Porter Libby's avatar
Porter Libby committed
89
            <div id='data'>
90
                <div class='data-catagory' id='query_type'>
Porter Libby's avatar
Porter Libby committed
91
                    <div class='data-header' style='padding-bottom:15px;''>
92
                        <input class="data-radio form-radio" onchange="setReading();" type="radio" name="data-type" id="readings"/>
Porter Libby's avatar
Porter Libby committed
93
                        <label for="readings"><strong>Readings</strong></label>
Porter Libby's avatar
Porter Libby committed
94

95
                        <input class="data-radio form-radio" onchange="setStreaming();" type="radio" name="data-type" id="streamings"/>
Porter Libby's avatar
Porter Libby committed
96
                        <label for="streamings"><strong>Stream Data</strong></label>
Porter Libby's avatar
Porter Libby committed
97
98
                    </div>
                </div>
Porter Libby's avatar
Porter Libby committed
99
100
101
                <div class='data-catagory' id='trips'></div>
                <div class='data-catagory' id='sites'></div>
                <div class='data-catagory' id='sectors'></div>
Porter Libby's avatar
Porter Libby committed
102
                <div class='data-catagory' id='spots'></div>
103
104
                <div class='data-catagory' id='streamingplatform'></div>
                <div class='data-catagory' id='streamingdates'></div>
Porter Libby's avatar
Porter Libby committed
105
                <div class='data-catagory' id='streaming'></div>
106
                <div class='data-catagory' id='reading'></div>
Porter Libby's avatar
Porter Libby committed
107
                <div id='data-prompt-box'>
Porter Libby's avatar
Porter Libby committed
108
109
110
111
112
113
114
115
            
                    <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
116
117
118
119
120
121
122
                        <input 
                            id='button_permalink'
                            onclick='buildQuery()' 
                            type="image" 
                            src="img/link-icon.png" 
                            alt="Submit" 
                            width="32" height="32">
123
                        <span id='permalink_out' style='color: white;font-size: 14px;'></span>
Porter Libby's avatar
Porter Libby committed
124
125
                    </div>

Porter Libby's avatar
Porter Libby committed
126
                </div>
Porter Libby's avatar
Porter Libby committed
127
128
            </div>
            <div id='navcontrols'>
Porter Libby's avatar
Porter Libby committed
129
                <input 
Porter Libby's avatar
Porter Libby committed
130
131
                    id='nav-button-map'
                    class='nav-button-idle nav-view-button' 
Porter Libby's avatar
Porter Libby committed
132
133
134
135
                    onclick='switchToMap()' 
                    type="image" 
                    src="img/map-icon.png" 
                    alt="Submit" 
Porter Libby's avatar
Porter Libby committed
136
                    width="24" height="24">
Porter Libby's avatar
Porter Libby committed
137
                <input 
Porter Libby's avatar
Porter Libby committed
138
139
                    id='nav-button-graph'
                    class='nav-button-idle nav-view-button'
Porter Libby's avatar
Porter Libby committed
140
                    onclick='switchToGraph()' 
Porter Libby's avatar
Porter Libby committed
141
                    type="image" 
Porter Libby's avatar
Porter Libby committed
142
                    src="img/graph-icon.png" 
Porter Libby's avatar
Porter Libby committed
143
                    alt="Submit" 
Porter Libby's avatar
Porter Libby committed
144
                    width="24" height="24">
Porter Libby's avatar
Porter Libby committed
145
                <input 
Porter Libby's avatar
Porter Libby committed
146
147
                    id='nav-button-data'
                    class='nav-button-select nav-view-button' 
Porter Libby's avatar
Porter Libby committed
148
                    type="image" 
Porter Libby's avatar
Porter Libby committed
149
                    id='data'
Porter Libby's avatar
Porter Libby committed
150
                    src="img/data-icon.png" 
Porter Libby's avatar
Porter Libby committed
151
                    alt="Submit" 
Porter Libby's avatar
Porter Libby committed
152
                    width="48" height="48">
153
            </div>
Porter Libby's avatar
Porter Libby committed
154
        </div>
155
        <script>
Porter Libby's avatar
Porter Libby committed
156
            ready();
157
        </script>
Porter Libby's avatar
Porter Libby committed
158
    </body>
Porter Libby's avatar
bug    
Porter Libby committed
159
</html>