User:Quantum7/sandbox
Appearance
Signatures
[edit]Alternating-color sortable tables
[edit]Manually endering row colors for each row breaks sorting & makes it hard to insert/delete/reorder elements. For instance, sorting the following table breaks the coloring.
NAME | Description | Class | Type | Flexible | Link | Author | Year |
---|---|---|---|---|---|---|---|
MAMMOTH | MAtching Molecular Models Obtained from Theory | Cα | Pair | No | server download | CEM Strauss & AR Ortiz | 2002 |
CE/CE-MC | Combinatorial Extension -- Monte Carlo | Cα | Multi | No | server | I. Shindyalov | 2000 |
DaliLite | Distance Matrix Alignment | C-Map | Pair | No | server | L. Holm | 1993 |
TM-align | TM-score based protein structure alignment | Cα | Pair | nil | server and download | Y. Zhang & J. Skolnick | 2005 |
Adding the following code to Special:mypage/common.css will make the following table color properly in all sorting instances:
table.alternating tr:nth-child(even) { background:#EFEFEF; }
NAME | Description | Class | Type | Flexible | Link | Author | Year |
---|---|---|---|---|---|---|---|
MAMMOTH | MAtching Molecular Models Obtained from Theory | Cα | Pair | No | server download | CEM Strauss & AR Ortiz | 2002 |
CE/CE-MC | Combinatorial Extension -- Monte Carlo | Cα | Multi | No | server | I. Shindyalov | 2000 |
DaliLite | Distance Matrix Alignment | C-Map | Pair | No | server | L. Holm | 1993 |
TM-align | TM-score based protein structure alignment | Cα | Pair | nil | server and download | Y. Zhang & J. Skolnick | 2005 |
Hidden boxes
[edit]Basic
Body
Code
code codecode
2-part
code code code