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

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

        <div id='dataView'>
Porter Libby's avatar
Porter Libby committed
86
            <div id='data'>
Porter Libby's avatar
Porter Libby committed
87
88
                <div class='data-catagory'>
                    <div class='data-header' style='padding-bottom:15px; background-color: #bbb'>
89
                        <input class="data-radio form-radio" onchange="setReading();" type="radio" name="data-type" id="readings"/>
Porter Libby's avatar
Porter Libby committed
90
                        <label for="readings"><strong>Readings</strong></label>
Porter Libby's avatar
Porter Libby committed
91

92
                        <input class="data-radio form-radio" onchange="setStreaming();" type="radio" name="data-type" id="streamings"/>
Porter Libby's avatar
Porter Libby committed
93
                        <label for="streamings"><strong>Stream Data</strong></label>
Porter Libby's avatar
Porter Libby committed
94
95
                    </div>
                </div>
Porter Libby's avatar
Porter Libby committed
96
97
98
                <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
99
                <div class='data-catagory' id='spots'></div>
Porter Libby's avatar
Porter Libby committed
100
                <div class='data-catagory' id='streaming'></div>
101
                <div class='data-catagory' id='reading'></div>
Porter Libby's avatar
Porter Libby committed
102
103
104
105
106
                <div id='data-prompt-box'>
                    <strong>
                        <span id='data-prompt'>Pick a trip, site, sector, and spot.</span>
                    </strong>
                </div>
Porter Libby's avatar
Porter Libby committed
107
108
            </div>
            <div id='navcontrols'>
Porter Libby's avatar
Porter Libby committed
109
                <input 
Porter Libby's avatar
Porter Libby committed
110
111
                    id='nav-view-button'
                    class='nav-button-idle' 
Porter Libby's avatar
Porter Libby committed
112
113
114
115
                    onclick='switchToMap()' 
                    type="image" 
                    src="img/map-icon.png" 
                    alt="Submit" 
Porter Libby's avatar
Porter Libby committed
116
                    width="24" height="24">
Porter Libby's avatar
Porter Libby committed
117
                <input 
Porter Libby's avatar
Porter Libby committed
118
119
                    id='nav-view-button'
                    class='nav-button-idle'
Porter Libby's avatar
Porter Libby committed
120
                    onclick='switchToGraph()' 
Porter Libby's avatar
Porter Libby committed
121
                    type="image" 
Porter Libby's avatar
Porter Libby committed
122
                    src="img/graph-icon.png" 
Porter Libby's avatar
Porter Libby committed
123
                    alt="Submit" 
Porter Libby's avatar
Porter Libby committed
124
                    width="24" height="24">
Porter Libby's avatar
Porter Libby committed
125
                <input 
Porter Libby's avatar
Porter Libby committed
126
127
                    id='nav-view-button'
                    class='nav-button-select' 
Porter Libby's avatar
Porter Libby committed
128
                    type="image" 
Porter Libby's avatar
Porter Libby committed
129
                    id='data'
Porter Libby's avatar
Porter Libby committed
130
                    src="img/data-icon.png" 
Porter Libby's avatar
Porter Libby committed
131
                    alt="Submit" 
Porter Libby's avatar
Porter Libby committed
132
                    width="48" height="48">
133
            </div>
Porter Libby's avatar
Porter Libby committed
134
        </div>
135
        <script>
Porter Libby's avatar
Porter Libby committed
136
            ready();
137
        </script>
Porter Libby's avatar
Porter Libby committed
138
    </body>
Porter Libby's avatar
bug    
Porter Libby committed
139
</html>