-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathhelp.html
63 lines (62 loc) · 3.44 KB
/
help.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous">
<title>EnviroAtlas Help</title>
<script src="//code.jquery.com/jquery-3.5.1.min.js" integrity="sha384-ZvpUoO/+PpLXR1lu4jmpXWu80pZlYUAfxl5NsBMWOEPSjUn/6Z/hRTt8+pR6L4N2" crossorigin="anonymous"></script>
<script>
$(document).ready(function(){
const configURL = "widgets/Demo/config.json";
// Fetch the help configuration and sort
$.getJSON( configURL, function( data ) {
console.log(data)
data["tour"].sort(function(a,b){
return parseInt(a["displayOrder"]) - parseInt(b["displayOrder"])
});
// Build the page from the individual html segments
$.each(data["tour"], function (index, value) {
if (value["displayOrder"] > 0){
$('#contents').append('<a class="list-group-item list-group-item-action" href="#' + value["widgetName"] + '">' + value["title"] + '</a>');
$('#helpContent').append('<div id="' + value["widgetName"] + 'Card" class="card bg-light mb-3">');
$('#' + value["widgetName"] + 'Card').append('<div id="' + value["widgetName"] + '" class="card-header"></div>');
$('#' + value["widgetName"] + 'Card').append('<div id="' + value["widgetName"] + 'Body" class="card-body"></div>');
$('#' + value["widgetName"]).load("widgets/Demo/help/templates/" + value["helpFile"] + "1.html",function(){
setTimeout(function () {
if (window.location.hash == '#' + value["widgetName"]) {
$(document).scrollTop( $('#' + value["widgetName"]).offset().top );
}
}, 2000)
});
$('#' + value["widgetName"] + 'Body').load("widgets/Demo/help/templates/" + value["helpFile"] + "2.html");
}
});
});
});
</script>
</head>
<body>
<div class="container">
<div id="pageHeader">
<h1>EnviroAtlas Help</h1>
<p><strong>This is the EnviroAtlas Help Page. Click the links below for guidance on using individual Interactive Map features. Where available, video links are provided.
Want a library of Videos? <a href="https://www.epa.gov/enviroatlas/tutorials" class="demoLink">Check out our tutorial page</a>. </strong></p>
<div id="contents" class="list-group"></div>
</div>
<div id="helpContent"></div>
<div id="header"></div>
<div id="body"></div>
</div>
<!-- Google Tag Manager -->
<noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-L8ZB"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({"gtm.start":
new Date().getTime(),event:"gtm.js"});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!="dataLayer"?"&l="+l:"";j.async=true;j.src=
"//www.googletagmanager.com/gtm.js?id="+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,"script","dataLayer","GTM-L8ZB");</script>
<!-- End Google Tag Manager -->
</body>
</html>