T.ME/BIBIL_0DAY
CasperSecurity


Server : Apache/2
System : Linux server-15-235-50-60 5.15.0-164-generic #174-Ubuntu SMP Fri Nov 14 20:25:16 UTC 2025 x86_64
User : gositeme ( 1004)
PHP Version : 8.2.29
Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Directory :  /home/gositeme/domains/pdf-ai.com/private_html/public/plugins/jqtarea/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/gositeme/domains/pdf-ai.com/private_html/public/plugins/jqtarea/plugin-jqtarea.js
/*
 * jQuery Text Area Limit
 * https://iamjoberror.com/projects/jQTarea
 * info@iamjoberror.com
 * Version: 1.2.0
 * Copyright 2019 Bolarinwa Olakunle
 */
(function ($) {
    $.fn.jQTArea = function (options) {
        var
            defaults =
                {
                    setLimit: 200, // Input limit
                    setExt: "W", // Animate Width (W) or Height (H) based on input length
                    setExtR: false // calculate setExt in reverse
                },
            plugin = $.extend({}, defaults, options);

        this.each(function () {
            var
                // get textarea element
                getTextarea = $(this);

            //set default values
            $(".jQTAreaValue").html(plugin.setLimit);
            $(".jQTAreaCount").html(0);

            // bind events to textarea
            if (getTextarea.is('textarea')) {
                getTextarea.bind("keyup focus change", function () {

                    // validate on event trigger
                    fnValidate($(this));
                });
            }

            function fnValidate(e) {
                var
                    // get input
                    calPerc,
                    getInput = e.val(),
                    // get input length
                    inputLength = getInput.length,
                    // get set limit
                    limit = plugin.setLimit;
                if (inputLength > limit) {
                    // truncate any input beyond the set limit
                    e.val(getInput.substring(0, limit));

                } else {
                    // set .jQTALimitCount to display input length
                    $(".jQTAreaCount").html(inputLength);

                    // set .jQTALimitCountR to display input length remaining
                    $(".jQTAreaCountR").html(limit - inputLength);

                    // set .jQTALimitExt to animate either width or height of element based on input length
                    calPerc = inputLength * 100 / limit;

                    //set setExt value to reverse eg, 80% instead of 20%
                    if (plugin.setExtR) {
                        calPerc = 100 - calPerc;
                    }

                    if (plugin.setExt === "W") {
                        $(".jQTAreaExt").width(
                             calPerc + "%"
                        )
                    } else {
                        $(".jQTAreaExt").height(
                            calPerc + "%"
                        )
                    }
                }
            }
        });

        return this;
    }
})(jQuery);

CasperSecurity Mini