forked from Scratch-Empires/website
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnews.html
More file actions
214 lines (193 loc) · 9.86 KB
/
news.html
File metadata and controls
214 lines (193 loc) · 9.86 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
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,wght@8..144,100..1000&display=swap" rel="stylesheet">
<title>Scratch Empires News</title>
<link rel="icon" type="image/x-icon" href="/images/Favicon.png">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="styleA.css">
</head>
<body>
<div class="navbar">
<a href="./" id="otheritem">Home</a>
<a href="./admins.html" id="otheritem">Admins</a>
<a href="./contact.html">Contact</a>
<a href="./seasons.html">Seasons</a>
</div>
<div class="container">
<div class="main-content">
<h1>Server News and Announcements</h1>
<div class="news-item">
<h2>Wiki Move</h2>
<p>July 13th, 2024 @ 3:26 AM ET - Written By: Salad </p>
<p>Edited July 13th, 2024 @ 3:27 AM ET by Salad: Fixed links (hopefully)</p>
<p>The <a href="https://scratchempires.fandom.com">Fandom Wiki</a> has moved operations to our new (and now fully functional)
<a href="https://scratchempires.miraheze.org">Miraheze Wiki</a>! Please make an account to edit the wiki there from now on :)
-Salad </p>
</div>
<div class="news-item">
<h2>Server has returned!</h2>
<p>June 23rd, 2024 - Written By: Qloak </p>
<p>Edited July 13th, 2024 @ 3:27 AM ET by Salad: Fixed typo in title</p>
<p>The server has returned to life! If you'd like to play it (and are whitelisted), you can now join!
Thank you for bearing with us during this extremely long downtime, and we would again like to apologize for this. Enjoy your day!</p>
<img src="images/news5.png" alt="News Image 5" onclick="openFullscreen(this)">
</div>
<div class="news-item">
<h2>Server Returns Soon! + Kat's Birthday!</h2>
<p>June 22nd, 2024 - Written By: Kat </p>
<p>Firstly, I hope everyone wishes me a happy birthday,
Secondly, the server will (hopefully, it's a really dependent case) return on: Jun/23/2024 at 12:00PM EDT (GMT-4/[-5]).</p>
<img src="images/Katnouncement.png" alt="News Image 4" onclick="openFullscreen(this)">
</div>
<div class="news-item">
<h2>Website Created!</h2>
<p>June 20th, 2024 - Written By: Qloak </p>
<p>The brilliant web designers of Scratch Empires have come together to create the very website you're looking at! Welcome!</p>
<img src="images/news3.png" alt="News Image 3" onclick="openFullscreen(this)">
</div>
<div class="news-item">
<h2>Server Down</h2>
<p>June 15th, 2024 - Written By: Qloak </p>
<p>Sadly, the server is down. As the server host is on vacation, it is unlikely the server will be back online until June 23rd or June 24th.</p>
<img src="images/news2.png" alt="News Image 2" onclick="openFullscreen(this)">
</div>
<div class="news-item">
<h2>Season 4 Launch!</h2>
<p>June 5th, 2024 - Written By: Qloak </p>
<p>We are thrilled to announce the launch of Scratch Empires Season 4! New challenges, new territories, and new adventures await. Join us as we embark on this exciting journey!</p>
<img src="images/news1.png" alt="News Image 1" onclick="openFullscreen(this)">
</div>
</div>
<div class="gallery">
</div>
<div id="myModal" class="modal">
<span class="close" onclick="closeModal()">×</span>
<div class="modal-content">
<img src="images/news1.png" alt="News Image 1" onclick="openFullscreen(this)">
<img src="images/news2.png" alt="News Image 2" onclick="openFullscreen(this)">
<img src="images/news3.png" alt="News Image 3" onclick="openFullscreen(this)">
<img src="images/news4.png" alt="News Image 4" onclick="openFullscreen(this)">
<img src="images/news5.png" alt="News Image 5" onclick="openFullscreen(this)">
<img src="images/news6.png" alt="News Image 6" onclick="openFullscreen(this)">
<img src="images/news7.png" alt="News Image 7" onclick="openFullscreen(this)">
<img src="images/news8.png" alt="News Image 8" onclick="openFullscreen(this)">
<img src="images/news9.png" alt="News Image 9" onclick="openFullscreen(this)">
<img src="images/news10.png" alt="News Image 10" onclick="openFullscreen(this)">
</div>
</div>
<style>
.fullscreen-modal {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.8);
justify-content: center;
align-items: center;
overflow: hidden;
z-index: 1000;
}
.fullscreen-modal img {
position: relative;
max-width: none;
max-height: none;
transition: transform 0.2s;
cursor: grab;
}
.fullscreen-modal img:active {
cursor: grabbing;
}
.fullscreen-modal .close,
.fullscreen-modal .zoom-in,
.fullscreen-modal .zoom-out {
position: absolute;
top: 20px;
color: white;
font-size: 30px;
font-weight: bold;
padding: 10px;
cursor: pointer;
z-index: 1001;
}
.fullscreen-modal .close {
right: 20px;
}
.fullscreen-modal .zoom-in {
right: 60px;
}
.fullscreen-modal .zoom-out {
right: 100px;
}
</style>
<body>
<div id="fullscreenModal" class="fullscreen-modal">
<span class="close" onclick="closeFullscreen()">×</span>
<span class="zoom-in" onclick="zoomIn()">+</span>
<span class="zoom-out" onclick="zoomOut()">-</span>
<img id="fullscreenImage" src="" alt="Fullscreen Image">
</div>
<script>
let isDragging = false;
let startX, startY, initialLeft, initialTop;
function openFullscreen(img) {
const fullscreenModal = document.getElementById("fullscreenModal");
const fullscreenImage = document.getElementById("fullscreenImage");
fullscreenImage.draggable = false;
fullscreenImage.src = img.src;
fullscreenModal.style.display = "flex";
fullscreenImage.style.transform = "scale(1)";
fullscreenImage.style.left = '0px';
fullscreenImage.style.top = '0px';
}
function closeFullscreen() {
document.getElementById("fullscreenModal").style.display = "none";
}
function zoomIn() {
const img = document.getElementById("fullscreenImage");
const currScale = getCurrentScale(img);
img.style.transform = "scale(" + (currScale + 0.1) + ")";
}
function zoomOut() {
const img = document.getElementById("fullscreenImage");
const currScale = getCurrentScale(img);
img.style.transform = "scale(" + Math.max(currScale - 0.1, 1) + ")";
}
function getCurrentScale(element) {
const style = window.getComputedStyle(element);
const matrix = new WebKitCSSMatrix(style.transform);
return matrix.a; // Returns the current scale
}
function startDrag(event) {
isDragging = true;
startX = event.clientX;
startY = event.clientY;
const fullscreenImage = document.getElementById("fullscreenImage");
initialLeft = parseInt(window.getComputedStyle(fullscreenImage).left, 10) || 0;
initialTop = parseInt(window.getComputedStyle(fullscreenImage).top, 10) || 0;
fullscreenImage.style.cursor = 'grabbing';
}
function stopDrag() {
isDragging = false;
const fullscreenImage = document.getElementById("fullscreenImage");
fullscreenImage.style.cursor = 'grab';
}
function drag(event) {
if (isDragging) {
const dx = event.clientX - startX;
const dy = event.clientY - startY;
const fullscreenImage = document.getElementById("fullscreenImage");
fullscreenImage.style.left = initialLeft + dx + 'px';
fullscreenImage.style.top = initialTop + dy + 'px';
}
}
document.getElementById('fullscreenImage').addEventListener('mousedown', startDrag);
document.addEventListener('mouseup', stopDrag);
document.addEventListener('mousemove', drag);
</script>
</body></html>