I am building a site on top of the Shopify platform and on one page a javascript conflict occurs. I have no idea how I can find out what exactly causes the conflict - any info on how I can find this out would be greatly appreciated!
Here is the gist:
This is the page I am using as a test page. Unless I mute the scripts.js the click function on the filters of the isotope script does not do anything.
This is from the html file in question:
<!-- conflict!
<< path to 'scripts.js' >>
-->
<!-- Begin Isotope -->
<< path to 'jquery.isotope.min.js' >>
<script>
$(window).load(function(){
var $container = $('#isocontainer'),
$filterLinks = $('#isofilters a');
$container.isotope({
itemSelector: '.item',
filter: '*'
});
$filterLinks.click(function(){
var $this = $(this);
// don't proceed if already selected
if ( $this.hasClass('selected') ) {
return;
}
$filterLinks.filter('.selected').removeClass('selected');
$this.addClass('selected');
// get selector from data-filter attribute
selector = $this.data('filter');
$container.isotope({
filter: selector
});
});
});
</script>
<!-- End Isotope -->
I'd be happy with any hints on how I can find out what the concrete conflict is. Let me know if I need to provide more/different information.
Thanks, Alex