diff --git a/gemp-lotr/gemp-lotr-async/src/main/web/index.html b/gemp-lotr/gemp-lotr-async/src/main/web/index.html
index e9d15aef5..4fb234b00 100644
--- a/gemp-lotr/gemp-lotr-async/src/main/web/index.html
+++ b/gemp-lotr/gemp-lotr-async/src/main/web/index.html
@@ -70,65 +70,65 @@
if (password != password2) {
$(".error").html("Password and Password repeated are different! Try again");
} else {
- comm.register(login, password, function() {
- location.href = "/gemp-lotr/hall.html";
- },
- {
- "0": function() {
- alert("Unable to connect to server, either server is down or there is a problem" +
- " with your internet connection");
+ comm.register(login, password, function () {
+ location.href = "/gemp-lotr/hall.html";
},
- "400":function() {
- $(".error").html("Login is invalid. Login must be between 2-10 characters long, and contain only
" +
- " english letters, numbers or _ (underscore) and - (dash) characters.");
- },
- "409": function() {
- $(".error").html("User with this login already exists in the system. Try a different one.");
- },
- "503": function() {
- $(".error").html("Server is down for maintenance. Please come at a later time.");
- }
- });
+ {
+ "0": function () {
+ alert("Unable to connect to server, either server is down or there is a problem" +
+ " with your internet connection");
+ },
+ "400": function () {
+ $(".error").html("Login is invalid. Login must be between 2-10 characters long, and contain only
" +
+ " english letters, numbers or _ (underscore) and - (dash) characters.");
+ },
+ "409": function () {
+ $(".error").html("User with this login already exists in the system. Try a different one.");
+ },
+ "503": function () {
+ $(".error").html("Server is down for maintenance. Please come at a later time.");
+ }
+ });
}
}
function registrationScreen() {
comm.getRegistrationForm(
- function(html) {
- $(".error").html();
- $(".interaction").html(html);
- $("#registerButton").button().click(register);
- });
+ function (html) {
+ $(".error").html();
+ $(".interaction").html(html);
+ $("#registerButton").button().click(register);
+ });
}
function login() {
var login = $("#login").val();
var password = $("#password").val();
- comm.login(login, password, function() {
- location.href = "/gemp-lotr/hall.html";
- },
- {
- "0": function() {
- alert("Unable to connect to server, either server is down or there is a problem" +
- " with your internet connection");
+ comm.login(login, password, function () {
+ location.href = "/gemp-lotr/hall.html";
},
- "401":function() {
- $(".error").html("Invalid username or password. Try again.");
- loginScreen();
- },
- "403": function() {
- $(".error").html("You have been permanently banned. If you think it was a mistake you can try sending a private message to Merrick_H on TLHH forums.");
- $(".interaction").html("");
- },
- "409": function() {
- $(".error").html("You have been temporarily banned. You can try logging in at a later time. If you think it was a mistake you can try sending a private message to Merrick_H on TLHH forums.");
- $(".interaction").html("");
- },
- "503": function() {
- $(".error").html("Server is down for maintenance. Please come at a later time.");
- }
- });
+ {
+ "0": function () {
+ alert("Unable to connect to server, either server is down or there is a problem" +
+ " with your internet connection");
+ },
+ "401": function () {
+ $(".error").html("Invalid username or password. Try again.");
+ loginScreen();
+ },
+ "403": function () {
+ $(".error").html("You have been permanently banned. If you think it was a mistake you can try sending a private message to Merrick_H on TLHH forums.");
+ $(".interaction").html("");
+ },
+ "409": function () {
+ $(".error").html("You have been temporarily banned. You can try logging in at a later time. If you think it was a mistake you can try sending a private message to Merrick_H on TLHH forums.");
+ $(".interaction").html("");
+ },
+ "503": function () {
+ $(".error").html("Server is down for maintenance. Please come at a later time.");
+ }
+ });
}
function loginScreen() {
@@ -155,20 +155,24 @@
}
$(document).ready(
- function () {
- comm.getStatus(
- function(html) {
- $(".status").append(html);
- });
- loginScreen();
- $(".centerContainer").center();
- });
+ function () {
+ comm.getStatus(
+ function (html) {
+ $(".status").append(html);
+ });
+ loginScreen();
+ $(".centerContainer").center();
+ });

