PageSourceSearch

https://www.regis.run/html/js/func_3.js?t=1791486410

js regis.run collected 2026-10-08 19:07:06 UTC 2,961 bytes, 91 lines download raw bytes

1/*  Wizard */
2jQuery(function($) {
3    "use strict";
4    // Chose below which method to send the email, available:
5    // Simple phpmail text/plain > send_email_3.php (default)
6    // PHPMailer text/html > phpmailer/send_email_3_phpmailer.php
7    // PHPMailer text/html SMTP > phpmailer/send_email_3_phpmailer_smtp.php
8    // PHPMailer with html template > phpmailer/send_email_3_phpmailer_template.php
9    // PHPMailer with html template SMTP > phpmailer/send_email_3_phpmailer_template_smtp.php
10    //$('form#wrapped').attr('action', 'send_email_3.php');
11    $("#wizard_container").wizard({
12        stepsWrapper: "#wrapped",
13        submit: ".submit",
14        unidirectional: false,
15        beforeSelect: function(event, state) {
16            if ($('input#website').val().length != 0) {
17                return false;
18            }
19            if (!state.isMovingForward)
20                return true;
21            var inputs = $(this).wizard('state').step.find(':input');
22            return !inputs.length || !!inputs.valid();
23        }
24    }).validate({
25        errorPlacement: function(error, element) {
26            if (element.is(':radio') || element.is(':checkbox')){
27                error.insertBefore(element.next());
28            } else {
29                error.insertAfter(element);
30            }
31        }
32    });
33    //  progress bar
34    $("#progressbar").progressbar();
35    $("#wizard_container").wizard({
36        afterSelect: function(event, state) {
37            $("#progressbar").progressbar("value", state.percentComplete);
38            $("#location").text("" + state.stepsComplete + " of " + state.stepsPossible + " completed");
39        }
40    });
41});
42
43$("#wizard_container").wizard({
44    transitions: {
45        branchtype: function($step, action) {
46            var branch = $step.find(":checked").val();
47            if (!branch) {
48                $("form").valid();
49            }
50            return branch;
51        }
52    }
53});
54
55/* File upload validate size and file type - For details: https://github.com/snyderp/jquery.validate.file*/
56$("form#wrapped")
57    .validate({
58        rules: {
59            fileupload: {
60                fileType: {
61                    types: ["pdf", "jpg", "png", "jpeg", "heic"]
62                },
63                maxFileSize: {
64                    "unit": "KB",
65                    "size": 12000
66                },
67                minFileSize: {
68                    "unit": "KB",
69                    "size": "2"
70                }
71            }
72        }
73    });
74
75// Input name and email value
76function getVals(formControl, controlType) {
77    switch (controlType) {
78
79        case 'name_field':
80            // Get the value for input
81            var value = $(formControl).val();
82            $("#name_field").text(value);
83            break;
84
85        case 'email_field':
86            // Get the value for input
87            var value = $(formControl).val();
88            $("#email_field").text(value);
89            break;
90    }
91}

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.