-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmy_html.htm
More file actions
executable file
·97 lines (97 loc) · 1.93 KB
/
my_html.htm
File metadata and controls
executable file
·97 lines (97 loc) · 1.93 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
91
92
93
94
95
96
97
<html>
<head>
<meta content="text/html;charset=utf-8" http-equiv="Content-Type">
<meta content="utf-8" http-equiv="encoding">
<title>משימות מישפחתיות</title>
<style>
table, th, td {
border: 3px solid hsl(165, 100%, 40%);
text-align: center;
}
table {
border-collapse: collapse;
margin: auto;
height: 50%;
width: 50%;
}
body {
background-color: hsl(40, 100%, 70%);
direction: rtl;
}
th.nemes {
font-family: Georgia, serif;
font-size: 140%
}
td {
font-family: "Comic Sans MS", cursive, sans-serif;
background-color: Red;
font-size: 140%
}
h1 {
text-align: center;
}
td.done {
color: rgb(128,128,128);
background-color: rgb(100, 255, 100);
text-decoration: line-through;
font-size: 140%
}
table {
width: 60%;
height: 60%;
}
</style>
<script>
function changeClass(id) {
if (id.className == "done") {
id.className = "";
return;
}
id.className = "done";
}
function initValues() {
var x = 0;
document.getElementById("demo").innerHTML = "נקודות מישפחתיות: " + x;
for (i = 0; i < document.getElementsByTagName("TD").length; i++) {
document.getElementsByTagName("td")[i].setAttribute("onclick", "changeClass(this)");
}
}
</script>
</head>
<body onload = "initValues()">
<h1>טבלת משימות מישפחתיות</h1>
<table>
<tr>
<th class ="nemes">אפרים</th>
<th class ="nemes">נעמה</th>
<th class ="nemes">רעות</th>
<th class ="nemes">שירה</th>
</tr>
<tr>
<td>מדיח חלבי </td>
<td>לרוקן פחים</td>
<td>לרוקן סל כביסה</td>
<td>לנגב ארונות מטבח</td>
</tr>
<tr>
<td>מדיח בשרי</td>
<td>לנקות מקלחונים</td>
<td>משימה</td>
<td></td>
</tr>
<tr>
<td></td>
<td>להעביר מכונה ליבוש</td>
<td>משימה</td>
<td></td>
</tr>
<tr>
<td></td>
<td>משימה</td>
<td>משימה</td>
<td></td>
</tr>
</table>
<h3 id = "demo"></h3>
</body>
</html>