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

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

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

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