js-test
This commit is contained in:
parent
5b09c43f16
commit
f5c1fda9cb
24
test.html
24
test.html
@ -1,16 +1,8 @@
|
||||
<!DOCTYPE html><html><head><meta charset="utf-8"><title>Test</title></head><body>
|
||||
<p>Введите email и нажмите кнопку:</p>
|
||||
<input id="em" placeholder="curator@telecom.kz"><br><br>
|
||||
<button onclick="test()">Проверить вход</button>
|
||||
<p id="out" style="font-weight:bold;margin-top:16px"></p>
|
||||
<script>
|
||||
function test(){
|
||||
var em=document.getElementById("em").value.trim().toLowerCase();
|
||||
if(em==="curator@telecom.kz"||em==="dpp@telecom.kz"){
|
||||
document.getElementById("out").textContent="✅ Доступ разрешён: "+em;
|
||||
}else{
|
||||
document.getElementById("out").textContent="❌ Неизвестный email";
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</body></html>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head><meta charset="utf-8"><title>JS Test</title></head>
|
||||
<body onload="document.getElementById('r').textContent='JS работает'">
|
||||
<h3>Проверка JavaScript</h3>
|
||||
<p id="r" style="color:red">JS не работает</p>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user