Question

I am working on my website, using jQuery quicksand for sorting and filtering my portfolio. Within this portfiolio I use a HTML5 audio player with flash fallback. The first click on one of my categories is working fine so far but further filtereing leads to the HTML5 audio player being hidden from display. I thought that initialising the player after filtering might be the solution to this problem but that leads to strange track counts within the player. I've also tryed setting "display" of the player to "block" after filtering (instead of initialising it again) but it still won't show up. I can't think of anything else to solve this and would really appreciate any help in this matter.

Here you can see what exactly is happening: http://www.tina-pepper.com/00/#portfolio

Was it helpful?

Solution

Quicksand removes the elements from the DOM and then sticks them back in. You'll need to use the enhancement parameter as seen in the docs.

This may not take care of everything but it will take care of the strange counts.

// Reset the html in the numbers div to the initial state
$('.cj-music-numbers').html('/');
$.fn.cjMusicPlayer();

I hope that helps.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top