-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: frank <frankie.lineha@gmail.com>
- Loading branch information
frank
committed
Jun 28, 2015
1 parent
5d7ee2b
commit a30bdac
Showing
7 changed files
with
34 additions
and
62 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
|
||
html { | ||
background: $background-color; | ||
background: #eee; | ||
} | ||
|
||
// typography | ||
|
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,4 @@ | ||
/** | ||
* Created by Frank on 12/27/2014. | ||
*/ | ||
(function (window) { | ||
$('a[href^="#"]').on('click', function(event) { | ||
var target = $( $(this).attr('href') ); | ||
if( target.length ) { | ||
event.preventDefault(); | ||
$('html, body').animate({ | ||
scrollTop: target.offset().top | ||
}, 400); | ||
} | ||
}); | ||
})(window); | ||
|
||
$( document ).ready(function() { | ||
$(".button-collapse").sideNav(); | ||
|
||
var background = $('.fc-background'); | ||
|
||
var parallax = function() { | ||
var scrolled = $(window).scrollTop(); | ||
background.css('top', -(scrolled * 0.8) + 'px'); | ||
}; | ||
|
||
//this is a greedy function, but we have to fire this each time | ||
//so that the parallax scrolls nice :) | ||
if(background){ | ||
$(window).scroll(function(e) { | ||
parallax(); | ||
}); | ||
} | ||
}); | ||
|
||
|