walletpress/wp-plugin/assets/js/walletpress-admin.js
RMI Admin ba8d1f1261 Initial commit: WalletPress v1.0.0-beta
Self-hosted wallet management platform for WordPress:
- WP plugin: vault, generate, token gates, payments, wallet login, 15 admin pages
- CLI: 17 commands covering all backend feature groups
- Landing pages + PDF documentation
- Connects to rmi-backend API (86+ endpoints, 29+ chains)
2026-06-27 17:12:49 +07:00

10 lines
357 B
JavaScript

document.addEventListener('DOMContentLoaded', () => {
for (const btn of document.querySelectorAll('.copy-shortcode')) {
btn.addEventListener('click', () => {
navigator.clipboard.writeText(btn.dataset.code).then(() => {
btn.textContent = 'Copied!';
setTimeout(() => { btn.textContent = 'Copy'; }, 2000);
});
});
}
});