Add 'Add Request' Modal

This commit is contained in:
Dessa Simpson 2020-07-05 15:20:22 -07:00
parent e8d7d6362b
commit 12d4ffad2b
3 changed files with 55 additions and 0 deletions

View file

@ -34,4 +34,12 @@ function updateTable() {
getRequests(count,allRequests);
}
function openAddRequestModal() {
document.getElementById("addRequestModalBackground").style.display = "flex";
}
function closeAddRequestModal() {
document.getElementById("addRequestModalBackground").style.display = "none";
}
updateTable();

View file

@ -83,3 +83,40 @@ div#nav-userpic {
#requests .request-score {
text-align: right;
}
#addRequestModalBackground {
display: none;
position: fixed;
z-index: 1;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: #444;
background-color: #444a;
align-items: center;
justify-content: center;
}
#addRequestModal {
position: relative;
padding: 1em;
display: inline-block;
background-color: #444;
box-shadow: 0px 5px 20px black;
}
#addRequestModal h1 {
margin-top: 0;
}
#addRequestModalClose {
position: absolute;
top: 0;
right: 0.5em;
font-size: 150%;
}
#addRequestModalClose a {
text-decoration: none;
}