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;

View File

@@ -14,7 +14,7 @@ html{
color: #eeffeb;
}
#user-warning{
#user-warning, #weighted-settings #user-message{
display: none;
width: calc(100% - 8px);
background-color: #ffe86b;
@@ -25,6 +25,10 @@ html{
cursor: pointer;
}
#weighted-settings #user-message.visible{
display: block;
}
#weighted-settings code{
background-color: #d9cd8e;
border-radius: 4px;