-
Notifications
You must be signed in to change notification settings - Fork 1
/
tweel.html
115 lines (102 loc) · 2.13 KB
/
tweel.html
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
table {
border-collapse: collapse;
border-spacing: 0;
width: 100%;
border: 1px solid #ddd;
}
th, td {
text-align: left;
padding: 8px;
}
tr:nth-child(even){background-color: #f2f2f2}
.collapsible {
background-color: #777;
color: white;
cursor: pointer;
padding: 18px;
width: 100%;
border: none;
text-align: left;
outline: none;
font-size: 15px;
}
.active, .collapsible:hover {
background-color: #555;
}
.content {
padding: 0 18px;
display: none;
overflow: hidden;
background-color: #f1f1f1;
}
table:active{
color: blue;
}
button:active{
color: blue;
}
</style>
<title>Th prices and details of threewheel neat to NSBM</title>
</head>
<body>
<div style="overflow-x:auto;">
<table align="center" border="1">
<th>Destination(from NSBM)</th>
<th>The fee</th>
<tr>
<td>School Junction</td>
<td>Rs.90/=</td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
</table>
</div>
<button class="collapsible"><h6 align="center">Click hear to get three wheels number</h6></button>
<div class="content">
<table border="5">
<tr>
<td>twheel1</td>
<td>number1</td>
</tr>
<tr>
<td>twheel2</td>
<td>number2</td>
</tr>
<tr>
<td>twheel3</td>
<td>number3</td>
</tr>
</table>
</div>
<script>
var coll = document.getElementsByClassName("collapsible");
var i;
for (i = 0; i < coll.length; i++) {
coll[i].addEventListener("click", function() {
this.classList.toggle("active");
var content = this.nextElementSibling;
if (content.style.display === "block") {
content.style.display = "none";
} else {
content.style.display = "block";
}
});
}
</script>
</body>
</html>