From 02b67bce244d50e34c4fc305180c4d191ac8c9fa Mon Sep 17 00:00:00 2001 From: Tobi Date: Tue, 9 Apr 2024 10:51:16 +0200 Subject: [PATCH] removing instructions --- index.html | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/index.html b/index.html index 47ae491..054bfff 100644 --- a/index.html +++ b/index.html @@ -76,22 +76,10 @@ color: #666; font-size: 12px; } - #install-instructions { - display: none; - text-align: center; - padding: 20px; - }

Exchange Rate Calculator

- - -
-

For the best experience, add this web app to your home screen:

-

1. Tap the Share button.

-

2. Tap Add to Home Screen.

-
@@ -161,22 +149,6 @@ calculationList.appendChild(li); }); } - - // Show installation instructions only if accessed via browser - if (window.matchMedia('(display-mode: browser)').matches) { - document.getElementById('install-instructions').style.display = 'block'; - } - - // Hide installation instructions once installed as standalone PWA - window.addEventListener('beforeinstallprompt', (event) => { - event.preventDefault(); // Prevent default browser prompt - document.getElementById('install-instructions').style.display = 'none'; - }); - - // Check if launched from home screen and hide instructions - if (window.matchMedia('(display-mode: standalone)').matches) { - document.getElementById('install-instructions').style.display = 'none'; - }