diff --git a/assets/level.css b/assets/level.css
index 9ae3948..84cd1d8 100644
--- a/assets/level.css
+++ b/assets/level.css
@@ -1,5 +1,7 @@
@font-face {font-family: Pusab; src: url('./../assets/Pusab.ttf')}
+* { outline: none !important; }
+
body {
margin: 0;
height: 100vh;
@@ -32,6 +34,10 @@ img, .noSelect {
pointer-events: all;
}
+.cornerPiece {
+ position: sticky;
+}
+
.center {
text-align: center;
max-width: 100%;
@@ -120,7 +126,7 @@ p {
font-family: aller, helvetica;
color: white;
font-size: 2.9vh;
- word-break: break-all;
+ word-break: break-word;
}
h1 {
diff --git a/html/comments.html b/html/comments.html
index 319989b..cc7856c 100644
--- a/html/comments.html
+++ b/html/comments.html
@@ -17,11 +17,11 @@
-
+
-
+
diff --git a/html/filters.html b/html/filters.html
index 1670031..4a09e4a 100644
--- a/html/filters.html
+++ b/html/filters.html
@@ -31,11 +31,11 @@
-
+
-
+
diff --git a/html/home.html b/html/home.html
index bbf450b..b5e7c1b 100644
--- a/html/home.html
+++ b/html/home.html
@@ -134,11 +134,11 @@
-
+
-
+
diff --git a/html/leaderboard.html b/html/leaderboard.html
index 15b478d..2e65302 100644
--- a/html/leaderboard.html
+++ b/html/leaderboard.html
@@ -38,11 +38,11 @@
-
+
-
+
diff --git a/html/level.html b/html/level.html
index 5e58f22..04cd845 100644
--- a/html/level.html
+++ b/html/level.html
@@ -60,11 +60,11 @@
-
+
-
+
diff --git a/html/mappacks.html b/html/mappacks.html
index 9681a89..e7e4ba0 100644
--- a/html/mappacks.html
+++ b/html/mappacks.html
@@ -6,7 +6,7 @@
-
+
diff --git a/html/profile.html b/html/profile.html
index 00db2c4..c61bbdb 100644
--- a/html/profile.html
+++ b/html/profile.html
@@ -29,11 +29,11 @@
-
+
-
+
diff --git a/html/search.html b/html/search.html
index a674dd3..8e410ce 100644
--- a/html/search.html
+++ b/html/search.html
@@ -45,11 +45,11 @@
-
+
-
+
@@ -197,7 +197,7 @@ if (type == 'saved') {
if (gauntlet) {
$('body').addClass('darkBG')
- $('.gs').addClass('grayscale')
+ $('.cornerPiece').addClass('grayscale')
$('#header').text((gauntlets[parseInt(gauntlet) - 1] || "Unknown") + " Gauntlet")
$('#meta-title').attr('content', (gauntlets[parseInt(gauntlet) - 1] || "Unknown") + " Gauntlet")
$('#meta-desc').attr('content', `View the 5 levels in the ${(gauntlets[parseInt(gauntlet) - 1] || "Unknown") + " Gauntlet"}!`)
diff --git a/index.js b/index.js
index 9b227bd..78bf619 100644
--- a/index.js
+++ b/index.js
@@ -42,47 +42,13 @@ app.clean = function(text) {if (typeof text != "string") return text; else retur
console.log("Site online!")
-app.get("/assets/:file", function (req, res) {
- fs.exists("./assets/" + req.params.file, function (exists) {
- if (exists) {res.status(200).sendFile(path.join(__dirname, "/assets/" + req.params.file));
- }})
-})
-
-app.get("/objects/:file", function (req, res) {
- fs.exists("./assets/objects/" + req.params.file, function (exists) {
- if (exists) {res.status(200).sendFile(path.join(__dirname, "/assets/objects/" + req.params.file));
- }})
-})
-
-app.get("/blocks/:file", function (req, res) {
- fs.exists("./assets/blocks/" + req.params.file, function (exists) {
- if (exists) {res.status(200).sendFile(path.join(__dirname, "/assets/blocks/" + req.params.file));
- }})
-})
-
-app.get("/gauntlets/:file", function (req, res) {
- fs.exists("./assets/gauntlets/" + req.params.file, function (exists) {
- if (exists) {res.status(200).sendFile(path.join(__dirname, "/assets/gauntlets/" + req.params.file));
- }})
-})
-
-app.get("/difficulty/:file", function (req, res) {
- fs.exists("./assets/gdfaces/" + req.params.file, function (exists) {
- if (exists) {res.status(200).sendFile(path.join(__dirname, "/assets/gdfaces/" + req.params.file));
- }})
-})
-
-app.get("/iconkitbuttons/:file", function (req, res) {
- fs.exists("./assets/iconkitbuttons/" + req.params.file, function (exists) {
- if (exists) {res.status(200).sendFile(path.join(__dirname, "/assets/iconkitbuttons/" + req.params.file));
- }})
-})
-
-app.get("/gdicon/:file", function (req, res) {
- fs.exists("./icons/iconkit/" + req.params.file, function (exists) {
- if (exists) {res.status(200).sendFile(path.join(__dirname, "/icons/iconkit/" + req.params.file));
- }})
-})
+app.use('/assets', express.static(__dirname + '/assets', {maxAge: "7d"}));
+app.use('/objects', express.static(__dirname + '/assets/objects', {maxAge: "7d"}));
+app.use('/blocks', express.static(__dirname + '/assets/blocks', {maxAge: "7d"}));
+app.use('/gauntlets', express.static(__dirname + '/assets/gauntlets', {maxAge: "7d"}));
+app.use('/difficulty', express.static(__dirname + '/assets/gdfaces', {maxAge: "7d"}));
+app.use('/iconkitbuttons', express.static(__dirname + '/assets/iconkitbuttons', {maxAge: "7d"}));
+app.use('/gdicon', express.static(__dirname + '/icons/iconkit', {maxAge: "7d"}));
app.get("/api", function(req, res) {
res.sendFile(__dirname + "/html/api.html")