I may be dumb

This commit is contained in:
bingus_violet 2024-06-02 00:19:50 -05:00
parent 8b564d00b1
commit 93755b74b1
2 changed files with 3 additions and 2 deletions

View file

@ -99,7 +99,7 @@ function converter(html) {
"WEATHER_TEXT": "", "WEATHER_TEXT": "",
"ANNOUNCEMENT": fs.readFileSync(path.join(__dirname, "config/announcement.html")), "ANNOUNCEMENT": fs.readFileSync(path.join(__dirname, "config/announcement.html")),
"CACHED_IMAGES": fs.readdirSync(path.join(__dirname, "cached")).length.toString(), "CACHED_IMAGES": fs.readdirSync(path.join(__dirname, "cached")).length.toString(),
"ACTIVITIES": activityToHTML.activitiesToHTML(lanyardData, cachedImages) "ACTIVITIES": activityToHTML.activitiesToHTML(lanyardData)
} }
replacers.ALL_KEYWORDS = "{" + Object.keys(replacers).join("}{") + "} " replacers.ALL_KEYWORDS = "{" + Object.keys(replacers).join("}{") + "} "
@ -172,7 +172,7 @@ function converter(html) {
module.exports = { module.exports = {
getActivities: function () { getActivities: function () {
return htmlMinifier.minify(converter(activityToHTML.activitiesToHTML(lanyardData, cachedImages))) return htmlMinifier.minify(converter(activityToHTML.activitiesToHTML(lanyardData)))
}, },
middleWare: async function (req, res, next) { middleWare: async function (req, res, next) {

View file

@ -207,6 +207,7 @@ br {
display: flex; display: flex;
position: relative; position: relative;
z-index: 3; z-index: 3;
max-width: 50%;
/* max-height: 200px; */ /* max-height: 200px; */
} }