From b2e00490f5377683687f4bfe7419a600a66a943b Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Tue, 10 May 2016 18:43:31 +0200 Subject: [PATCH] =?UTF-8?q?Possibilit=C3=A9=20de=20param=C3=A9trer=20le=20?= =?UTF-8?q?'localStorageInterface'=20pour=20utiliser=20'localStorage'=20ou?= =?UTF-8?q?=20bien=20'sessionStorage'=20+=20Gestion=20de=20la=20majorit?= =?UTF-8?q?=C3=A9=20des=20notification=20de=20la=20page=20'Acquisition>T?= =?UTF-8?q?=C3=A9l=C3=A9phone'=20+=20Gestion=20des=20'codes=20d'erreurs'?= =?UTF-8?q?=20pour=20les=20'notifications'=20(param=C3=A9trable)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- css/notif.scss | 14 + css/notif/expanded.css | 12 +- css/notif/expanded.css.map | 4 +- css/notif/min.css | 4 +- css/notif/min.css.map | 4 +- doc/sample-long.xml | 1001 +++++++++++++++++++++++++ doc/sample.xml | 932 ----------------------- js/action-script-min.js | 4 +- js/action-script.js | 32 + js/lib/local-storage-interface-min.js | 8 +- js/lib/local-storage-interface.js | 27 +- js/lib/notif-min.js | 7 +- js/lib/notif.js | 22 +- src/upload/call_log/xdrm.xml | 932 ----------------------- view.php | 3 +- view/js/analytics-min.js | 2 +- view/js/analytics.js | 5 - view/js/input-min.js | 23 +- view/js/input.js | 49 +- 19 files changed, 1169 insertions(+), 1916 deletions(-) create mode 100644 doc/sample-long.xml diff --git a/css/notif.scss b/css/notif.scss index 3bf159e..25c4de3 100644 --- a/css/notif.scss +++ b/css/notif.scss @@ -27,6 +27,13 @@ body > #notification-container{ background-color: #fff; pointer-events: all; + cursor: default; + + // ECARTEMENT DU BOTTOM POUR LE DERNIER + &:last-child{ + margin-bottom: 1em; + } + // ANIMATION DE fadeIn + fadeOut transition: opacity .5s ease-in-out; @@ -37,10 +44,17 @@ body > #notification-container{ } + // ANIMATION DE @HOVER + &:hover{ + box-shadow: inset 0 0 1em #eee, 0 0 20px #aaa; + } + + // DIFFERENTS THEMES strong[class]{ + text-transform: uppercase; padding-left: 1.5em; &:before{ diff --git a/css/notif/expanded.css b/css/notif/expanded.css index 97ebbeb..494a8b7 100644 --- a/css/notif/expanded.css +++ b/css/notif/expanded.css @@ -21,15 +21,25 @@ body > #notification-container .notification-element { box-shadow: inset 0 0 1em #eee; background-color: #fff; pointer-events: all; + cursor: default; transition: opacity .5s ease-in-out; opacity: 0; } +body > #notification-container .notification-element:last-child { + margin-bottom: 1em; +} + body > #notification-container .notification-element.notification-visible { opacity: 1; } +body > #notification-container .notification-element:hover { + box-shadow: inset 0 0 1em #eee, 0 0 20px #aaa; +} + body > #notification-container .notification-element strong[class] { + text-transform: uppercase; padding-left: 1.5em; } @@ -62,4 +72,4 @@ body > #notification-container .notification-element strong[class].error:before background-color: #d94747; } -/*# sourceMappingURL=data:application/json;base64,ewoJInZlcnNpb24iOiAzLAoJImZpbGUiOiAiZXhwYW5kZWQuY3NzIiwKCSJzb3VyY2VzIjogWwoJCSIuLi9ub3RpZi5zY3NzIgoJXSwKCSJzb3VyY2VzQ29udGVudCI6IFsKCQkiYm9keSA+ICNub3RpZmljYXRpb24tY29udGFpbmVye1xuXG4gICAgZGlzcGxheTogZmxleDtcbiAgICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gICAgICAgIGJvdHRvbTogMDtcbiAgICAgICAgbGVmdDogMDtcbiAgICAgICAgd2lkdGg6IDEwMCU7XG5cbiAgICBmbGV4LWRpcmVjdGlvbjogY29sdW1uO1xuICAgIGZsZXgtd3JhcDogbm93cmFwO1xuXG4gICAgei1pbmRleDogMjAwO1xuICAgIHBvaW50ZXItZXZlbnRzOiBub25lO1xuXG5cbiAgICAubm90aWZpY2F0aW9uLWVsZW1lbnR7XG4gICAgICAgIGRpc3BsYXk6IGJsb2NrO1xuICAgICAgICBwb3NpdGlvbjogcmVsYXRpdmU7XG4gICAgICAgICAgICBtYXJnaW46IC4yZW0gYXV0bztcbiAgICAgICAgICAgIHBhZGRpbmc6IDAgMWVtO1xuXG4gICAgICAgIGJvcmRlci1yYWRpdXM6IDNweDtcbiAgICAgICAgYm9yZGVyOiAxcHggc29saWQgI2RkZDtcbiAgICAgICAgYm9yZGVyLWJvdHRvbTogMXB4IHNvbGlkICNiYmI7XG4gICAgICAgIGJveC1zaGFkb3c6IGluc2V0IDAgMCAxZW0gI2VlZTtcblxuICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjZmZmO1xuXG4gICAgICAgIHBvaW50ZXItZXZlbnRzOiBhbGw7XG5cbiAgICAgICAgLy8gQU5JTUFUSU9OIERFIGZhZGVJbiArIGZhZGVPdXRcbiAgICAgICAgdHJhbnNpdGlvbjogb3BhY2l0eSAuNXMgZWFzZS1pbi1vdXQ7XG4gICAgICAgIG9wYWNpdHk6IDA7XG5cbiAgICAgICAgJi5ub3RpZmljYXRpb24tdmlzaWJsZXtcbiAgICAgICAgICAgIG9wYWNpdHk6IDE7XG4gICAgICAgIH1cblxuXG5cbiAgICAgICAgLy8gRElGRkVSRU5UUyBUSEVNRVNcbiAgICAgICAgc3Ryb25nW2NsYXNzXXtcblxuICAgICAgICAgICAgcGFkZGluZy1sZWZ0OiAxLjVlbTtcblxuICAgICAgICAgICAgJjpiZWZvcmV7XG4gICAgICAgICAgICAgICAgY29udGVudDogJyc7XG4gICAgICAgICAgICAgICAgZGlzcGxheTogaW5saW5lLWJsb2NrO1xuICAgICAgICAgICAgICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgICAgICAgICAgICAgICB0b3A6IDEuMmVtO1xuICAgICAgICAgICAgICAgIGxlZnQ6IDFlbTtcbiAgICAgICAgICAgICAgICB3aWR0aDogLjllbTtcbiAgICAgICAgICAgICAgICBoZWlnaHQ6IC45ZW07XG5cbiAgICAgICAgICAgICAgICBib3JkZXItcmFkaXVzOiA1MCUgLyA1MCU7XG4gICAgICAgICAgICAgICAgYm94LXNoYWRvdzogaW5zZXQgLTFweCA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BQUE7RUFBRSxnQkFBZ0IsRUFBRSxPQUFRO0NBQUk7O0FBN0Q1RCxJQUFJLEdBQUcsdUJBQXVCLENBZTFCLHFCQUFxQixDQTBCakIsTUFBTSxDQUFBLEFBQUEsS0FBQyxBQUFBLENBc0JGLEtBQUssQUFBQSxPQUFPLENBQUE7RUFBRSxnQkFBZ0IsRUFBRSxPQUFRO0NBQUk7O0FBL0R6RCxJQUFJLEdBQUcsdUJBQXVCLENBZTFCLHFCQUFxQixDQTBCakIsTUFBTSxDQUFBLEFBQUEsS0FBQyxBQUFBLENBd0JGLFFBQVEsQUFBQSxPQUFPLENBQUE7RUFBRSxnQkFBZ0IsRUFBRSxPQUFRO0NBQUk7O0FBakU1RCxJQUFJLEdBQUcsdUJBQXVCLENBZTFCLHFCQUFxQixDQTBCakIsTUFBTSxDQUFBLEFBQUEsS0FBQyxBQUFBLENBMEJGLE1BQU0sQUFBQSxPQUFPLENBQUE7RUFBRSxnQkFBZ0IsRUFBRSxPQUFRO0NBQUkiLAoJIm5hbWVzIjogW10KfQ== */ \ No newline at end of file +/*# sourceMappingURL=data:application/json;base64,ewoJInZlcnNpb24iOiAzLAoJImZpbGUiOiAiZXhwYW5kZWQuY3NzIiwKCSJzb3VyY2VzIjogWwoJCSIuLi9ub3RpZi5zY3NzIgoJXSwKCSJzb3VyY2VzQ29udGVudCI6IFsKCQkiYm9keSA+ICNub3RpZmljYXRpb24tY29udGFpbmVye1xuXG4gICAgZGlzcGxheTogZmxleDtcbiAgICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gICAgICAgIGJvdHRvbTogMDtcbiAgICAgICAgbGVmdDogMDtcbiAgICAgICAgd2lkdGg6IDEwMCU7XG5cbiAgICBmbGV4LWRpcmVjdGlvbjogY29sdW1uO1xuICAgIGZsZXgtd3JhcDogbm93cmFwO1xuXG4gICAgei1pbmRleDogMjAwO1xuICAgIHBvaW50ZXItZXZlbnRzOiBub25lO1xuXG5cbiAgICAubm90aWZpY2F0aW9uLWVsZW1lbnR7XG4gICAgICAgIGRpc3BsYXk6IGJsb2NrO1xuICAgICAgICBwb3NpdGlvbjogcmVsYXRpdmU7XG4gICAgICAgICAgICBtYXJnaW46IC4yZW0gYXV0bztcbiAgICAgICAgICAgIHBhZGRpbmc6IDAgMWVtO1xuXG4gICAgICAgIGJvcmRlci1yYWRpdXM6IDNweDtcbiAgICAgICAgYm9yZGVyOiAxcHggc29saWQgI2RkZDtcbiAgICAgICAgYm9yZGVyLWJvdHRvbTogMXB4IHNvbGlkICNiYmI7XG4gICAgICAgIGJveC1zaGFkb3c6IGluc2V0IDAgMCAxZW0gI2VlZTtcblxuICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjZmZmO1xuXG4gICAgICAgIHBvaW50ZXItZXZlbnRzOiBhbGw7XG4gICAgICAgIGN1cnNvcjogZGVmYXVsdDtcblxuICAgICAgICAvLyBFQ0FSVEVNRU5UIERVIEJPVFRPTSBQT1VSIExFIERFUk5JRVJcbiAgICAgICAgJjpsYXN0LWNoaWxke1xuICAgICAgICAgICAgbWFyZ2luLWJvdHRvbTogMWVtO1xuICAgICAgICB9XG5cblxuICAgICAgICAvLyBBTklNQVRJT04gREUgZmFkZUluICsgZmFkZU91dFxuICAgICAgICB0cmFuc2l0aW9uOiBvcGFjaXR5IC41cyBlYXNlLWluLW91dDtcbiAgICAgICAgb3BhY2l0eTogMDtcblxuICAgICAgICAmLm5vdGlmaWNhdGlvbi12aXNpYmxle1xuICAgICAgICAgICAgb3BhY2l0eTogMTtcbiAgICAgICAgfVxuXG5cbiAgICAgICAgLy8gQU5JTUFUSU9OIERFIEBIT1ZFUlxuICAgICAgICAmOmhvdmVye1xuICAgICAgICAgICAgYm94LXNoYWRvdzogaW5zZXQgMCAwIDFlbSAjZWVlLCAwIDAgMjBweCAjYWFhO1xuICAgICAgICB9XG5cblxuXG4gICAgICAgIC8vIERJRkZFUkVOVFMgVEhFTUVTXG4gICAgICAgIHN0cm9uZ1tjbGFzc117XG5cbiAgICAgICAgICAgIHRleHQtdHJhbnNmb3JtOiB1cHBlcmNhc2U7XG4gICAgICAgICAgICBwYWRkaW5nLWxlZnQ6IDEuNWVtO1xuXG4gICAgICAgICAgICAmOmJlZm9yZXtcbiAgICAgICAgICAgICAgICBjb250ZW50OiAnJztcbiAgICAgICAgICAgICAgICBkaXNwbGF5OiBpbmxpbmUtYmxvY2s7XG4gICAgICAgICAgICAgICAgcG9zaXRpb246IGFic29sdXRlO1xuICAgICAgICAgICAgICAgIHRvcDogMS4yZW07XG4gICAgICAgICAgICAgICAgbGVmdDogMWVtO1xuICAgICAgICAgICAgICAgIHdpZHRoOiAuOWVtO1xuICAgICAgICAgICAgICAgIGhlaWdodDogLjllbTtcblxuICAgICAgICAgICAgICAgIGJvcmRlci1yYWRpdXM6IDUwJSAvIDUwJTtcbiAgICAgICAgICAgICAgICBib3gtc2hhZG93OiBpbnNldCAtMXB4IDFweCAycHggcmdiYSg1MCwgNTAsIDUwLCAuNSk7XG5cbiAgICAgICAgICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiByZWQ7XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIC8vIFdBUk5JTkdcbiAgICAgICAgICAgICYud2FybmluZzpiZWZvcmV7IGJhY2tncm91bmQtY29sb3I6ICNkZDZhNDU7IH1cbiAgICAgICAgICAgIC8vIElORk9cbiAgICAgICAgICAgICYuaW5mbzpiZWZvcmV7IGJhY2tncm91bmQtY29sb3I6ICMyMTk1ZGE7IH1cbiAgICAgICAgICAgIC8vIFNVQ0NFU1NcbiAgICAgICAgICAgICYuc3VjY2VzczpiZWZvcmV7IGJhY2tncm91bmQtY29sb3I6ICM1ZmNhNGE7IH1cbiAgICAgICAgICAgIC8vIEVSUk9SXG4gICAgICAgICAgICAmLmVycm9yOmJlZm9yZXsgYmFja2dyb3VuZC1jb2xvcjogI2Q5NDc0NzsgfVxuICAgICAgICB9XG5cblxuICAgIH1cblxufVxuIgoJXSwKCSJtYXBwaW5ncyI6ICJ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kYsUUFBUSxBQUFBLE9BQU8sQ0FBQTtFQUFFLGdCQUFnQixFQUFFLE9BQVE7Q0FBSTs7QUEvRTVELElBQUksR0FBRyx1QkFBdUIsQ0FlMUIscUJBQXFCLENBdUNqQixNQUFNLENBQUEsQUFBQSxLQUFDLEFBQUEsQ0EyQkYsTUFBTSxBQUFBLE9BQU8sQ0FBQTtFQUFFLGdCQUFnQixFQUFFLE9BQVE7Q0FBSSIsCgkibmFtZXMiOiBbXQp9 */ \ No newline at end of file diff --git a/css/notif/expanded.css.map b/css/notif/expanded.css.map index c9c5462..13112f6 100644 --- a/css/notif/expanded.css.map +++ b/css/notif/expanded.css.map @@ -5,8 +5,8 @@ "../notif.scss" ], "sourcesContent": [ - "body > #notification-container{\n\n display: flex;\n position: absolute;\n bottom: 0;\n left: 0;\n width: 100%;\n\n flex-direction: column;\n flex-wrap: nowrap;\n\n z-index: 200;\n pointer-events: none;\n\n\n .notification-element{\n display: block;\n position: relative;\n margin: .2em auto;\n padding: 0 1em;\n\n border-radius: 3px;\n border: 1px solid #ddd;\n border-bottom: 1px solid #bbb;\n box-shadow: inset 0 0 1em #eee;\n\n background-color: #fff;\n\n pointer-events: all;\n\n // ANIMATION DE fadeIn + fadeOut\n transition: opacity .5s ease-in-out;\n opacity: 0;\n\n &.notification-visible{\n opacity: 1;\n }\n\n\n\n // DIFFERENTS THEMES\n strong[class]{\n\n padding-left: 1.5em;\n\n &:before{\n content: '';\n display: inline-block;\n position: absolute;\n top: 1.2em;\n left: 1em;\n width: .9em;\n height: .9em;\n\n border-radius: 50% / 50%;\n box-shadow: inset -1px 1px 2px rgba(50, 50, 50, .5);\n\n background-color: red;\n }\n\n // WARNING\n &.warning:before{ background-color: #dd6a45; }\n // INFO\n &.info:before{ background-color: #2195da; }\n // SUCCESS\n &.success:before{ background-color: #5fca4a; }\n // ERROR\n &.error:before{ background-color: #d94747; }\n }\n\n\n }\n\n}\n" + "body > #notification-container{\n\n display: flex;\n position: absolute;\n bottom: 0;\n left: 0;\n width: 100%;\n\n flex-direction: column;\n flex-wrap: nowrap;\n\n z-index: 200;\n pointer-events: none;\n\n\n .notification-element{\n display: block;\n position: relative;\n margin: .2em auto;\n padding: 0 1em;\n\n border-radius: 3px;\n border: 1px solid #ddd;\n border-bottom: 1px solid #bbb;\n box-shadow: inset 0 0 1em #eee;\n\n background-color: #fff;\n\n pointer-events: all;\n cursor: default;\n\n // ECARTEMENT DU BOTTOM POUR LE DERNIER\n &:last-child{\n margin-bottom: 1em;\n }\n\n\n // ANIMATION DE fadeIn + fadeOut\n transition: opacity .5s ease-in-out;\n opacity: 0;\n\n &.notification-visible{\n opacity: 1;\n }\n\n\n // ANIMATION DE @HOVER\n &:hover{\n box-shadow: inset 0 0 1em #eee, 0 0 20px #aaa;\n }\n\n\n\n // DIFFERENTS THEMES\n strong[class]{\n\n text-transform: uppercase;\n padding-left: 1.5em;\n\n &:before{\n content: '';\n display: inline-block;\n position: absolute;\n top: 1.2em;\n left: 1em;\n width: .9em;\n height: .9em;\n\n border-radius: 50% / 50%;\n box-shadow: inset -1px 1px 2px rgba(50, 50, 50, .5);\n\n background-color: red;\n }\n\n // WARNING\n &.warning:before{ background-color: #dd6a45; }\n // INFO\n &.info:before{ background-color: #2195da; }\n // SUCCESS\n &.success:before{ background-color: #5fca4a; }\n // ERROR\n &.error:before{ background-color: #d94747; }\n }\n\n\n }\n\n}\n" ], - "mappings": "AAAA,IAAI,GAAG,uBAAuB,CAAA;EAE1B,OAAO,EAAE,IAAK;EACd,QAAQ,EAAE,QAAS;EACf,MAAM,EAAE,CAAE;EACV,IAAI,EAAE,CAAE;EACR,KAAK,EAAE,IAAK;EAEhB,cAAc,EAAE,MAAO;EACvB,SAAS,EAAE,MAAO;EAElB,OAAO,EAAE,GAAI;EACb,cAAc,EAAE,IAAK;CA6DxB;;AAzED,IAAI,GAAG,uBAAuB,CAe1B,qBAAqB,CAAA;EACjB,OAAO,EAAE,KAAM;EACf,QAAQ,EAAE,QAAS;EACf,M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A,KAAC,AAAA,EAAM;EAET,cAAc,EAAE,SAAU;EAC1B,YAAY,EAAE,KAAM;CAyBvB;;AAlFT,IAAI,GAAG,uBAAuB,CAe1B,qBAAqB,CAuCjB,MAAM,CAAA,AAAA,KAAC,AAAA,CAKF,OAAO,CAAA;EACJ,OAAO,EAAE,EAAG;EACZ,OAAO,EAAE,YAAa;EACtB,QAAQ,EAAE,QAAS;EACnB,GAAG,EAAE,KAAM;EACX,IAAI,EAAE,GAAI;EACV,KAAK,EAAE,IAAK;EACZ,MAAM,EAAE,IAAK;EAEb,aAAa,EAAE,SAAU;EACzB,UAAU,EAAE,KAAK,CAAE,IAAG,CAAC,GAAG,CAAC,GAAG,CAAC,qBAAI;EAEnC,gBAAgB,EAAE,GAAI;CACzB;;AAxEb,IAAI,GAAG,uBAAuB,CAe1B,qBAAqB,CAuCjB,MAAM,CAAA,AAAA,KAAC,AAAA,CAqBF,QAAQ,AAAA,OAAO,CAAA;EAAE,gBAAgB,EAAE,OAAQ;CAAI;;AA3E5D,IAAI,GAAG,uBAAuB,CAe1B,qBAAqB,CAuCjB,MAAM,CAAA,AAAA,KAAC,AAAA,CAuBF,KAAK,AAAA,OAAO,CAAA;EAAE,gBAAgB,EAAE,OAAQ;CAAI;;AA7EzD,IAAI,GAAG,uBAAuB,CAe1B,qBAAqB,CAuCjB,MAAM,CAAA,AAAA,KAAC,AAAA,CAyBF,QAAQ,AAAA,OAAO,CAAA;EAAE,gBAAgB,EAAE,OAAQ;CAAI;;AA/E5D,IAAI,GAAG,uBAAuB,CAe1B,qBAAqB,CAuCjB,MAAM,CAAA,AAAA,KAAC,AAAA,CA2BF,MAAM,AAAA,OAAO,CAAA;EAAE,gBAAgB,EAAE,OAAQ;CAAI", "names": [] } \ No newline at end of file diff --git a/css/notif/min.css b/css/notif/min.css index 8772ae4..fce6f04 100644 --- a/css/notif/min.css +++ b/css/notif/min.css @@ -1,3 +1,3 @@ -body>#notification-container{display:flex;position:absolute;bottom:0;left:0;width:100%;flex-direction:column;flex-wrap:nowrap;z-index:200;pointer-events:none}body>#notification-container .notification-element{display:block;position:relative;margin:.2em auto;padding:0 1em;border-radius:3px;border:1px solid #ddd;border-bottom:1px solid #bbb;box-shadow:inset 0 0 1em #eee;background-color:#fff;pointer-events:all;transition:opacity .5s ease-in-out;opacity:0}body>#notification-container .notification-element.notification-visible{opacity:1}body>#notification-container .notification-element strong[class]{padding-left:1.5em}body>#notification-container .notification-element strong[class]:before{content:'';display:inline-block;position:absolute;top:1.2em;left:1em;width:.9em;height:.9em;border-radius:50% / 50%;box-shadow:inset -1px 1px 2px rgba(50,50,50,0.5);background-color:red}body>#notification-container .notification-element strong[class].warning:before{background-color:#dd6a45}body>#notification-container .notification-element strong[class].info:before{background-color:#2195da}body>#notification-container .notification-element strong[class].success:before{background-color:#5fca4a}body>#notification-container .notification-element strong[class].error:before{background-color:#d94747} +body>#notification-container{display:flex;position:absolute;bottom:0;left:0;width:100%;flex-direction:column;flex-wrap:nowrap;z-index:200;pointer-events:none}body>#notification-container .notification-element{display:block;position:relative;margin:.2em auto;padding:0 1em;border-radius:3px;border:1px solid #ddd;border-bottom:1px solid #bbb;box-shadow:inset 0 0 1em #eee;background-color:#fff;pointer-events:all;cursor:default;transition:opacity .5s ease-in-out;opacity:0}body>#notification-container .notification-element:last-child{margin-bottom:1em}body>#notification-container .notification-element.notification-visible{opacity:1}body>#notification-container .notification-element:hover{box-shadow:inset 0 0 1em #eee, 0 0 20px #aaa}body>#notification-container .notification-element strong[class]{text-transform:uppercase;padding-left:1.5em}body>#notification-container .notification-element strong[class]:before{content:'';display:inline-block;position:absolute;top:1.2em;left:1em;width:.9em;height:.9em;border-radius:50% / 50%;box-shadow:inset -1px 1px 2px rgba(50,50,50,0.5);background-color:red}body>#notification-container .notification-element strong[class].warning:before{background-color:#dd6a45}body>#notification-container .notification-element strong[class].info:before{background-color:#2195da}body>#notification-container .notification-element strong[class].success:before{background-color:#5fca4a}body>#notification-container .notification-element strong[class].error:before{background-color:#d94747} -/*# sourceMappingURL=data:application/json;base64,ewoJInZlcnNpb24iOiAzLAoJImZpbGUiOiAibWluLmNzcyIsCgkic291cmNlcyI6IFsKCQkiLi4vbm90aWYuc2NzcyIKCV0sCgkic291cmNlc0NvbnRlbnQiOiBbCgkJImJvZHkgPiAjbm90aWZpY2F0aW9uLWNvbnRhaW5lcntcblxuICAgIGRpc3BsYXk6IGZsZXg7XG4gICAgcG9zaXRpb246IGFic29sdXRlO1xuICAgICAgICBib3R0b206IDA7XG4gICAgICAgIGxlZnQ6IDA7XG4gICAgICAgIHdpZHRoOiAxMDAlO1xuXG4gICAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjtcbiAgICBmbGV4LXdyYXA6IG5vd3JhcDtcblxuICAgIHotaW5kZXg6IDIwMDtcbiAgICBwb2ludGVyLWV2ZW50czogbm9uZTtcblxuXG4gICAgLm5vdGlmaWNhdGlvbi1lbGVtZW50e1xuICAgICAgICBkaXNwbGF5OiBibG9jaztcbiAgICAgICAgcG9zaXRpb246IHJlbGF0aXZlO1xuICAgICAgICAgICAgbWFyZ2luOiAuMmVtIGF1dG87XG4gICAgICAgICAgICBwYWRkaW5nOiAwIDFlbTtcblxuICAgICAgICBib3JkZXItcmFkaXVzOiAzcHg7XG4gICAgICAgIGJvcmRlcjogMXB4IHNvbGlkICNkZGQ7XG4gICAgICAgIGJvcmRlci1ib3R0b206IDFweCBzb2xpZCAjYmJiO1xuICAgICAgICBib3gtc2hhZG93OiBpbnNldCAwIDAgMWVtICNlZWU7XG5cbiAgICAgICAgYmFja2dyb3VuZC1jb2xvcjogI2ZmZjtcblxuICAgICAgICBwb2ludGVyLWV2ZW50czogYWxsO1xuXG4gICAgICAgIC8vIEFOSU1BVElPTiBERSBmYWRlSW4gKyBmYWRlT3V0XG4gICAgICAgIHRyYW5zaXRpb246IG9wYWNpdHkgLjVzIGVhc2UtaW4tb3V0O1xuICAgICAgICBvcGFjaXR5OiAwO1xuXG4gICAgICAgICYubm90aWZpY2F0aW9uLXZpc2libGV7XG4gICAgICAgICAgICBvcGFjaXR5OiAxO1xuICAgICAgICB9XG5cblxuXG4gICAgICAgIC8vIERJRkZFUkVOVFMgVEhFTUVTXG4gICAgICAgIHN0cm9uZ1tjbGFzc117XG5cbiAgICAgICAgICAgIHBhZGRpbmctbGVmdDogMS41ZW07XG5cbiAgICAgICAgICAgICY6YmVmb3Jle1xuICAgICAgICAgICAgICAgIGNvbnRlbnQ6ICcnO1xuICAgICAgICAgICAgICAgIGRpc3BsYXk6IGlubGluZS1ibG9jaztcbiAgICAgICAgICAgICAgICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gICAgICAgICAgICAgICAgdG9wOiAxLjJlbTtcbiAgICAgICAgICAgICAgICBsZWZ0OiAxZW07XG4gICAgICAgICAgICAgICAgd2lkdGg6IC45ZW07XG4gICAgICAgICAgICAgICAgaGVpZ2h0OiAuOWVtO1xuXG4gICAgICAgICAgICAgICAgYm9yZGVyLXJhZGl1czogNTAlIC8gNTAlO1xuICAgICAgICAgICAgICAgIGJveC1zaGFkb3c6IGluc2V0IC0xcHggMXB4IDJweCByZ2JhKDUwLCA1MCwgNTAsIC41KTtcblxuICAgICAgICAgICAgICAgIGJhY2tncm91bmQtY29sb3I6IHJlZDtcbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgLy8gV0FSTklOR1xuICAgICAgICAgICAgJi53YXJuaW5nOmJlZm9yZXsgYmFja2dyb3VuZC1jb2xvcjogI2RkNmE0NTsgfVxuICAgICAgICAgICAgLy8gSU5GT1xuICAgICAgICAgICAgJi5pbmZvOmJlZm9yZXsgYmFja2dyb3VuZC1jb2xvcjogIzIxOTVkYTsgfVxuICAgICAgICAgICAgLy8gU1VDQ0VTU1xuICAgICAgICAgICAgJi5zdWNjZXNzOmJlZm9yZXsgYmFja2dyb3VuZC1jb2xvcjogIzVmY2E0YTsgfVxuICAgICAgICAgICAgLy8gRVJST1JcbiAgICAgICAgICAgICYuZXJyb3I6YmVmb3JleyBiYW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BTSxBQUFBLE9BQU8sQUFBQSxDQUFFLGdCQUFnQixDQUFFLE9BQVEsQ0FBSSIsCgkibmFtZXMiOiBbXQp9 */ \ No newline at end of file +/*# sourceMappingURL=data:application/json;base64,ewoJInZlcnNpb24iOiAzLAoJImZpbGUiOiAibWluLmNzcyIsCgkic291cmNlcyI6IFsKCQkiLi4vbm90aWYuc2NzcyIKCV0sCgkic291cmNlc0NvbnRlbnQiOiBbCgkJImJvZHkgPiAjbm90aWZpY2F0aW9uLWNvbnRhaW5lcntcblxuICAgIGRpc3BsYXk6IGZsZXg7XG4gICAgcG9zaXRpb246IGFic29sdXRlO1xuICAgICAgICBib3R0b206IDA7XG4gICAgICAgIGxlZnQ6IDA7XG4gICAgICAgIHdpZHRoOiAxMDAlO1xuXG4gICAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjtcbiAgICBmbGV4LXdyYXA6IG5vd3JhcDtcblxuICAgIHotaW5kZXg6IDIwMDtcbiAgICBwb2ludGVyLWV2ZW50czogbm9uZTtcblxuXG4gICAgLm5vdGlmaWNhdGlvbi1lbGVtZW50e1xuICAgICAgICBkaXNwbGF5OiBibG9jaztcbiAgICAgICAgcG9zaXRpb246IHJlbGF0aXZlO1xuICAgICAgICAgICAgbWFyZ2luOiAuMmVtIGF1dG87XG4gICAgICAgICAgICBwYWRkaW5nOiAwIDFlbTtcblxuICAgICAgICBib3JkZXItcmFkaXVzOiAzcHg7XG4gICAgICAgIGJvcmRlcjogMXB4IHNvbGlkICNkZGQ7XG4gICAgICAgIGJvcmRlci1ib3R0b206IDFweCBzb2xpZCAjYmJiO1xuICAgICAgICBib3gtc2hhZG93OiBpbnNldCAwIDAgMWVtICNlZWU7XG5cbiAgICAgICAgYmFja2dyb3VuZC1jb2xvcjogI2ZmZjtcblxuICAgICAgICBwb2ludGVyLWV2ZW50czogYWxsO1xuICAgICAgICBjdXJzb3I6IGRlZmF1bHQ7XG5cbiAgICAgICAgLy8gRUNBUlRFTUVOVCBEVSBCT1RUT00gUE9VUiBMRSBERVJOSUVSXG4gICAgICAgICY6bGFzdC1jaGlsZHtcbiAgICAgICAgICAgIG1hcmdpbi1ib3R0b206IDFlbTtcbiAgICAgICAgfVxuXG5cbiAgICAgICAgLy8gQU5JTUFUSU9OIERFIGZhZGVJbiArIGZhZGVPdXRcbiAgICAgICAgdHJhbnNpdGlvbjogb3BhY2l0eSAuNXMgZWFzZS1pbi1vdXQ7XG4gICAgICAgIG9wYWNpdHk6IDA7XG5cbiAgICAgICAgJi5ub3RpZmljYXRpb24tdmlzaWJsZXtcbiAgICAgICAgICAgIG9wYWNpdHk6IDE7XG4gICAgICAgIH1cblxuXG4gICAgICAgIC8vIEFOSU1BVElPTiBERSBASE9WRVJcbiAgICAgICAgJjpob3ZlcntcbiAgICAgICAgICAgIGJveC1zaGFkb3c6IGluc2V0IDAgMCAxZW0gI2VlZSwgMCAwIDIwcHggI2FhYTtcbiAgICAgICAgfVxuXG5cblxuICAgICAgICAvLyBESUZGRVJFTlRTIFRIRU1FU1xuICAgICAgICBzdHJvbmdbY2xhc3Nde1xuXG4gICAgICAgICAgICB0ZXh0LXRyYW5zZm9ybTogdXBwZXJjYXNlO1xuICAgICAgICAgICAgcGFkZGluZy1sZWZ0OiAxLjVlbTtcblxuICAgICAgICAgICAgJjpiZWZvcmV7XG4gICAgICAgICAgICAgICAgY29udGVudDogJyc7XG4gICAgICAgICAgICAgICAgZGlzcGxheTogaW5saW5lLWJsb2NrO1xuICAgICAgICAgICAgICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgICAgICAgICAgICAgICB0b3A6IDEuMmVtO1xuICAgICAgICAgICAgICAgIGxlZnQ6IDFlbTtcbiAgICAgICAgICAgICAgICB3aWR0aDogLjllbTtcbiAgICAgICAgICAgICAgICBoZWlnaHQ6IC45ZW07XG5cbiAgICAgICAgICAgICAgICBib3JkZXItcmFkaXVzOiA1MCUgLyA1MCU7XG4gICAgICAgICAgICAgICAgYm94LXNoYWRvdzogaW5zZXQg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RWIsYUFBYSxDQUFFLFNBQVUsQ0FDekIsVUFBVSxDQUFFLEtBQUssQ0FBRSxJQUFHLENBQUMsR0FBRyxDQUFDLEdBQUcsQ0FBQyxrQkFBSSxDQUVuQyxnQkFBZ0IsQ0FBRSxHQUFJLENBQ3pCLEFBeEViLElBQUksQ0FBRyx1QkFBdUIsQ0FlMUIscUJBQXFCLENBdUNqQixNQUFNLENBQUEsQUFBQSxLQUFDLEFBQUEsQ0FxQkYsUUFBUSxBQUFBLE9BQU8sQUFBQSxDQUFFLGdCQUFnQixDQUFFLE9BQVEsQ0FBSSxBQTNFNUQsSUFBSSxDQUFHLHVCQUF1QixDQWUxQixxQkFBcUIsQ0F1Q2pCLE1BQU0sQ0FBQSxBQUFBLEtBQUMsQUFBQSxDQXVCRixLQUFLLEFBQUEsT0FBTyxBQUFBLENBQUUsZ0JBQWdCLENBQUUsT0FBUSxDQUFJLEFBN0V6RCxJQUFJLENBQUcsdUJBQXVCLENBZTFCLHFCQUFxQixDQXVDakIsTUFBTSxDQUFBLEFBQUEsS0FBQyxBQUFBLENBeUJGLFFBQVEsQUFBQSxPQUFPLEFBQUEsQ0FBRSxnQkFBZ0IsQ0FBRSxPQUFRLENBQUksQUEvRTVELElBQUksQ0FBRyx1QkFBdUIsQ0FlMUIscUJBQXFCLENBdUNqQixNQUFNLENBQUEsQUFBQSxLQUFDLEFBQUEsQ0EyQkYsTUFBTSxBQUFBLE9BQU8sQUFBQSxDQUFFLGdCQUFnQixDQUFFLE9BQVEsQ0FBSSIsCgkibmFtZXMiOiBbXQp9 */ \ No newline at end of file diff --git a/css/notif/min.css.map b/css/notif/min.css.map index f249898..00ba3bd 100644 --- a/css/notif/min.css.map +++ b/css/notif/min.css.map @@ -5,8 +5,8 @@ "../notif.scss" ], "sourcesContent": [ - "body > #notification-container{\n\n display: flex;\n position: absolute;\n bottom: 0;\n left: 0;\n width: 100%;\n\n flex-direction: column;\n flex-wrap: nowrap;\n\n z-index: 200;\n pointer-events: none;\n\n\n .notification-element{\n display: block;\n position: relative;\n margin: .2em auto;\n padding: 0 1em;\n\n border-radius: 3px;\n border: 1px solid #ddd;\n border-bottom: 1px solid #bbb;\n box-shadow: inset 0 0 1em #eee;\n\n background-color: #fff;\n\n pointer-events: all;\n\n // ANIMATION DE fadeIn + fadeOut\n transition: opacity .5s ease-in-out;\n opacity: 0;\n\n &.notification-visible{\n opacity: 1;\n }\n\n\n\n // DIFFERENTS THEMES\n strong[class]{\n\n padding-left: 1.5em;\n\n &:before{\n content: '';\n display: inline-block;\n position: absolute;\n top: 1.2em;\n left: 1em;\n width: .9em;\n height: .9em;\n\n border-radius: 50% / 50%;\n box-shadow: inset -1px 1px 2px rgba(50, 50, 50, .5);\n\n background-color: red;\n }\n\n // WARNING\n &.warning:before{ background-color: #dd6a45; }\n // INFO\n &.info:before{ background-color: #2195da; }\n // SUCCESS\n &.success:before{ background-color: #5fca4a; }\n // ERROR\n &.error:before{ background-color: #d94747; }\n }\n\n\n }\n\n}\n" + "body > #notification-container{\n\n display: flex;\n position: absolute;\n bottom: 0;\n left: 0;\n width: 100%;\n\n flex-direction: column;\n flex-wrap: nowrap;\n\n z-index: 200;\n pointer-events: none;\n\n\n .notification-element{\n display: block;\n position: relative;\n margin: .2em auto;\n padding: 0 1em;\n\n border-radius: 3px;\n border: 1px solid #ddd;\n border-bottom: 1px solid #bbb;\n box-shadow: inset 0 0 1em #eee;\n\n background-color: #fff;\n\n pointer-events: all;\n cursor: default;\n\n // ECARTEMENT DU BOTTOM POUR LE DERNIER\n &:last-child{\n margin-bottom: 1em;\n }\n\n\n // ANIMATION DE fadeIn + fadeOut\n transition: opacity .5s ease-in-out;\n opacity: 0;\n\n &.notification-visible{\n opacity: 1;\n }\n\n\n // ANIMATION DE @HOVER\n &:hover{\n box-shadow: inset 0 0 1em #eee, 0 0 20px #aaa;\n }\n\n\n\n // DIFFERENTS THEMES\n strong[class]{\n\n text-transform: uppercase;\n padding-left: 1.5em;\n\n &:before{\n content: '';\n display: inline-block;\n position: absolute;\n top: 1.2em;\n left: 1em;\n width: .9em;\n height: .9em;\n\n border-radius: 50% / 50%;\n box-shadow: inset -1px 1px 2px rgba(50, 50, 50, .5);\n\n background-color: red;\n }\n\n // WARNING\n &.warning:before{ background-color: #dd6a45; }\n // INFO\n &.info:before{ background-color: #2195da; }\n // SUCCESS\n &.success:before{ background-color: #5fca4a; }\n // ERROR\n &.error:before{ background-color: #d94747; }\n }\n\n\n }\n\n}\n" ], - "mappings": "AAAA,IAAI,CAAG,uBAAuB,AAAA,CAE1B,OAAO,CAAE,IAAK,CACd,QAAQ,CAAE,QAAS,CACf,MAAM,CAAE,CAAE,CACV,IAAI,CAAE,CAAE,CACR,KAAK,CAAE,IAAK,CAEhB,cAAc,CAAE,MAAO,CACvB,SAAS,CAAE,MAAO,CAElB,OAAO,CAAE,GAAI,CACb,cAAc,CAAE,IAAK,CA6DxB,AAzED,IAAI,CAAG,uBAAuB,CAe1B,qBAAqB,AAAA,CACjB,OAAO,CAAE,KAAM,CACf,QAAQ,CAAE,QAAS,CACf,MAAM,CAAE,SAAU,CAClB,OAAO,CAAE,KAAM,CAEnB,aAAa,CAAE,GAAI,CACnB,MAAM,CAAE,cAAe,CACvB,aAAa,CAAE,cAAe,CAC9B,UAAU,CAAE,kBAAmB,CAE/B,gBAAgB,CAAE,IAAK,CAEvB,cAAc,CAAE,GAAI,CAGpB,UAAU,CAAE,uBAAwB,CACpC,OAAO,CAAE,CAAE,CAuCd,AAvEL,IAAI,CAAG,uBAAuB,CAe1B,qBAAqB,AAmBhB,qBAAqB,AAAA,CAClB,OAAO,CAAE,CAAE,CACd,AApCT,IAAI,CAAG,uBAAuB,CAe1B,qBAAqB,CA0BjB,MAAM,CAAA,AAAA,KAAC,AAAA,CAAM,CAET,YAAY,CAAE,KAAM,CAyBvB,AApET,IAAI,CAAG,uBAAuB,CAe1B,qBAAqB,CA0BjB,MAAM,CAAA,AAAA,KAAC,AAAA,CAIF,OAAO,AAAA,CACJ,OA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A,CAAE,gBAAgB,CAAE,OAAQ,CAAI,AA3E5D,IAAI,CAAG,uBAAuB,CAe1B,qBAAqB,CAuCjB,MAAM,CAAA,AAAA,KAAC,AAAA,CAuBF,KAAK,AAAA,OAAO,AAAA,CAAE,gBAAgB,CAAE,OAAQ,CAAI,AA7EzD,IAAI,CAAG,uBAAuB,CAe1B,qBAAqB,CAuCjB,MAAM,CAAA,AAAA,KAAC,AAAA,CAyBF,QAAQ,AAAA,OAAO,AAAA,CAAE,gBAAgB,CAAE,OAAQ,CAAI,AA/E5D,IAAI,CAAG,uBAAuB,CAe1B,qBAAqB,CAuCjB,MAAM,CAAA,AAAA,KAAC,AAAA,CA2BF,MAAM,AAAA,OAAO,AAAA,CAAE,gBAAgB,CAAE,OAAQ,CAAI", "names": [] } \ No newline at end of file diff --git a/doc/sample-long.xml b/doc/sample-long.xml new file mode 100644 index 0000000..8757312 --- /dev/null +++ b/doc/sample-long.xml @@ -0,0 +1,1001 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doc/sample.xml b/doc/sample.xml index 8757312..b615998 100644 --- a/doc/sample.xml +++ b/doc/sample.xml @@ -1,937 +1,5 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/js/action-script-min.js b/js/action-script-min.js index a01f3fc..ed93231 100644 --- a/js/action-script-min.js +++ b/js/action-script-min.js @@ -1,4 +1,6 @@ -var DOM={WRAPPER:$("body > #WRAPPER"),HEADER:$("body > #WRAPPER > #HEADER"),MENUSIDE:$("body > #WRAPPER > #MENU-SIDE"),CONTAINER:$("body > #WRAPPER > #CONTAINER")},pageManager;api=new APIClass("/api/"); +var DOM={WRAPPER:$("body > #WRAPPER"),HEADER:$("body > #WRAPPER > #HEADER"),MENUSIDE:$("body > #WRAPPER > #MENU-SIDE"),CONTAINER:$("body > #WRAPPER > #CONTAINER")},pageManager;api=new APIClass("/api/");Notification=new NotificationClass($("#notification-container"));Notification.defaultTimeout=4E3; +Notification.errorCodes={"-1":"Erreur de r\u00e9seau, veuillez recharger la page et r\u00e9essayer",0:"Erreur interne",1:"Erreur interne",2:"Erreur interne",3:"Le fichier est introuvable",4:"Erreur interne",5:"Erreur interne",6:"Erreur interne",7:"Erreur interne",8:"Erreur interne",9:"Certaines donn\u00e9es sont manquantes",10:"Erreur interne",11:"Erreur interne",12:"Erreur interne",13:"Erreur interne",14:"Erreur interne",15:"Erreur interne",16:"Vous n'avez pas la permission d'effectuer cette action", +17:"Le t\u00e9l\u00e9chargement a \u00e9chou\u00e9",18:"Le fichier est invalide (format incorrect)"};lsi.setStorage(sessionStorage); function navSubMenu(a){var c=$("#MENU-SIDE > span[data-link="+pageManager.page+'] + div.sub > span[data-sublink="'+pageManager.vars[0]+'"]'),b=null,b=a instanceof Element?a:null,b="string"==typeof a?$("#MENU-SIDE > span[data-link="+pageManager.page+'] + div.sub > span[data-sublink="'+a+'"]'):b,b=null==b?$("#MENU-SIDE > span[data-link="+pageManager.page+"] + div.sub > span[data-sublink]"):b;if(null==b)return!1;null!=c&&c.remClass("active");c=$$("#CONTAINER > section[data-sublink].active");for(a=0;a< c.length;a++)c[a].remClass("active");if(null!=b)for(b.addClass("active"),c=$$('#CONTAINER > section[data-sublink="'+b.getData("sublink")+'"]'),a=0;a #MENU-SIDE > span[data-link="'+pageManager.page+'"]'),b=null,b=a instanceof Element?a:null,b="string"==typeof a?$('#WRAPPER > #MENU-SIDE > span[data-link="'+a+'"]'):b,b=null==b?$('#WRAPPER > #MENU-SIDE > span[data-link="'+pageManager.pagelist[0]+'"]'):b;if(null==b)return!1;null!=c&&c.remClass("active");null!=b&&b.addClass("active");b.getData("link")&&(DOM.HEADER.addClass("loading"),pageManager.setPage(b.getData("link")),pageManager.activeXHR.addEventListener("loadend", diff --git a/js/action-script.js b/js/action-script.js index b56c5c9..5099ca8 100755 --- a/js/action-script.js +++ b/js/action-script.js @@ -12,6 +12,38 @@ var pageManager; // On cree une instance de l'api api = new APIClass('/api/'); +// On crée une instance du gestionnaire des notifications +Notification = new NotificationClass( $('#notification-container') ); +// Temps d'une notification : ~4s +Notification.defaultTimeout = 4000; + +// Définition des codes d'erreurs +Notification.errorCodes = { + '-1': 'Erreur de réseau, veuillez recharger la page et réessayer', + 0: 'Erreur interne', + 1: 'Erreur interne', + 2: 'Erreur interne', + 3: 'Le fichier est introuvable', + 4: 'Erreur interne', + 5: 'Erreur interne', + 6: 'Erreur interne', + 7: 'Erreur interne', + 8: 'Erreur interne', + 9: 'Certaines données sont manquantes', + 10: 'Erreur interne', + 11: 'Erreur interne', + 12: 'Erreur interne', + 13: 'Erreur interne', + 14: 'Erreur interne', + 15: 'Erreur interne', + 16: 'Vous n\'avez pas la permission d\'effectuer cette action', + 17: 'Le téléchargement a échoué', + 18: 'Le fichier est invalide (format incorrect)' +}; + +// On définit qu'on veut utiliser le 'sessionStorage' +lsi.setStorage(sessionStorage); + diff --git a/js/lib/local-storage-interface-min.js b/js/lib/local-storage-interface-min.js index 1471e61..30b41a8 100644 --- a/js/lib/local-storage-interface-min.js +++ b/js/lib/local-storage-interface-min.js @@ -1,5 +1,5 @@ function localStorageInterface(){} -localStorageInterface.prototype={dataset:[],dataset_keys:[],set:function(a,b,d){b=b.toString();var c=this.dataset.indexOf(a);if(-1==c)return!1;-1==this.dataset_keys[c].indexOf(b)&&(this.dataset_keys[c].push(b),localStorage.setItem(a,JSON.stringify(this.dataset_keys[c])));localStorage.setItem(a+"_"+b,JSON.stringify(d));return!0},get:function(a,b){b=b.toString();return-1==this.dataset.indexOf(a)?!1:JSON.parse(localStorage.getItem(a+"_"+b))},del:function(a,b){b=b.toString();var d=this.dataset.indexOf(a); -if(-1==d)return!1;var c=this.dataset_keys[d].indexOf(b);if(-1==c)return!1;localStorage.removeItem(a+"_"+b);this.dataset_keys[d].splice(c,1);localStorage.setItem(a,JSON.stringify(this.dataset_keys[d]));return!0},createDataset:function(a){if("string"!=typeof a)return!1;if(-1 -1 ) return true; /* (3) On charge le dataset s'il existe */ - var storedDataset = localStorage.getItem(name); + var storedDataset = this.storage.getItem(name); if( storedDataset != null ){ // Si le dataset existe, on charge les données this.dataset.push(name); @@ -116,7 +127,7 @@ localStorageInterface.prototype = { this.dataset.push(name); this.dataset_keys.push([]); - localStorage.setItem(name, JSON.stringify([])); + this.storage.setItem(name, JSON.stringify([])); } @@ -218,7 +229,7 @@ localStorageInterface.prototype = { /* (3) Par précaution, on supprime les clés du dataset */ this.dataset_keys[index] = []; - localStorage.setItem(dataset, JSON.stringify(this.dataset_keys[index])); + this.storage.setItem(dataset, JSON.stringify(this.dataset_keys[index])); /* (4) On retourne que tout s'est bien passé */ return true; diff --git a/js/lib/notif-min.js b/js/lib/notif-min.js index 9eb84d7..d06b90b 100644 --- a/js/lib/notif-min.js +++ b/js/lib/notif-min.js @@ -1,4 +1,5 @@ -var NotificationClass=function(a){this.container=a};NotificationClass.prototype={container:this.container,stack:[],types:["warning","info","success","error"],defaultTimeout:2E3};NotificationClass.prototype.pushStack=function(a,d,e){if(!(a instanceof Array&&e instanceof Array))return null;var c=-1,b;for(b in a)if(-1'+d+": "+e+"

