Skip to content

Commit f8a2e13

Browse files
Huiqiong GuHuiqiong Gu
authored andcommitted
adding first three projects
0 parents  commit f8a2e13

File tree

842 files changed

+123849
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

842 files changed

+123849
-0
lines changed

Project 1/images/left-selected.gif

84 Bytes
Loading

Project 1/images/left.gif

205 Bytes
Loading

Project 1/images/mid-selected.gif

53 Bytes
Loading

Project 1/images/mid.gif

179 Bytes
Loading
84 Bytes
Loading

Project 1/images/right.gif

205 Bytes
Loading

Project 1/other peoples/p1.html

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5+
<head>
6+
<title>CS 142 Project 1, problem 1</title>
7+
<link rel="stylesheet" type="text/css" href="p1b.css" />
8+
</head>
9+
<body>
10+
<table cellspacing="0" >
11+
<tr>
12+
<th>Item</th>
13+
<th>Manufacturer</th>
14+
<th>Size</th>
15+
<th>Unit Price</th>
16+
<th>Quantity</th>
17+
<th>Total Price</th>
18+
</tr>
19+
<tr class="odd">
20+
<td>Corn Flakes</td>
21+
<td>Kellogg's</td>
22+
<td>18 oz.</td>
23+
<td class="middle">2.50</td>
24+
<td class="middle">1</td>
25+
<td class="middle">2.50</td>
26+
</tr>
27+
<tr class="even">
28+
<td>Solid White Tuna</td>
29+
<td>Starkist</td>
30+
<td>5 oz</td>
31+
<td class="middle">2.79</td>
32+
<td class="middle">2</td>
33+
<td class="middle">5.58</td>
34+
</tr>
35+
<tr class="odd">
36+
<td>Cream of Mushroom Soup</td>
37+
<td>Campbell's</td>
38+
<td>10.75 oz</td>
39+
<td class="middle">1.00</td>
40+
<td class="middle">2</td>
41+
<td class="middle">2.00</td>
42+
</tr>
43+
<tr class="even">
44+
<td>2% Lowfat Milk</td>
45+
<td>Safeway</td>
46+
<td>0.5 gal</td>
47+
<td class="middle">1.99</td>
48+
<td class="middle">1</td>
49+
<td class="middle">1.99</td>
50+
</tr>
51+
<tr class="odd">
52+
<td>Extra-Wide Egg Noodles</td>
53+
<td>Golden Grain</td>
54+
<td>12 oz</td>
55+
<td class="middle">0.87</td>
56+
<td class="middle">3</td>
57+
<td class="middle">2.61</td>
58+
</tr>
59+
<tr class="hidden">
60+
<td>Total</td>
61+
<td></td>
62+
<td></td>
63+
<td class="middle"></td>
64+
<td class="middle">9</td>
65+
<td class="middle">14.68</td>
66+
</tr>
67+
</table>
68+
</body>
69+
</html>

Project 1/other peoples/p1a.css

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
.middle {
2+
text-align: center;
3+
}
4+
5+
th {
6+
text-align: left;
7+
}
8+
9+
body {
10+
font-family: Tahoma;
11+
font-size: 13px;
12+
}
13+
14+
15+
16+
17+
18+
19+
20+
th {
21+
background-color: #687291;
22+
color: white;
23+
}
24+
25+
.odd {
26+
background-color: #dfe1e7;
27+
}
28+
29+
.even {
30+
background-color: #eeeff2;
31+
}
32+
33+
table {
34+
border-collapse: collapse;
35+
}
36+
37+
table, tr {
38+
border: 1px solid white;
39+
}
40+
41+
.hidden {
42+
display: none;
43+
}

Project 1/other peoples/p1b.css

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
.middle {
2+
text-align: center;
3+
}
4+
5+
th {
6+
text-align: left;
7+
}
8+
9+
body {
10+
font-family: Tahoma;
11+
font-size: 13px;
12+
}
13+
14+
15+
16+
17+
18+
table {
19+
border-style: solid;
20+
border-width: 10px;
21+
border-color: #d0d0ff;
22+
padding: 20px;
23+
}
24+
25+
tr.hidden {
26+
font-weight: bold;
27+
border-top: 2px solid black;
28+
padding-top: 5px;
29+
}

Project 1/other peoples/p2.css

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
body {
2+
font-family: Tahoma, Arial, sans-serif;
3+
font-size: 13px;
4+
color: black;
5+
background: white;
6+
margin: 10px;
7+
}
8+
9+
a {
10+
text-decoration: none;
11+
padding-right: 5px;
12+
padding-left : 5px;
13+
padding-top: 5px;
14+
padding-bottom: 3px;
15+
}
16+
17+
a:link {
18+
color :black;
19+
background-image: url('left.gif') , url('mid.gif'), url('right.gif');
20+
background-repeat: no-repeat, no-repeat, no-repeat;
21+
background-position: left top, center top, right top;
22+
background-size: auto, 96% 100%, auto;
23+
border-bottom: 1px solid;
24+
border-color: #cccccc;
25+
white-space: nowrap;
26+
}
27+
28+
a:visited {
29+
font-weight: bold;
30+
color: black;
31+
}
32+
33+
a:hover {
34+
color: #cc6600;
35+
}
36+
37+
a:active {
38+
font-weight: bold;
39+
color: black;
40+
background-image: url('left-selected.gif'), url('mid-selected.gif'), url('right-selected.gif');
41+
background-repeat: no-repeat,no-repeat, no-repeat;
42+
background-position: left top, center top, right top;
43+
background-size: auto, 95% 100%, auto;
44+
border-bottom: 1px solid;
45+
border-style: none;
46+
border-color: white;
47+
}
48+
49+
table.frame{
50+
border-collapse:collapse;
51+
background: white;
52+
margin: 2px;
53+
margin-top: 15px;
54+
width: 100%;
55+
white-space: nowrap;
56+
}
57+
58+
th.left {
59+
text-align: center;
60+
padding-right:0px;
61+
padding-left: 0px;
62+
padding-top: 0px;
63+
padding-bottom: 3px;
64+
font-weight: normal;
65+
white-space: nowrap;
66+
}
67+
68+
th.empty_right {
69+
width: 80%;
70+
text-align: left;
71+
padding-right:0px;
72+
padding-left: 0px;
73+
padding-top: 0px;
74+
padding-bottom: 3px;
75+
font-weight: normal;
76+
border-bottom: 1px solid;
77+
border-color: #cccccc;
78+
white-space: nowrap;
79+
}
80+
81+
th.empty {
82+
width: 0.5%;
83+
text-align: center;
84+
padding-right:0px;
85+
padding-left: 0px;
86+
padding-top: 0px;
87+
padding-bottom: 3px;
88+
font-weight: normal;
89+
white-space: nowrap;
90+
border-bottom: 1px solid;
91+
border-color: #cccccc;
92+
}

0 commit comments

Comments
 (0)