PageSourceSearch

https://www.coloradoicsb.com/plugins/smb/form/components/assets/js/form.js?v.1.1.62

js coloradoicsb.com collected 2026-10-04 13:27:03 UTC 2,430 bytes, 54 lines download raw bytes

1+(function ($) {
2    "use strict";
3
4    $(document).ready(function () {
5        $("body").on("SMBLeadsFormReady", function () {
6            var $formSection =  $('[data-control="form"]');
7            if ($formSection.length) {
8                $formSection.each(function () {
9                    if ($(this).data('mhorgid') != '') {
10                        $('<input>').attr({
11                            type: 'hidden',
12                            name: 'mh_orgId',
13                            value: $(this).data('mhorgid')
14                        }).appendTo($('form', $(this)));
15                        $('<input>').attr({
16                            type: 'hidden',
17                            name: 'mh_template_id',
18                            value: $(this).data('templateId')
19                        }).appendTo($('form', $(this)));
20                    }
21                });
22            }
23        });
24
25        // target section form without these section class and if it's only ple
26        var $formSectionClean = $('.section-form:not(.newsletter-2-fields):not(.newsletter-3-fields):not(.contact-us-im):not(.appointment-request):not(.exclusive-offer):not(.pet-memorial):not(.form-default)'),
27            $formIsPle = $('.form.isPleForm');
28
29        if ($formSectionClean.length && $formIsPle.length) {
30
31            $formSectionClean.each(function () {
32
33                $(this).find($formIsPle).addClass('form-themeExtras');
34                $("body").on("SMBLeadsFormReady", function () {
35                    var $form2colSection = $('.forms--2col-textarea:not(.newsletter-2-fields):not(.newsletter-3-fields):not(.contact-us-im):not(.appointment-request):not(.exclusive-offer):not(.pet-memorial):not(.form-default)'),
36                        $formLabelOptionB = $('.forms-option--b .leadForm .form__group:not(.checkbox__group):not(.radio__group)');
37
38                    $form2colSection.find($formIsPle).each(function () {
39                        var formGroup = $(this).find(".form__group").not(".form-input-comments");
40                        formGroup.wrapAll("<div class='groupWrap' />");
41                    });
42
43                    $formLabelOptionB.each(function () {
44                        if ($(this).hasClass('hasLabel')) {
45                            $(this).addClass('optionB-enabled');
46                        }
47                    });
48                });
49
50            });
51        }
52    });
53
54})(window.jQuery);

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.