From 5a84492207b83958b736901b3646d6ee8e7d4845 Mon Sep 17 00:00:00 2001 From: Aditya Bhaumik <92214013+aditya-bhaumik@users.noreply.github.com> Date: Thu, 4 Jul 2024 13:36:45 +0530 Subject: [PATCH 1/6] Update feedback.html --- pages/feedback.html | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/pages/feedback.html b/pages/feedback.html index 1fb97d9..6de1254 100644 --- a/pages/feedback.html +++ b/pages/feedback.html @@ -4,7 +4,7 @@ - Features - Random Disco Light Simulator + Feedback - Random Disco Light Simulator @@ -16,6 +16,7 @@ +
@@ -127,10 +128,22 @@

+ + +
+ +
From 5ae6bb78ac36d57b8ced36170eb3ccfbdb697b8a Mon Sep 17 00:00:00 2001 From: Aditya Bhaumik <92214013+aditya-bhaumik@users.noreply.github.com> Date: Thu, 4 Jul 2024 13:37:06 +0530 Subject: [PATCH 2/6] Update features.html --- pages/features.html | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pages/features.html b/pages/features.html index 197c8bf..e642690 100644 --- a/pages/features.html +++ b/pages/features.html @@ -169,6 +169,16 @@

+ +
+ +
From 587aa953d4e71dc339e1283d3ed53a0d58b36971 Mon Sep 17 00:00:00 2001 From: Aditya Bhaumik <92214013+aditya-bhaumik@users.noreply.github.com> Date: Thu, 4 Jul 2024 13:37:47 +0530 Subject: [PATCH 3/6] Update index.html --- index.html | 1 + 1 file changed, 1 insertion(+) diff --git a/index.html b/index.html index 0b65cb7..fb80d49 100644 --- a/index.html +++ b/index.html @@ -467,6 +467,7 @@

Account Not Available

+ -
@@ -139,6 +136,15 @@

+ + - From 265088846c46daceca156ad13c5105e7d116ad75 Mon Sep 17 00:00:00 2001 From: Aditya Bhaumik <92214013+aditya-bhaumik@users.noreply.github.com> Date: Thu, 4 Jul 2024 13:39:06 +0530 Subject: [PATCH 5/6] Create social.js --- js/social.js | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 js/social.js diff --git a/js/social.js b/js/social.js new file mode 100644 index 0000000..fb7acd1 --- /dev/null +++ b/js/social.js @@ -0,0 +1,36 @@ +document.addEventListener("DOMContentLoaded", function() { + // Get the modal + var accountNotAvailableModal = document.getElementById("accountNotAvailableModal"); + + // Get the element that closes the modal + var closeAccountNotAvailableModal = document.getElementById("closeAccountNotAvailableModal"); + + // Get all social media links + var socialLinks = document.querySelectorAll(".socialIcons a"); + + if (!accountNotAvailableModal || !closeAccountNotAvailableModal || socialLinks.length === 0) { + console.error("Required elements are missing"); + return; + } + + // When the user clicks on (x), close the modal + closeAccountNotAvailableModal.onclick = function() { + accountNotAvailableModal.style.display = "none"; + } + + // When the user clicks anywhere outside of the modal, close it + window.onclick = function(event) { + if (event.target == accountNotAvailableModal) { + accountNotAvailableModal.style.display = "none"; + } + } + + // When the user clicks on a social media link, show the modal + socialLinks.forEach(function(link) { + link.onclick = function(event) { + event.preventDefault(); + accountNotAvailableModal.style.display = "block"; + } + }); + }); + From e211bbf8bd9c1e3eab188c5e3345634ea69c6c03 Mon Sep 17 00:00:00 2001 From: Aditya Bhaumik <92214013+aditya-bhaumik@users.noreply.github.com> Date: Thu, 4 Jul 2024 13:39:50 +0530 Subject: [PATCH 6/6] Update script.js --- js/script.js | 32 +------------------------------- 1 file changed, 1 insertion(+), 31 deletions(-) diff --git a/js/script.js b/js/script.js index cedb460..ccc1ac4 100644 --- a/js/script.js +++ b/js/script.js @@ -956,36 +956,6 @@ function changeToStatic6() { document.getElementById('image6').src = '../assets/images/features/Linear_02.jpg'; } -// Get the modal -var accountNotAvailableModal = document.getElementById("accountNotAvailableModal"); - -// Get the element that closes the modal -var closeAccountNotAvailableModal = document.getElementById("closeAccountNotAvailableModal"); - -// Get all social media links -var socialLinks = document.querySelectorAll(".socialIcons a"); - -// When the user clicks on (x), close the modal -closeAccountNotAvailableModal.onclick = function() { - accountNotAvailableModal.style.display = "none"; -} - -// When the user clicks anywhere outside of the modal, close it -window.onclick = function(event) { - if (event.target == accountNotAvailableModal) { - accountNotAvailableModal.style.display = "none"; - } -} - -// When the user clicks on a social media link, show the modal -socialLinks.forEach(function(link) { - link.onclick = function(event) { - event.preventDefault(); - accountNotAvailableModal.style.display = "block"; - } -}); - - let isPlaying = false; let CurrentAudio = null; @@ -1023,4 +993,4 @@ document.getElementById('PreviewButton').addEventListener('click', function () { previewButton.textContent = 'Preview'; }); } -}); \ No newline at end of file +});