| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 334ec92 commit aa9030e
3 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -25,21 +25,20 @@ const giveaway = document.querySelector(".giveaway"); | |||
| 25 | 25 | const deadline = document.querySelector(".deadline"); | |
| 26 | 26 | const items = document.querySelectorAll(".deadline-format h4"); | |
| 27 | 27 | ||
| 28 | - // months are ZERO index based; | ||
| 29 | - | ||
| 30 | 28 | let tempDate = new Date(); | |
| 31 | 29 | let tempYear = tempDate.getFullYear(); | |
| 32 | 30 | let tempMonth = tempDate.getMonth(); | |
| 33 | 31 | let tempDay = tempDate.getDate(); | |
| 32 | + // months are ZERO index based; | ||
| 33 | + const futureDate = new Date(tempYear, tempMonth, tempDay + 10, 11, 30, 0); | ||
| 34 | 34 | ||
| 35 | 35 | // let futureDate = new Date(2020, 3, 24, 11, 30, 0); | |
| 36 | - const futureDate = new Date(tempYear, tempMonth, tempDay + 10, 11, 30, 0); | ||
| 37 | 36 | ||
| 38 | 37 | const year = futureDate.getFullYear(); | |
| 39 | 38 | const hours = futureDate.getHours(); | |
| 40 | 39 | const minutes = futureDate.getMinutes(); | |
| 41 | - let month = futureDate.getMonth(); | ||
| 42 | 40 | ||
| 41 | + let month = futureDate.getMonth(); | ||
| 43 | 42 | month = months[month]; | |
| 44 | 43 | const weekday = weekdays[futureDate.getDay()]; | |
| 45 | 44 | const date = futureDate.getDate(); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -13,13 +13,7 @@ | |||
| 13 | 13 | <h3>tired of boring lorem ipsum?</h3> | |
| 14 | 14 | <form class="lorem-form"> | |
| 15 | 15 | <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" /> | ||
| 23 | 17 | <button type="submit" class="btn">generate</button> | |
| 24 | 18 | </form> | |
| 25 | 19 | <article class="lorem-text"></article> | |
| Back | FazBrowse Home | New Git URL |
0 commit comments