From 0d21584b21799c6adea9fb94b316adbe4ea7f82e Mon Sep 17 00:00:00 2001
From: Rishov Chakraborty
Date: Wed, 17 Apr 2024 00:49:28 +0530
Subject: [PATCH] shruti's job
---
Eduversity/assets/js/script.js | 46 ++++++++++++++++++++--------------
Eduversity/index.html | 2 +-
2 files changed, 28 insertions(+), 20 deletions(-)
diff --git a/Eduversity/assets/js/script.js b/Eduversity/assets/js/script.js
index 8e2437b..f552004 100644
--- a/Eduversity/assets/js/script.js
+++ b/Eduversity/assets/js/script.js
@@ -176,42 +176,50 @@ function stopVoiceRecognition() {
if (annyang) {
var commands = {
'go to home': () => {
- navigateToPage('home');
+ // navigateToPage('home');
+ window.location.href = '../gamify.html';
},
'go to about us': () => {
- navigateToPage('about');
+ // navigateToPage('about');
+ window.location.href = '../gamify.html';
},
'go to courses': () => {
- navigateToPage('courses');
+ // navigateToPage('courses');
+ window.location.href = '../gamify.html';
},
'go to find a job': () => {
- navigateToPage('find-job');
+ // navigateToPage('find-job');
+ window.location.href = '../gamify.html';
},
'go to mini games': () => {
- navigateToPage('mini-games');
+ // navigateToPage('mini-games');
+ window.location.href = '../gamify.html';
+
+ window.location.href = '../gamify.html';
+
},
'go to testimonials': () => {
- navigateToPage('testimonials');
+ // navigateToPage('testimonials');
+ window.location.href = '../gamify.html';
},
'go to contact us': () => {
- navigateToPage('contact');
+ // navigateToPage('contact');
+ window.location.href = '../gamify.html';
},
'go to log in': () => {
- navigateToPage('login');
- },
- 'go to sign up': () => {
- navigateToPage('signup');
+ // navigateToPage('login');
+ window.location.href = '../gamify.html';
}
};
// Function to navigate to a specific page
- function navigateToPage(pageId) {
- const pageElement = document.getElementById(pageId);
- if (pageElement) {
- window.location.href = pageElement.href;
- } else {
- console.error(`Page ID "${pageId}" not found.`);
- }
- }
+ // function navigateToPage(pageId) {
+ // const pageElement = document.getElementById(pageId);
+ // if (pageElement) {
+ // window.location.href = pageElement.href;
+ // } else {
+ // console.error(`Page ID "${pageId}" not found.`);
+ // }
+ // }
annyang.addCommands(commands);
annyang.debug(true);
}
\ No newline at end of file
diff --git a/Eduversity/index.html b/Eduversity/index.html
index 135f2d4..60e418b 100644
--- a/Eduversity/index.html
+++ b/Eduversity/index.html
@@ -1110,7 +1110,7 @@ Let's Enjoy The learning
-
Let's Start