-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathtest.html
208 lines (197 loc) · 6.69 KB
/
test.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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>cells-selectorRectangular highlighting cells / jQuery plugin / cells-selector</title>
<meta name="keywords"
content="tablecellsselection, jquery plugin, cells-selector, cells selector, cells selection, javascript, highlight cells, highlighting cells, rectangular highlighting, table cells, html">
<meta name="description"
content="tablecellsselection - jQuery plugin emulate rectangular table's cells selection (like in GoogleDocs or Excel). Can be useful in WYSIWYG editors.">
<meta name="author" content="Valerij Ivashchenko">
<meta name="robots" content="follow, index">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"
integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<script src="https://code.jquery.com/jquery-2.2.4.js"></script>
<script src="tablecellsselection.js"></script>
<link rel="stylesheet" href="tablecellsselection.css">
</head>
<body class="col-md-12">
<style>
td, th {text-align: center;}
.table-bordered>tbody>tr>td, .table-bordered>tbody>tr>td, .table>thead>tr>th {vertical-align: middle;}
</style>
<div class="col-md-12">
<h1>TableCellsSelection - jQuery plugin for intuitive table's cells selection.</h1>
<p>jQuery plugin that allows highlighting table cells as it happens in GoogleDocs or Excel. Can be useful in WYSIWYG editors.
</p>
</div>
<div class="col-md-5">
<div class="col-md-12">
<h2 class="bold">Before <sup><small class="text-muted">without plugin</small></sup></h2>
</div>
<table class="table table-bordered" summary="Table selection without plugin">
<thead>
<tr>
<th rowspan="2">Table summary</th>
<th colspan="3">Group 1</th>
<th colspan="3">Group 2</th>
</tr>
<tr>
<th>Column 1</th>
<th>Column 2</th>
<th>Column 3</th>
<th>Column 4</th>
<th>Column 5</th>
<th>Column 6</th>
</tr>
</thead>
<tbody>
<tr>
<th>Property 1</th>
<td>$10</td>
<td>$20</td>
<td>$30</td>
<td>$40</td>
<td>$50</td>
<td>$60</td>
</tr>
<tr>
<th>Property 2</th>
<td>$10</td>
<td rowspan="3">$20</td>
<td>$30</td>
<td>$40</td>
<td>$50</td>
<td>$60</td>
</tr>
<tr>
<th>Property 3</th>
<td>$10</td>
<td colspan="3">$30</td>
<td>$60</td>
</tr>
<tr>
<th>Property 4</th>
<td>$10</td>
<td>$30</td>
<td>$40</td>
<td>$50</td>
<td>$60</td>
</tr>
<tr>
<th>Property 5</th>
<td>$10</td>
<td>$20</td>
<td>$30</td>
<td>$40</td>
<td>$50</td>
<td>$60</td>
</tr>
<tr>
<th>Property 6</th>
<td>$10</td>
<td>$20</td>
<td>$30</td>
<td>$40</td>
<td>$50</td>
<td>$60</td>
</tr>
</tbody>
</table>
</div>
<div class="col-md-5">
<div class="col-md-12">
<h2 class="bold">After <sup><small class="text-muted">with plugin</small></sup></h2>
</div>
<table class="table table-bordered" summary="Table selection with plugin" id="tablecellsselection">
<thead>
<tr>
<th rowspan="2">Table summary</th>
<th colspan="3">Group 1</th>
<th colspan="3">Group 2</th>
</tr>
<tr>
<th>Column 1</th>
<th>Column 2</th>
<th>Column 3</th>
<th>Column 4</th>
<th>Column 5</th>
<th>Column 6</th>
</tr>
</thead>
<tbody>
<tr>
<th>Property 1</th>
<td>$10</td>
<td>$20</td>
<td>$30</td>
<td>$40</td>
<td>$50</td>
<td>$60</td>
</tr>
<tr>
<th>Property 2</th>
<td>$10</td>
<td rowspan="3">$20</td>
<td>$30</td>
<td>$40</td>
<td>$50</td>
<td>$60</td>
</tr>
<tr>
<th>Property 3</th>
<td>$10</td>
<td colspan="3">$30</td>
<td>$60</td>
</tr>
<tr>
<th>Property 4</th>
<td>$10</td>
<td>$30</td>
<td>$40</td>
<td>$50</td>
<td>$60</td>
</tr>
<tr>
<th>Property 5</th>
<td>$10</td>
<td>$20</td>
<td>$30</td>
<td>$40</td>
<td>$50</td>
<td>$60</td>
</tr>
<tr>
<th>Property 6</th>
<td>$10</td>
<td>$20</td>
<td>$30</td>
<td>$40</td>
<td>$50</td>
<td>$60</td>
</tr>
</tbody>
</table>
</div>
<div class="col-md-12">
<!-- Place this tag where you want the button to render. -->
<a class="github-button" href="https://github.com/likemusic/tablecellsselection" data-style="mega" data-count-href="/likemusic/tablecellsselection/stargazers" data-count-api="/repos/likemusic/tablecellsselection#stargazers_count" data-count-aria-label="# stargazers on GitHub" aria-label="Star likemusic/tablecellsselection on GitHub">Star</a>
</div>
<script>
jQuery(document).ready(function ($) {
$('#tablecellsselection').tableCellsSelection();
});
</script>
<!-- Place this tag in your head or just before your close body tag. -->
<script async defer src="https://buttons.github.io/buttons.js"></script>
</body>
</html>