From 4c984a2b31f72117a281747d24e8f5866e3b68d3 Mon Sep 17 00:00:00 2001
From: Arthur <79015591+arthur-adriansens@users.noreply.github.com>
Date: Thu, 30 Nov 2023 12:41:15 +0100
Subject: [PATCH] added Brugeloons prank "add"
---
sqlite.js | 1 +
src/index.html | 16 ++++++++++++----
src/js/setup.js | 2 +-
src/style.css | 8 ++++++++
4 files changed, 22 insertions(+), 5 deletions(-)
diff --git a/sqlite.js b/sqlite.js
index 3083724..d2118d5 100644
--- a/sqlite.js
+++ b/sqlite.js
@@ -65,6 +65,7 @@ module.exports = {
// add user
if (!userInfo.length) {
success = await db.run("INSERT INTO Scores (username, highscore, ip) VALUES (?, ?, ?);", [user, newScore, ip]);
+ await db.run("INSERT INTO Daily (username, highscore, ip, day) VALUES (?, ?, ?);", [user, newScore, ip]);
return success.changes > 0;
}
diff --git a/src/index.html b/src/index.html
index cecbb59..738c848 100644
--- a/src/index.html
+++ b/src/index.html
@@ -482,15 +482,23 @@
next block
stored block
-
+
+
-
-
-
+
+
+
diff --git a/src/js/setup.js b/src/js/setup.js
index bc4a25f..b0c7365 100644
--- a/src/js/setup.js
+++ b/src/js/setup.js
@@ -219,7 +219,7 @@ function new_score(newScore, level, final = false) {
function upload_highscore(score) {
if (score == 0 || !username) return;
- const url = "https://sjh-tetris.glitch.me/newScore";
+ const url = "https://alpha-tetris.glitch.me/newScore";
const data = { user: username, score: score };
fetch(url, {
diff --git a/src/style.css b/src/style.css
index a9f1f22..6030e79 100644
--- a/src/style.css
+++ b/src/style.css
@@ -118,6 +118,14 @@ canvas#game {
margin-bottom: 0;
}
+.youtube_background {
+ background-image: url(https://yt3.googleusercontent.com/FlzAFFDcLjYJAHPqEP_aQSm-tOQn_AdQ9kHiRU4wyYT3Z5mPdyXSfz_z0VlMQwfLDYSROB1liHk=s176-c-k-c0x00ffffff-no-rj);
+ background-size: cover;
+ border: none !important;
+ box-shadow: rgba(100, 100, 111, 0.05) 0px 7px 8px 0px !important;
+ cursor: pointer;
+}
+
.game {
border-radius: 10px;
border: 1px solid lightgrey;