added an info about commissions being closed
All checks were successful
Web/pipeline/head This commit looks good

This commit is contained in:
Ell 2021-05-15 17:08:56 +02:00
parent 8207ab2f1d
commit 6c804d8e09
3 changed files with 19 additions and 0 deletions

15
commissions/closed.js Normal file
View file

@ -0,0 +1,15 @@
$.ajax({
dataType: "text",
url: "closed.txt",
cache: false,
success: function (value) {
if (value !== "true")
return;
$('#closed').html( /*html*/ `
<div class="alert alert-warning" role="alert">
<strong>My commissions are currently closed.</strong>
<br>If you are willing to wait until they reopen, you can still contact me with a short summmary of your request.
</div>
`);
}
});

1
commissions/closed.txt Normal file
View file

@ -0,0 +1 @@
true

View file

@ -52,6 +52,9 @@
</div>
</div>
<div class="par" id="closed"></div>
<script src="closed.js"></script>
<div class="par">
<h1>Past Commissions</h1>
<div id="mods"></div>