Initial commit
This commit is contained in:
commit
35745a89ec
44 changed files with 3342 additions and 0 deletions
11
client/General/Snackbar/snackbar.js
Normal file
11
client/General/Snackbar/snackbar.js
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
// This is called to display a temporary message to the user at the bottom of the screen
|
||||
|
||||
showSnackbar = function(snackbarText, snackbarColor) {
|
||||
var snackbarNotification = document.getElementById("snackbar");
|
||||
snackbarNotification.innerHTML = snackbarText;
|
||||
snackbarNotification.style.backgroundColor = snackbarColor;
|
||||
snackbarNotification.className = "show";
|
||||
setTimeout(function() {
|
||||
snackbarNotification.className = snackbarNotification.className.replace("show", "");
|
||||
}, 4000)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue