mirror of
https://github.com/jech/galene.git
synced 2024-11-22 16:45:58 +01:00
Toastify style moved to galene.css, galene.js corrected
This commit is contained in:
parent
4aa52e16e2
commit
df592994e0
1 changed files with 0 additions and 3 deletions
|
@ -3959,18 +3959,15 @@ document.getElementById('resizer').addEventListener('mousedown', chatResizer, fa
|
||||||
function displayError(message, level) {
|
function displayError(message, level) {
|
||||||
if(!level)
|
if(!level)
|
||||||
level = "error";
|
level = "error";
|
||||||
var background = 'linear-gradient(to right, #e20a0a, #df2d2d)';
|
|
||||||
var position = 'center';
|
var position = 'center';
|
||||||
var gravity = 'top';
|
var gravity = 'top';
|
||||||
|
|
||||||
switch(level) {
|
switch(level) {
|
||||||
case "info":
|
case "info":
|
||||||
background = 'linear-gradient(to right, #529518, #96c93d)';
|
|
||||||
position = 'right';
|
position = 'right';
|
||||||
gravity = 'bottom';
|
gravity = 'bottom';
|
||||||
break;
|
break;
|
||||||
case "warning":
|
case "warning":
|
||||||
background = "linear-gradient(to right, #bdc511, #c2cf01)";
|
|
||||||
break;
|
break;
|
||||||
case "kicked":
|
case "kicked":
|
||||||
level = "error";
|
level = "error";
|
||||||
|
|
Loading…
Reference in a new issue