test3
This commit is contained in:
parent
e5bdb47505
commit
4c928a42ca
12
test2.html
Normal file
12
test2.html
Normal file
@ -0,0 +1,12 @@
|
||||
<!DOCTYPE html><html><head><meta charset="utf-8"><title>Test</title></head><body>
|
||||
<input id="em" placeholder="curator@telecom.kz"><br>
|
||||
<button onclick="doLogin()">Войти</button>
|
||||
<p id="out"></p>
|
||||
<script>
|
||||
var U={"curator@telecom.kz":{n:"Куратор"}};
|
||||
function doLogin(){
|
||||
var e=document.getElementById("em").value.trim().toLowerCase();
|
||||
document.getElementById("out").textContent=U[e]?"OK: "+U[e].n:"FAIL";
|
||||
}
|
||||
</script>
|
||||
</body></html>
|
||||
Loading…
Reference in New Issue
Block a user