Widget:BeastCardSort

Click to filter by:

    </a> <img style="width: 30px;" src="" alt=""/></a> <img style="width: 30px;" src="" alt=""/></a> <img style="width: 30px;" src="" alt=""/></a> <img style="width: 30px;" src="" alt=""/></a> <img style="width: 30px;" src="" alt=""/></a>

Show All</a> Searchable on the desktop!

RLQ.push(function {  var safeWords = [,,,,,,,,,];  var data = [];  var $tbl = $('.dnl-beast-cards');

function sortClick(sortby) { $('.dnl-btn-beast-sort').hide; $('#dnl-btn-show-all').show; $('.dnl-txt-beast-sort').html('Filtering by: ' + sortby + ' - ');

$tbl.find('.dnl-beast-card').each(function {     if ($(this).hasClass(sortby)) { data.push($(this).html); } else {      $(this).hide; }    }); }

// Category sort via href linking $(function {   var hashPos = window.location.href.indexOf('#');    if(hashPos > -1) {      var sort = window.location.href.substring(hashPos+1);

if (jQuery.inArray(sort, safeWords) !== -1) { sortClick(sort); } } });

$('.dnl-btn-beast-sort').on('click', function {    var sort = $(this).data('id');

sortClick(sort); });

$('#dnl-btn-show-all').on('click', function {

$('.dnl-txt-beast-sort').html('Click to filter by:');

$(this).hide; $('.dnl-btn-beast-sort').show;

$tbl.find('.dnl-beast-card').each(function {     if ($(this).hasClass('mobileonly')) {        $(this).hide;        } else {        $(this).show;        }      }); }); });