Sha256: dd9a9a34766d5eac871c97e2e437a51e81c3df7ae3b5fc99ea3a934b9b62aeac
Contents?: true
Size: 654 Bytes
Versions: 5
Compression:
Stored size: 654 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
5 entries across 5 versions & 2 rubygems