Skip to content

Commit d6576e6

Browse files
properly formatted script.js
1 parent 48e125e commit d6576e6

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

Projects/Motivation Mantra/script.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// Code for loading a new quote everytime the button is clicked
2-
function loadQuote()
3-
{
2+
function loadQuote(){
43
document.getElementById("copy").innerText = "Copy" ;
54
document.getElementById("next").innerText = " loading..." ;
65
var para = document.getElementById("quoteLine");
@@ -14,17 +13,17 @@ function loadQuote()
1413
});
1514
}
1615

16+
1717
// Code to copy the quote
18-
function copyQuote()
19-
{
18+
function copyQuote(){
2019
copyText = document.getElementById("quoteLine").innerText + " " + document.getElementById("author").innerText;
2120
navigator.clipboard.writeText(copyText);
2221
document.getElementById("copy").innerText = "Copied" ;
2322
}
2423

24+
2525
// Code to enable speech feature
26-
function listen()
27-
{
26+
function listen(){
2827
let utterance = new SpeechSynthesisUtterance(document.getElementById("quoteLine").innerText);
2928
speechSynthesis.speak(utterance);
3029
}

0 commit comments

Comments
 (0)