Current Path: > home > codekrsu > > ameliagraphics.com > wp-content > plugins > > wp-user-frontend > > assets > js >
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 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
admin | Directory | - | - | |
components | Directory | - | - | |
jquery-blockui | Directory | - | - | |
selectWoo | Directory | - | - | |
stores | Directory | - | - | |
admin-profile-subs.js | File | 274 bytes | December 12 2017 16:24:58. | |
admin-shortcode.js | File | 1082 bytes | April 27 2017 14:23:34. | |
billing-address.js | File | 5352 bytes | January 02 2024 16:35:50. | |
chosen.jquery.js | File | 42443 bytes | June 21 2015 15:01:52. | |
conditional.js | File | 11442 bytes | June 21 2015 15:01:52. | |
countries.json | File | 9943 bytes | June 16 2020 11:53:34. | |
forms-list.js | File | 203 bytes | May 12 2025 14:47:56. | |
forms-list.min.js | File | 199008 bytes | August 04 2025 15:46:00. | |
forms-list.min.js.map | File | 1434631 bytes | August 04 2025 15:46:00. | |
frontend-form.js | File | 65690 bytes | April 16 2025 14:30:24. | |
frontend-form.min.js | File | 27636 bytes | April 16 2025 14:30:24. | |
jquery-ui-timepicker-addon.js | File | 66616 bytes | June 21 2015 15:01:52. | |
jquery.smallipop-0.4.0.min.js | File | 13169 bytes | June 21 2015 15:01:52. | |
jquery.validate.min.js | File | 20889 bytes | June 21 2015 15:01:52. | |
metabox-tabs.js | File | 755 bytes | December 12 2017 16:24:58. | |
registration-forms.js | File | 1262 bytes | May 25 2023 13:10:10. | |
subscriptions-old.js | File | 9514 bytes | June 02 2025 07:42:20. | |
subscriptions.js | File | 346 bytes | September 12 2024 14:30:42. | |
subscriptions.min.js | File | 458961 bytes | June 30 2025 16:27:10. | |
subscriptions.min.js.map | File | 2540013 bytes | June 30 2025 16:27:10. | |
upload.js | File | 8761 bytes | April 23 2025 15:02:24. | |
upload.min.js | File | 4399 bytes | April 23 2025 15:02:24. | |
wpuf-admin-tools.js | File | 3574 bytes | April 14 2020 17:35:50. | |
wpuf-admin.js | File | 8967 bytes | January 24 2024 23:45:44. | |
wpuf-form-builder-components.js | File | 70758 bytes | August 04 2025 15:46:00. | |
wpuf-form-builder-mixins.js | File | 12843 bytes | May 12 2025 14:47:56. | |
wpuf-form-builder-wpuf-forms.js | File | 8059 bytes | August 04 2025 15:46:00. | |
wpuf-form-builder.js | File | 57023 bytes | August 04 2025 15:46:00. | |
wpuf-login-widget.js | File | 2793 bytes | August 31 2023 10:52:36. | |
wpuf-tmc-button.js | File | 1223 bytes | March 15 2021 08:08:22. |
/* * This is a JavaScript Scratchpad. * * Enter some JavaScript, then Right Click or choose from the Execute Menu: * 1. Run to evaluate the selected text (Cmd-R), * 2. Inspect to bring up an Object Inspector on the result (Cmd-I), or, * 3. Display to insert the result in a comment after the selection. (Cmd-L) */ (function($, window) { var WPUF_Conditional = { init: function() { var form = $('#wpuf-form-editor'); form.on('click', 'a.wpuf-conditional-plus', this.duplicateRow); form.on('click', 'a.wpuf-conditional-minus', this.removeRow); form.on('click', 'input[type=radio].wpuf-conditional-enable', this.showHide); form.on('change', 'input[type=text][data-type="label"]', this.labelRender ); form.on('change', 'input[type=text][data-type="option"]', this.optionRender ); form.on('change', 'input[type=text][data-type="option_value"]', this.optionRender ); form.on('change', 'select.wpuf-conditional-fields', this.optionChange); this.getLabel( true ); //initially get options values array this.getOption( true ); this.labelRender(); this.optionRender(); }, newOptionValue: [], prevOptionValue: [], prevLabelValue: [], newLabelValue: [], getOption: function( optionStatus ) { var labels = $('#wpuf-form-editor').find('input[data-type="name"]'); $.each( labels, function(k, label_field ) { var label = $(label_field), label_name = label.val(); if( label_name != '' ) { var label_option = label.closest('.wpuf-form-holder').find('input[data-type="option_value"]'); var generate = []; $.each( label_option, function( key, option ) { var field_value = $(option).val(); if ( field_value == '' ) { var field_value = $(option).closest('div').find('input[data-type=option]').val(); } generate.push( field_value ); }); if( optionStatus === true ) { WPUF_Conditional.prevOptionValue[label_name] = generate; } if( optionStatus === false ) { WPUF_Conditional.newOptionValue[label_name] = generate; } } }); }, getLabel: function( labelStatus ) { var label = $('#wpuf-form-editor').find('input[data-type="name"]'), prev_label = WPUF_Conditional.prevLabelValue, new_label = WPUF_Conditional.newLabelValue; if( labelStatus === true ) { prev_label.length = 0; } if( labelStatus === false ) { new_label.length = 0; } $.each( label, function(k, label_field ) { var label = $(label_field), label_name = label.val(); if( label_name != '' && labelStatus === true ) { prev_label.push( label_name ); } if( label_name != '' && labelStatus === false ) { new_label.push( label_name ); } }); }, labelRender: function() { //after change get options values array WPUF_Conditional.getLabel( false ); var options = WPUF_Conditional.fieldDropdown(), label = $('#wpuf-form-editor').find('input[data-type="name"]'), cond_select_wraps = $('select.wpuf-conditional-fields'), wrap = $('.wpuf-form-holder'), prev_label = WPUF_Conditional.prevLabelValue, new_label = WPUF_Conditional.newLabelValue; $.each( wrap, function( key, parent ) { var label_name = $(parent).find('input[data-type="name"]').val(), cond_select_wraps = $(parent).find('select.wpuf-conditional-fields'), new_option = []; $.each( options, function( k, opt_value ) { var opt_val = $( opt_value ).attr('value'); if( opt_val !== label_name || label_name == '' ) { new_option.push( opt_value ); } }); $.each( cond_select_wraps, function( i, select_val) { var select = $(select_val), select_val = select.val(); var index = new_label.indexOf( select_val ); if( index == '-1' ) { var oldindex = prev_label.indexOf( select_val ); select.html( new_option.join('') ).val( new_label[oldindex] ); } else { select.html( new_option.join('') ).val( select_val ); } }); }); WPUF_Conditional.getLabel( true ); WPUF_Conditional.getOption( true ); }, optionRender: function() { //after change get options values array WPUF_Conditional.getOption( false ); var option = WPUF_Conditional.labelOptionValue, cond_select_wraps = $('select.wpuf-conditional-fields'); $.each( cond_select_wraps, function( i, select_val) { var select = $(select_val), select_val = $(select_val).val(), option_generate = WPUF_Conditional.optionDropdown( select_val ), optionDropdown = select.closest('tr').find('select.wpuf-conditional-fields-option'), option_prev_val = optionDropdown.val(), prev_options = WPUF_Conditional.prevOptionValue, new_options = WPUF_Conditional.newOptionValue; if( select_val !== '' ) { var index = new_options[select_val].indexOf( option_prev_val ); if( index == '-1') { var oldindex = prev_options[select_val].indexOf( option_prev_val ); optionDropdown.html(option_generate).val( new_options[select_val][oldindex] ); } else { optionDropdown.html(option_generate).val(option_prev_val); } } else { optionDropdown.html('<option>- select -</option>'); } }); WPUF_Conditional.getOption( true ); }, getFields: function() { var elements = [], form_editor = $('#wpuf-form-editor'); form_editor.find('li.wpuf-conditional').each(function(i, el) { el = $(el); var label = el.find('input[type=text][data-type="label"]').val(), name = el.find('[data-type="name"]').val(); elements[i] = { 'name': name, 'label': label, 'options': [], 'values': [], }; el.find('.wpuf-options [data-type="option"]').each(function(j, jel){ var option_value = $(this).siblings('input[data-type="option_value"]').val(); if ( option_value == '') { option_value = $(jel).val(); } elements[i].options.push( $(jel).val() ); elements[i].values.push( option_value ); }); }); return elements; }, fieldDropdown: function() { var fields = this.getFields(), dropdown = []; dropdown.push('<option value="">- select -</option>'); for( var field in fields ) { var label = fields[field].label; if( label != '') { dropdown.push('<option value="' + fields[field].name + '">' + label + '</option>'); } } return dropdown; }, optionDropdown: function(fieldName) { var fields = this.getFields(), dropdown = '<option value="">- select -</option>', options = [], values =[]; for(field in fields) { if(fields[field].name === fieldName) { options = fields[field].options; values = fields[field].values; } } for( var option in options ) { var o = options[option], v = values[option]; dropdown += '<option value="' + v + '">' + o + '</option>'; } return dropdown; }, fillFields: function() { var options = this.fieldDropdown(); $('.wpuf-conditional-fields').each(function(i, el) { $(el).empty().append(options); }); }, showHide: function() { var self = $(this), parent = self.closest('.wpuf-form-sub-fields').find('.conditional-rules-wrap'), val = self.val(); if ( val === 'yes' ) { parent.removeClass('wpuf-hide'); WPUF_Conditional.labelRender(); WPUF_Conditional.optionRender(); } else { parent.addClass('wpuf-hide'); } }, duplicateRow: function(e) { e.preventDefault(); var self = $(this), tr = self.closest('tr'); tr.clone().insertAfter(tr); }, removeRow: function(e) { e.preventDefault(); var table = $(this).closest('table'), rows = table.find('tr').length; if ( rows > 1 ) { $(this).closest('tr').remove(); } }, optionChange: function() { var self = $(this), value = self.val(), optionDropdown = self.closest('tr').find('select.wpuf-conditional-fields-option'); if ( value !== '' ) { options = WPUF_Conditional.optionDropdown(value); optionDropdown.empty().append(options); } else { optionDropdown.html('<option>- Select -</option>'); } } }; $(function(){ window.wpuf_conditional = WPUF_Conditional; WPUF_Conditional.init(); }); })(jQuery, window);
SILENT KILLER Tool