mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -06:00
adjustable toast position
This commit is contained in:
parent
bc339f774a
commit
405f3ee5fe
|
@ -42,6 +42,10 @@ html {
|
|||
text-shadow: 1px 1px 0 #000;
|
||||
color: #fff;
|
||||
}
|
||||
#toast.top {
|
||||
top: 2em;
|
||||
bottom: unset;
|
||||
}
|
||||
#toast a {
|
||||
color: inherit;
|
||||
text-shadow: inherit;
|
||||
|
|
|
@ -1280,17 +1280,17 @@ var toast = (function () {
|
|||
r.tag = tag;
|
||||
};
|
||||
|
||||
r.ok = function (sec, txt, tag) {
|
||||
r.show('ok', sec, txt, tag);
|
||||
r.ok = function (sec, txt, tag, cls) {
|
||||
r.show('ok ' + (cls || ''), sec, txt, tag);
|
||||
};
|
||||
r.inf = function (sec, txt, tag) {
|
||||
r.show('inf', sec, txt, tag);
|
||||
r.inf = function (sec, txt, tag, cls) {
|
||||
r.show('inf ' + (cls || ''), sec, txt, tag);
|
||||
};
|
||||
r.warn = function (sec, txt, tag) {
|
||||
r.show('warn', sec, txt, tag);
|
||||
r.warn = function (sec, txt, tag, cls) {
|
||||
r.show('warn ' + (cls || ''), sec, txt, tag);
|
||||
};
|
||||
r.err = function (sec, txt, tag) {
|
||||
r.show('err', sec, txt, tag);
|
||||
r.err = function (sec, txt, tag, cls) {
|
||||
r.show('err ' + (cls || ''), sec, txt, tag);
|
||||
};
|
||||
|
||||
return r;
|
||||
|
|
Loading…
Reference in a new issue