-
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 = [];
-
$('#handiwork a').not('.external-link').click(function(e) {
var url = $(this).attr('href');
url = url.replace(/^.*#/, '');
$.history.load(url);
return false;
});
-
$.each(data.project, function(projectName, project) {
var links, link;
var node = $('.project .' + projectName);
node.animate({
opacity: 0
}, 400, function() {
node.find('.title').html(project.title);
node.find('.description').html(project.description);
node.find('.services').html(project.services);
-
MT.mainSection = function(options, elem) {
var $win = $(window),
$scroll = $('.scroll-target'),
$scrollProxy = $('#scroll-proxy'),
$this = $(elem),
$centerContainer = null,
$footer = $('footer'),
$scrollItems = null,
$overlayLinks = null,
_id = $this.attr('id'),