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
71
client/General/snackbar/snackbar.css
Normal file
71
client/General/snackbar/snackbar.css
Normal file
|
|
@ -0,0 +1,71 @@
|
|||
#snackbar {
|
||||
visibility: hidden;
|
||||
min-width: 250px;
|
||||
margin-left: -125px;
|
||||
background-color: #93b7d6;
|
||||
color: #fff;
|
||||
text-align: center;
|
||||
border-radius: 4px;
|
||||
padding: 16px;
|
||||
position: fixed;
|
||||
z-index: 22;
|
||||
left: 50%;
|
||||
bottom: 30px;
|
||||
font-size: 17px;
|
||||
}
|
||||
|
||||
#snackbar.shadow {
|
||||
min-width: 250px;
|
||||
padding: 15px;
|
||||
box-shadow: -5px 7px 8px #2f2f2f;
|
||||
}
|
||||
|
||||
#snackbar.show {
|
||||
visibility: visible;
|
||||
-webkit-animation: fadein 0.5s, fadeout 0.5s 4.0s;
|
||||
animation: fadein 0.5s, fadeout 0.5s 4.0s;
|
||||
}
|
||||
|
||||
@-webkit-keyframes fadein {
|
||||
from {
|
||||
bottom: 0;
|
||||
opacity: 0;
|
||||
}
|
||||
to {
|
||||
bottom: 30px;
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes fadein {
|
||||
from {
|
||||
bottom: 0;
|
||||
opacity: 0;
|
||||
}
|
||||
to {
|
||||
bottom: 30px;
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
@-webkit-keyframes fadeout {
|
||||
from {
|
||||
bottom: 30px;
|
||||
opacity: 1;
|
||||
}
|
||||
to {
|
||||
bottom: 0;
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes fadeout {
|
||||
from {
|
||||
bottom: 30px;
|
||||
opacity: 1;
|
||||
}
|
||||
to {
|
||||
bottom: 0;
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
3
client/General/snackbar/snackbar.html
Normal file
3
client/General/snackbar/snackbar.html
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
<template name="snackbar">
|
||||
<div class="snackbar shadow" id="snackbar"></div>
|
||||
</template>
|
||||
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