From 7db7be33316a656d074b5a0cdd534532be6ed8ef Mon Sep 17 00:00:00 2001 From: sachinggsingh <152975718+sachinggsingh@users.noreply.github.com> Date: Wed, 6 Nov 2024 12:23:43 +0530 Subject: [PATCH 01/17] The double button in Abouts page #984 --- about.html | 44 +++++++++++++++++++++++++------------------- 1 file changed, 25 insertions(+), 19 deletions(-) diff --git a/about.html b/about.html index 9658657..11e5bb7 100644 --- a/about.html +++ b/about.html @@ -211,16 +211,17 @@ + @@ -1695,6 +1696,9 @@

FIND US

+ + + \ No newline at end of file diff --git a/manifest.json b/manifest.json new file mode 100644 index 0000000..5e432f1 --- /dev/null +++ b/manifest.json @@ -0,0 +1,20 @@ +{ + "name": "Ticket-Booking", + "short_name": "Ticket-Booking", + "start_url": "/", + "display": "standalone", + "background_color": "#ffffff", + "theme_color": "#000000", + "icons": [ + { + "src": "/icon-192x192.png", + "sizes": "192x192", + "type": "image/png" + }, + { + "src": "/icon-512x512.png", + "sizes": "512x512", + "type": "image/png" + } + ] + } diff --git a/scripts.js b/scripts.js new file mode 100644 index 0000000..8df64f9 --- /dev/null +++ b/scripts.js @@ -0,0 +1,12 @@ +// Register the service worker +if ('serviceWorker' in navigator) { + window.addEventListener('load', () => { + navigator.serviceWorker.register('/sw.js') // Pointing to the sw.js file + .then(registration => { + console.log('ServiceWorker registration successful:', registration); + }) + .catch(error => { + console.error('ServiceWorker registration failed:', error); + }); + }); +} \ No newline at end of file diff --git a/sw.js b/sw.js new file mode 100644 index 0000000..2f85769 --- /dev/null +++ b/sw.js @@ -0,0 +1,43 @@ +const CACHE_NAME = 'my-pwa-cache-v1'; +const urlsToCache = [ + '/', + '/index.html', + '/styles.css', + '/scripts.js', + '/manifest.json', + '/icon-192x192.png', + '/icon-512x512.png' +]; + +self.addEventListener('install', (event) => { + event.waitUntil( + caches.open(CACHE_NAME) + .then((cache) => { + return cache.addAll(urlsToCache); + }) + ); +}); + +self.addEventListener('fetch', (event) => { + event.respondWith( + caches.match(event.request) + .then((response) => { + return response || fetch(event.request); + }) + ); +}); + +self.addEventListener('activate', (event) => { + const cacheWhitelist = [CACHE_NAME]; + event.waitUntil( + caches.keys().then((cacheNames) => { + return Promise.all( + cacheNames.map((cacheName) => { + if (!cacheWhitelist.includes(cacheName)) { + return caches.delete(cacheName); + } + }) + ); + }) + ); +}); \ No newline at end of file From 8c0a72dfc7cd29feff50fb7a0972f0e917d635ed Mon Sep 17 00:00:00 2001 From: veepanshu-kasana Date: Thu, 7 Nov 2024 11:34:02 +0530 Subject: [PATCH 15/17] feat: Add scroll-to-top button functionality - Implement smooth scroll behavior when button is clicked - Add button visibility toggle based on scroll position - Style button with teal theme matching website design - Include hover effects and transitions - Add accessibility attributes - Ensure mobile responsiveness Resolves: #1009 --- contactus.html | 60 +++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 59 insertions(+), 1 deletion(-) diff --git a/contactus.html b/contactus.html index 8591a1f..eac2b3a 100644 --- a/contactus.html +++ b/contactus.html @@ -1063,7 +1063,65 @@

FIND US

- + + + + +