Current state
This commit is contained in:
67
public/legacy/assets/plugins/jnotify/jNotify.jquery.css
Normal file
67
public/legacy/assets/plugins/jnotify/jNotify.jquery.css
Normal file
@@ -0,0 +1,67 @@
|
||||
/*****************/
|
||||
/** jNotify CSS **/
|
||||
/*****************/
|
||||
#jNotify {
|
||||
position:absolute;
|
||||
background:#2B2E33;
|
||||
color:#dadada;
|
||||
padding:10px;
|
||||
padding-left:10px;
|
||||
margin:15px;
|
||||
z-index:9999;
|
||||
-moz-border-radius : 4px;
|
||||
border-radius:4px;
|
||||
-webkit-border-radius:4px;
|
||||
border:1 px solid #3f4248;
|
||||
-webkit-box-shadow: 0 1px 1px rgba(255, 255, 255, 0.25);
|
||||
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.25);
|
||||
|
||||
|
||||
}
|
||||
#jNotify a {color:#35517c !important;text-decoration:none;}
|
||||
|
||||
/******************/
|
||||
/** jSuccess CSS **/
|
||||
/******************/
|
||||
#jSuccess {
|
||||
position:absolute;
|
||||
background:#18A689;
|
||||
color:#fff;
|
||||
padding:10px;
|
||||
padding-left:10px;
|
||||
margin:15px;
|
||||
z-index:9999;
|
||||
-moz-border-radius : 4px;
|
||||
border-radius:4px;
|
||||
-webkit-border-radius:4px;
|
||||
}
|
||||
#jSuccess a {color:#eaeaea !important;text-decoration:none;}
|
||||
|
||||
|
||||
|
||||
/****************/
|
||||
/** jError CSS **/
|
||||
/****************/
|
||||
#jError {
|
||||
position:absolute;
|
||||
background:#C75757;
|
||||
color:#fff;
|
||||
padding:10px;
|
||||
padding-left:10px;
|
||||
margin:15px;
|
||||
z-index:9999;
|
||||
-moz-border-radius : 4px;
|
||||
border-radius:4px;
|
||||
-webkit-border-radius:4px;
|
||||
}
|
||||
#jError a {color:#eaeaea !important;text-decoration:none;}
|
||||
|
||||
/** OVERLAY **/
|
||||
#jOverlay {
|
||||
width:100%;
|
||||
height:100%;
|
||||
position:fixed;
|
||||
top:0;
|
||||
left:0;
|
||||
z-index:9998
|
||||
}
|
||||
248
public/legacy/assets/plugins/jnotify/jNotify.jquery.js
Normal file
248
public/legacy/assets/plugins/jnotify/jNotify.jquery.js
Normal file
@@ -0,0 +1,248 @@
|
||||
/************************************************************************
|
||||
*************************************************************************
|
||||
@Name : jNotify - jQuery Plugin
|
||||
@Revison : 2.1
|
||||
@Date : 01/2011
|
||||
@Author: ALPIXEL - (www.myjqueryplugins.com - www.alpixel.fr)
|
||||
@Support: FF, IE7, IE8, MAC Firefox, MAC Safari
|
||||
@License : Open Source - MIT License : http://www.opensource.org/licenses/mit-license.php
|
||||
|
||||
**************************************************************************
|
||||
*************************************************************************/
|
||||
(function($){
|
||||
|
||||
$.jNotify = {
|
||||
defaults: {
|
||||
/** VARS - OPTIONS **/
|
||||
autoHide : true, // Notify box auto-close after 'TimeShown' ms ?
|
||||
clickOverlay : false, // if 'clickOverlay' = false, close the notice box on the overlay click ?
|
||||
MinWidth : 200, // min-width CSS property
|
||||
TimeShown : 1500, // Box shown during 'TimeShown' ms
|
||||
ShowTimeEffect : 200, // duration of the Show Effect
|
||||
HideTimeEffect : 200, // duration of the Hide effect
|
||||
LongTrip : 15, // in pixel, length of the move effect when show and hide
|
||||
HorizontalPosition : 'right', // left, center, right
|
||||
VerticalPosition : 'bottom', // top, center, bottom
|
||||
ShowOverlay : true, // show overlay behind the notice ?
|
||||
ColorOverlay : '#000', // color of the overlay
|
||||
OpacityOverlay : 0.3, // opacity of the overlay
|
||||
|
||||
/** METHODS - OPTIONS **/
|
||||
onClosed : null,
|
||||
onCompleted : null
|
||||
},
|
||||
|
||||
/*****************/
|
||||
/** Init Method **/
|
||||
/*****************/
|
||||
init:function(msg, options, id) {
|
||||
opts = $.extend({}, $.jNotify.defaults, options);
|
||||
|
||||
/** Box **/
|
||||
if($("#"+id).length == 0)
|
||||
$Div = $.jNotify._construct(id, msg);
|
||||
|
||||
// Width of the Brower
|
||||
WidthDoc = parseInt($(window).width());
|
||||
HeightDoc = parseInt($(window).height());
|
||||
|
||||
// Scroll Position
|
||||
ScrollTop = parseInt($(window).scrollTop());
|
||||
ScrollLeft = parseInt($(window).scrollLeft());
|
||||
|
||||
// Position of the jNotify Box
|
||||
posTop = $.jNotify.vPos(opts.VerticalPosition);
|
||||
posLeft = $.jNotify.hPos(opts.HorizontalPosition);
|
||||
|
||||
// Show the jNotify Box
|
||||
if(opts.ShowOverlay && $("#jOverlay").length == 0)
|
||||
$.jNotify._showOverlay($Div);
|
||||
|
||||
$.jNotify._show(msg);
|
||||
},
|
||||
|
||||
/*******************/
|
||||
/** Construct DOM **/
|
||||
/*******************/
|
||||
_construct:function(id, msg) {
|
||||
$Div =
|
||||
$('<div id="'+id+'"/>')
|
||||
.css({opacity : 0,minWidth : opts.MinWidth})
|
||||
.html(msg)
|
||||
.appendTo('body');
|
||||
return $Div;
|
||||
},
|
||||
|
||||
/**********************/
|
||||
/** Postions Methods **/
|
||||
/**********************/
|
||||
vPos:function(pos) {
|
||||
switch(pos) {
|
||||
case 'top':
|
||||
var vPos = ScrollTop + parseInt($Div.outerHeight(true)/2);
|
||||
break;
|
||||
case 'center':
|
||||
var vPos = ScrollTop + (HeightDoc/2) - (parseInt($Div.outerHeight(true))/2);
|
||||
break;
|
||||
case 'bottom':
|
||||
var vPos = ScrollTop + HeightDoc - parseInt($Div.outerHeight(true));
|
||||
break;
|
||||
}
|
||||
return vPos;
|
||||
},
|
||||
|
||||
hPos:function(pos) {
|
||||
switch(pos) {
|
||||
case 'left':
|
||||
var hPos = ScrollLeft;
|
||||
break;
|
||||
case 'center':
|
||||
var hPos = ScrollLeft + (WidthDoc/2) - (parseInt($Div.outerWidth(true))/2);
|
||||
break;
|
||||
case 'right':
|
||||
var hPos = ScrollLeft + WidthDoc - parseInt($Div.outerWidth(true));
|
||||
break;
|
||||
}
|
||||
return hPos;
|
||||
},
|
||||
|
||||
/*********************/
|
||||
/** Show Div Method **/
|
||||
/*********************/
|
||||
_show:function(msg) {
|
||||
$Div
|
||||
.css({
|
||||
top: posTop,
|
||||
left : posLeft
|
||||
});
|
||||
switch (opts.VerticalPosition) {
|
||||
case 'top':
|
||||
$Div.animate({
|
||||
top: posTop + opts.LongTrip,
|
||||
opacity:1
|
||||
},opts.ShowTimeEffect,function(){
|
||||
if(opts.onCompleted) opts.onCompleted();
|
||||
});
|
||||
if(opts.autoHide)
|
||||
$.jNotify._close();
|
||||
else
|
||||
$Div.css('cursor','pointer').click(function(e){
|
||||
$.jNotify._close();
|
||||
});
|
||||
break;
|
||||
case 'center':
|
||||
$Div.animate({
|
||||
opacity:1
|
||||
},opts.ShowTimeEffect,function(){
|
||||
if(opts.onCompleted) opts.onCompleted();
|
||||
});
|
||||
if(opts.autoHide)
|
||||
$.jNotify._close();
|
||||
else
|
||||
$Div.css('cursor','pointer').click(function(e){
|
||||
$.jNotify._close();
|
||||
});
|
||||
break;
|
||||
case 'bottom' :
|
||||
$Div.animate({
|
||||
top: posTop - opts.LongTrip,
|
||||
opacity:1
|
||||
},opts.ShowTimeEffect,function(){
|
||||
if(opts.onCompleted) opts.onCompleted();
|
||||
});
|
||||
if(opts.autoHide)
|
||||
$.jNotify._close();
|
||||
else
|
||||
$Div.css('cursor','pointer').click(function(e){
|
||||
$.jNotify._close();
|
||||
});
|
||||
break;
|
||||
}
|
||||
},
|
||||
|
||||
_showOverlay:function(el){
|
||||
var overlay =
|
||||
$('<div id="jOverlay" />')
|
||||
.css({
|
||||
backgroundColor : opts.ColorOverlay,
|
||||
opacity: opts.OpacityOverlay
|
||||
})
|
||||
.appendTo('body')
|
||||
.show();
|
||||
|
||||
if(opts.clickOverlay)
|
||||
overlay.click(function(e){
|
||||
e.preventDefault();
|
||||
opts.TimeShown = 0;
|
||||
$.jNotify._close();
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
_close:function(){
|
||||
switch (opts.VerticalPosition) {
|
||||
case 'top':
|
||||
if(!opts.autoHide)
|
||||
opts.TimeShown = 0;
|
||||
$Div.stop(true, true).delay(opts.TimeShown).animate({
|
||||
top: posTop-opts.LongTrip,
|
||||
opacity:0
|
||||
},opts.HideTimeEffect,function(){
|
||||
$(this).remove();
|
||||
if(opts.ShowOverlay && $("#jOverlay").length > 0)
|
||||
$("#jOverlay").remove();
|
||||
if(opts.onClosed) opts.onClosed();
|
||||
});
|
||||
break;
|
||||
case 'center':
|
||||
if(!opts.autoHide)
|
||||
opts.TimeShown = 0;
|
||||
$Div.stop(true, true).delay(opts.TimeShown).animate({
|
||||
opacity:0
|
||||
},opts.HideTimeEffect,function(){
|
||||
$(this).remove();
|
||||
if(opts.ShowOverlay && $("#jOverlay").length > 0)
|
||||
$("#jOverlay").remove();
|
||||
if(opts.onClosed) opts.onClosed();
|
||||
});
|
||||
break;
|
||||
case 'bottom' :
|
||||
if(!opts.autoHide)
|
||||
opts.TimeShown = 0;
|
||||
$Div.stop(true, true).delay(opts.TimeShown).animate({
|
||||
top: posTop+opts.LongTrip,
|
||||
opacity:0
|
||||
},opts.HideTimeEffect,function(){
|
||||
$(this).remove();
|
||||
if(opts.ShowOverlay && $("#jOverlay").length > 0)
|
||||
$("#jOverlay").remove();
|
||||
if(opts.onClosed) opts.onClosed();
|
||||
});
|
||||
break;
|
||||
}
|
||||
},
|
||||
|
||||
_isReadable:function(id){
|
||||
if($('#'+id).length > 0)
|
||||
return false;
|
||||
else
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
||||
/** Init method **/
|
||||
jNotify = function(msg,options) {
|
||||
if($.jNotify._isReadable('jNotify'))
|
||||
$.jNotify.init(msg,options,'jNotify');
|
||||
};
|
||||
|
||||
jSuccess = function(msg,options) {
|
||||
if($.jNotify._isReadable('jSuccess'))
|
||||
$.jNotify.init(msg,options,'jSuccess');
|
||||
};
|
||||
|
||||
jError = function(msg,options) {
|
||||
if($.jNotify._isReadable('jError'))
|
||||
$.jNotify.init(msg,options,'jError');
|
||||
};
|
||||
})(jQuery);
|
||||
12
public/legacy/assets/plugins/jnotify/jNotify.jquery.min.js
vendored
Normal file
12
public/legacy/assets/plugins/jnotify/jNotify.jquery.min.js
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
/************************************************************************
|
||||
*************************************************************************
|
||||
@Name : jNotify - jQuery Plugin
|
||||
@Revison : 2.1
|
||||
@Date : 18/01/2011
|
||||
@Author: ALPIXEL (www.myjqueryplugins.com - www.alpixel.fr)
|
||||
@Support: FF, IE7, IE8, MAC Firefox, MAC Safari
|
||||
@License : Open Source - MIT License : http://www.opensource.org/licenses/mit-license.php
|
||||
|
||||
**************************************************************************
|
||||
*************************************************************************/
|
||||
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(6($){$.5={19:{m:9,1e:13,1h:P,k:1j,F:P,H:P,A:15,1b:\'y\',I:\'d\',x:9,1c:\'#1i\',18:0.3,n:16,o:16},G:6(b,j,f){4=$.1k({},$.5.19,j);7($("#"+f).r==0)$8=$.5.1f(f,b);U=g($(L).1s());R=g($(L).1u());C=g($(L).1v());D=g($(L).1w());s=$.5.q(4.I);17=$.5.v(4.1b);7(4.x&&$("#h").r==0)$.5.14($8);$.5.12(b)},1f:6(f,b){$8=$(\'<11 f="\'+f+\'"/>\').t({i:0,1l:4.1h}).1n(b).1d(\'1g\');z $8},q:6(K){B(K){a\'d\':p q=C+g($8.S(9)/2);c;a\'y\':p q=C+(R/2)-(g($8.S(9))/2);c;a\'Q\':p q=C+R-g($8.S(9));c}z q},v:6(K){B(K){a\'Z\':p v=D;c;a\'y\':p v=D+(U/2)-(g($8.10(9))/2);c;a\'1t\':p v=D+U-g($8.10(9));c}z v},12:6(b){$8.t({d:s,Z:17});B(4.I){a\'d\':$8.u({d:s+4.A,i:1},4.F,6(){7(4.o)4.o()});7(4.m)$.5.l();M $8.t(\'N\',\'T\').J(6(e){$.5.l()});c;a\'y\':$8.u({i:1},4.F,6(){7(4.o)4.o()});7(4.m)$.5.l();M $8.t(\'N\',\'T\').J(6(e){$.5.l()});c;a\'Q\':$8.u({d:s-4.A,i:1},4.F,6(){7(4.o)4.o()});7(4.m)$.5.l();M $8.t(\'N\',\'T\').J(6(e){$.5.l()});c}},14:6(1m){p 1a=$(\'<11 f="h" />\').t({1o:4.1c,i:4.18}).1d(\'1g\').1p();7(4.1e)1a.J(6(e){e.1q();4.k=0;$.5.l()})},l:6(){B(4.I){a\'d\':7(!4.m)4.k=0;$8.V(9,9).W(4.k).u({d:s-4.A,i:0},4.H,6(){$(X).w();7(4.x&&$("#h").r>0)$("#h").w();7(4.n)4.n()});c;a\'y\':7(!4.m)4.k=0;$8.V(9,9).W(4.k).u({i:0},4.H,6(){$(X).w();7(4.x&&$("#h").r>0)$("#h").w();7(4.n)4.n()});c;a\'Q\':7(!4.m)4.k=0;$8.V(9,9).W(4.k).u({d:s+4.A,i:0},4.H,6(){$(X).w();7(4.x&&$("#h").r>0)$("#h").w();7(4.n)4.n()});c}},E:6(f){7($(\'#\'+f).r>0)z 13;M z 9}};5=6(b,j){7($.5.E(\'5\'))$.5.G(b,j,\'5\')};Y=6(b,j){7($.5.E(\'Y\'))$.5.G(b,j,\'Y\')};O=6(b,j){7($.5.E(\'O\'))$.5.G(b,j,\'O\')}})(1r);',62,95,'||||opts|jNotify|function|if|Div|true|case|msg|break|top||id|parseInt|jOverlay|opacity|options|TimeShown|_close|autoHide|onClosed|onCompleted|var|vPos|length|posTop|css|animate|hPos|remove|ShowOverlay|center|return|LongTrip|switch|ScrollTop|ScrollLeft|_isReadable|ShowTimeEffect|init|HideTimeEffect|VerticalPosition|click|pos|window|else|cursor|jError|200|bottom|HeightDoc|outerHeight|pointer|WidthDoc|stop|delay|this|jSuccess|left|outerWidth|div|_show|false|_showOverlay||null|posLeft|OpacityOverlay|defaults|overlay|HorizontalPosition|ColorOverlay|appendTo|clickOverlay|_construct|body|MinWidth|000|1500|extend|minWidth|el|html|backgroundColor|show|preventDefault|jQuery|width|right|height|scrollTop|scrollLeft'.split('|'),0,{}))
|
||||
2
public/legacy/assets/plugins/jnotify/jquery.js
vendored
Normal file
2
public/legacy/assets/plugins/jnotify/jquery.js
vendored
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user