add localizatin, fix bugs

This commit is contained in:
2023-01-31 16:08:04 +01:00
parent aa3bdecd08
commit 18360eb63e
10 changed files with 433 additions and 220 deletions

View File

@@ -1,10 +1,9 @@
<!DOCTYPE html>
<html data-theme="dark">
<head>
<title>Prihlásenie</title>
<title>__LOCALIZATION_LOGIN_TITLE__</title>
<link rel="stylesheet" href="assets/pico.css">
<meta charset="utf-8">
</meta>
<meta charset="utf-8"></meta>
<script src="assets/jquery.js"></script>
<style>
#error{
@@ -16,6 +15,7 @@
}
</style>
<script>
__LOCALIZATION_LANGSELECT_SCRIPT__
$(function() {
$("#kod").focus();
var kod = "";
@@ -92,24 +92,25 @@
</script>
</head>
<body>
__LOCALIZATION_LANGSELECT__
<form method="post">
<div id="firstQuestion">
<p id="error">Zlý kód</p>
<label id="kodik" for="kod">Kód:<br></label>
<input type="text" id="kod" placeholder="Kód" name="kod" required>
<p id="error">__LOCALIZATION_LOGIN_ERROR__</p>
<label id="kodik" for="kod">__LOCALIZATION_LOGIN_CODE_LABEL__<br></label>
<input type="text" id="kod" placeholder="__LOCALIZATION_LOGIN_CODE_LABEL__" name="kod" required>
<br>
<button id="next" type="button">Ďalej</button>
<button id="next" type="button">__LOCALIZATION_LOGIN_NEXT__</button>
<br>
<p>© BRN Systems __VLOZ_ROK__</p>
</div>
<div id="secondQuestion" style="display: none;">
<label for="ini">Iniciály:<br></label>
<input type="text" id="ini" placeholder="Iniciály" name="ini" required autofocus>
<label for="ini">__LOCALIZATION_LOGIN_INITIALS_LABEL__<br></label>
<input type="text" id="ini" placeholder="__LOCALIZATION_LOGIN_INITIALS_LABEL__" name="ini" required autofocus>
<br>
<label for="listeners">Počet počúvajúcich:<br></label>
<input type="text" id="listeners" placeholder="Počet počúvajúcich" name="listeners" required>
<label for="listeners">__LOCALIZATION_LOGIN_LISTENERS_LABEL__<br></label>
<input type="text" id="listeners" placeholder="__LOCALIZATION_LOGIN_LISTENERS_LABEL__" name="listeners" required>
<br>
<button id="send" type="button">Prihlásiť sa</button><button id="back" type="button">Späť</button>
<button id="send" type="button">__LOCALIZATION_LOGIN_LOGIN__</button><button id="back" type="button">__LOCALIZATION_LOGIN_BACK__</button>
<br>
<p>© BRN Systems __VLOZ_ROK__</p>
</div>