-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbank.html
More file actions
56 lines (42 loc) · 1.04 KB
/
Copy pathbank.html
File metadata and controls
56 lines (42 loc) · 1.04 KB
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
<html>
<head>
<meta charset="utf-8"/>
<style type="text/css">
</style>
</head>
<body>
<script type="text/javascript">
function logowanie() {
document.getElementById("l1").style.display = "none"
document.getElementById("l2").style.display = "block"
var imie = document.getElementById("imie").value;
document.getElementById("witaj").innerHTML = imie;
}
function przelew() {
alert("przelew wysłany");
}
</script>
<h1>Bank Wrocławski</h1>
<div id="l1">
Imię: <input id="imie">
<button onclick="logowanie()">Logowanie</button>
</div>
<div id="l2" style="display: none">
Witaj <span id="witaj"></span><br>
Numer konta: <input id="numerKonta"><br>
Kwota: <input id="kwota"><br>
<button onclick="przelew()">Wyślij przelew</button>
</div>
<span id="name"></span>
<button onClick="showName()">Show Name
</button>
<script>
function showName() {
tt = "script"
badCode = "John<"+tt+">function foo() {alert('boom');}</"+tt+">;
console.log(badCode)
document.getElementById("name").innerHTML = badCode;
}
</script>
</body>
</html>