PageSourceSearch

https://wpna.fm/wp-content/plugins/qt-videogalleries/assets/vdl-main.js

js wpna.fm collected 2026-10-02 13:25:43 UTC 3,944 bytes, 122 lines download raw bytes

1jQuery.migrateMute = true;
2/* = quicksand filter
3======================================================*/
4jQuery.noConflict();
5/**====================================================================
6 *
7 *
8 * 	02. Check images loaded in a container
9 *
10 * 
11 ====================================================================*/
12jQuery.fn.imagesLoaded = function () {
13	// get all the images (excluding those with no src attribute)
14	var $imgs = this.find('img[src!=""]');
15	// if there's no images, just return an already resolved promise
16	if (!$imgs.length) {return jQuery.Deferred().resolve().promise();}
17	// for each image, add a deferred object to the array which resolves when the image is loaded (or if loading fails)
18	var dfds = [];  
19	$imgs.each(function(){
20		var dfd = jQuery.Deferred();
21		dfds.push(dfd);
22		var img = new Image();
23		img.onload = function(){dfd.resolve();};
24		img.onerror = function(){dfd.resolve();};
25		img.src = this.src;
26	});
27	// return a master promise object which will resolve when all the deferred objects have resolved
28	// IE - when all the images are loaded
29	return jQuery.when.apply(jQuery,dfds);
30};
31jQuery.fn.removeMyStyle = function(style){
32	if(typeof(style) !== "undefined" && style !== undefined){
33	    var search = new RegExp(style + '[^;]+;?', 'g');
34	    return this.each(function()    {
35	        jQuery(this).attr('style', function(i, styles){
36	        	if(styles !== undefined){
37	            return styles.replace(search, '');	        		
38	        	}
39
40	        });
41	    });
42	}
43};
44// auto background activation =======================================//	
45jQuery.vdl_autoBgStyles = function(){
46	jQuery("[data-bgimg]").each(function(){
47		var img = jQuery(this).attr("data-bgimg");
48		if(img !== ""){
49			jQuery(this).css({"background": "url("+img+")","background-size":"cover" });
50		}
51	});	
52};
53jQuery.vdl_autoBgStyles();
54
55// Quicksand activation =======================================//
56jQuery.activateFilterBlocks = function(){
57  	var jQueryfilterType = jQuery('.filterOptions li.active a').attr('class');
58  	var jQueryholder = jQuery('.filterable-grid');
59  	var jQuerydata = jQueryholder.clone();
60  	var filteredData;
61	jQuery('.filterOptions a').on('click',function(e) {
62		e.preventDefault();
63		jQuery('.filterOptions li').removeClass('active');
64		jQueryfilterType = jQuery(this).attr('class');
65		jQuery(this).parent().addClass('active');
66		if (jQueryfilterType === 'all') {
67			filteredData = jQuerydata.find('.fgchild');
68		} else {
69			filteredData = jQuerydata.find('.fgchild[data-type~=' + jQueryfilterType + ']');
70		}
71		// call quicksand and assign transition parameters
72		jQueryholder.quicksand(filteredData, {
73			duration: 200,
74			adjustHeight: 'dynamic' ,
75			easing: 'easeInOutQuad'
76		});
77		return false;
78	});
79	// jQuery("#vdlsubpagesAll").click();
80};
81jQuery.vdl_todoAfterResize = function(){
82	if(jQuery.beingExecuted === 0){
83		jQuery.beingExecuted = 1;
84		jQuery(".filterable-grid").css({opacity:0});
85		jQuery(".filterable-grid").each(function(){
86			var that = jQuery(this);		
87			var width = that.find(".vdl-subpages-item:first-child").outerWidth(),
88				height = width/16*9;
89			that.find('.vdl-element').each(function(){
90				jQuery(this).css({height:height+"px",width:width+"px"});
91			});
92			that.animate({opacity:1},30);
93		});
94		jQuery.activateFilterBlocks();
95		jQuery(".filterable-grid").animate({opacity:1},50);
96	}
97	jQuery.beingExecuted = 0;
98};
99jQuery.vdl_FixBlocks = function() {
100	jQuery.vdl_todoAfterResize();
101};
102jQuery.vdl_OnResize = function() {
103	jQuery('.vdl-element, .filterable-grid').removeMyStyle("width");
104	jQuery.vdl_FixBlocks(1);
105};
106jQuery.vdl_Init = function(){
107	jQuery.beingExecuted = 0;
108	jQuery.vdl_autoBgStyles();
109	jQuery.vdl_FixBlocks(1);	
110};
111jQuery(window).on('load', function() {
112	// console.log('Run');
113	jQuery.migrateMute = true;
114	jQuery("body").imagesLoaded().then(function(){
115		jQuery.vdl_Init();
116	});
117});
118
119jQuery(window).on('resize', function() {
120	jQuery.vdl_OnResize();
121});
122

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.