This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Cache the selector for performance | |
var $root = $('html, body'); | |
// Animate the scroll from the nav | |
$('.sidebar_nav ul li a, .back-to-top').click(function() { | |
$root.animate({ | |
scrollTop: $( $.attr(this, 'href') ).offset().top | |
}, 500); | |
return false; | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Note the body ID for each sig offering... | |
<body class="signature_offerings" id="beef_shoppe" data-spy="scroll" data-target=".sidebar_nav"> | |
// Swap the "#top" href for the id of the body... | |
<a class="back-to-top" href="#beef_shoppe">Back to top<span class="glyphicon glyphicon-circle-arrow-up"></span></a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form action="/" class="sausage_type_list"> | |
<label> | |
<input value="breakfast" type="checkbox" class="sausage_filter"> Breakfast | |
</label> | |
<label> | |
<input value="pork" type="checkbox" class="sausage_filter"> Pork | |
</label> | |
<label> | |
<input value="beef" type="checkbox" class="sausage_filter"> Beef | |
</label> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#flavors { | |
.sausage_type_list { | |
@extend .text-center; | |
label { | |
background: $lf-gray; | |
padding: 4px 20px 4px 10px; // Updated | |
color: #fff; | |
font-family: $font-sans; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
<li class="module" id="mobile_menu"><!-- Mobile menu --> | |
<div class="mobile_menu"> | |
<h1>Menu</h1> | |
<p>Click the thumbnail to download a PDF of our menu.</p> | |
<div class="specials_image"> | |
<a href="files/chicken_kitchen/chicken_kitchen_menu_mobile.pdf"><img src="images/chicken_kitchen/chicken_kitchen_menu_thumb.png" alt="menu"></a> | |
</div> | |
</div> | |
</li><!-- /Mobile menu --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#chicken_kitchen { | |
... | |
.module { | |
... | |
&#deals, &#about, &#mobile_menu, &#recipes, &#testimonials, &#jokes, &#chicken_dance, &#chicken_sightings, &#fun_games { | |
... | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
<h1 class="hidden-xs">A World of Wacky Flavors</h1> | |
<h1 class="visible-xs">World of Flavors</h1> | |
<p class="description">With tons of options daily, the best way to experience SausageWorks is to come by and try something new (flavors vary by store). Filter by type below:</p> | |
<form action="/" class="sausage_type_list"> | |
<label> | |
<input value type="radio" name="sausageOptions" class="sausage_filter" checked> All | |
</label> | |
<label> | |
<input value="breakfast" type="radio" name="sausageOptions" class="sausage_filter"> Breakfast |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// In main.js... | |
// Also required in HTML <script src="scripts/jquery.scrollTo.min.js"></script> | |
// Animate scrolling to the list of cuts from the Beef Shoppe A Cut Above graphic | |
$("#cow_nav li a").click(function() { | |
$('body').scrollTo('#cut_type_list',{duration:'slow'}); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<li class="module" id="den_mater"><!-- Den Master --> | |
<h1>Meet the Den Master</h1> | |
<img src="http://placehold.it/648x250" alt="Carousel slide alt text"> | |
<div class="module_content"> | |
<h2>Taming the wild world of beers</h2> | |
<h3>John T. | Den Master | Clemmons, NC</h3> | |
<p>Beers don’t pour themselves. Which is why the Den Master is on the spot. To help you decide between a stout or a porter or a lager or an ale. He can fill the best growler in the den or help you find the rarest of species. Got a question about beers? He’s got an answer. Got a question about flowers? Probably best to keep those to yourself. The Den Master is here for beer.</p> | |
</div> | |
</li><!-- /Den Master --> |
OlderNewer