You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
// 登录
|
|
|
|
var check = true;
|
|
|
|
|
|
|
|
function msg(id,text,shake=true){
|
|
|
|
$(id).addClass('text-danger').text(text);
|
|
|
|
if (!shake) return;
|
|
|
|
$("#login_form").removeClass('shake_effect');
|
|
|
|
setTimeout(function(){
|
|
|
|
$("#login_form").addClass('shake_effect')
|
|
|
|
},1);
|
|
|
|
}
|
|
|
|
$(function(){
|
|
|
|
// 显示表单
|
|
|
|
$('#form-btn').hwLayer({
|
|
|
|
width: 480,
|
|
|
|
tapLayer: false
|
|
|
|
});
|
|
|
|
// 上传
|
|
|
|
$("#upload").click(function(){
|
|
|
|
$("#display").show(); //上传
|
|
|
|
return false;
|
|
|
|
})
|
|
|
|
$("#hide").click(function(){
|
|
|
|
$("#display").hide(1000);
|
|
|
|
$('#text').hide();
|
|
|
|
$('#text').val('');
|
|
|
|
size = 0;
|
|
|
|
return false;
|
|
|
|
})
|
|
|
|
|
|
|
|
// 表单切换
|
|
|
|
$('.message a').click(function () {
|
|
|
|
$('form').animate({
|
|
|
|
height: 'toggle',
|
|
|
|
opacity: 'toggle'
|
|
|
|
}, 'slow');
|
|
|
|
});
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
function select(){
|
|
|
|
$('#text').select();
|
|
|
|
}
|
|
|
|
|
|
|
|
(function(){
|
|
|
|
var options = {};
|
|
|
|
$('.js-uploader__box').uploader({
|
|
|
|
'selectButtonCopy': '<span class=".zh">请选择或拖拽文件</span><span class=".en">Please select or drag and drop files</span>',
|
|
|
|
'instructionsCopy': '<span class=".zh">你可以选择或拖拽多个文件</span><span class=".en">You can select or drag multiple files</span>',
|
|
|
|
'submitButtonCopy': '<span class=".zh">上传选择的文件</span><span class=".en">Upload selected file</span>',
|
|
|
|
'furtherInstructionsCopy': '<span class=".zh">你可以选择或拖拽更多的文件</span><span class=".en">You can select or drag and drop more files</span>',
|
|
|
|
'secondarySelectButtonCopy':'<span class=".zh">选择更多的文件</span><span class=".en">Select more files</span>'
|
|
|
|
});
|
|
|
|
}());
|