SCDNG PELER
Server IP : 144.76.124.212  /  Your IP : 216.73.216.36
Web Server : LiteSpeed
System : Linux l4cp.vnetindia.com 4.18.0-553.40.1.lve.el8.x86_64 #1 SMP Wed Feb 12 18:54:57 UTC 2025 x86_64
User : rakcha ( 1356)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home5/rakcha/www/admin/assets/js/pages/steps/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home5/rakcha/www/admin/assets/js/pages/steps/steps-data.js
var wizard = $("#wizard").steps();

 

// Add step

wizard.steps("add", {

    title: "HTML code", 

    content: "<strong>HTML code</strong>"

});



var form = $("#example-advanced-form").show();



form.steps({

    headerTag: "h3",

    bodyTag: "fieldset",

    transitionEffect: "slideLeft",

    onStepChanging: function (event, currentIndex, newIndex)

    {

        // Allways allow previous action even if the current form is not valid!

        if (currentIndex > newIndex)

        {

            return true;

        }

        // Forbid next action on "Warning" step if the user is to young

        if (newIndex === 3 && Number($("#age-2").val()) < 18)

        {

            return false;

        }

        // Needed in some cases if the user went back (clean up)

        if (currentIndex < newIndex)

        {

            // To remove error styles

            form.find(".body:eq(" + newIndex + ") label.error").remove();

            form.find(".body:eq(" + newIndex + ") .error").removeClass("error");

        }

        form.validate().settings.ignore = ":disabled,:hidden";

        return form.valid();

    },

    onStepChanged: function (event, currentIndex, priorIndex)

    {

        // Used to skip the "Warning" step if the user is old enough.

        if (currentIndex === 2 && Number($("#age-2").val()) >= 18)

        {

            form.steps("next");

        }

        // Used to skip the "Warning" step if the user is old enough and wants to the previous step.

        if (currentIndex === 2 && priorIndex === 3)

        {

            form.steps("previous");

        }

    },

    onFinishing: function (event, currentIndex)

    {

        form.validate().settings.ignore = ":disabled";

        return form.valid();

    },

    onFinished: function (event, currentIndex)

    {

        alert("Submitted!");

    }

}).validate({

    errorPlacement: function errorPlacement(error, element) { element.before(error); },

    rules: {

        confirm: {

            equalTo: "#password-2"

        }

    }

});



$("#example-vertical").steps({

    headerTag: "h3",

    bodyTag: "section",

    transitionEffect: "slideLeft",

    stepsOrientation: "vertical"

});

Anon7 - 2022
SCDN GOK