index.ejs 5.42 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='mapView'>
            <div id="viewDiv"></div>
            <div id='navcontrols'>
Porter Libby's avatar
Porter Libby committed
23
                <input 
Porter Libby's avatar
Porter Libby committed
24
25
                    id='nav-view-button'
                    class='nav-button-select' 
Porter Libby's avatar
Porter Libby committed
26
27
28
                    type="image" 
                    src="img/map-icon.png" 
                    alt="Submit" 
Porter Libby's avatar
Porter Libby committed
29
                    width="24" height="24">
Porter Libby's avatar
Porter Libby committed
30
                <input 
Porter Libby's avatar
Porter Libby committed
31
32
                    id='nav-view-button'
                    class='nav-button-idle'                    
Porter Libby's avatar
Porter Libby committed
33
                    onclick='switchToGraph()' 
Porter Libby's avatar
Porter Libby committed
34
                    type="image" 
Porter Libby's avatar
Porter Libby committed
35
                    src="img/graph-icon.png" 
Porter Libby's avatar
Porter Libby committed
36
                    alt="Submit" 
Porter Libby's avatar
Porter Libby committed
37
                    width="24" height="24">
Porter Libby's avatar
Porter Libby committed
38
                <input 
Porter Libby's avatar
Porter Libby committed
39
40
                    id='nav-view-button'
                    class='nav-button-idle'
Porter Libby's avatar
Porter Libby committed
41
                    onclick='switchToData()' 
Porter Libby's avatar
Porter Libby committed
42
                    id='data'
Porter Libby's avatar
Porter Libby committed
43
                    type="image" 
Porter Libby's avatar
Porter Libby committed
44
                    src="img/data-icon.png" 
Porter Libby's avatar
Porter Libby committed
45
                    alt="Submit" 
Porter Libby's avatar
Porter Libby committed
46
                    width="48" height="48">
47
            </div>
Porter Libby's avatar
Porter Libby committed
48
        </div>
49
50
51

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

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

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