We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb291a1 commit 57a9472Copy full SHA for 57a9472
1 file changed
public/js/app.js
@@ -1,10 +1,13 @@
1
$(function(){
2
3
- $('.projects').isotope({
+ $projects = $('#projects');
4
+
5
+ $projects.isotope({
6
itemSelector: '.project'
7
, animationEngine: 'jquery'
8
+ , resizable: false
9
, masonry: {
- columnWidth: 100
10
+ columnWidth: $projects.width() / 4
11
}, getSortData : {
12
date : function ( $elem ) {
13
return $elem.attr('data-date');
@@ -16,6 +19,13 @@ $(function(){
16
19
17
20
}});
18
21
22
+$(window).smartresize(function(){
23
24
+ masonry: { columnWidth: $projects.width() / 4 }
25
+ });
26
+});
27
28
29
$('#newProject').click(function(){if(!window.username.length) window.location="http://hackdash.hhba.info/auth/twitter"; })
30
31
$('.modal').modal({show: false});
0 commit comments