40 lines
1.5 KiB
JavaScript
40 lines
1.5 KiB
JavaScript
$(function(){
|
||
var type = document.getElementById("type").value;
|
||
var mess;
|
||
if(type=='xoJxpj3bxDHDB7630pGCdQ=='){
|
||
mess = '尊敬的用户,您好:<br/> 由于您长时间未操作电脑,系统自动终止了您的会话时间,如需继续使用,请重新登录!';
|
||
icon = 'face-smile';
|
||
getDialog(mess,icon);
|
||
}else if (type=='4RGFtuNcG3ZxdNyYiqDxeQ=='){
|
||
mess = '尊敬的用户,您好:<br/> 登录失败,请您认真核对后重新登录!';
|
||
icon = 'face-smile';
|
||
getDialog(mess,icon);
|
||
}else if (type=='8k9i7reJGZubLkZ987GHaw=='){
|
||
mess = '尊敬的用户,您好:<br/> 您已退出系统,如需继续使用,请您重新登录!';
|
||
icon = 'face-smile';
|
||
getDialog(mess,icon);
|
||
}
|
||
$("#toggleLogin").toggle(function(){
|
||
$("#login").parent("div").animate({ height : 105 } , 520 );
|
||
$("#login").animate({marginTop : 0 } , 500 );
|
||
$(this).blur();
|
||
},function(){
|
||
$("#login").parent("div").animate({ height : 0 } , 500 );
|
||
$("#login").animate({marginTop : -105 } , 520 );
|
||
$(this).blur();
|
||
});
|
||
$("#closeLogin").click(function(){
|
||
$("#login").parent("div").animate({ height : 0 } , 500 );
|
||
$("#login").animate({marginTop : -105 } , 520 );
|
||
});
|
||
});
|
||
function getDialog(mess,icon){
|
||
art.dialog.notice({
|
||
title: '系统温馨提示',
|
||
width: 220,// 必须指定一个像素宽度值或者百分比,否则浏览器窗口改变可能导致artDialog收缩
|
||
content: mess,
|
||
icon: icon,
|
||
time: 6,
|
||
cancel:false
|
||
});
|
||
} |