CODING CHALLENGES #3!! Calendar!! | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 17

CODING CHALLENGES #3!! Calendar!!

I want you to generate the calendar for the current month... You are not allowed to use Python! Sorry... It should look like a real one!! No google, or stackoverflow.com!! Here it is an example in Python https://code.sololearn.com/cbQWqDOYwd2w/?ref=app

13th Apr 2017, 4:14 PM
Gami
Gami - avatar
14 Answers
+ 19
Absolutely no Google or StackOverflow https://code.sololearn.com/cqqLO4wypO59/?ref=app
13th Apr 2017, 10:31 PM
Jafca
Jafca - avatar
+ 16
now when it's finished, here is the datepicker for those who are interested. 😃 https://code.sololearn.com/WTwldN42liMM/?ref=app
14th Apr 2017, 4:59 AM
Nikolay Nachev
Nikolay Nachev - avatar
+ 15
Don't wanna cheat. Have a datepicker that I did sometime last year. Anyone interested to see it?
13th Apr 2017, 8:09 PM
Nikolay Nachev
Nikolay Nachev - avatar
+ 14
Congratulations @Jafca... You truly deserve to win this one :)
13th Apr 2017, 11:22 PM
Gami
Gami - avatar
+ 12
@Kirk... You made it for April... You need some script to check the current month than draw it based on the current month.
13th Apr 2017, 8:09 PM
Gami
Gami - avatar
+ 12
@Kirk Well, this is what the challenge is asking for... I saw in CSS something says counter... What is it for? What does it do?
13th Apr 2017, 8:14 PM
Gami
Gami - avatar
+ 11
No script so cheating (div auto-numbering / 1st div is hard-spaced, the rest overflow): https://code.sololearn.com/W2EmhWDXZ5Y6/?ref=app I'll try to not cheat on the next one; I just wanted to do this :)
13th Apr 2017, 7:44 PM
Kirk Schafer
Kirk Schafer - avatar
+ 10
The 'counter' is mostly why I did that; to bring attention to the CSS variable. It keeps track of how many times it's used, can be nested, e.g. for numbering without scripting (even negatives): 1.0 1.1 {... content: counters(item, ".") } 1.2 2.0 CSS can also self-reference its own tags with attr() but I just wanted to show counting.
13th Apr 2017, 8:23 PM
Kirk Schafer
Kirk Schafer - avatar
+ 9
@Gami...Right. I'm poking at php but lost my OS (again) yesterday so an actual script will be a little slower :)
13th Apr 2017, 8:12 PM
Kirk Schafer
Kirk Schafer - avatar
+ 4
yes
13th Apr 2017, 8:23 PM
Dibyajoti pratap Singh
Dibyajoti pratap Singh - avatar
+ 3
In php just create an input field with type date <input type="date" > Using this you will get a datepicker.
15th Apr 2017, 10:36 AM
ABDUL MANAN
ABDUL MANAN - avatar
+ 3
java script
15th Apr 2017, 10:37 AM
Ashutosh Maharana
Ashutosh Maharana - avatar
+ 2
Umm... That is not a question.
13th Apr 2017, 9:35 PM
👾JacksonHuang👾
+ 1
I haven't started learning python yet
14th Apr 2017, 6:57 AM
Isse Thomas
Isse Thomas - avatar