var clientHeight = 0;
$(document).ready(function() {
// 初始化 传入dom id
// var victor = new Victor("container", "output");
// var color = ["#3b5ffc", "#076583"];
// victor(color).set();
// $("#output canvas").eq(0).remove();
getHeight();
});
window.onresize = function() {
getHeight();
}
function getHeight() {
if($(window).height() > $(window).width()) {
clientHeight = $(window).height();
} else {
clientHeight = ($(window).width()) * 1.3;
}
$(".lg-window").height(clientHeight);
}
//60秒倒计时事件
var c = 60;
var setbtn;
function showLogin() {
c -= 1;
$("#lgWait").html(c + " s");
if(c <= 0) {
clearInterval(setbtn);
$("#yzmParent").find("#lgWait").remove();
$("#yzmParent").append('');
c = 60;
}
}
//倒计时按钮
function wait(obj) {
alert('操作太过频繁!');
}
//获取验证码
var apiurl = "";
var datastr = {};
function indentifying(obj) {
$(obj).remove();
$("#yzmParent").append('');
setbtn = setInterval("showLogin()", 1000);
}