Andrew is a full stack developer. He spends most of his days programming in Ruby, Node.js, contributing to open source projects and organising local developer user groups. He also aspires to one day take over the world with a fleet of JavaScript powered quadcopters. His nickanme is about guitars, not fishes!
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
<div> | |
<ul> | |
{% for item in site.data.navigation.navsecondary %} | |
<li>{{ item.title }}</li> | |
{% if item.subnav %} | |
<!-- This appears fine --> |
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
$list = $('.collections__list'); | |
$item = $list.find('.list__item--is-selected'); | |
$prev = $item.prev(); | |
if ($(window).width() < 700) { | |
// collections put whatever collection is selected at top of list on mobile | |
$list.prependTo('.collections__list'); | |
} | |
// collections put whatever collection is selected at top of list on mobile |
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 test file | |
#setup do | |
# load_scenario("bookshop_a") | |
#end | |
# | |
#test "Franks has 5 books" do | |
# assert_equal 5, @frank.books.count | |
#end | |
# |