Skip to content

Commit

Permalink
Removed some responsive things which caused lagg
Browse files Browse the repository at this point in the history
  • Loading branch information
CompuIves committed May 3, 2015
1 parent 13f5742 commit 7979db4
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 41 deletions.
2 changes: 1 addition & 1 deletion src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
<div id="userinforow" class="row firstrow contentrow bgcolor-transparent">
<div class="col s12 m5 l7">
<div class="title darkcolor">Who am I?</div>
<span class="flow-text">My name is <strong>Ives van Hoorne</strong>, I'm <strong>{{main.ageyears}} years, {{main.agemonths}} months and {{main.ageseconds}} seconds</strong> old and live in <strong>Assen, The Netherlands</strong>. I'm an ambitious developer, passionate about new technology and its capabilities. I am inspired by fast-growing companies and hope to become one in the future.</span>
<span class="flow-text">My name is <strong>Ives van Hoorne</strong>, I'm <strong>{{main.ageyears}} years, {{main.agemonths}} months and {{main.ageseconds}} seconds</strong> old and live in <strong>Assen, The Netherlands</strong>. I'm an ambitious developer, passionate about new technology and its capabilities. I am inspired by fast-growing companies and hope to become the lead of one in the future.</span>
</div>
<div class="col s12 m7 l5">
<div class="title darkcolor">Information</div>
Expand Down
39 changes: 0 additions & 39 deletions src/js/directives/navigationdirective.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,45 +135,6 @@ app.directive("ngNavigation", ['ColorService',
findActiveRecursive();
});

//Mobile topnav for scrolling
if ($(window).width() < 600) {
var iScrollPos = 0;
var topNav = $(element);
var lastScrolledUp = true;
$(window).scroll(function() {
var iCurScrollPos = $(this).scrollTop();
var delta = (iCurScrollPos - iScrollPos);
var oldTop = topNav.css('top').split('px')[0];
if (iCurScrollPos > iScrollPos) {
if (oldTop > -60) {
if (oldTop - delta < -60)
topNav.css('top', '-60px');
else
topNav.css('top', '-=' + delta + 'px');
}
lastScrolledUp = false;
} else {
if (oldTop < 0) {
if (oldTop - delta > 0)
topNav.css('top', '0px');
else
topNav.css('top', '-=' + delta + 'px');
}
lastScrolledUp = true;
}
iScrollPos = iCurScrollPos;

});

(document).addEventListener('touchend', function(e) {
//Only if all fingers lifted the screen
if (e.touches.length === 0) {
topNav.animate({
'top': (lastScrolledUp ? 0 : -60) + 'px'
}, 400);
}
});
}
}
};
}
Expand Down
1 change: 0 additions & 1 deletion src/js/directives/trianglifydirective.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ app.directive("ngTrianglify", function() {

scope.options = pattern.opts;

console.log(pattern);
if (dobg1) {
pattern.canvas(bg1[0]);
bg2.fadeOut(1000);
Expand Down

0 comments on commit 7979db4

Please sign in to comment.