1/*! =================================== 2 * Author: Roman Nazarkin, Egor Dankov 3 * ----------------------------------- 4 * PuzzleThemes 5 * =================================== */ 6 7 8/*********************************************** 9 * Masonry Clients Layout 10 ***********************************************/ 11(function ($) { 12 'use strict'; 13 14 var $grid = $('.sp-clients-grid'); // locate what we want to sort 15 16 // don't run this function if this page does not contain required element 17 if ($grid.length <= 0) { 18 return; 19 } 20 21 // instantiate the plugin 22 $grid.pzt_shuffle({ 23 itemSelector: '[class*="col-"]', 24 gutterWidth : 0, 25 speed : 600, // transition/animation speed (milliseconds). 26 easing : 'ease' 27 }); 28})(jQuery); 29 30 31/*********************************************** 32 * Masonry Blog Layout 33 ***********************************************/ 34(function ($) { 35 'use strict'; 36 37 var $grid = $('#sp-blog-grid'); // locate what we want to sort 38 39 // don't run this function if this page does not contain required element 40 if ($grid.length <= 0) { 41 return; 42 } 43 44 // instantiate the plugin 45 $grid.pzt_shuffle({ 46 itemSelector: '[class*="col-"]', 47 gutterWidth : 0, 48 speed : 600, // transition/animation speed (milliseconds). 49 easing : 'ease' 50 }); 51})(jQuery); 52 53 54/*********************************************** 55 * Attach shuffle to standard WP galleries 56 ***********************************************/ 57(function($) { 58 'use strict'; 59 60 $('.entry-content, .entry-excerpt').find('.gallery').each(function () { 61 var $this = $(this); 62 $this.addClass('shuffle-gallery'); 63 64 // plugin init 65 $this.pzt_shuffle({ 66 itemSelector: '.gallery-item', 67 speed : 500 68 }); 69 70 // update layout each time image loaded 71 if (typeof jQuery.fn.imagesLoaded !== 'undefined') { 72 $this.imagesLoaded().progress(function () { 73 shuffle.layout(); 74 }); 75 } 76 }); 77})(jQuery); 78 79 80/*********************************************** 81 * Latest news grid 82 ***********************************************/ 83(function ($) { 84 'use strict'; 85 86 var $grid = $('.sp-latest-news-widget'); // locate what we want to sort 87 88 // don't run this function if this page does not contain required element 89 if ($grid.length <= 0) { 90 return; 91 } 92 93 // instantiate the plugin 94 $grid.pzt_shuffle({ 95 itemSelector: '.post-item-wrapper', 96 gutterWidth : 0, 97 speed : 600, // transition/animation speed (milliseconds). 98 easing : 'ease' 99 }); 100})(jQuery);
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.