-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathabc3.html
More file actions
87 lines (69 loc) · 2.07 KB
/
abc3.html
File metadata and controls
87 lines (69 loc) · 2.07 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
<!doctype html>
<html>
<meta charset="utf-8">
<head>
</head>
<body>
<div align="center">
<h1>Student Portal</h1>
<form>
<input type="text" name="email" id="email" placeholder="Email"/><br><br>
<input type="button" onclick="view()" value="submit"><br>
</form>
</div>
<table align="center"><tr>
<th> name </th>
<th> sno </th>
<th> email </th>
<th> mark1 </th>
<th> mark2 </th>
<th> mark3 </th>
<th> average </th>
</tr>
<tr><td id="data1">
</td>
<td id="data2">
</td>
<td id="data3">
</td>
<td id="data4">
</td>
<td id="data5">
</td>
<td id="data6">
</td>
</tr>
<!-- <tr><td id="print1">
</td>
</tr>
<tr><td id="print2">
</td>
</tr> -->
</table>
<script>
// called when the runtime is ready
var Module = {
onRuntimeInitialized: function () {
}
};
// // called from main()
// function onLoaded() {
// alert('Module is loaded');
// }
// }
function view() {
// var abc = document.getElementById('para');
var em1 = document.getElementById('email').value;
//alert(em);
var em = Module.cwrap('viewc', 'string',['string']);
var em2 = em(em1);
document.getElementById('data1').innerHTML = em2;
document.getElementById('data2').innerHTML = em2;
document.getElementById('data3').innerHTML = em2;
document.getElementById('data4').innerHTML = em2;
document.getElementById('data5').innerHTML = em2;
}
</script>
<script async type="text/javascript" src="abc.js"></script>
</body>
</html>