Submit
Path:
~
/
/
proc
/
self
/
root
/
proc
/
self
/
root
/
proc
/
thread-self
/
root
/
home
/
getwphos
/
www
/
jewel
/
lawyer
/
js
/
ex
/
File Content:
custom.js
$(document).ready(function() { "use strict"; /* |---------------------------------------------------------------------------- | Isotop work |---------------------------------------------------------------------------- */ jQuery(window).on("load resize",function(e){ var $container = $('.isotope'), colWidth = function () { var w = $container.width(), columnNum = 1, columnWidth = 0; //Select what will be your porjects columns according to container width if (w > 1040) { columnNum = 4; } else if (w > 850) { columnNum = 3; } else if (w > 480) { columnNum = 2; } else if (w > 300) { columnNum = 1; } columnWidth = Math.floor(w/columnNum); //Default item width and height $container.find('.item').each(function() { var $item = $(this), width = columnWidth, height = 300; $item.css({ width: width, height: height }); // Squire item width and height $container.find('.height200').each(function() { var $item = $(this), width = columnWidth, height = 223; $item.css({ width: width, height: height }); }); // 1.5x height item width and height $container.find('.height300').each(function() { var $item = $(this), width = columnWidth, height = 391; $item.css({ width: width, height: height }); }); }); return columnWidth; }, isotope = function () { $container.isotope({ resizable: true, itemSelector: '.item', masonry: { columnWidth: colWidth(), gutterWidth: 10 } }); }; isotope(); // bind filter button click $('.filters').on( 'click', 'button', function() { var filterValue = $( this ).attr('data-filter'); $container.isotope({ filter: filterValue }); }); // change active class on buttons $('.filters').each( function( i, buttonGroup ) { var $buttonGroup = $( buttonGroup ); $buttonGroup.on( 'click', 'button', function() { $buttonGroup.find('.active').removeClass('active'); $( this ).addClass('active'); }); }); //Item title top margin $('.gallery-item a>.gallery-title').each( function(){ var marginTop = $(this).height(); $(this).css({'margin-top':-(marginTop/2)}); }); }); }
Submit
FILE
FOLDER
Name
Size
Permission
Action
custom.js
2235 bytes
0644
isotope.pkgd.min.js
16033 bytes
0644
jquery.easing-min.js
2532 bytes
0644
old.scripts.js
7930 bytes
0644
owl.carousel.js
89992 bytes
0644
N4ST4R_ID | Naxtarrr