jquery-isotope

Infinite scroll plugin modify the path with custom query

梦想与她 提交于 2019-12-05 00:34:34
问题 I am using the infinite scroll plugin (infinite-scroll) with jQuery isotope and was wondering if it's possible to modify the path with custom query parameters as user scrolls down the page to view more items. Is there a way to access the path and modify one of the query parameter. It's hitting the path ok for the first time returning the first set of items and after that it hitting the next pages , 1,2 3 ok but using the same query parameters I used for the first time only updating the page

jQuery Isotope - corner stamp issue

风格不统一 提交于 2019-12-04 16:04:53
I started using awsome JQuery Isotope plugin in my project. Everything works great, but I'm having one issue with corner-stapm option. Each element in my masnory grid has fixed width (220px + 5 margin) and random height (depending on its content) and I am using @media queries in CSS file to change columns number on different screen resolution (page width can be 230, 460, 690.. etc.). Problem with corner stamp occurs in the narrowest version (one column) - the corner stamp is covered with Isotope elements... The same issue occurs on Isotope official page in this demo: http://isotope.metafizzy

Using the Slick Carousel with a background image in a Isotope (masonry) grid - height of slides becomes 1px

有些话、适合烂在心里 提交于 2019-12-04 15:56:21
问题 I'm using isotope to generate a dynamic grid of blocks. Some blocks can have a carousel inside of them. I'm using the Slick Carousel (http://kenwheeler.github.io/slick/) to do this. Here an example > http://jsfiddle.net/9dja3omp/1/ $(function () { var $container = $('.grid').imagesLoaded( function() { $container.isotope({ itemSelector: '.block', gutter: 0, transitionDuration: 0 }); }); setTimeout(function(){ var carousel = $(".carousel__container"); carousel.slick({ speed: 700, arrows: false,

How to get Isotope working with dynamic DOM nodes?

烂漫一生 提交于 2019-12-04 13:58:02
I the context of Backbone views, I add and remove views in the DOM. However, the container that contains Isotope elements only works during the initial load; after that, when the container is removed, and added again, Isotope is not working as expected. I did quick JSfiddle here: http://jsfiddle.net/mulderp/T8aSQ/6/ --> When I add the Isotope container: var list = '<div data-foo="bar" id="container"><div class="item red"></div><div class="item blue"></div></div>'; $container.html(list); $container.isotope('shuffle'); Isotope is not running anymore, although the DOM structure would look similar

jQuery Isotope — sort by category, but specify which comes first

半世苍凉 提交于 2019-12-04 12:53:17
I'm looking for a type of sort behaviour, one that would match a specific category and bring this to the front of the listing. Like a filter would, except without removing other items. Imagine these category items in an Isotope grid: Red Green Blue Red Green Blue If I sort by category, it does so alphabetically to show: Blue Blue Green Green Red Red What I'd like is to float a specific category to the front, e.g. "Green", like so: Green Green Red Red Blue Blue Is this possible? I've tried adding a getSortData function for each category like so: green : function( $elem ) { var $greenItems =

Google Analytics Setting Up A PageView On Hash Change

梦想的初衷 提交于 2019-12-04 08:13:26
I'm trying to get a home page that has a bunch of content under Isotope to show each hash change as a pageview in Google Analytics. Originally, I was going to do this as events, but it really should be pageviews. So I setup the modified GA: (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-XXXXXXXX-X', {'allowAnchor':

Isotope grid + corner stamp removing empty spaces, sorting logic

自古美人都是妖i 提交于 2019-12-04 07:00:15
问题 This question is related to this older one: Isotope Grid layout use empty space Here is the fiddle I am working with: http://jsfiddle.net/zewkG/4/ The issue is that when the sorting logic that works in that previous question's answer fails as soon as the masonry cornerstamp [as coded by the creator of isotope] is added. I have been trying to figure out the logic behind this one, but unfortunately to no avail and with a lot of time wasted without a breakthrough. [There should not be any

How to apply a default filter to the container after dynamic insertion of items using Jquery Isotope plugin?

社会主义新天地 提交于 2019-12-04 04:18:57
问题 I'm using the Isotope Plugin. I have an empty container to which I am adding items on $(document).ready(... All those items are added correctly and isotope's layout and filtering on links are working perfectly. However, I would like to be able to apply a filter on a certain item class directly after they are appended to the container, or even better, during the insertion. How to do that? To resume, I have a '.home' filter that I would like to be applied once all items are appended to the

Isotope: combination filtering + multiple selection

孤街浪徒 提交于 2019-12-03 21:47:55
To all jQuery heros out there, I need help! (again) I found similar questions to mine on the internet but there were no answers so far :-/ I want to filter a bunch of items with jquery isotope. I adapted the combination filter example from the plugin homepage, which works fine and looks like so: $(function () { var $container = $('#container'), filters = {}; $container.isotope({ itemSelector: '.item', filter: '', }); // filter links $('.filter a').click(function () { var $this = $(this); // don't proceed if already selected if ($this.hasClass('selected')) { return; } var $optionSet = $this

Isotope Dynamic Sorts

雨燕双飞 提交于 2019-12-03 21:35:37
I'm using the jQuery Isotope plugin (http://isotope.metafizzy.co/) which is awesome, but I have a problem with creating the sorts. It's more of a JavaScript problem than anything to do with Isotope itself. The problem is that I'm building the sort data dynamically. So I've created a function that makes the sortData. An example below: function getSortData(){ sortData = {}; var sorts = ['symbol', 'number', 'score', 'name']; for (var i in sorts) { sortData[sorts[i]] = function($elem) { console.log(sorts[i]); return parseInt($elem.find('.'+ sorts[i]).text()); } } return sortData; } So the problem