forked from ioos/ioos_metrics
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgts_regional_landing_page.html
More file actions
195 lines (169 loc) · 7.84 KB
/
Copy pathgts_regional_landing_page.html
File metadata and controls
195 lines (169 loc) · 7.84 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
<!DOCTYPE html>
<html lang="en">
<head>
{#<!-- Global site tag (gtag.js) - Google Analytics -->#}
<script async src="{{org_config.google_analytics}}"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config',"{{org_config.google_analytics_code}}" );
</script>
<title>{{org_config.main_title}}</title>
<link rel="icon" type="image/png" href="https://github.com/ioos/documentation-theme-jekyll/raw/main/images/favicon.ico">
<link type="text/css" rel="stylesheet" href="./static/main.css" />
</head>
<body>
<main role="main" class="container">
<div class="mywrap_head">
<img src="https://github.com/ioos/documentation-theme-jekyll/raw/main/images/logo-navbar.png" alt="NOAA IOOS Logo" height="75">
<h1 class ="header_title">NOAA Integrated Ocean Observing System Metrics</h1>
<p>
<a href="https://github.com/ioos/ioos_metrics">
<img src="https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png" width="50" height="50">
</a>
</p>
</div>
<div class = "divider"></div>
<div class ="mywrap_head">
<button class="header_button" onclick="location.href='./index.html';" value="Metrics homepage" >Metrics Homepage</button>
<button class="main_button" onclick="location.href='https://github.com/ioos/ioos_metrics/issues/new?labels=website';" value="Feedback">
Feedback
</button>
{#<!--<button class="header_button" onclick="location.href='{{org_config.githubrepo}}';" value="Explore Resources" >Explore Resources</button>
<button class="header_button" onclick="location.href='{{org_config.githubrepo}}';" value="Contact IOOS" >Contact IOOS</button>-->#}
</div>
<div class = "divider"></div>
<div class ="mywrap">
<h2 class ="title">{{org_config.general_title}}</h2>
</div>
<a class = "longTitle">Last updated: {{configs.today}}</a>
<div class="mywrap">
<input class = "boxInput" type="text" id="myInput" onkeyup="simpleSearch()" placeholder="Search for metrics" title="Type in a year/quarter">
<input type="button" class="dropbtn" value="See all years" onclick="resetSearch()">
{#<!-- // Filter by keywords
// To update this, run parsejson.R get_html_snippet()
// And copy/paste over the output below div class= "tab-content" -->#}
<div class="dropdown">
<button class="dropbtn">Filter by year</button>
<div class="dropdown-content">
<input type="button" value="FY2018" onclick="simpleSearch(this.value)">
<input type="button" value="FY2019" onclick="simpleSearch(this.value)">
<input type="button" value="FY2020" onclick="simpleSearch(this.value)">
<input type="button" value="FY2021" onclick="simpleSearch(this.value)">
<input type="button" value="FY2022" onclick="simpleSearch(this.value)">
<input type="button" value="FY2023" onclick="simpleSearch(this.value)">
<input type="button" value="FY2024" onclick="simpleSearch(this.value)">
<input type="button" value="FY2025" onclick="simpleSearch(this.value)">
</div>
</div>
</div>
<div class="divider_thin"></div>
<div class="mywrap">
<div class ="boxcontainer">
{% for key, value in configs.items() if not "figure" in key %}
<div class = "box">
{% set my_string = key %}
<a class = "shortTitle" href={{value.data}}>{{key}}</a>
{# <!--<div class = "longTitle">{{key}}</div>--> #}
<div class = "toolbox_drawers">
{{value.table}}
</div>
<div class = "language"></div>
</div>
{% endfor %}
</div>
</div>
<div class = "divider"></div>
{{configs.figure}}
<div class = "divider"></div>
{{configs.figure1}}
<div class = "divider"></div>
{{configs.figure2}}
<div class = "divider"></div>
<footer >
<img src="https://github.com/ioos/documentation-theme-jekyll/raw/main/images/IOOS_Emblem_Tertiary_B_RGB.png" alt="NOAA IOOS Logo" height="75">
<div class="mywrap_center">
<a class ="mylink line" href="https://www.commerce.gov/">U.S. Department of Commerce</a>
<a class ="mylink line" href="https://www.noaa.gov">National Oceanographic and Atmospheric Administration</a>
<a class ="mylink" href="https://www.ioos.noaa.gov/">NOAA IOOS</a>
</div>
</footer>
</main>
<script>
var sidenav = document.getElementsByClassName("sidenav");
var menu = document.getElementById("menu");
var menulabel = document.getElementsByClassName("menulabel");
// sidenav[0].style.display="none";
function simpleSearch(val) {
var input, filter, ul, box, box_each, box_each_abbrev, box_each_keywords, box_each_drawer, i, txtValue;
if(val === undefined){
input = document.getElementById("myInput");
filter = input.value.toUpperCase();
}
else {
filter = val.toUpperCase();
}
box = document.getElementsByClassName("box");
for (i = 0; i < box.length; i++) {
box_each = box[i].getElementsByClassName("longTitle")[0];
box_each_abbrev = box[i].getElementsByClassName("shortTitle")[0];
box_each_keywords = box[i].getElementsByClassName("keywords")[0];
box_each_drawer = box[i].getElementsByClassName("toolbox_drawers")[0];
//console.log(box_each_keywords); // For Debugging
txtValue = box_each_abbrev.innerText; //box_each.textContent + " " + box_each_abbrev.innerText + " " + box_each_keywords.innerText + " " + box_each_drawer.innerText;
if (txtValue.toUpperCase().indexOf(filter) > -1) {
box[i].style.display = "";
} else {
box[i].style.display = "none";
}
}
}
function drawerSearch(val) {
var input, filter, ul, box, box_each, i, txtValue;
if(val === undefined){
input = document.getElementById("myInput");
filter = input.value.toUpperCase();
}
else {
filter = val.toUpperCase();
}
box = document.getElementsByClassName("box");
for (i = 0; i < box.length; i++) {
box_each = box[i].getElementsByClassName("toolbox_drawers")[0];
txtValue = box_each.textContent;
if (txtValue.toUpperCase().indexOf(filter) > -1) {
box[i].style.display = "";
} else {
box[i].style.display = "none";
}
}
}
function resetSearch() {
var box, i;
box = document.getElementsByClassName("box");
for (i = 0; i < box.length; i++) {
box[i].style.display = "";
}
}
function menuClick(x) {
// x.classList.toggle("change");
menulabel[0].classList.toggle("change");
sidenav[0].classList.toggle("open");
menu.classList.toggle("is_active");
let y =x.getAttribute("aria-expanded");
let t;
if (y == "true"){
y = "false"
t="-1";
}
else {
y = "true";
t="0";
}
x.setAttribute("aria-expanded", x);
}
// boxcontainer
</script>
</body>
</html>