-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjavaScriptRecapAssignment.html
More file actions
90 lines (76 loc) · 2.69 KB
/
javaScriptRecapAssignment.html
File metadata and controls
90 lines (76 loc) · 2.69 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<!DOCTYPE>
<html>
<head>
<title>Web Service</title>
<script src = "script.js"> </script>
<link rel = "stylesheet" href = "style.css" />
</head>
<body>
<div id="ButtonsArea">
<button onclick = "Jsonstorage1()" class = "button"><h2> COMPANIES <h2></button>
<button onclick = "Jsonstorage2()" class = "button"><h2> EMPLOYEES <h2></button>
<button id = "newdatabutton1" style = "visibility: hidden;" class="buttonnew buttonnew3" onclick = "newdatacompany()">NEW COMPANY DATA</button>
<button id = "newdatabutton2" style = "visibility: hidden;" class="buttonnew buttonnew3" onclick = "newdataemployee()">NEW EMPLOYEE DATA</button>
</div>
<div id = "EditingBox" style = "visibility: hidden;">
<fieldset>
<legend>DETAILS</legend>
ID
<textarea id = "textid" rows="1" cols="10"> </textarea>
NAME
<textarea id = "textname" rows="1" cols="10"> </textarea>
COMPANY
<textarea id = "textcompany" rows="1" cols="10"> </textarea>
COUNTRY
<textarea id = "textcountry" rows="1" cols="10"> </textarea>
<button onclick = "saveButton()">Save</button> <button onclick = "resetfun()">Reset</button> <button onclick = "cancel()">Cancel</button>
</fieldset>
</div>
<div id = "EditingBox2" style = "visibility: hidden;">
<fieldset>
<legend>DETAILS</legend>
ID
<textarea id = "textid2" rows="1" cols="10"> </textarea>
NAME
<textarea id = "textname2" rows="1" cols="10"> </textarea>
AGE
<textarea id = "textage" rows="1" cols="10"> </textarea>
CONTACT
<textarea id = "textcontact" rows="1" cols="10"> </textarea>
<button onclick = "saveButton2()">Save</button> <button onclick = "resetfun()">Reset</button> <button onclick = "cancel2()">Cancel</button>
</fieldset>
</div>
<div>
<table id = "Table">
</table>
</div>
<div id = "newdatasection" style = "visibility: hidden;">
<fieldset>
<legend>DETAILS</legend>
ID
<textarea id = "newid" rows="1" cols="10"> </textarea>
NAME
<textarea id = "newname" rows="1" cols="10"> </textarea>
COMPANY
<textarea id = "newcompany" rows="1" cols="10"> </textarea>
COUNTRY
<textarea id = "newcountry" rows="1" cols="10"> </textarea>
<button onclick = process()>Save Me!!!</button>
</fieldset>
</div>
<div id = "newdatasection2" style = "visibility: hidden;">
<fieldset>
<legend>DETAILS</legend>
ID
<textarea id = "newid2" rows="1" cols="10"> </textarea>
NAME
<textarea id = "newname2" rows="1" cols="10"> </textarea>
AGE
<textarea id = "newage" rows="1" cols="10"> </textarea>
CONTACT
<textarea id = "newcontact" rows="1" cols="10"> </textarea>
<button onclick = process2()>Save Me!!!</button>
</fieldset>
</div>
</body>
</html>