Started styling HTML resume.
This commit is contained in:
1 parent
3bfb815621
commit
6405ad549d
4 files changed
+144
-7
No files matched your search
@@ -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)
|
||||
});
|
||||
|
||||
})();
|
||||
Reference in new issue
Block a user