PageSourceSearch

https://fit.clinic/js/check_counter.js

js fit.clinic collected 2026-10-02 17:09:22 UTC 1,002 bytes, 29 lines download raw bytes

1// $(function() {
2//     $('input:checkbox').change(function() {
3//         var cnt = $('#check_count input:checkbox:checked').length;
4//         var check = $('#check_count input:checkbox').length
5//         $('div.total_count').text('合計:' + cnt + ' / ' + check + '点');
6//     }).trigger('change');
7// });
8
9
10// 修正版
11$(function() {
12    // チェックボックスの状態が変わった時に合計を算出
13    $('input:checkbox').change(function() {
14        calculateTotal();
15    }).trigger('change');
16
17    // テーブル行(tr)がクリックされた場合にも合計を更新
18    $('#check_count tr').click(function() {
19        calculateTotal();
20    });
21
22    // 合計を算出する関数を定義
23    function calculateTotal() {
24        var cnt = $('#check_count input:checkbox:checked').length;
25        var check = $('#check_count input:checkbox').length;
26        $('div.total_count').text('合計:' + cnt + ' / ' + check + '点');
27    }
28});
29

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.