Skip to content

Commit aa9030e

Browse files
committed
some corrections while recording
1 parent 334ec92 commit aa9030e

File tree

3 files changed

+7
-12
lines changed

3 files changed

+7
-12
lines changed

12-countdown-timer/final/app.js

+3-4
Original file line numberDiff line numberDiff line change
@@ -25,21 +25,20 @@ const giveaway = document.querySelector(".giveaway");
2525
const deadline = document.querySelector(".deadline");
2626
const items = document.querySelectorAll(".deadline-format h4");
2727

28-
// months are ZERO index based;
29-
3028
let tempDate = new Date();
3129
let tempYear = tempDate.getFullYear();
3230
let tempMonth = tempDate.getMonth();
3331
let tempDay = tempDate.getDate();
32+
// months are ZERO index based;
33+
const futureDate = new Date(tempYear, tempMonth, tempDay + 10, 11, 30, 0);
3434

3535
// let futureDate = new Date(2020, 3, 24, 11, 30, 0);
36-
const futureDate = new Date(tempYear, tempMonth, tempDay + 10, 11, 30, 0);
3736

3837
const year = futureDate.getFullYear();
3938
const hours = futureDate.getHours();
4039
const minutes = futureDate.getMinutes();
41-
let month = futureDate.getMonth();
4240

41+
let month = futureDate.getMonth();
4342
month = months[month];
4443
const weekday = weekdays[futureDate.getDay()];
4544
const date = futureDate.getDate();

13-lorem-ipsum/final/app.js

+3-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

13-lorem-ipsum/final/index.html

+1-7
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,7 @@
1313
<h3>tired of boring lorem ipsum?</h3>
1414
<form class="lorem-form">
1515
<label for="amount">paragraphs:</label>
16-
<input
17-
type="number"
18-
name="amount"
19-
id="amount"
20-
maxlength="1"
21-
placeholder="5"
22-
/>
16+
<input type="number" name="amount" id="amount" placeholder="5" />
2317
<button type="submit" class="btn">generate</button>
2418
</form>
2519
<article class="lorem-text"></article>

0 commit comments

Comments
 (0)