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>
|
||||
<input id="em" placeholder="curator@telecom.kz"><br>
|
||||
<button onclick="doLogin()">Войти</button>
|
||||
<p id="out"></p>
|
||||
<!DOCTYPE html><html><head><meta charset="utf-8"><title>Test</title></head>
|
||||
<body>
|
||||
<p id="r">JS не работает</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";
|
||||
}
|
||||
document.getElementById("r").textContent="JS работает!";
|
||||
</script>
|
||||
</body></html>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user