+ $max_size = jirafeau_get_max_upload_size();
+if ($max_size > 0) {
+ echo t('NO_BROWSER_SUPPORT') . $max_size;
+}
+?>';
+
+ addCopyListener('upload_link_button', 'upload_link');
+ addCopyListener('preview_link_button', 'preview_link');
+ addCopyListener('direct_link_button', 'direct_link');
+ addCopyListener('delete_link_button', 'delete_link');
+ addTextCopyListener('password_copy_button', 'output_key');
+// @license-end
+// show password toggle
+ document.getElementById('show_password').innerHTML = EYE_OPEN;
+ document.getElementById('show_password')?.addEventListener('click', function() {
+ const pwd = document.getElementById('input_key');
+ const show_password = pwd.type === 'text';
+ const next_show_password_toggle_value = !show_password;
+ if (next_show_password_toggle_value) {
+ pwd.type = 'text';
+ document.getElementById('show_password').setAttribute('data-show-enabled', true);
+ // symbol eye strikethrough
+ document.getElementById('show_password').innerHTML = EYE_CLOSE;
+ } else {
+ pwd.type = 'password';
+ // symbol eye
+ document.getElementById('show_password').innerHTML = EYE_OPEN;
+ }
+ });