PageSourceSearch

https://sweetfm.ro/wp-content/plugins/proradio-videogalleries/asse…/proradio-videogalleries.js?ver=PR.2.7

js sweetfm.ro collected 2026-10-02 22:40:24 UTC 1,927 bytes, 71 lines download raw bytes

1(function($) {
2	"use strict";
3
4	$.ProRadioVideogallery = {
5		
6		fn: {
7			body: $("body"),
8			window: $(window),
9			document: $(document),
10			isExplorer: function(){
11				return /Trident/i.test(navigator.userAgent) ;
12			},
13			isSafari: function(){
14				return navigator.userAgent.indexOf('Safari') !== -1 && navigator.userAgent.indexOf('Chrome') === -1;
15			},
16			isMobile: function(){
17				return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) || $.ProRadioMainObj.window.width() < 1170 ;
18			},
19
20			
21
22			/**====================================================================
23			 *
24			 * 
25			 *  Functions to run once on first page load
26			 *  
27			 *
28			 ====================================================================*/
29			init: function() {
30				
31				
32				var $grid = $('.proradio-videogalleries-masonry').masonry({
33					columnWidth: '.proradio-videogalleries-masonry-item'
34				});
35
36				$(this.body).on('click','.proradio-videogalleries .proradio-videogalleries__filters a', function(e){
37					e.preventDefault();
38					var that = $(this);
39					var layout = that.closest('.proradio-videogalleries');
40					if(!that.hasClass("active")){
41						var filter_id = that.attr("data-videogalleries-filter");
42					
43						if( 'all' === filter_id ){
44							layout.find('.proradio-videogalleries-col').show();
45							$grid.masonry('layout');
46						} else {
47
48							layout.find('.proradio-videogalleries-col').not("[data-videogallery-filterids*='{"+filter_id+"}']").hide()
49							.parent().find("[data-videogallery-filterids*='{"+filter_id+"}']").show();
50							
51
52							$grid.masonry('layout');
53						}
54					}
55				});
56
57			}
58		}
59
60	};
61
62	/**====================================================================
63	 *
64	 *	Page Ready Trigger
65	 * 
66	 ====================================================================*/
67	$(document).ready(function() {
68		$.ProRadioVideogallery.fn.init();
69	});
70
71})(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.