diff --git a/assets/css/main.css b/assets/css/main.css
index 178e4c5..9842082 100644
--- a/assets/css/main.css
+++ b/assets/css/main.css
@@ -273,7 +273,7 @@ p a:hover {
.shareScreen {
max-width: 30em;
- max-height: 80vh;
+ max-height: 90vh;
min-width: 480px;
position: fixed;
background-color: #171717;
@@ -430,7 +430,7 @@ p a:hover {
}
.down {
- background-color: #4d81e4;
+ background-color: #b042ff;
border-radius: 0px 0px 36% 36%;
}
@@ -581,6 +581,7 @@ p a:hover {
.frame {
height: 35px;
width: 35px;
+ outline: 1px solid #3a3a3c;
}
.flag {
@@ -605,7 +606,6 @@ p a:hover {
@media(max-height:720px) {
.shareScreen {
- max-height: 90vh;
overflow-y: scroll;
}
}
\ No newline at end of file
diff --git a/assets/js/main.js b/assets/js/main.js
index 44ff9ae..852bc60 100644
--- a/assets/js/main.js
+++ b/assets/js/main.js
@@ -267,6 +267,27 @@ async function submit(guess, real) {
count = false
}
}
+ setTimeout(() => {
+ let attempts = (6 - (Array.from(document.getElementsByClassName("frame")).filter(x => x.childNodes.length == 0).length / 7))
+ let gameNumber = Math.floor((Date.now() - 1655769600000) / 86400000)
+ let clipboard = `Stewardle ${gameNumber} ${attempts}/6
`
+ let x = 0
+ Array.from(document.getElementsByClassName("frame")).filter(x => x.classList.length > 1).forEach((frame, index) => {
+ if (index > 11) {
+ x++
+ if (frame.classList[1] == "down") clipboard += "⬇️"
+ else if (frame.classList[1] == "correct") clipboard += "🟩"
+ else if (frame.classList[1] == "up") clipboard += "⬆️"
+ else if (frame.classList[1] == "incorrect") clipboard += "🟥"
+ else if (frame.classList[1] == "previous") clipboard += "🟧"
+ if (x == 6) {
+ x = 0
+ clipboard += "
"
+ }
+ }
+ })
+ document.getElementById("copyable").innerHTML = clipboard
+ }, 1250)
}
// Set the date we're counting down to
diff --git a/views/index.ejs b/views/index.ejs
index 4f8ae6c..19dcb27 100644
--- a/views/index.ejs
+++ b/views/index.ejs
@@ -80,6 +80,12 @@
6
+Score
+ +