-
Notifications
You must be signed in to change notification settings - Fork 54
/
example.html.haml
67 lines (64 loc) · 1.81 KB
/
example.html.haml
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
%html
%head
%title Table Fixed Header
%meta{content: "text/html; charset=UTF-8", :"http-equiv" => "Content-Type"}
%script{:src => "jquery-1.7.2.min.js"}
%link{:href => "bootstrap-2.3.2.css", :rel => "stylesheet"}
/ CSS and JS for table fixed header
%link{:href => "table-fixed-header.css", :rel => "stylesheet"}
%script{:src => "table-fixed-header.js"}
%script{:src => "duplicate_rows.js"}
%body
.container
%h2#mynav | my navigation bar | my navigation bar | my navigation bar | my navigation bar |
%h1 Table Fixed Header
%table.table.table-bordered.table-striped.table-fixed-header
%thead.header
%tr
%th{:colspan => 1, :rowspan => 2}
A title
%th{:colspan => 3, :rowspan => 1}
A multicolumn title
%th{:colspan => 1, :rowspan => 2}
Comment
%tr
%th{:colspan => 1, :rowspan => 1}
Sub1
%th{:colspan => 1, :rowspan => 1}
Sub2
%th{:colspan => 1, :rowspan => 1}
Sub3
%tbody
%tr
%td
Val1
%td
Val2
%td
Val3
%td
Val4
%td
Val5
%tr
%td{:colspan => 1, :rowspan => 2}
Bigval
%td
Some1
%td
Some1
%td
Some1
%td{:colspan => 1, :rowspan => 2}
This is awesome
%tr
%td
Some2
%td
Some2
%td
Some2
%script{:language => "javascript", :type => "text/javascript"}
$(document).ready(function(){
$('.table-fixed-header').fixedHeader();
});