1/** 2 * @package SP Simple Portfolio 3 * 4 * @copyright Copyright (C) 2010 - 2018 JoomShaper. All rights reserved. 5 * @license GNU General Public License version 2 or later. 6 */ 7 8jQuery(function($) { 9 10 var $container = $('.sp-simpleportfolio-items'); 11 12 $(window).load(function() { 13 var $sizer = $container.find('.shuffle__sizer'); 14 15 $container.shuffle({ 16 itemSelector: '.sp-simpleportfolio-item', 17 sequentialFadeDelay: 150, 18 sizer: $sizer 19 }); 20 }); 21 22 23 // Filters 24 $('.sp-simpleportfolio-filter li a').on('click', function(event){ 25 event.preventDefault(); 26 var $self = $(this); 27 var $this = $(this).parent(); 28 29 if($this.hasClass('active')) { 30 return; 31 } 32 33 $self.closest('ul').children().removeClass('active'); 34 $self.parent().addClass('active'); 35 36 var $local = $self.closest('.sp-simpleportfolio').children('.sp-simpleportfolio-items'); 37 38 $local.shuffle( 'shuffle', $this.data('group') ); 39 }); 40 41});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.