Software: Apache. PHP/8.1.30 uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root) Safe-mode: OFF (not secure) /home/picotech/domains/ecom1.picotech.app/public_html_ecom1/public/dist/js/ drwxr-xr-x |
Viewing file: Select action/file-type: "use strict"; (function($) { $.fn.ifs = function(options) { var settings = $.extend({ hideJS: true }, options ); $.fn.showOrHide = function(is_met, $section) { if (is_met) { $section.slideDown(); } else { $section.slideUp(); $section.find('select, input').each(function(){ }); } } return this.each( function() { var $section = $(this); var cond = $(this).data('if'); // This is a regex suffix that will make sure that the string is not inside quotes var ifNotInQuotes = "(?:(?=([^\"]*\"[^\"]*\")*[^\"]*$)(?=([^']*'[^']*')*[^']*$))"; // First get all (distinct) used field/inputs var re = new RegExp("(#?[0-9a-z-_]*[a-z][0-9a-z-_]*)" + ifNotInQuotes, 'gi'); var match = re.exec(cond); var inputs = {}, e = "", name ="", tmp_re = ""; while(match !== null) { name = match[1]; e = (name.substring(0,1)=='#' ? name : "[name=" + name + "]"); if ( $(e).length && ! (name in inputs) ) { inputs[name] = e; } match = re.exec(cond); } // Replace fields names/ids by $().val() for (name in inputs) { e = inputs[name]; tmp_re = new RegExp("(" + name + ")\\b" + ifNotInQuotes, 'g') if ( ($(e).attr('type')=='radio') || ($(e).attr('type')=='checkbox') ) { cond = cond.replace(tmp_re,"$('" + e + ":checked').val()"); } else { cond = cond.replace(tmp_re,"$('" + e + "').val()"); } } //Set up event listeners for (name in inputs) { $(inputs[name]).on('change', function() { $.fn.showOrHide(eval(cond), $section); }); } //If setting was chosen, hide everything first... if (settings.hideJS) { $(this).hide(); } //Show based on current value on page load $.fn.showOrHide(eval(cond), $section); }); } }(jQuery)); |
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0039 ]-- |