1
Fork 0
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:
jjsa 2024-11-18 16:29:37 +01:00
parent 4aa52e16e2
commit df592994e0

View file

@ -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";