9 – 12h Teaching
What resource (link / slide / example) was the most helpful or inspiring during the last two weeks? Do some research (15min).
Please present it to your colleagues (2-3min each).
Check out the Slack channel #zrh-class for all the links of your colleagues
Based on the example in the presentation slides and the things you learned in the last 2 weeks, add a menu toggle button to your portfolio page.
Steps:
burgerMenuShowHide
that shall be executed every time the burger button has been pressed:CSS & JavaScript Tricks
12 – 13.30h Lunch
13.30 – 16h Coaching
Instead of adding a class="selected"
to a menu item on each page, we can write a JavaScript that does this for us. The page URL actually shows us everything we need to know: the last part of the URL is the same like our href="..."
attribute in the page link:
Steps:
href
attributeclass
attribute to "selected"
JavaScript Repetition
Additional Readings
...you actually can do it without JavaScript. But you need to be very good at CSS!