-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEx1.html
50 lines (48 loc) · 1.3 KB
/
Ex1.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<link rel="stylesheet" href="style1.css" />
<script src="JsBarcode.code128.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script>
$(document).ready(function(){
$("#hideShow").click(function(){
if ($("#hideShow").val() == "Hide"){
$("#info").slideUp();
$("#hideShow").html("Show");
$("#hideShow").val("Show");
}
else{
$("#info").slideDown();
$("#hideShow").html("Hide");
$("#hideShow").val("Hide");
}
});
});
</script>
</head>
<body>
<header>
Virtual bar code:
<input type="text" id="inputCode" onclick="this.value ='';" onfocus="changeGrey()" onblur="changeWhite()"
value="enter the virtual code here"></input>
</header>
<div>
<button id="decode" onclick="decode()">Decode</button>
<button id="hideShow" value="Hide">Hide</button>
</div>
<div id="info">
<div class="textBox">Payee's IBAN: </div>
<div id="iban"></div>
<div class="textBox">Amount to be paid: </div>
<div id="amount"></div>
<div class="textBox">Payement reference: </div>
<div id="ref"></div>
<div class="textBox">Due date: </div>
<div id="date"></div>
<img id="barcode"></img>
</div>
<script src="Ex1.js" type="text/javascript"></script>
</body>
</html>