Add NoJS warning for the events page, resolves #48

This commit is contained in:
2024-04-03 15:26:06 +01:00
parent 0d4151316f
commit bd2c7ad66e
2 changed files with 2 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
var events = [];
$(document).ready(function () {
$('div#calendar p#nojs').hide(); // Hide the NoJS message
$.getJSON('https://api.leighhack.org/events', function (data) {
data.forEach(function (event) {
events.push({