PageSourceSearch

https://www.townofcolumbianc.com/repository/designs/parts/scripts/superforms_resp.js

js townofcolumbianc.com collected 2026-09-29 13:35:34 UTC 2,144 bytes, 56 lines download raw bytes

1function reloadCombo(formID) {
2    sSuperForm = eval('document.SuperForms_' + formID);
3    sSuperForm.action = sSuperForm.action + '&reload=true';
4    sSuperForm.resubmit.value = 'Current';
5    sSuperForm.submit();
6}
7
8$(document).ready(function() {
9    valCheckboxes();
10    valRadios();
11    $('.sffield.checkboxes.required input').click(function () {
12        valCheckboxes();
13    });
14    $('.sffield.radios.required input').click(function () {
15        valRadios();
16    });
17    $('form.hidelabels div.sffield.nodefault.textbox input').keydown(function () {
18        if ($(this).parent().find('label').css('opacity') == 0)
19            $(this).parent().find('label').css('opacity', '1.0').height('auto');
20    });
21    $('form.hidelabels div.sffield.nodefault.GNAM input').keydown(function () {
22        if ($(this).parent().find('label').css('opacity') == 0)
23            $(this).parent().find('label').css('opacity', '1.0').height('auto');
24    });
25    $('form.hidelabels div.sffield.nodefault.GCSZ input').keydown(function () {
26        if ($(this).parent().find('label').css('opacity') == 0)
27            $(this).parent().find('label').css('opacity', '1.0').height('auto');
28    });
29    $('form.hidelabels div.sffield.nodefault.textarea textarea').keydown(function () {
30        if ($(this).parent().find('label').css('opacity') == 0)
31            $(this).parent().find('label').css('opacity', '1.0').height('auto');
32    });
33})
34 
35function valCheckboxes() {
36    $('.sffield.checkboxes.required').each(function (index, value) {
37        if ($(this).find('input').is(':checked')) {
38            $(this).removeClass('invalid');
39            $(this).find('input').removeAttr('required');
40        }
41        else {
42            $(this).addClass('invalid');
43            $(this).find('input').attr('required', 'required');
44        }
45    })
46}
47function valRadios() {
48    $('.sffield.radios.required').each(function (index, value) {
49        if ($(this).find('input').is(':checked')) {
50            $(this).removeClass('invalid');
51        }
52        else {
53            $(this).addClass('invalid');
54        }
55    })
56}

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.