1
0

first commit

This commit is contained in:
2018-11-03 00:03:55 +01:00
commit 2b76bd949e
13 changed files with 11242 additions and 0 deletions

10364
webroot/js/jquery.js vendored Normal file

File diff suppressed because it is too large Load Diff

36
webroot/js/login.js Normal file
View File

@ -0,0 +1,36 @@
$(document).ready(function(){
$("#error").css('display', 'inline', 'important');
$("#error").html("<br>");
$("#login").click(function(){
username=$("#username").val();
password=$("#password").val();
$.ajax({
type: "POST",
url: "login.php",
data: "username="+username+"&password="+password+"&login=Login",
success: function(response) {
var answer = JSON.parse(response);
if(answer.return == 'true') {
$("#content").html(answer.string);
}
else {
$("#error").html(answer.string);
}
},
beforeSend: function() {
$("#error").html("Loading...");
},
error: function() {
$("#error").html("Error");
}
});
return false;
});
});