-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcs142-test-table.html
More file actions
57 lines (55 loc) · 1.81 KB
/
cs142-test-table.html
File metadata and controls
57 lines (55 loc) · 1.81 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
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>CS 142 Project 3, Problem 2</title>
<link rel="stylesheet" type="text/css" href="cs142-test-table.css" />
<script src="./cs142-template-processor.js"></script>
<script src="./TableTemplate.js"></script>
</head>
<body>
<h1>First Table: id "table1"</h1>
<p>Your filedIn table should appear here:</p>
<table style="visibility:hidden;" id="table1" class="example" cellspacing="0">
<tr class="header">
<td>{{PartNumber}}</td>
<td>{{Length}}</td>
</tr>
<tr class="even"><td>{{n14926}}</td><td>{{n47}}</td></tr>
<tr class="odd"><td>{{n773}}</td><td>{{n3_5}}</td></tr>
<tr class="even"><td>{{n9318}}</td><td>{{n10}}</td></tr>
<tr class="odd"><td>{{n3045}}</td><td>{{n4}}</td></tr>
</table>
<p>and should look like:</p>
<table class="example" cellspacing="0">
<tr class="header">
<td>Part Number</td>
<td>Length</td>
</tr>
<tr class="even"><td>14926</td><td>47</td></tr>
<tr class="odd"><td>773</td><td>3.5</td></tr>
<tr class="even"><td>9318</td><td>10</td></tr>
<tr class="odd"><td>3045</td><td>4</td></tr>
</table>
<script type="text/javascript">
//<![CDATA[
(function patchTable() {
var dict = {
PartNumber: 'Part Number',
Length: 'Length',
n14926: '14926',
n47: '47',
n773: '773',
n3_5: '3.5',
n9318: '9318',
n10: '10',
n3045: '3045',
n4: '4'
};
TableTemplate.fillIn("table1", dict);
})();
//]]>
</script>
</body>
</html>