-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathLocals.html
184 lines (165 loc) · 5.85 KB
/
Locals.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
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
<!DOCTYPE html>
<html>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<head>
<link href='https://fonts.googleapis.com/css?family=Oswald' rel='stylesheet'>
<title>HDReport</title>
<link rel="icon" type="image/x-icon" href="https://github.com/pkzstar/HDReport/blob/main/images/logo-main.png?raw=true">
<link rel="stylesheet" href="style.css">
<style>
.hidden {
display: none;
}
@media only screen and (max-width:600px) {
.pm-rank {
position: relative;
float: unset;
}
.events {
margin: 20px 20px 20px 20px;
}
.eventsList {
list-style: none;
padding: 0;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
}
@media only screen and (max-width: 767px) {
.pastList {
list-style: none;
padding: 0;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
.past-events {
height: calc(25% - 50px);
width: calc(25% - 50px);
margin: 0 20px 20px 20px;
}
.past-events img {
width: 100%;
height: 100%;
}
.past-events div {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
}
.past-article-text {
margin: 5px;
}
@media only screen and (max-width: 600px) {
.pastList {
list-style: none;
padding: 0;
display: flex;
flex-wrap: wrap;
}
p {
margin: 2px 0 2px 0;
}
.past-events {
margin: 20px 20px 20px 20px;
}
.past-events img {
width: 75%;
height: 75%;
}
.past-events div {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
}
.past-article-text {
margin: 5px;
}
}
}
</style>
</head>
<body>
<div class="wallpaper"></div>
<div class="wallpaper2"></div>
<div id="react-nav"></div>
<div class="upcoming-image-parent">
<h1 id="pageHeader" class="textGradient">LOCAL SCENES</h1>
</div>
<div id="map"></div>
<div id="mobileLinks" class="events hidden maxUnset"></div>
<script>
// Function to conditionally load scripts based on width
function loadScripts() {
// Check if the window width is less than or equal to 800px
if (window.innerWidth >= 700) {
var mapScript = document.createElement('script');
mapScript.src = 'mapdata.js';
document.body.appendChild(mapScript);
var worldMapScript = document.createElement('script');
worldMapScript.src = 'worldmap.js';
document.body.appendChild(worldMapScript);
console.log("Scripts loaded successfully for width <= 800px.");
} else {
console.log("Window width is greater than 800px, scripts not loaded.");
}
}
// Call the function when the page is loaded
window.onload = loadScripts;
</script>
<script>
// Check if the page width is less than or equal to 700 pixels
if (window.innerWidth <= 700) {
// Create the HTML content to be injected
let mobileLinksHTML = `
<h3>United States</h3>
<a class="blue-link" href="https://t.co/n5c8b1xhaO">Arizona</a><br>
<a class="blue-link" href="https://discord.com/invite/65RUuFwJyU">California</a><br>
<a class="blue-link" href="https://discord.com/invite/CyEZgpxr">California - High Desert</a><br>
<a class="blue-link" href="https://discord.com/invite/Tk7hNR9">Florida - Jacksonville</a><br>
<a class="blue-link" href="https://discord.com/invite/cbH2Z8YnfK">Illinois</a><br>
<a class="blue-link" href="https://discord.com/invite/Z5e8BM7QFU">Missouri - St. Louis</a><br>
<a class="blue-link" href="https://discord.gg/s3m23B7Z">Nebraska</a><br>
<a class="blue-link" href="https://discord.com/invite/xB64j7zCn4">New England</a><br>
<a class="blue-link" href="https://discord.com/invite/bGMBrfbw">North Carolina</a><br>
<a class="blue-link" href="https://discord.com/invite/WQKFJNp">New York - Upstate</a><br>
<a class="blue-link" href="https://discord.com/invite/m2fJvZve">Oklahoma</a><br>
<a class="blue-link" href="https://discord.com/invite/cbH2Z8YnfK">Oregon</a><br>
<a class="blue-link" href="https://discord.com/invite/r9szDb7sPS">Tennessee - Northeast</a><br>
<a class="blue-link" href="https://discord.com/invite/TwJbpwGyCe">Texas</a><br>
<a class="blue-link" href="https://discord.gg/jvKA8254YT">Tristate</a><br>
<a class="blue-link" href="">Washington</a><br>
<h3>Canada</h3>
<a class="blue-link" href="https://discord.com/invite/czNcduQbQd">Alberta</a><br>
<a class="blue-link" href="https://discord.com/invite/yWNuKkmFZ7">Ontario</a><br>
<h3>Europe</h3>
<a class="blue-link" href="https://discord.com/invite/eUysA7Rs7C">France</a><br>
<a class="blue-link" href="https://discord.com/invite/D3pYTkRc">Spain</a><br>
<a class="blue-link" href="https://discord.com/invite/qCGC8w5A">United Kingdom</a><br>
`;
// Get the mobileLinks container and inject the HTML
let mobileLinksContainer = document.getElementById('mobileLinks');
mobileLinksContainer.innerHTML = mobileLinksHTML;
}
window.addEventListener('resize', function() {
let element = document.getElementById('mobileLinks');
let width = window.innerWidth;
if (width <= 700) {
element.classList.remove('hidden');
} else {
element.classList.add('hidden');
}
});
// Check on initial load
window.dispatchEvent(new Event('resize'));
</script>
<script src="https://unpkg.com/react@17/umd/react.development.js"></script>
<script src="https://unpkg.com/react-dom@17/umd/react-dom.development.js"></script>
<script src="react-templates\nav-bar\build\static\js\main.f5d4c7e5.js"></script>
<script src="/script.js"></script>
</body>
</html>