Sha256: c8674877a288de087a0a764af54165a4c8490245b664d2b6e11e392f7bc81594
Contents?: true
Size: 656 Bytes
Versions: 3
Compression:
Stored size: 656 Bytes
Contents
/* * Display the menu items on smaller screens */ $(function () { var pull = $('#pull'); menu = $('nav ul'); //menuHeight = menu.height(); $(pull).on('click', function (e) { menu.slideToggle(); }); }); /* * Display the navbar back to normal after resize */ $(window).resize(function () { var w = $(window).width(); if (w > 320 && menu.is(':hidden')) { menu.removeAttr('style'); } }); /* * Make the header images move on scroll */ $(window).scroll(function () { var x = $(this).scrollTop(); $('#main').css('background-position', '100% ' + parseInt(-x/3) + 'px' + ', 0%, center top'); });
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
jekyll-theme-type-on-strap-4.0.2 | assets/js/navbar.js |
jekyll-theme-type-on-strap-3.0.0 | assets/js/navbar.js |
type-on-strap-0.4.2 | assets/js/navbar.js |