We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b9cc17 commit c8ad0d4Copy full SHA for c8ad0d4
1 file changed
Projects/Motivation Mantra/script.js
@@ -1,4 +1,4 @@
1
-
+// Code for loading a new quote everytime the button is clicked
2
function loadQuote()
3
{
4
document.getElementById("copy").innerText = "Copy" ;
@@ -14,13 +14,15 @@ function loadQuote()
14
});
15
}
16
17
+// Code to copy the quote
18
function copyQuote()
19
20
copyText = document.getElementById("quoteLine").innerText + " " + document.getElementById("author").innerText;
21
navigator.clipboard.writeText(copyText);
22
document.getElementById("copy").innerText = "Copied" ;
23
24
25
+// Code to enable speech feature
26
function listen()
27
28
let utterance = new SpeechSynthesisUtterance(document.getElementById("quoteLine").innerText);
0 commit comments