Add error message to player-settings and weighted-settings pages if the call to /api/generate returns a non-2xx response code.

This commit is contained in:
Chris Wilson
2021-05-13 21:33:56 -04:00
parent b2f3fd56f4
commit c24d6a0785
6 changed files with 33 additions and 1 deletions

View File

@@ -29,6 +29,20 @@ html{
color: #000000;
}
#player-settings #user-message{
display: none;
width: calc(100% - 8px);
background-color: #ffe86b;
border-radius: 4px;
color: #000000;
padding: 4px;
text-align: center;
}
#player-settings #user-message.visible{
display: block;
}
#player-settings h1{
font-size: 2.5rem;
font-weight: normal;