Spaces:
Runtime error
Runtime error
Hosting the bg image instead of hardcoding it, since hardcoding a 1MB+ image made the page load slowly.
db3b6dd
PAGE_STYLING_JS = """ | |
async () => { | |
document.head.insertAdjacentHTML("beforeend", `<style> | |
body { | |
background-image: url("https://storage.cloud.google.com/public-file-hosting/ScrollBg11.jpg"); | |
background-size: cover; | |
filter: brightness(0.45) sepia(0.7) contrast(2) brightness(2) saturate(0.1); | |
opacity: 70%; | |
} | |
</style>`) | |
} | |
""" | |
TOP_OF_SCREEN_PADDING_DIV = """ | |
<div style="height: 5vh;"> | |
</div | |
""" | |
PLEASE_BE_PATIENT_DIV = """ | |
<div style="background-color: white; font-family: cursive; font-size: 19px; padding: 2px 17px;"> | |
After clicking Run Next Turn, please be patient as it may take up to a minute for the game state to update. | |
</div> | |
""" | |