Started styling HTML resume.

This commit is contained in:
Jonathan Bernard committed 2015-09-23 17:48:35 -05:00
1 parent 3bfb815621
commit 6405ad549d
4 files changed
+144 -7

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
(function() {
var R = window.Resume = {};
R.PageView = Backbone.View.extend({
el: $("body")[0],
initialize: function(options) {
window.addEventListener("scroll", this.fixHeader);
},
fixHeader: _.throttle(function(e) {
var $h = $("header");
if ($(document).scrollTop() > 100) {
$h.addClass("fixed"); }
else $h.removeClass("fixed"); }, 100)
});
})();