diff --git a/assets/scripts/routes/catalog.js b/assets/scripts/routes/catalog.js index 6cf86a0..bd186a5 100644 --- a/assets/scripts/routes/catalog.js +++ b/assets/scripts/routes/catalog.js @@ -1,114 +1,285 @@ -const jQueryBridget = require( 'jquery-bridget' ); -const Isotope = require( 'isotope-layout' ); +const jQueryBridget = require('jquery-bridget'); +const Isotope = require('isotope-layout'); export default { init() { // JavaScript to be fired on the catalog page - jQuery( $ => { - jQueryBridget( 'isotope', Isotope, $ ); - let $grid = $( '.books' ); - $grid.isotope( { + (function() { + // Get all the