Recap Quiz #1 This is used to show visual enhancements in specific browsers? .class { -moz-column-count: 3; } media queries, vender prefix, css reset, progressive loading
Analysis JavaScript Code Linking to external JavaScript code <script src="... "></script> This code targets links and toggles the active class <script> $("a").click(function() { $(this).toggleClass("active"); }); </script>
$("nav").hover(function() { $(".reveal").slideDown("fast"); }); What does the code above do? What action triggers the event? What is the result of the trigger? What gets effected?
<ul id="sidemenu"> <li><a href="#">Home</a></li> <li class="active"><a href="#">About</a></li> <li><a href="#">Contact</a></li> </ul> Clicking on element with active class, hide all links .active click() => a hide() Hovering on list item, add active class to the body li hover() => body addClass('active')