PageSourceSearch

https://uniespinal.edu.co/wp-content/plugins/mascot-core/assets/js…/jquery.owl-filter.js?ver=7.1.3

js uniespinal.edu.co collected 2026-10-09 21:35:38 UTC 1,681 bytes, 62 lines download raw bytes

1/**
2 * jquery.owl-filter.js
3 * Create: 07-09-2016
4 * Author: Bearsthemes
5 * Version: 1.0.0
6 */
7
8"use strict";
9
10(function ($) {
11$.fn.owlRemoveItem = function(owl,num) {
12	var owl_data = owl.data('owlCarousel');
13	
14	/*owl_data._items = $.map(owl_data._items, function(data, index) {
15		if(index != num) return data;
16	})*/
17
18	$(this).find('.owl-item').eq(num).remove();
19}
20
21$.fn.owlFilter = function(data, callback) {
22	var owl = this,
23		owl_data = $(owl).data('owlCarousel'),
24		$elemCopy = $('<div>').css('display', 'none');
25
26	/* check attr owl-clone exist */
27	if(typeof($(owl).data('owl-clone')) == 'undefined') {
28		$(owl).children('.owl-stage-outer').children('.owl-stage').children('.owl-item:not(.cloned)').clone().appendTo($elemCopy);
29		$(owl).data('owl-clone', $elemCopy);
30	}else {
31		$elemCopy = $(owl).data('owl-clone');
32	}
33	
34	/* clear content */
35	owl.trigger('replace.owl.carousel', ['<div/>']);
36	
37	switch(data){
38		case '*': 
39			$elemCopy.children().each(function() {
40				owl.trigger('add.owl.carousel', [$(this).children().clone()]);
41			})
42			break;
43		default: 
44			$elemCopy.find(data).each(function() {
45				owl.trigger('add.owl.carousel', [$(this).clone()]);
46			})
47			break;
48	}
49
50	/* remove item empty when clear */
51	owl.owlRemoveItem(owl,0);
52	owl.trigger('refresh.owl.carousel').trigger('to.owl.carousel', [0]);
53
54	
55/*for (var i=0; i<$(owl).children('.owl-stage-outer').children('.owl-stage').children('.owl-item:not(.cloned)').length; i++) {
56   owl.trigger('remove.owl.carousel', [i])
57                             .trigger('refresh.owl.carousel');
58}*/
59	// callback
60	if(callback) callback.call(this, owl);
61}
62})(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.