Permalink
Browse files

fix terminal button invert

  • Loading branch information...
1 parent c405e07 commit f2300ce2c3c62d44c5bb11bcfa3ad5a1506bb682 @digitaltom digitaltom committed Mar 22, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 js/hackweek.js
View
@@ -266,8 +266,8 @@ $(function () {
/* invert terminal link color */
$('#terminal-btn').removeClass('invert')
- if (($('#terminal-btn').position().top + $('#terminal-btn').height()/2 > $("#people").position().top - $(window).scrollTop()) &&
- ($('#terminal-btn').position().top + $('#terminal-btn').height()/2 < $("#people").position().top - $(window).scrollTop() + $('#people').height())) {
+ if (($('#terminal-btn').position().top + $('#terminal-btn').height()/2 > $("#start").position().top - $(window).scrollTop()) &&
+ ($('#terminal-btn').position().top + $('#terminal-btn').height()/2 < $("#start").position().top - $(window).scrollTop() + $('#start').height())) {
$('#terminal-btn').addClass('invert')
}
if (($('#terminal-btn').position().top + $('#terminal-btn').height()/2 > $("#what-is").position().top - $(window).scrollTop()) &&

0 comments on commit f2300ce

Please sign in to comment.