diff --git a/app.js b/app.js index b275be6..d0b8168 100644 --- a/app.js +++ b/app.js @@ -61,6 +61,21 @@ function takeCommand(message) { } else if (message.includes("open facebook")) { window.open("https://facebook.com", "_blank"); speak("Opening Facebook..."); + } else if (message.includes("open instagram")) { + window.open("https://instagram.com", "_blank"); + speak("Opening Instagram..."); + } else if (message.includes("open github")) { + window.open("https://github.com", "_blank"); + speak("Opening Github..."); + } else if (message.includes("open linkedin")) { + window.open("https://linkedin.com", "_blank"); + speak("Opening Linkedin..."); + } else if (message.includes("open twitter")) { + window.open("https://twitter.com", "_blank"); + speak("Opening Twitter..."); + } else if (message.includes("open stackoverflow")) { + window.open("https://stackoverflow.com", "_blank"); + speak("Opening Stackoverflow..."); } else if (message.includes('what is') || message.includes('who is') || message.includes('what are')) { window.open(`https://www.google.com/search?q=${message.replace(" ", "+")}`, "_blank"); const finalText = "This is what I found on the internet regarding " + message; @@ -90,4 +105,4 @@ function takeCommand(message) { const finalText = "I found some information for " + message + " on Google"; speak(finalText); } -} \ No newline at end of file +} diff --git a/index.html b/index.html index affd20a..1579023 100644 --- a/index.html +++ b/index.html @@ -9,6 +9,7 @@ + @@ -22,11 +23,11 @@

J A R V I S

I m a Virtual Assistant JARVIS, How may I help you?

- +

Click here to speak

- \ No newline at end of file +