HEX
Server: LiteSpeed
System: Linux php-prod-1.spaceapp.ru 5.15.0-160-generic #170-Ubuntu SMP Wed Oct 1 10:06:56 UTC 2025 x86_64
User: xnsbb3110 (1041)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: /home/shaping-sar.ru/public_html/wp-content/plugins/cyr2lat/assets/js/system-info.js
/* global Cyr2LatSystemInfoObject */

document.addEventListener( 'DOMContentLoaded', function() {
	document.querySelector( '#ctl-system-info-wrap .helper' ).addEventListener(
		'click',
		function() {
			const systemInfoTextArea = document.getElementById( 'ctl-system-info' );

			navigator.clipboard.writeText( systemInfoTextArea.value ).then(
				() => {
					// Clipboard successfully set.
				},
				() => {
					// Clipboard write failed.
				},
			);

			// noinspection JSUnresolvedVariable
			const message = Cyr2LatSystemInfoObject.copiedMsg;

			// eslint-disable-next-line no-alert
			alert( message );
		},
	);
} );