First draft

This commit is contained in:
2025-12-02 10:06:37 +00:00
parent 6d76533d1f
commit 801c24885b
11 changed files with 498 additions and 165 deletions

View File

@@ -4,16 +4,19 @@
* @license https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html GNU General Public License v2.0
*/
function HostingSupport1984CopyEmailAddress( e ) {
e.preventDefault();
var emailAddressTag = document.querySelector( '#hosting-support-1984-address' );
emailAddressTag.select();
document.execCommand( 'copy' );
function HostingSupport1984CopyEmailAddress(e) {
e.preventDefault();
const emailAddressTag = document.querySelector('#hosting-support-1984-address');
navigator.clipboard.writeText(emailAddressTag.value)
.catch(err => console.error("Clipboard write failed:", err));
}
if (document.querySelector( '#hosting-support-1984-link' )) {
document.querySelector( '#hosting-support-1984-link' ).addEventListener(
'click',
HostingSupport1984CopyEmailAddress
);
document.querySelector('#hosting-support-1984-link')
?.addEventListener('click', HostingSupport1984CopyEmailAddress);
if (document.querySelector('#hosting-support-1984-link')) {
document.querySelector('#hosting-support-1984-link').addEventListener(
'click',
HostingSupport1984CopyEmailAddress
);
}