From fae13364444690880a53a5458f85d8d99c6d6b96 Mon Sep 17 00:00:00 2001 From: Kumi Date: Thu, 8 Aug 2024 16:34:03 +0200 Subject: [PATCH] feat: refactor input handling and copy button functionality Refactored event listeners for XMR and fiat input fields, consolidating common logic and improving maintainability. Introduced explicit copy button IDs and enhanced their functionality by moving inline click handlers to addEventListener. These changes streamline form control interactions and ensure consistent behavior across different user inputs. Additionally, removed redundant onchange handlers from the PHP file to simplify code and mitigate potential conflicts. --- index.php | 10 +++++----- src/js/main.js | 44 +++++++++++++++++++++++++++++++++++++++++--- 2 files changed, 46 insertions(+), 8 deletions(-) diff --git a/index.php b/index.php index 0e2e79c..6642134 100644 --- a/index.php +++ b/index.php @@ -134,8 +134,8 @@ $attribution = isset($config['attribution']) ? $config['attribution'] : '';
- - + +
@@ -144,9 +144,9 @@ $attribution = isset($config['attribution']) ? $config['attribution'] : '';
- - - +