@ -1638,7 +1638,7 @@ class PostEditor {
//--------------------------
constructor ( ) {
this . processing = false ;
let self = 'this' ;
let self = "this" ;
this . admin = new _fipamoAdminAPIDefault . default ( null , document . getElementById ( 'notify-progress' ) ) ;
this . mm = new _maintenanceManagerDefault . default ( null , null , document . getElementById ( 'notify-progress' ) ) ;
this . urlPieces = document . URL . split ( '/' ) ;
@ -1663,7 +1663,7 @@ class PostEditor {
this . editor . addListener ( _editorEvent . EDITOR _SAVE , ( ) => this . handleEditorOptions ( _editorEvent . EDITOR _SAVE )
, false ) ;
document . getElementById ( 'post-image-upload' ) . addEventListener ( 'change' , ( e ) => {
this . handleImageUpload ( e . target . id , e . target . files ) ;
self . handleImageUpload ( e . target . id , e . target . files ) ;
} , false ) ;
/ *
TinyDatePicker ( document . getElementById ( 'post-date' ) , {
@ -4012,14 +4012,14 @@ var parcelHelpers = require("@parcel/transformer-js/src/esmodule-helpers.js");
parcelHelpers . defineInteropFlag ( exports ) ;
var _animeEsJs = require ( "animejs/lib/anime.es.js" ) ;
var _animeEsJsDefault = parcelHelpers . interopDefault ( _animeEsJs ) ;
const notifcation = document . getElementById ( "notifications" ) ;
const notify = document . getElementById ( "notifyMessage" ) ;
const messageText = document . getElementById ( "message-text" ) ;
const notifyText = document . getElementById ( "notify-text" ) ;
const notifyProgress = document . getElementById ( "notify-progress" ) ;
const iconGood = document . getElementById ( "notify-good" ) ;
const iconLame = document . getElementById ( "notify-lame" ) ;
const iconWorking = document . getElementById ( "notify-working" ) ;
const notifcation = document . getElementById ( 'notifications' ) ;
const notify = document . getElementById ( 'notify-message' ) ;
const messageText = document . getElementById ( 'message-text' ) ;
const notifyText = document . getElementById ( 'notify-text' ) ;
const notifyProgress = document . getElementById ( 'notify-progress' ) ;
const iconGood = document . getElementById ( 'notify-good' ) ;
const iconLame = document . getElementById ( 'notify-lame' ) ;
const iconWorking = document . getElementById ( 'notify-working' ) ;
class Notfications {
//--------------------------
// constructor
@ -4029,66 +4029,66 @@ class Notfications {
// methods
//--------------------------
alert ( text , status ) {
iconWorking . style . display = "none" ;
iconGood . style . display = "none" ;
iconLame . style . display = "none" ;
var color = "" ;
iconWorking . style . display = 'none' ;
iconGood . style . display = 'none' ;
iconLame . style . display = 'none' ;
var color = '' ;
if ( status !== null ) {
_animeEsJsDefault . default ( {
targets : notifyProgress ,
opacity : 0 ,
easing : "easeInOutQuint" ,
easing : 'easeInOutQuint' ,
duration : 500
} ) ;
if ( status ) {
color = "#32cd32" ;
iconWorking . style . display = "none" ;
iconGood . style . display = "block" ;
color = '#32cd32' ;
iconWorking . style . display = 'none' ;
iconGood . style . display = 'block' ;
} else {
color = "#F64747" ;
iconWorking . style . display = "none" ;
iconLame . style . display = "block" ;
color = '#F64747' ;
iconWorking . style . display = 'none' ;
iconLame . style . display = 'block' ;
}
} else {
color = "#200317" ;
iconWorking . style . display = "block" ;
color = '#200317' ;
iconWorking . style . display = 'block' ;
_animeEsJsDefault . default ( {
targets : notifyProgress ,
opacity : 1 ,
easing : "easeInOutQuint" ,
easing : 'easeInOutQuint' ,
duration : 500
} ) ;
}
messageText . innerHTML = text ;
_animeEsJsDefault . default ( {
targets : notifcation ,
marginTop : "-10" ,
easing : "easeInOutQuint" ,
marginTop : '-10' ,
easing : 'easeInOutQuint' ,
duration : 10 ,
complete : ( ) => {
_animeEsJsDefault . default ( {
targets : notify ,
rotateX : "0" ,
easing : "easeInOutQuint" ,
rotateX : '0' ,
easing : 'easeInOutQuint' ,
duration : 700
} ) ;
_animeEsJsDefault . default ( {
targets : notifyText ,
backgroundColor : color ,
easing : "easeInOutQuint" ,
easing : 'easeInOutQuint' ,
duration : 700 ,
complete : ( ) => {
setTimeout ( ( ) => {
if ( status !== null ) _animeEsJsDefault . default ( {
targets : notify ,
rotateX : "-120" ,
easing : "easeInOutQuint" ,
rotateX : '-120' ,
easing : 'easeInOutQuint' ,
duration : 700 ,
complete : ( ) => {
_animeEsJsDefault . default ( {
targets : notifcation ,
marginTop : "-55" ,
easing : "easeInOutQuint" ,
marginTop : '-55' ,
easing : 'easeInOutQuint' ,
delay : 700 ,
duration : 50
} ) ; //notifcation.style.display = 'none';