File: colspan.html

package info (click to toggle)
libjs-jquery-stupidtable 1.0.1%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 544 kB
  • ctags: 10
  • sloc: makefile: 7
file content (73 lines) | stat: -rw-r--r-- 1,380 bytes parent folder | download
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
<!DOCTYPE html>
<html>
<head>
  <title>Stupid jQuery table sort (colspan test)</title>
  <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
  <script src="../stupidtable.js?dev"></script>
  <script>
    $(function(){
        $("table").stupidtable();
    });
  </script>
  <style type="text/css">
    table {
      border-collapse: collapse;
    }
    th, td {
      padding: 5px 10px;
      border: 1px solid #999;
    }
    th {
      background-color: #eee;
    }
    th[data-sort]{
      cursor:pointer;
    }
    tr.awesome{
      color: red;
    }
  </style>
  </style>
</head>

<body>

  <h1>Stupid jQuery table sort! (colspan test)</h1>

  <p>Tables using colspans are handled just fine.</p>

  <table id="stupid">
    <thead>
      <tr>
          <th colspan="4">The Big Table Header</th>
      </tr>
      <tr>
        <th data-sort="string">Letter</td>
        <th colspan="2" data-sort="string">colspan=2</th>
        <th data-sort="int">Number</td>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td>def</td>
        <td>X</td>
        <td>9</td>
        <td>1</td>
      </tr>
      <tr>
        <td>abc</td>
        <td>Z</td>
        <td>8</td>
        <td>2</td>
      </tr>
      <tr>
        <td>bcd</td>
        <td>Y</td>
        <td>7</td>
        <td>0</td>
      </tr>
    </tbody>
  </table>

</body>
</html>