HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: /var/www/html/insiders/wp-load/wp-content/plugins/internal-links/admin/js/ilj_modal.js
function ilj_create_modal(title, content) {
    var modal = jQuery('<div/>').addClass('ilj_modal show');
    var modal_wrapper = jQuery('<div/>').addClass('ilj_modal_wrap').append(modal);

    var header = jQuery('<div/>').addClass('ilj_modal_header').append(
            jQuery('<h2 />').text(title)
        )
    ;

    var body = jQuery('<div/>').addClass('ilj_modal_body').html(content);

    var footer = jQuery('<div/>').addClass('ilj_modal_footer').append(
            jQuery('<button/>').text('OK').addClass('button button-primary').on('click', function(e) {closeModal(e);})
        )
    ;

    var closeModal = function () {
        modal.removeClass('show').addClass('hide');
        jQuery('body').css({overflowY: 'auto'});
        setTimeout(function() {
            modal_wrapper.remove();
        },200);
    }.bind(modal_wrapper);

    modal.append(header);
    modal.append(body);
    modal.append(footer);

    jQuery('body').append(modal_wrapper).css({
        overflowY: 'hidden'
    });
}
// Export the function to the global scope
window.ilj_create_modal = ilj_create_modal;