-
// easter eggs
$('.easter-egg').each(function(i) {
$(this).attr('href', $('#easter-eggs').find('a').eq(i).attr('href')).attr('target', '_blank');
});
});
})(jQuery);
-
//animate the full-screen project image
$('li[data-id] .wrap').each(
function(index) {
$(this).stop().css({
opacity: 0
}).animate({
padding: 0
}, 50 * index).animate({
opacity: 1
}, 500, 'easeOutCubic');
}
-
var openPrevProject = function() {
var prev = currentProject.$subMenuLi.prev();
if (prev.length) {
var href = prev.children('a').attr('href').slice(1).split('/');
route.setUrl(href[0] + '/' + href[1] + '/' + getProjectImagesById(href[1]).length);
} else {
openPrevCategory();
}
};
-
var guyStatus = new bg._enjoy.Status();
guyStatus.tracker = utils.getById('status_tracker');
guyStatus.onPointsChange = function(total) {
if (total > 100) total = 100;
this.tracker.innerHTML = total + '%';
animatedBaloon.loadImage(parseInt(total / 6.25));
}
guyStatus.onComplete = function() {
this.milestones = [];
-
MenuView.prototype.switchTo = function(name) {
var $icon;
var _this = this;
this.show();
this.highlight(name);
this.$("h2").moveFadeOut(300, function() {
_this.$("#menu").attr('class', name);
return _this.$("h2").moveFadeIn(300);