|
@@ -2,26 +2,27 @@ $(document).ready(function() {
|
|
|
$.zui.store.set("user", "");
|
|
$.zui.store.set("user", "");
|
|
|
|
|
|
|
|
|
|
|
|
|
- //获取屏幕高
|
|
|
|
|
- var bg_height = window.innerHeight*0.6;
|
|
|
|
|
- var bg_width = bg_height*(1022/485.0);
|
|
|
|
|
- $("#bg").css("height",bg_height);
|
|
|
|
|
- $("#bg").css("width",bg_width);
|
|
|
|
|
|
|
+ //获取屏幕高
|
|
|
|
|
|
|
|
- var top = (window.innerHeight-bg_height)/2.0
|
|
|
|
|
- $("#bg").css("top",top);
|
|
|
|
|
- $("#bg input").css("height",window.innerHeight*.04);
|
|
|
|
|
- $("#bg label").css("line-height",window.innerHeight*.04+"px");
|
|
|
|
|
|
|
+ var bg_width = window.innerWidth * 0.25;
|
|
|
|
|
+ var bg_height = bg_width;
|
|
|
|
|
+ $("#bg").css("height", bg_height);
|
|
|
|
|
+ $("#bg").css("width", bg_width);
|
|
|
|
|
|
|
|
- $("#bg").css("font-size",window.innerHeight*.02);
|
|
|
|
|
- $(".p").css("margin-top",window.innerHeight*.035+"px");
|
|
|
|
|
|
|
+ var top = (window.innerHeight - bg_height) / 2.0
|
|
|
|
|
+ $("#bg").css("top", top);
|
|
|
|
|
+ // $("#bg input").css("height",window.innerHeight*.04);
|
|
|
|
|
+ // $("#bg label").css("line-height",window.innerHeight*.04+"px");
|
|
|
|
|
|
|
|
- $(".login").css("bottom",window.innerHeight*.15+"px")
|
|
|
|
|
|
|
+ // $("#bg").css("font-size",window.innerHeight*.02);
|
|
|
|
|
+ // $(".p").css("margin-top",window.innerHeight*.035+"px");
|
|
|
|
|
+
|
|
|
|
|
+ // $(".login").css("bottom",window.innerHeight*.15+"px")
|
|
|
|
|
|
|
|
|
|
|
|
|
$('html').bind('keydown', function(e) {
|
|
$('html').bind('keydown', function(e) {
|
|
|
if (e.keyCode == 13) {
|
|
if (e.keyCode == 13) {
|
|
|
- // alert('enter');
|
|
|
|
|
|
|
+ // alert('enter');
|
|
|
$('#loadingBtn').click();
|
|
$('#loadingBtn').click();
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
@@ -42,12 +43,11 @@ $(document).ready(function() {
|
|
|
// host = "http://"+window.location.host+"/";
|
|
// host = "http://"+window.location.host+"/";
|
|
|
// base_image_server_url = host;
|
|
// base_image_server_url = host;
|
|
|
// base_ui_url = host;
|
|
// base_ui_url = host;
|
|
|
- window.location.href = base_ui_url + "view/main.html?time="+(Date.parse(new Date()))
|
|
|
|
|
|
|
+ window.location.href = base_ui_url + "view/main.html?time=" + (Date.parse(new Date()))
|
|
|
|
|
|
|
|
}, function(error) {
|
|
}, function(error) {
|
|
|
$btn.button('reset');
|
|
$btn.button('reset');
|
|
|
layer.alert('用户名或密码错误');
|
|
layer.alert('用户名或密码错误');
|
|
|
});
|
|
});
|
|
|
});
|
|
});
|
|
|
-});
|
|
|
|
|
-
|
|
|
|
|
|
|
+});
|