PageSourceSearch

https://www.iias.or.jp/wp/wp-content/plugins/mw-wp-form/js/form.js?ver=4.9.33

js iias.or.jp collected 2026-10-01 12:08:15 UTC 1,551 bytes, 46 lines download raw bytes

1jQuery( function( $ ) {
2
3	$( '.mw_wp_form input[data-conv-half-alphanumeric="true"]' ).change( function() {
4		var txt  = $( this ).val();
5		var half = txt.replace( /[A-Za-z0-9]/g, function( s ) {
6			return String.fromCharCode( s.charCodeAt( 0 ) - 0xFEE0 )
7		} );
8		$( this ).val( half );
9	} );
10
11	var file_delete = $( '.mw_wp_form .mwform-file-delete' );
12	file_delete.each( function( i, e ) {
13		var target = $( e ).data( 'mwform-file-delete' );
14		var hidden_field = $( 'input[type="hidden"][name="' + target + '"]' );
15		if ( hidden_field.val() ) {
16			$( e ).css( 'visibility', 'visible' );
17		}
18		$( e ).click( function() {
19			var file_field = $( 'input[type="file"][name="' + target + '"]' );
20			var new_field = $( file_field[0].outerHTML );
21			$( this ).css( 'visibility', 'hidden' );
22			file_field.replaceWith( new_field );
23
24			hidden_field.parent().fadeOut( 100, function() {
25				$( this ).remove();
26			} );
27		} );
28	} );
29	$( document ).on( 'change', '.mw_wp_form input[type="file"]', function() {
30		var name = $( this ).attr( 'name' );
31		file_delete.closest( '[data-mwform-file-delete="' + name + '"]' ).css( 'visibility', 'visible' );
32	} );
33
34	var mw_wp_form_button_no_click = true;
35	$( '.mw_wp_form input[type="submit"]' ).click( function() {
36		var formElement = $( this ).closest( 'form' )[0];
37		if ( formElement && formElement.checkValidity && !formElement.checkValidity() ) {
38			return;
39		}
40		if ( mw_wp_form_button_no_click ) {
41			mw_wp_form_button_no_click = false;
42		} else {
43			$( this ).prop( 'disabled', true );
44		}
45	} );
46} );

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.