calendar's People
Forkers
rockdevstack cry-d sahil120998 samtabi himanshutiwary07 hibaya michelpessoa lovaszbotond hea-su jrugambwa mizair rajeshbosak shanemturner jackson-cunha anntroy vaibhavv23 frd-dev manjupri-ya louisevilshardt allandacasin arbop robsosa13 mohammedaktaa arn-ob goohooh rewright26 rimkusforlife dark216 mikeal200 servax314 tokirkhokhar rtavaresramos alamgir72435 sufaila21 sandeepsatapathy jotisa lzhudson radiojonni gkhan205 aakashtake lucienchu carloschimalg mrperfectgaurav zenbgs savchuckvadim rohitsoni98 thaidev1502 aliwaleed97 osouzati ayushjain27 samer7777 vtascon muhammad12318 aldanwell melodytaiyt bsmanish028 samadovbb f-kaleb hnevarez wolfblue mohammada59 joshuaah101 dela-dels soumyakp ilaraj1 arancita08 yassinexcv ashish231047 heyanyidui ak-bhai45 klauztrofobi dansleyvtrl28 eunlee2 batjet james-w-edwards fadimamanenga pawank1981 believer018 helen-js adityarajobs bbhugo oliversbug lyceriuss jang7j ayush-tawar annabenari leewonje418 nandinikamble12 moonbyte13 ajay-mindrops hartegg abhi09cse02 msquare0 mlarkin1calendar's Issues
Missing "monthDays.innerHTML = days" in for loop
Current:
for (let i = 1; i <= lastDay; i++) {
if (i === new Date().getDate() && date.getMonth() === new Date().getMonth()) {
days += `<div class="today">${i}</div>`;
console.log("found current date: " + i );
} else {
console.log("adding day: " + i);
days += `<div>${i}</div>`;
}
}
Corrected:
for (let i = 1; i <= lastDay; i++) {
if (i === new Date().getDate() && date.getMonth() === new Date().getMonth()) {
days += `<div class="today">${i}</div>`;
console.log("found current date: " + i );
} else {
console.log("adding day: " + i);
days += `<div>${i}</div>`;
}
monthDays.innerHTML = days;
}
Errors
Not working
Aint Workin for Calendars ending on Sunday
Switching between months showed, that a couple of months, f.e. October 2020, ain't rendering at all.
script.js:
Shoving " monthDays.innerHTML = days;" from line 68 to below the for loop will do the trick.
June and July 2021 are the same
June and July 2021 are the same
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.