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/gositeme.com/hdinvoice3/includes/ve/plugins/resizimg/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/gositeme/domains/gositeme.com/hdinvoice3/includes/ve/plugins/resizimg/trumbowyg.resizimg.js
(function ($) {
    'use strict';

    var defaultOptions = {
        minSize: 32,
        step: 4
    };

    var preventDefault = function (ev) {
        return ev.preventDefault();
    };

    $.extend(true, $.trumbowyg, {
        plugins: {
            resizimg: {
                init: function (trumbowyg) {
                    trumbowyg.o.plugins.resizimg = $.extend(true, {},
                        defaultOptions,
                        trumbowyg.o.plugins.resizimg || {},
                        {
                            resizable: {
                                resizeWidth: false,
                                onDragStart: function (ev, $el) {
                                    var opt = trumbowyg.o.plugins.resizimg;
                                    var x = ev.pageX - $el.offset().left;
                                    var y = ev.pageY - $el.offset().top;
                                    if (x < $el.width() - opt.minSize || y < $el.height() - opt.minSize) {
                                        return false;
                                    }
                                },
                                onDrag: function (ev, $el, newWidth, newHeight) {
                                    var opt = trumbowyg.o.plugins.resizimg;
                                    if (newHeight < opt.minSize) {
                                        newHeight = opt.minSize;
                                    }
                                    newHeight -= newHeight % opt.step;
                                    $el.height(newHeight);
                                    return false;
                                },
                                onDragEnd: function () {
                                    trumbowyg.$c.trigger('tbwchange');
                                }
                            }
                        }
                    );

                    function initResizable() {
                        trumbowyg.$ed.find('img:not(.resizable)')
                            .resizable(trumbowyg.o.plugins.resizimg.resizable)
                            .on('mousedown', preventDefault);
                    }

                    function destroyResizable() {
                        trumbowyg.$ed.find('img.resizable')
                            .resizable('destroy')
                            .off('mousedown', preventDefault);
                        trumbowyg.syncTextarea();
                    }

                    trumbowyg.$c.on('tbwinit', initResizable);
                    trumbowyg.$c.on('tbwfocus', initResizable);
                    trumbowyg.$c.on('tbwchange', initResizable);
                    trumbowyg.$c.on('tbwblur', destroyResizable);
                    trumbowyg.$c.on('tbwclose', destroyResizable);
                }
            }
        }
    });
})(jQuery);

CasperSecurity Mini