PageSourceSearch

https://itdi.pro/community/wp-content/plugins/image-upload-for-bbpress/js/bbp-image-upload.js?ver=1.2.0

js itdi.pro collected 2026-09-25 21:07:17 UTC 1,389 bytes, 27 lines download raw bytes

1/**
2 * Author: BerryPress
3 * License: GNU General Public License version 3 or later
4 */
5function hm_bbpui_file_upload(field_id) {
6	jQuery('#hm_bbpui_file_form, #hm_bbpui_file_frame').remove();
7	jQuery('#' + field_id).parent().css('overflow', 'hidden')
8		.append('<br /><form id="hm_bbpui_file_form" action="?hm_bbpui_do_upload=1" method="post" target="hm_bbpui_file_frame" enctype="multipart/form-data" onsubmit="hm_bbpui_file_upload_submit();" data-field-id="' + field_id + '">' +
9		'<input type="file" name="hm_bbpui_file" id="hm_bbpui_file" tabindex="-1" onchange="jQuery(this).parent().submit();" />' +
10		'<iframe id="hm_bbpui_file_frame" name="hm_bbpui_file_frame" />');
11	jQuery('#hm_bbpui_file').trigger('click');
12}
13
14function hm_bbpui_file_upload_submit() {
15	jQuery('#hm_bbpui_file_frame').on('load', function() {
16		var response = jQuery('#hm_bbpui_file_frame').contents().find('body').text();
17		if (response == '' || response == 'Error') {
18			alert('The image could not be uploaded. Please check that it is a valid JPEG, PNG, or GIF file and that the file size is not too large.');
19			response = '';
20		}
21		jQuery('#' + jQuery('#hm_bbpui_file_form').data('field-id')).val(response).prop('disabled', false);
22		jQuery('#hm_bbpui_file_frame').off('load');
23	});
24	jQuery('#' + jQuery('#hm_bbpui_file_form').data('field-id')).prop('disabled', true).val('Please wait...');
25	
26	return true;
27}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.