The official template link http://demo.mobantu.com/modown/
The following figure
This is a popup window login js
login: function () {
var that=this;
JQuery (function ($) {
$('. Signin - loader. Erphp - login - must '), on (' click ', function () {
That. The body. The addClass (' sign - show ');
If ($('. Sign. Container '), hasClass (' has - social ')) {
$('. Sign. Container '). The height (" 460 px ");
} else {
$('. Sign. Container '). The height (" 430 px ");
}
$(' # sign - in '). The show (). The find (). The focus ();
$(' # sign - up '). Hide ();
Return false;
});
$(' signup - loader ') on (' click ', function () {
That. The body. The addClass (' sign - show ');
If ($('. Sign. Container '), hasClass (' has - social ')) {
$('. Sign. Container '). The height (" 510 px ");
} else {
$('. Sign. Container '). The height (" 480 px ");
}
$(' # sign - up '). The show (). The find (). The focus ();
$(' # sign - in '). Hide ();
Return false;
});
$(' signclose - loader ') on (' click ', function () {
That. Body. RemoveClass (' sign - show ');
});
$(' sign - mask ') on (' click ', function () {
That. Body. RemoveClass (' sign - show ');
});
$(' signinsubmit - loader ') on (' click ', function () {
If ($(" # value for user_login). Val ()==' ') {
Logtips (' user name cannot be empty)
Return
}
If ($(" # user_pass "). The val ()==' ') {
Logtips (' password cannot be empty)
Return
}
Logtips (" login, please wait... ");
$(' signinsubmit - loader '). The attr (" disabled ", true);
$.post (
_MBT. Uri + '/action/login. PHP',
{
Log: $(" # value for user_login). Val (),
The PWD: $(" # user_pass "). Val (),
Action: "mobantu_login,"
},
The function (data) {
If ($. Trim (data)!={" 1 ")
Logtips (" user name or password error ");
$(' signinsubmit - loader '). The attr (" disabled ", false);
}
The else {
Logtips (" login is successful, jump in... ");
location.reload();
}
}
);
});
Could you tell me how to solve this to ah, want to provide the code