test page
This commit is contained in:
parent
2b369bbd59
commit
d5d4935265
13
test.html
Normal file
13
test.html
Normal file
@ -0,0 +1,13 @@
|
||||
<!DOCTYPE html><html><head><meta charset="utf-8"><title>Test</title></head><body>
|
||||
<form onsubmit="return doLogin(event)">
|
||||
<input id="em" placeholder="email"><input id="pw" type="password" placeholder="pass">
|
||||
<button type="submit">Войти</button>
|
||||
</form>
|
||||
<p id="out"></p>
|
||||
<script>
|
||||
"use strict";
|
||||
var users={"curator@telecom.kz":{name:"Куратор"},"dpp@telecom.kz":{name:"ДПБ"}};
|
||||
function doLogin(e){e.preventDefault();var em=document.getElementById("em").value.trim().toLowerCase();if(users[em]){document.getElementById("out").textContent="OK: "+users[em].name}else{document.getElementById("out").textContent="FAIL"}return false}
|
||||
console.log("Test loaded");
|
||||
</script>
|
||||
</body></html>
|
||||
Loading…
Reference in New Issue
Block a user