Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
  • 3 commits
  • 2 files changed
  • 0 commit comments
  • 1 contributor
Showing with 14 additions and 1 deletion.
  1. +3 −0  css/hackweek.css
  2. +11 −1 js/hackweek.js
View
3  css/hackweek.css
@@ -393,6 +393,9 @@ li {
z-index: 100;
display: none;
}
+#terminal-btn.invert{
+ color: #fff;
+}
.terminal-dot{
float: right;
height: 10px;
View
12 js/hackweek.js
@@ -99,7 +99,7 @@ $(function () {
if ($(window).scrollTop() > $('#where').position().top - $('#where').height()) {
var percent_scrolled_out = Math.abs(($(window).scrollTop() - $('#where').position().top) / $('#where').height())
$('#where-title').css({'opacity': 1 - percent_scrolled_out/2,
- right: percent_scrolled_out * -500})
+ right: (percent_scrolled_out * -500) - 40})
}
/* set active page in navigation menu */
@@ -133,6 +133,16 @@ $(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())) {
+ $('#terminal-btn').addClass('invert')
+ }
+ if (($('#terminal-btn').position().top + $('#terminal-btn').height()/2 > $("#what-is").position().top - $(window).scrollTop()) &&
+ ($('#terminal-btn').position().top + $('#terminal-btn').height()/2 < $("#what-is").position().top - $(window).scrollTop() + $('#what-is').height())) {
+ $('#terminal-btn').addClass('invert')
+ }
})

No commit comments for this range

Something went wrong with that request. Please try again.