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