Share Fix

This commit is contained in:
ssyyhhrr
2023-01-23 22:38:52 +00:00
parent 89a4281a52
commit 487c5dff66
3 changed files with 7 additions and 3 deletions

View File

@@ -304,6 +304,7 @@ p a:hover {
padding: 1.6em; padding: 1.6em;
transition: all 0.5s; transition: all 0.5s;
opacity: 0; opacity: 0;
overflow-x: auto;
} }
.splitter { .splitter {

View File

@@ -305,6 +305,9 @@ async function submit(guess, real) {
pulse() pulse()
copy() copy()
} }
document.getElementById("closeShare").onmousedown = () => {
close(document.getElementsByClassName("shareScreen")[0])
}
}, 1250) }, 1250)
} }
@@ -398,8 +401,8 @@ document.getElementsByClassName("close")[0].onmousedown = () => {
close(document.getElementsByClassName("tutorial")[0]) close(document.getElementsByClassName("tutorial")[0])
} }
document.getElementsByClassName("closeShare")[0].onmousedown = () => { document.getElementById("closeShare").onmousedown = () => {
close(document.getElementById("shareScreen")) close(document.getElementsByClassName("shareScreen")[0])
} }

View File

@@ -49,7 +49,7 @@
<p>A new <b>STEWARDLE</b> will be available each day!</p> <p>A new <b>STEWARDLE</b> will be available each day!</p>
</div> </div>
<div id="shareScreen" class="shareScreen"> <div id="shareScreen" class="shareScreen">
<div class="closeShare"> <div id="closeShare" class="closeShare">
<i class="fa-solid fa-xmark"></i> <i class="fa-solid fa-xmark"></i>
</div> </div>
<p><b>Statistics</b></p> <p><b>Statistics</b></p>