Commit graph

8 commits

Author SHA1 Message Date
04cadac205
fix: increase precision of fiat conversion result
Extended the decimal precision of the converted XMR value from 8 to 12 places. This ensures more accurate representation of conversion rates, especially critical for high-precision financial calculations.
2024-08-09 08:33:06 +02:00
acb18fd17e
fix: standardize decimal places for cryptocurrency conversion
Unified the decimal places to 8 for all cryptocurrency conversions in
fiatConvert function. This simplifies the logic and ensures consistent
precision across all supported cryptocurrencies.
2024-08-09 08:31:15 +02:00
a1ccf0b43b
feat: fetch exchange rates immediately on startup
Start fetching exchange rates immediately upon initialization, ensuring the most current data is available from the outset. This prevents potential inaccuracies during initial use if rates are only fetched after the interval delay.
2024-08-09 08:12:58 +02:00
fae1336444
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.
2024-08-08 16:34:03 +02:00
061892fa04
feat: improve API error handling & add exchange rate updates
- Switched to using cURL for fetching data from CoinGecko API, with added error handling for failed requests. This reduces the chances of runtime errors and ensures fallback to previous data.
- Implemented periodic updates to exchange rates every 5 seconds in `main.js` to keep the rates current.
- Added OpenGraph meta tags on `index.php` for better social media integration.
- Minor CSS adjustments for better table rendering.
- Moved `import` statements for Bootstrap CSS and JS to the top in `main.js`.
2024-08-08 14:55:47 +02:00
437dfbd57e
feat: add clipboard and conversion functionality to main.js 2024-08-08 08:44:06 +02:00
4e368015e1
chore: Remove unused CSS files 2024-08-08 08:39:11 +02:00
thecashewtrader
eb0cf80b42 add webpack for lean bootstrap js 2024-05-24 20:18:12 +05:30