";this.container.appendChild(b.element);var f=this.pushStack(this.stack,b,[null]);b.element.id=f;var g=this;b.element.className= -"notification-element notification-visible";setTimeout(function(){b.element.className="notification-element"},500+c);b.timeout=setTimeout(function(){g.hide(f)},500+c+500);b.element.addEventListener("click",function(a){g.hide(f)},!1)}; +NotificationClass.prototype.show=function(a,c,b,e){a=-1'+c+": "+b+"

";this.container.appendChild(d.element);var f=this.pushStack(this.stack, +d,[null]);d.element.id=f;var g=this;d.element.className="notification-element notification-visible";setTimeout(function(){d.element.className="notification-element"},500+e);d.timeout=setTimeout(function(){g.hide(f)},500+e+500);d.element.addEventListener("click",function(a){g.hide(f)},!1);return d.element};NotificationClass.prototype.warning=function(a,c,b){return this.show("warning",a,c,b)};NotificationClass.prototype.info=function(a,c,b){return this.show("info",a,c,b)}; +NotificationClass.prototype.success=function(a,c,b){return this.show("success",a,c,b)};NotificationClass.prototype.error=function(a,c,b){return this.show("error",a,c,b)}; diff --git a/js/lib/notif.js b/js/lib/notif.js index 8796051..81322ae 100644 --- a/js/lib/notif.js +++ b/js/lib/notif.js @@ -18,7 +18,8 @@ NotificationClass.prototype = { 'success', 'error' ], - defaultTimeout: 2000 // Temps d'apparition par défaut + defaultTimeout: 2000, // Temps d'apparition par défaut + errorCodes: {} // codes d'erreurs sous la forme {codeErreur1: texteErreur1, codeErreur2: texteErreur2, ...} }; @@ -107,7 +108,11 @@ NotificationClass.prototype.show = function(type, title, message, timeout){ title = typeof title == 'string' ? title : ''; /* (3) Vérification de @message */ - message = typeof message == 'string' ? message : '...'; + message = typeof message.toString() == 'string' ? message : '...'; + + // On cherche s'il y a une occurence dans le dictionnaire + if( this.errorCodes[message] != null ) + message = this.errorCodes[message]; /* (4) Vérification de @timeout */ timeout = typeof timeout == 'number' ? timeout : this.defaultTimeout; @@ -157,4 +162,17 @@ NotificationClass.prototype.show = function(type, title, message, timeout){ ptr.hide(id); }, false); + + /* (5) On retourne l'élément + ---------------------------------------------------------*/ + return stackItem.element; + }; + + +/* [6] 'Raccourcis' d'accès +=========================================================*/ +NotificationClass.prototype.warning = function(title, message, timeout){ return this.show('warning', title, message, timeout); }; +NotificationClass.prototype.info = function(title, message, timeout){ return this.show('info', title, message, timeout); }; +NotificationClass.prototype.success = function(title, message, timeout){ return this.show('success', title, message, timeout); }; +NotificationClass.prototype.error = function(title, message, timeout){ return this.show('error', title, message, timeout); }; diff --git a/src/upload/call_log/xdrm.xml b/src/upload/call_log/xdrm.xml index 8757312..b615998 100755 --- a/src/upload/call_log/xdrm.xml +++ b/src/upload/call_log/xdrm.xml @@ -1,937 +1,5 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/view.php b/view.php index 8e02cff..117f6ad 100755 --- a/view.php +++ b/view.php @@ -34,8 +34,7 @@ - - + diff --git a/view/js/analytics-min.js b/view/js/analytics-min.js index 29c5a99..c02d67a 100644 --- a/view/js/analytics-min.js +++ b/view/js/analytics-min.js @@ -1 +1 @@ -var instance=new FormDeflater(document.getElementById("myform"),["input"],["name","data-name"]);console.log(instance.deflate());Notification=new NotificationClass($("#notification-container"));Notification.show("warning","ERREUR","Une erreur de chargement est intervenue.."); +var instance=new FormDeflater(document.getElementById("myform"),["input"],["name","data-name"]);console.log(instance.deflate()); diff --git a/view/js/analytics.js b/view/js/analytics.js index 307d3fc..441aed4 100644 --- a/view/js/analytics.js +++ b/view/js/analytics.js @@ -6,8 +6,3 @@ var instance = new FormDeflater( /* (2) On récupère l'objet */ console.log( instance.deflate() ); - - -Notification = new NotificationClass( $('#notification-container') ); - -Notification.show( 'warning', 'ERREUR', 'Une erreur de chargement est intervenue..' ); diff --git a/view/js/input-min.js b/view/js/input-min.js index 44f448e..ed28ab7 100644 --- a/view/js/input-min.js +++ b/view/js/input-min.js @@ -1,14 +1,15 @@ var subjectManager,contactManager,miniManager,ficheManager,matriceManager; -function dynamicUpdate(a){var e=a instanceof Element,c=e&&"SPAN"==a.tagName&&"switch-left"==a.className,f=e&&"SPAN"==a.tagName&&"switch-both"==a.className,b=e&&"INPUT"==a.tagName&&"submit"==a.type,d=e&&"SPAN"==a.tagName&&("nav-mini"==a.parentNode.id||"nav-fiche"==a.parentNode.id),e=e&&"SPAN"==a.tagName&&"nav-contact"==a.parentNode.id;if(!(f||c||b||d||e)&&!0!==a)return!1;if(f)console.log("> switch firstname <-> lastname"),c=a.parentNode,a=c.children[8],c=c.children[10],f=a.value,a.value=c.value,c.value= -f;else if(c){console.log("> switch firstname+lastname -> username");c=a.parentNode;f=c.children[6];a=c.children[8];c=c.children[10];if(0 dynamic update"),miniManager.fieldsToStorage(),ficheManager.fieldsToStorage(),contactManager.fieldsToStorage(),matriceManager.fieldsToStorage(),miniManager.sync(),ficheManager.sync(),miniManager.storageToFields(),ficheManager.storageToFields(), -matriceManager.storageToFields(),(b||e)&&contactManager.storageToFields()} +function dynamicUpdate(a){var b=a instanceof Element,f=b&&"SPAN"==a.tagName&&"switch-left"==a.className,e=b&&"SPAN"==a.tagName&&"switch-both"==a.className,g=b&&"INPUT"==a.tagName&&"submit"==a.type,c=b&&"SPAN"==a.tagName&&("nav-mini"==a.parentNode.id||"nav-fiche"==a.parentNode.id),b=b&&"SPAN"==a.tagName&&"nav-contact"==a.parentNode.id;if(!(e||f||g||c||b)&&!0!==a)return!1;if(e)console.log("> switch firstname <-> lastname"),f=a.parentNode,a=f.children[8],f=f.children[10],e=a.value,a.value=f.value,f.value= +e;else if(f){console.log("> switch firstname+lastname -> username");f=a.parentNode;e=f.children[6];a=f.children[8];f=f.children[10];if(0 dynamic update"),miniManager.fieldsToStorage(),ficheManager.fieldsToStorage(),contactManager.fieldsToStorage(),matriceManager.fieldsToStorage(),miniManager.sync(),ficheManager.sync(),miniManager.storageToFields(),ficheManager.storageToFields(), +matriceManager.storageToFields(),(g||b)&&contactManager.storageToFields()} include("/js/includes/input-phone-subject.js",function(){include("/js/includes/input-phone-contact.js",function(){include("/js/includes/input-phone-mini.js",function(){include("/js/includes/input-phone-fiche.js",function(){include("/js/includes/input-phone-matrice.js",function(){subjectManager=new inputPhoneSubject($('article.subject-panel [data-name="number"]'),$('article.subject-panel [data-name="username"]'),$('article.subject-panel [data-name="firstname"]'),$('article.subject-panel [data-name="lastname"]'), $('article.subject-panel [data-name="submit"]'));subjectManager.attach();contactManager=new inputPhoneContact($("article.contact-panel"),$("#nav-contact"));contactManager.attach(dynamicUpdate);miniManager=new inputPhoneMini($("article.mini-relation-panel"),$("#nav-mini"));miniManager.attach(dynamicUpdate);ficheManager=new inputPhoneFiche($("article.relation-panel"),$("#nav-fiche"));ficheManager.attach(dynamicUpdate);matriceManager=new inputPhoneMatrice($("article.matrice-panel"));matriceManager.attach(dynamicUpdate); -$('input#call_log-import[type="file"]').addEventListener("click",function(a){a.target.value=null},!1);$('input#call_log-import[type="file"]').addEventListener("change",function(a){a={path:"upload/call_log",phone_number:$("#subject_phone_number").value,file:a.target.files[0]};api.send(a,function(a){console.log(a);if(0==a.ModuleError){for(var c=0,f=[],b=0;bb;b++)f.push(a.calls[b].number);for(b=0;bb;b++)g.push(a.sms[b].number);for(b=0;b GATHERING ALL DATA"); -subjectManager.fieldsToStorage();contactManager.fieldsToStorage();miniManager.fieldsToStorage();ficheManager.fieldsToStorage();if(!subjectManager.check())return!1;a=lsi["export"]("mini-fiches");for(var e in a)if(!a[e].valid)return!1;a=lsi["export"]("fiches");for(e in a)if(!a[e].valid)return!1;e={path:"input/phone",subject:lsi["export"]("subject")[0],contacts:lsi["export"]("contacts"),mini:lsi["export"]("mini-fiches"),fiches:lsi["export"]("fiches"),matrice:lsi["export"]("matrice")[0]};api.send(e,function(a){console.log(a)}, -!1)},!1)})})})})}); +$('input#call_log-import[type="file"]').addEventListener("click",function(a){a.target.value=null},!1);$('input#call_log-import[type="file"]').addEventListener("change",function(a){a={path:"upload/call_log",phone_number:$("#subject_phone_number").value,file:a.target.files[0]};api.send(a,function(b){console.log(b);var a=null;if(0!=b.ModuleError)9==b.ModuleError?Notification.error("Erreur","Il est n\u00e9cessaire de saisir les informations du sujet avant d'exporter son journal d'appel"):Notification.error("Erreur", +b.ModuleError);else{for(var a=Notification.info("Info","Chargement du journal d'appel"),e=0,g=[],c=0;cc;c++)g.push(b.calls[c].number);for(c=0;cc;c++)h.push(b.sms[c].number); +for(c=0;c GATHERING ALL DATA"); +subjectManager.fieldsToStorage();contactManager.fieldsToStorage();miniManager.fieldsToStorage();ficheManager.fieldsToStorage();if(!subjectManager.check())return Notification.warning("Attention","Vous devez saisir les informations du sujet"),!1;a=lsi["export"]("mini-fiches");for(var b in a)if(!a[b].valid)return Notification.warning("Attention","La fiche rapide "+(parseInt(b)+1)+" est incompl\u00e8te et/ou incorrecte"),!1;a=lsi["export"]("fiches");for(b in a)if(!a[b].valid)return Notification.warning("Attention", +"La fiche compl\u00e8te "+(parseInt(b)+1)+" est incompl\u00e8te et/ou incorrecte"),!1;b={path:"input/phone",subject:lsi["export"]("subject")[0],contacts:lsi["export"]("contacts"),mini:lsi["export"]("mini-fiches"),fiches:lsi["export"]("fiches"),matrice:lsi["export"]("matrice")[0]};api.send(b,function(a){if(0!=a.ModuleError)return Notification.error("ERREUR",ModuleError),!1;console.log(a)},!1)},!1)})})})})}); diff --git a/view/js/input.js b/view/js/input.js index e6f3dfa..cf4dba4 100644 --- a/view/js/input.js +++ b/view/js/input.js @@ -230,9 +230,17 @@ include('/js/includes/input-phone-matrice.js', function(){ api.send(request, function(response){ console.log(response); + var loadingNotif = null; + // Si erreur, on quitte - if( response.ModuleError != 0 ) + if( response.ModuleError != 0 ){ + if( response.ModuleError == 9 ) + Notification.error('Erreur', 'Il est nécessaire de saisir les informations du sujet avant d\'exporter son journal d\'appel'); + else + Notification.error('Erreur', response.ModuleError); return; + }else + loadingNotif = Notification.info('Info', 'Chargement du journal d\'appel'); @@ -336,6 +344,14 @@ include('/js/includes/input-phone-matrice.js', function(){ contactManager.storageToFields(); dynamicUpdate(true); + + /* (9) On notifie la fin du chargement */ + // On retire la notification de chargement + if( loadingNotif != null ) + loadingNotif.click(); + // On notifie que tout s'est bien passé + Notification.success('OK', 'Chargement terminé'); + }); }, false); @@ -359,6 +375,8 @@ include('/js/includes/input-phone-matrice.js', function(){ miniManager.storageToFields(); ficheManager.storageToFields(); matriceManager.storageToFields(); + + Notification.success('OK', 'Les données ont été supprimées'); }, false); @@ -366,6 +384,9 @@ include('/js/includes/input-phone-matrice.js', function(){ /* (8) Gestion de l'export des données locales ---------------------------------------------------------*/ $('#export-all').addEventListener('click', function(e){ + + Notification.info('INFORMATION', 'Lancement du téléchargement de la sauvegarde'); + /* (1) On construit les données */ var data = { subject: lsi.export('subject')[0], @@ -413,10 +434,10 @@ include('/js/includes/input-phone-matrice.js', function(){ console.log(response); // Si erreur, on quitte - if( response.ModuleError != 0 ) + if( response.ModuleError != 0 ){ + Notification.error('Erreur', response.ModuleError); return false; - - console.log(response.local_data.matrice); + } /* (3) On enregistre les données dans le 'localStorage' */ lsi.set('subject', 0, response.local_data.subject); @@ -451,18 +472,24 @@ include('/js/includes/input-phone-matrice.js', function(){ /* (2) Vérification de la validité de toutes les données */ // {1} Vérification du sujet // - if( !subjectManager.check() ) + if( !subjectManager.check() ){ + Notification.warning('Attention', 'Vous devez saisir les informations du sujet'); return false; + } // {2} Vérification des mini-fiches // var mini = lsi.export('mini-fiches'); for( var id in mini ) - if( !mini[id].valid ) + if( !mini[id].valid ){ + Notification.warning('Attention', 'La fiche rapide '+(parseInt(id)+1)+' est incomplète et/ou incorrecte'); return false; + } // {3} Vérification des fiches // var fiches = lsi.export('fiches'); for( var id in fiches ) - if( !fiches[id].valid ) + if( !fiches[id].valid ){ + Notification.warning('Attention', 'La fiche complète '+(parseInt(id)+1)+' est incomplète et/ou incorrecte'); return false; + } @@ -479,12 +506,18 @@ include('/js/includes/input-phone-matrice.js', function(){ /* (4) On envoie la requête et traite la réponse */ api.send(request, function(response){ + // Si erreur, on la notifie + if( response.ModuleError != 0 ){ + Notification.error('ERREUR', ModuleError); + return false; + } + console.log(response); + }, false); }, false); - }); }); }); }); });