-
Notifications
You must be signed in to change notification settings - Fork 1
/
wait1.html
62 lines (52 loc) · 2.32 KB
/
wait1.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Simple registration form</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css"
integrity="sha384-WskhaSGFgHYWDcbwN70/dfYBj47jz9qbsMId/iRN3ewGhXQFZCSftd1LZCfmhktB" crossorigin="anonymous">
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"
integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"
crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js"
integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49"
crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"
integrity="sha384-smHYKdLADwkXOn1EmN1qk/HfnUcbVRZyYmZ4qpPea6sjB/pTJ0euyQp0Mk8ck+5T"
crossorigin="anonymous"></script>
<script src="jquery_min.js"></script>
</head>
<!-- we make delay for button check here-->
<body class="bg-light">
<div class="container" id="container" style="padding-top: 90px;">
</h2>Hello!</h2>
<p>Click the "Verify" button to get the result.</p>
</div>
<script type="text/javascript">
function addButton() {
let container_elt = document.querySelector('#container');
let button_elt = document.createElement('button');
button_elt.className = "btn btn-primary";
button_elt.id = "verify";
button_elt.innerText = "Verify";
button_elt.setAttribute('onclick', "showMessage();");
button_elt.type = "submit";
container_elt.appendChild(button_elt);
}
function showMessage() {
let body_elt = document.querySelector('body');
let container_elt = document.querySelector('#container');
let button_elt = document.querySelector('button');
container_elt.removeChild(button_elt);
let message_elt = document.createElement('div');
message_elt.className = "container";
message_elt.id = "verify_message";
message_elt.innerText = "Verification was successful!";
body_elt.appendChild(message_elt);
}
window.onload = function() {
setTimeout(addButton, 1000);
};
</script>
</body>
</html>