mirror of
https://gitlab.com/bmcgonag/get_my.git
synced 2026-03-27 00:08:49 +00:00
initial commit
This commit is contained in:
parent
b7c7d8b449
commit
750811a81f
52 changed files with 25204 additions and 92 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