HEX
Server: nginx/1.16.1
System: Linux ecs-04358622 4.19.90-2107.6.0.0100.oe1.bclinux.x86_64 #1 SMP Wed Dec 1 19:59:44 CST 2021 x86_64
User: nginx (994)
PHP: 8.0.0
Disabled: NONE
Upload Files
File: /home/www/wp-content/plugins/meta-box/js/range.js
( function ( $, rwmb ) {
	'use strict';

	/**
	 * Update text value.
	 */
	function update() {
		const $this = $( this ),
			$output = $this.siblings( '.rwmb-range-output' );

		$output.html( $this.val() );
		$this.on( 'input propertychange change', () => $output.html( $this.val() ) );
	}

	function init( e ) {
		$( e.target ).find( '.rwmb-range' ).each( update );
	}

	rwmb.$document
		.on( 'mb_ready', init )
		.on( 'clone', '.rwmb-range', update );
} )( jQuery, rwmb );