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 | 198517 bytes | June 30 2025 16:27:10. | |
forms-list.min.js.map | File | 1433087 bytes | June 30 2025 16:27:10. | |
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 | 68420 bytes | June 02 2025 07:42:20. | |
wpuf-form-builder-mixins.js | File | 12843 bytes | May 12 2025 14:47:56. | |
wpuf-form-builder-wpuf-forms.js | File | 7296 bytes | July 15 2025 12:13:42. | |
wpuf-form-builder.js | File | 56130 bytes | July 15 2025 12:13:42. | |
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. |
;(function($) { /** * Upload handler helper * * @param string {browse_button} browse_button ID of the pickfile * @param string {container} container ID of the wrapper * @param int {max} maximum number of file uplaods * @param string {type} */ window.WPUF_Uploader = function (browse_button, container, max, type, allowed_type, max_file_size) { this.removed_files = []; this.container = container; this.browse_button = browse_button; this.max = max || 1; this.count = $('#' + container).find('.wpuf-attachment-list > li').length; //count how many items are there this.perFileCount = 0; //file count on each upload this.UploadedFiles = 0; //file count on each upload //if no element found on the page, bail out if( !$('#'+browse_button).length ) { return; } // enable drag option for ordering $( "ul.wpuf-attachment-list" ).sortable({ placeholder: "highlight" }); $( "ul.wpuf-attachment-list" ).disableSelection(); //instantiate the uploader this.uploader = new plupload.Uploader({ runtimes: 'html5,html4', browse_button: browse_button, container: container, multipart: true, multipart_params: { action: 'wpuf_upload_file', form_id: $( '#' + browse_button ).data('form_id') }, urlstream_upload: true, file_data_name: 'wpuf_file', max_file_size: max_file_size + 'kb', url: wpuf_upload.plupload.url + '&type=' + type, flash_swf_url: wpuf_upload.flash_swf_url, filters: [{ title: 'Allowed Files', extensions: allowed_type }] }); //attach event handlers this.uploader.bind('Init', $.proxy(this, 'init')); this.uploader.bind('FilesAdded', $.proxy(this, 'added')); this.uploader.bind('QueueChanged', $.proxy(this, 'upload')); this.uploader.bind('UploadProgress', $.proxy(this, 'progress')); this.uploader.bind('Error', $.proxy(this, 'error')); this.uploader.bind('FileUploaded', $.proxy(this, 'uploaded')); this.uploader.init(); $('#' + container).on('click', 'a.attachment-delete', $.proxy(this.removeAttachment, this)); return this.uploader; }; WPUF_Uploader.prototype = { init: function (up, params) { this.showHide(); $('#' + this.container).prepend('<div class="wpuf-file-warning"></div>'); }, showHide: function () { if ( this.count >= this.max) { if ( this.count > this.max ) { $('#' + this.container + ' .wpuf-file-warning').html( wpuf_upload.warning ); } else { $('#' + this.container + ' .wpuf-file-warning').html( wpuf_upload.warning ); } $('#' + this.container).find('.file-selector').hide(); return; }; $('#' + this.container + ' .wpuf-file-warning').html( '' ); $('#' + this.container).find('.file-selector').show(); }, added: function (up, files) { var $container = $('#' + this.container).find('.wpuf-attachment-upload-filelist'); this.showHide(); $.each(files, function(i, file) { $(".wpuf-submit-button").attr("disabled", "disabled"); $container.append( '<div class="upload-item" id="' + file.id + '"><div class="progress progress-striped active"><div class="bar"></div></div><div class="filename original">' + file.name + ' (' + plupload.formatSize(file.size) + ') <b></b>' + '</div></div>'); }); up.refresh(); // Reposition Flash/Silverlight up.start(); }, upload: function (uploader) { this.count = uploader.files.length - this.removed_files.length ; this.showHide(); }, progress: function (up, file) { var item = $('#' + file.id); $('.bar', item).css({ width: file.percent + '%' }); $('.percent', item).html( file.percent + '%' ); }, error: function (up, error) { $('#' + this.container).find('#' + error.file.id).remove(); var msg = ''; switch (error.code) { case -600: msg = wpuf_upload.plupload.size_error; break; case -601: msg = wpuf_upload.plupload.type_error; break; default: msg = 'Error #' + error.code + ': ' + error.message; break; } alert(msg); this.count -= 1; this.showHide(); this.uploader.refresh(); }, uploaded: function (up, file, response) { try { var res = $.parseJSON(response.response); }catch (e) { var text = true; } var self = this; $('#' + file.id + " b").html("100%"); $('#' + file.id).remove(); if( text ) { this.perFileCount++; this.UploadedFiles++; var $container = $('#' + this.container).find('.wpuf-attachment-list'); $container.append(response.response); if ( this.perFileCount > this.max ) { var attach_id = $('.wpuf-image-wrap:last a.attachment-delete',$container).data('attach-id'); self.removeExtraAttachment(attach_id); $('.wpuf-image-wrap',$container).last().remove(); this.perFileCount--; } } else { alert(res.data.replace( /(<([^>]+)>)/ig, '')); up.files.pop(); this.count -= 1; this.showHide(); } var uploaded = this.UploadedFiles, FileProgress = up.files.length; this.count = $('#' + this.container).find('.wpuf-attachment-list > li').length; if ( this.count >= this.max ) { $('#' + this.container).find('.file-selector').hide(); } if ( FileProgress === uploaded ) { if ( typeof grecaptcha !== 'undefined' && $('.wpuf-form-add #g-recaptcha-response').length ) { if ( !grecaptcha.getResponse().length ){ return; } } $(".wpuf-submit-button").removeAttr("disabled"); } }, removeAttachment: function(e) { e.preventDefault(); var self = this, el = $(e.currentTarget); Swal.fire({ text: wpuf_upload.confirmMsg, icon: 'warning', showCancelButton: true, confirmButtonColor: '#d54e21', confirmButtonText: wpuf_upload.delete_it, cancelButtonText: wpuf_upload.cancel_it, customClass: { confirmButton: 'btn btn-success', cancelButton: 'btn btn-danger', } }).then(function (result) { if (!result.isConfirmed) { return; } var data = { 'attach_id' : el.data('attach-id'), 'nonce' : wpuf_upload.nonce, 'action' : 'wpuf_file_del' }; self.removed_files.push(data); jQuery('#del_attach').val(el.data('attach-id')); jQuery.post(wpuf_upload.ajaxurl, data, function() { self.perFileCount--; el.parent().parent().remove(); self.count -= 1; self.showHide(); self.uploader.refresh(); }); }); }, removeExtraAttachment : function( attach_id ) { var self = this; var data = { 'attach_id' : attach_id, 'nonce' : wpuf_upload.nonce, 'action' : 'wpuf_file_del' }; this.removed_files.push(data); jQuery.post(wpuf_upload.ajaxurl, data, function() { self.count -= 1; self.showHide(); self.uploader.refresh(); }); } }; })(jQuery);
SILENT KILLER Tool