Skip to content

Commit 0e346fc

Browse files
committed
Rename seconds to oneMinute
Use semantic HTML tags for displaying quotes
1 parent a955578 commit 0e346fc

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Sprint-3/quote-generator/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
<script defer src="quotes.js"></script>
99
</head>
1010
<body>
11-
<div class="container">
11+
<blockquote class="container">
1212
<p id="quote" class="quote"></p>
13-
<p id="author"></p>
13+
<cite id="author"></cite>
1414

1515
<div class="button-wrapper">
1616
<button type="button" id="new-quote">New quote</button>
@@ -23,6 +23,6 @@
2323
</label>
2424
</div>
2525

26-
</div>
26+
</blockquote>
2727
</body>
2828
</html>

Sprint-3/quote-generator/quotes.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -508,8 +508,8 @@ let autoQuoteIntervalID = null;
508508
document.getElementById("auto-quote").addEventListener("change", function () {
509509
if (this.checked) {
510510
newRandomQuote();
511-
const seconds = 60 * 1000;
512-
autoQuoteIntervalID = setInterval(newRandomQuote, seconds);
511+
const oneMinute = 60 * 1000;
512+
autoQuoteIntervalID = setInterval(newRandomQuote, oneMinute);
513513
} else {
514514
clearInterval(autoQuoteIntervalID);
515515
autoQuoteIntervalID = null;

0 commit comments

Comments
 (0)