Note that there are some explanatory texts on larger screens.

plurals
  1. POSuperbox JS & Quicksand Combo Issue
    primarykey
    data
    text
    <p>I have a portfolio section here... <a href="http://bvh.delineamultimedia.com/?page_id=2" rel="nofollow">http://bvh.delineamultimedia.com/?page_id=2</a> and Superbox - (<a href="http://toddmotto.com/introducing-superbox-the-reimagined-lightbox-gallery/" rel="nofollow">http://toddmotto.com/introducing-superbox-the-reimagined-lightbox-gallery/</a>) is working but after I click on a quicksand "filter" link the superbox seems to be disabled. Is there a way to fix this. Here is the JavaScript. I'm a bit confused as to why this is happening. I'm guessing quicksand is a bit greedy but am not for sure. </p> <p>Thanks in advanced! </p> <pre><code>;(function($) { $.fn.SuperBox = function(options) { var superbox = $('&lt;div class="superbox-show"&gt;&lt;/div&gt;'); var superboximg = $('&lt;img src="" class="superbox-current-img"&gt;'); var superboxclose = $('&lt;div class="superbox-close"&gt;&lt;/div&gt;'); superbox.append(superboximg).append(superboxclose); return this.each(function() { //$('.superbox-list').click(function() { $('.superbox').on('click', '.superbox-list', function() { var currentimg = $(this).find('.superbox-img'); var imgData = currentimg.data('img'); superboximg.attr('src', imgData); if($('.superbox-current-img').css('opacity') == 0) { $('.superbox-current-img').animate({opacity: 1}); } if ($(this).next().hasClass('superbox-show')) { superbox.toggle(); } else { superbox.insertAfter(this).css('display', 'block'); } $('html, body').animate({ scrollTop:superbox.position().top - currentimg.width() }, 'medium'); }); $('.superbox').on('click', '.superbox-close', function() { $('.superbox-current-img').animate({opacity: 0}, 200, function() { $('.superbox-show').slideUp(); }); }); }); }; })(jQuery); </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload