notifications

This commit is contained in:
Kyle
2020-06-30 11:47:24 -07:00
parent bf33329fc7
commit 8dcde785a8
4 changed files with 27 additions and 11 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

View File

@@ -897,15 +897,14 @@ function textCodeReference() {
textCodeReferenceArray.forEach(item => document.getElementById('textCodeReference').innerHTML += '<div>' + item[0] + '</div><div>' + item[1] + '</div>')
}
function notify(message, color) {
document.getElementsByClassName('notificationContainer')[0].innerHTML += `
<div class='notification' style='background-color: ` + color + `'>
<div>` + message + `</div>
<div class='deleteNotification' onclick='this.parentElement.parentNode.removeChild(this.parentElement)'>X</div>
</div>
`
}//notify('MessageGoesHere', '#aaffaadd')
//Must run last:
initialize()