SILENT KILLERPanel

Current Path: > home > codekrsu > > ameliagraphics.com > wp-content > plugins > > wp-user-frontend > assets > js > admin


Operation   : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: /home/codekrsu//ameliagraphics.com/wp-content/plugins//wp-user-frontend/assets/js/admin

NameTypeSizeLast ModifiedActions
blockFrameSetup.js File 455 bytes January 31 2019 18:10:48.
gutenblock.js File 9371 bytes January 31 2019 18:10:48.
settings.js File 3027 bytes January 02 2024 16:35:50.
wpuf-enhanced-select.js File 9109 bytes January 14 2018 22:03:14.
wpuf-enhanced-select.min.js File 5302 bytes January 14 2018 22:03:14.
wpuf-module.js File 1307 bytes November 23 2022 17:15:38.
wpuf-setup.js File 4843 bytes January 14 2018 22:03:14.
wpuf-setup.min.js File 3266 bytes January 14 2018 22:03:14.

Reading File: /home/codekrsu//ameliagraphics.com/wp-content/plugins//wp-user-frontend/assets/js/admin/settings.js

(function () {
    document.addEventListener('DOMContentLoaded',function () {
        var tabs    = document.querySelector('.wpuf-settings-wrap').querySelectorAll('h2 a');
        var content = document.querySelectorAll('.wpuf-settings-wrap .metabox-holder th');
        var close   = document.querySelector('#wpuf-search-section span');

        var search_input = document.querySelector('#wpuf-settings-search');

        search_input.addEventListener('keyup', function (e) {
            var search_value = e.target.value.toLowerCase();
            var value_tab  = [];

            if ( search_value.length ) {
                close.style.display = 'flex';
                content.forEach(function (row, index) {

                    var content_id = row.closest('div').getAttribute('id');
                    var tab_id     = content_id + '-tab';
                    var found_value = row.innerText.toLowerCase().includes( search_value );

                    if ( found_value ){
                        row.closest('tr').style.display = 'table-row';
                    }else {
                        row.closest('tr').style.display = 'none';
                    }

                    if ( 'wpuf_mails' === content_id ){
                        row.closest('tbody').querySelectorAll('tr').forEach(function (tr) {
                            tr.style.display = '';
                        });
                    }

                    if ( found_value === true && ! value_tab.includes( tab_id ) ) {
                        value_tab.push(tab_id);
                    }
                })

                if ( value_tab.length ) {
                    document.getElementById(value_tab[0]).click();
                }

                tabs.forEach(function (tab) {
                    var tab_id = tab.getAttribute('id');
                    if ( ! value_tab.includes( tab_id ) ){
                        document.getElementById(tab_id).style.display = 'none';
                    }else {
                        document.getElementById(tab_id).style.display = 'block';
                    }
                });

            }else {
                wpuf_search_reset();
            }
        })

        close.addEventListener('click',function (event) {
            wpuf_search_reset();
            search_input.value = '';
            close.style.display = 'none';
        })

        function wpuf_search_reset() {
            content.forEach(function (row, index) {
                var content_id = row.closest('div').getAttribute('id');
                var tab_id     = content_id + '-tab';
                document.getElementById(content_id).style.display = '';
                document.getElementById(tab_id).style.display = '';
                document.getElementById('wpuf_general-tab').click();
            })
            document.querySelector('.wpuf-settings-wrap .metabox-holder').querySelectorAll('tr').forEach(function (row) {
                row.style.display = '';
            });

        }
    });
})();

SILENT KILLER Tool