-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathblog.html
140 lines (110 loc) · 5.79 KB
/
blog.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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="https://gcparksandresorts.github.io/gcresorthighland/webresources/images/webfavicon1.ico">
<link rel="stylesheet" href="https://gcparksandresorts.github.io/gcresorthighland/webresources/others/styleSheet.css">
<link rel="stylesheet" href="https://gcparksandresorts.github.io/gcresorthighland/webresources/others/styleHeader.css">
<!--TAB TITLE --> <!------------------------------------------------------------------------------------------------------------------------------------- HEAD -->
<title>News and Updates | Blog | Globe-City Resort Highland</title>
</script>
<style>
#lessRecentNews a, #mostRecentNews a{font-size:20px; margin: 15px; display:block;}
#searchBtn{display:none;}
</style>
</head>
<body onload="endLoadingInit()"> <!------------------------------------------------------------------------------------------------------------------------ BODY -->
<!-- Header Elements --><div id='loader'><div></div></div><div id="header"></div>
<!-- BANNER IMAGE AND TITLE BAR -->
<div class='banner'><img src='https://gcparksandresorts.github.io/gcresorthighland/webresources/images/banners/banner5.jpg'></div>
<div class='titleBar'><p style='margin-bottom:-10px; color:white;'>Globe-City Resort Highland</p><h2>News and Updates</h2></div>
<div class='container' style='margin-bottom:0;'>
<h2>Recent Blog Posts</h2><br>
</div>
<div class='tileContainer' style='margin-top:0;' id='mostRecentNews'>
<p>Error loading content. Please try again later.</p>
</div>
<br>
<div class='spacer'></div>
<div class='container'>
<label for='filterInput'>Filter by Category: </label>
<select id='filterInput' name='filterinput' onchange='document.getElementById("searchBtn").style.display = "inline-block";'>
<option value='default' style='font-style:italic;'>select a category</option>
<option value='Attractions'>Attractions</option>
<option value='Entertainment'>Entertainment</option>
<option value='Dining'>Dining</option>
<option value='Merchandise'>Merchandise</option>
<option value='Events'>Events</option>
<option value='Travel Advice'>Travel Advice</option>
<option value='Operations'>Operations</option>
<option value='Admissions'>Admissions</option>
<option value='Community'>Community</option>
<option value='Other'>Other</option>
</select>
<a onclick='changeCategory();' id='searchBtn'>Search</a>
</div>
<div class='spacer'></div>
<div class='leftContainer' style='max-width:900px; margin-bottom:0;'>
<h2>All Blog Posts and Updates</h2>
</div>
<div class='leftContainer' id='lessRecentNews' style='max-width:900px; margin-top:0;'>
<p style='text-align:center; margin:auto;'>Error Loading Content. Please Try Again Later</p>
<!--
<a>August 13, 2023 | Website | New Blog Homepage Featuring Recent Blog Posts and Links</a>
<a>Month 00, 2023 | Category | Blog Post Title</a>
-->
</div>
<div class='container'>
<p class='disclaimer'>Powered by <a>SuperNews Information Engine</a></p>
</div>
<!-- Footer Elements --><div id="footer"></div>
</body>
<!------------------------------------------------------------------------------------------------------------------------------------------------ JAVASCRIPTS -->
<!-- CREATE THE HEADER AND FOOTER -->
<script type='text/javascript'src='https://gcparksandresorts.github.io/gcresorthighland/webresources/scripts/headerMain.js'></script>
<script>runHeaderSetup();</script>
<script type='text/javascript'src='https://gcparksandresorts.github.io/gcresorthighland/blog/table-of-contents.js'></script>
<!------------------------------------------------------------------------------------------------------------------------------------------ TABLE OF CONTENTS -->
<script>
var category = "default";
const linkContainer = document.getElementById("lessRecentNews");
const newLinkContainer = document.getElementById("mostRecentNews");
const categoryChoice = document.getElementById("filterInput");
function runTable(){
linkContainer.innerHTML = '';
newLinkContainer.innerHTML = '';
if(category=='default'){
i = toc.length - 1;
while(i != -1){
var $temp = toc[i].split(" | ");
var $category = $temp[0]; var $name = $temp[1]; var $date = $temp[2]; var $link = $temp[3];
if(i > toc.length - 4){
newLinkContainer.innerHTML += "<a href='" + $link + "'>" + $date + " | " + $category + " | " + $name + "</a>";
}else{
linkContainer.innerHTML += "<a href='" + $link + "'>" + $date + " | " + $category + " | " + $name + "</a>";
}
i = i-1;
}//end of for loop
}else{
i = toc.length - 1;
while(i != -1){
var $temp = toc[i].split(" | ");
var $category = $temp[0]; var $name = $temp[1]; var $date = $temp[2]; var $link = $temp[3];
if($category == category){
linkContainer.innerHTML += "<a href='" + $link + "'>" + $date + " | " + $category + " | " + $name + "</a>";
}else{console.log("Skipped Blog Post: "+$name);}
i = i-1;
}//end of for loop
}
if(linkContainer.innerHTML == ''){
linkContainer.innerHTML = "Currently no blog posts match these search terms (0 posts available)";
}
} // End of function 'runTable'
function changeCategory(){
category = categoryChoice.value;
document.getElementById("searchBtn").style.display = 'none';
runTable();
} // End of function 'changeCategory'
</script>
<script>runTable();</script>
</html>