diff --git a/api/download.js b/api/download.js index bd64bf8..4b8b08e 100644 --- a/api/download.js +++ b/api/download.js @@ -17,7 +17,7 @@ module.exports = async (app, req, res, api, ID, analyze) => { request.post(app.endpoint + 'downloadGJLevel22.php', req.gdParams({ levelID }), async function (err, resp, body) { if (err || !body || body == '-1' || body.startsWith(" + - @@ -83,6 +87,15 @@ $('#browserlogo').css('filter', `hue-rotate(${Math.floor(Math.random() * (330 - let xButtonPos = '43%' let lastPage +let noDaily = (window.location.search == "?daily=1") +let noWeekly = (window.location.search == "?daily=2") + +if (noDaily || noWeekly) { + if (noWeekly) $('#noLevel').html("weekly") + $('#noDaily').fadeIn(200).delay(500).fadeOut(500) + window.history.pushState(null, null, "/") +} + function loadCredits() { $('.subCredits').hide() $('#credits' + page).show()