差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
programming:javascript [2008/11/13 00:40] – nakayama | programming:javascript [2019/05/18 02:23] (現在) – 外部編集 非ログインユーザー | ||
---|---|---|---|
行 23: | 行 23: | ||
tr.alternate * { background-color: | tr.alternate * { background-color: | ||
</ | </ | ||
- | <script type=" | + | <script type=" |
<script type=" | <script type=" | ||
- | + | Element.addMethods({ | |
+ | collectTextNodes: | ||
+ | return $A($(element).childNodes).collect( function(node) { | ||
+ | return (node.nodeType==3 ? node.nodeValue : | ||
+ | (node.hasChildNodes() ? Element.collectTextNodes(node) : '' | ||
+ | }).flatten().join('' | ||
+ | } | ||
+ | }); | ||
var TableSorter = Class.create({ | var TableSorter = Class.create({ | ||
initialize: function(element) { | initialize: function(element) { | ||
行 98: | 行 106: | ||
}); | }); | ||
</ | </ | ||
- | <table id="table_sort" | + | <table id="netfw"> |
< | < | ||
<tr> | <tr> | ||
- | <td>.NET バージョン</ | + | <th>.NET バージョン</ |
- | <td> | + | <th> |
- | <td> | + | <th> |
+ | </tr> | ||
</ | </ | ||
< | < | ||
行 218: | 行 227: | ||
</ | </ | ||
</ | </ | ||
+ | <table id=" | ||
+ | < | ||
+ | <tr> | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </tr> | ||
+ | </ | ||
+ | < | ||
+ | <tr> | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </tr> | ||
+ | <tr class=" | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | |||
+ | </tr> | ||
+ | <tr> | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </tr> | ||
+ | </ | ||
+ | </ | ||
</ | </ |