index.ejs 5.1 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
update    
Porter Libby committed
21
                    style='background-color: gray; padding: 10px; border-radius: 10px;' 
Porter Libby's avatar
Porter Libby committed
22
23
24
25
26
                    type="image" 
                    src="img/map-icon.png" 
                    alt="Submit" 
                    width="32" height="32">
                <input 
Porter Libby's avatar
update    
Porter Libby committed
27
                    style='background-color: white; padding: 10px; border-radius: 10px;' 
Porter Libby's avatar
Porter Libby committed
28
29
30
31
32
33
                    onclick='switchToData()' 
                    type="image" 
                    src="img/data-icon.png" 
                    alt="Submit" 
                    width="32" height="32">
                <input 
Porter Libby's avatar
update    
Porter Libby committed
34
                    style='background-color: white; padding: 10px; border-radius: 10px;' 
Porter Libby's avatar
Porter Libby committed
35
36
37
38
39
                    onclick='switchToGraph()' 
                    type="image" 
                    src="img/graph-icon.png" 
                    alt="Submit" 
                    width="32" height="32">
40
            </div>
Porter Libby's avatar
Porter Libby committed
41
        </div>
42
43
44

        <div id='graphView'>
            <div id='graph'>
Porter Libby's avatar
Porter Libby committed
45
                <canvas id="line-chart"></canvas>
46
47
            </div>
            <div id='navcontrols'>
Porter Libby's avatar
Porter Libby committed
48
                <input 
Porter Libby's avatar
update    
Porter Libby committed
49
                    style='background-color: white; padding: 10px; border-radius: 10px;' 
Porter Libby's avatar
Porter Libby committed
50
51
52
53
54
55
                    onclick='switchToMap()' 
                    type="image" 
                    src="img/map-icon.png" 
                    alt="Submit" 
                    width="32" height="32">
                <input 
Porter Libby's avatar
update    
Porter Libby committed
56
                    style='background-color: white; padding: 10px; border-radius: 10px;' 
Porter Libby's avatar
Porter Libby committed
57
58
59
60
61
62
                    onclick='switchToData()' 
                    type="image" 
                    src="img/data-icon.png" 
                    alt="Submit" 
                    width="32" height="32">
                <input 
Porter Libby's avatar
update    
Porter Libby committed
63
                    style='background-color: gray; padding: 10px; border-radius: 10px;' 
Porter Libby's avatar
Porter Libby committed
64
65
66
67
                    type="image" 
                    src="img/graph-icon.png" 
                    alt="Submit" 
                    width="32" height="32">
68
            </div>
Porter Libby's avatar
Porter Libby committed
69
        </div>
70
71

        <div id='dataView'>
Porter Libby's avatar
Porter Libby committed
72
            <div id='data'>
Porter Libby's avatar
Porter Libby committed
73
74
75
76
77
78
79
80
81
                <div class='data-catagory'>
                    <div class='data-header' style='padding-bottom:15px; background-color: #bbb'>
                        <input class="data-radio form-radio" onchange="getTrips();" type="radio" name="data-type" id="readings"/>
                        <label for="readings"><strong>Readings from Fieldday</strong></label>

                        <input class="data-radio form-radio" onchange="getTrips();" type="radio" name="data-type" id="streamings"/>
                        <label for="streamings"><strong>Stream data from Platforms</strong></label>
                    </div>
                </div>
Porter Libby's avatar
Porter Libby committed
82
83
84
                <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
85
                <div class='data-catagory' id='spots'></div>
86
                <div class='data-catagory' id='streamings'></div>
Porter Libby's avatar
Porter Libby committed
87
88
89
90
91
                <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
92
93
            </div>
            <div id='navcontrols'>
Porter Libby's avatar
Porter Libby committed
94
                <input 
Porter Libby's avatar
update    
Porter Libby committed
95
                    style='background-color: white; padding: 10px; border-radius: 10px;' 
Porter Libby's avatar
Porter Libby committed
96
97
98
99
100
101
                    onclick='switchToMap()' 
                    type="image" 
                    src="img/map-icon.png" 
                    alt="Submit" 
                    width="32" height="32">
                <input 
Porter Libby's avatar
update    
Porter Libby committed
102
                    style='background-color: gray; padding: 10px; border-radius: 10px;' 
Porter Libby's avatar
Porter Libby committed
103
104
105
106
107
                    type="image" 
                    src="img/data-icon.png" 
                    alt="Submit" 
                    width="32" height="32">
                <input 
Porter Libby's avatar
update    
Porter Libby committed
108
                    style='background-color: white; padding: 10px; border-radius: 10px;' 
Porter Libby's avatar
Porter Libby committed
109
110
111
112
113
                    onclick='switchToGraph()' 
                    type="image" 
                    src="img/graph-icon.png" 
                    alt="Submit" 
                    width="32" height="32">
114
            </div>
Porter Libby's avatar
Porter Libby committed
115
        </div>
116
        <script>
Porter Libby's avatar
Porter Libby committed
117
            ready();
118
        </script>
Porter Libby's avatar
Porter Libby committed
119
    </body>
Porter Libby's avatar
bug    
Porter Libby committed
120
</html>