diff --git a/app/frontend/static/assets/css/crafty.css b/app/frontend/static/assets/css/crafty.css index 53c3c1bf..a613bbd8 100644 --- a/app/frontend/static/assets/css/crafty.css +++ b/app/frontend/static/assets/css/crafty.css @@ -349,6 +349,24 @@ noscript.noscript-warning { font-family: 'Sarabun', 'roboto', sans-serif; } +/**************************************************************/ + +/**************************************************************/ +/* CSS for Annoucements Displays */ +/**************************************************************/ +.annoucement-item>p { + float: right; +} + +.annoucement-title { + color: var(--info); +} + +.annoucement-item:hover>a .annoucement-title { + color: var(--purple); +} + + /**************************************************************/ div.form-group.reset-secret { background: rgba(243, 21, 6, 0.3); diff --git a/app/frontend/templates/notify.html b/app/frontend/templates/notify.html index 83e80909..a5f920ec 100644 --- a/app/frontend/templates/notify.html +++ b/app/frontend/templates/notify.html @@ -96,7 +96,7 @@ console.log(data); let text = ""; for (let value of data) { - text += `
  • ${value.title}

    ${value.date}

    ${value.desc}

  • ` + text += `
  • ${value.title}

    ${value.date}

    ${value.desc}

  • ` } if (data.length > 0) { localStorage.setItem("notif-count", data.length); @@ -136,7 +136,7 @@ }); let responseData = await res.json(); console.log(responseData); - setTimeout(function() { + setTimeout(function () { getAnnouncements(); }, 1800000); //Wait 30 minutes in miliseconds console.log("Registered annoucement fetch event in 30 minutes.")