# speechkit/4.7.0/src/Component/Post/Panel/Inspect/js/inspect.js

BeyondWords – AI audio for publishers, version 4.7.0. 25 lines.

- Page: https://pluginprobe.com/plugins/speechkit/4.7.0/code/src/Component/Post/Panel/Inspect/js/inspect.js
- Raw: https://pluginprobe.com/plugins/speechkit/4.7.0/raw/src/Component/Post/Panel/Inspect/js/inspect.js
- Modified: 2024-05-02T10:30:56+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/speechkit/4.7.0/code/src/Component/Post/Panel/Inspect/js/inspect.js#L10-L20`.

```javascript
/* global jQuery, ClipboardJS */

jQuery( document ).ready( function ( $ ) {
	const clipboard = new ClipboardJS( '#beyondwords__inspect--copy' );

	clipboard.on( 'success', function () {
		$( '#beyondwords__inspect--copy-confirm' ).show();
	} );

	$( 'body' ).on( 'click', '#beyondwords__inspect--remove', function () {
		/* eslint-disable-next-line no-alert */
		const confirm = window.confirm(
			wp.i18n.__(
				'Remove all BeyondWords data when the post is saved?',
				'speechkit'
			)
		);

		if ( confirm ) {
			$( '#beyondwords_delete_content' ).removeAttr( 'disabled' );
			$( '[data-beyondwords-metavalue]' ).val( '' );
		}
	} );
} );

```
