PageSourceSearch

https://www.lamontanaesmireino.es/wp-content/plugins/synved-shortcodes/synved-shortcode/script/base.js?ver=1.0

js lamontanaesmireino.es collected 2026-10-02 14:14:51 UTC 3,594 bytes, 148 lines download raw bytes

1// Copyright (c) 2011 Synved Ltd.
2// All rights reserved
3
4function synved_shortcode_apply_all(context) 
5{
6	if (context == undefined || context == null)
7		context = document;
8	
9	try {
10		jQuery('.noselect', context).unselectable();
11	}
12	catch (ex) { }
13	
14	jQuery('.synved-section-list', context).each(function() {
15		var sections = jQuery(this);
16		
17		sections.find('h4.section-title a').each(function() {
18			var tab = this;
19			if (tab.href != '' && tab.href[0] != '#') {
20				var hash = jQuery.param.fragment(tab.href);
21				tab.href = '#' + hash;
22			}
23		});
24	});
25	
26	jQuery('.synved-section-list', context).removeClass('synved-section-list-nojs').each(function() {
27		var jthis = jQuery(this);
28		var params = { autoHeight: false, navigation : true, heightStyle: 'content' };
29		
30		if (jthis.hasClass('synved-sections-height-fill'))
31		{
32			params.heightStyle = 'fill';
33		}
34		else if (jthis.hasClass('synved-sections-height-auto'))
35		{
36			params.heightStyle = 'auto';
37		}
38		
39		if (jthis.hasClass('synved-sections-collapse'))
40		{
41			params.collapsible = true;
42		}
43		
44		if (jthis.hasClass('synved-sections-collapse-always'))
45		{
46			params.active = false;
47		}
48		else
49		{
50			var hash = window.location.hash;
51			var active = -1;
52			var index = 0;
53		
54			jthis.find('h4.section-title a').each(function() {
55				var tab = this;
56				if (tab.href != '' && tab.href[0] != '#') 
57				{
58					var tabHash = '#' + jQuery.param.fragment(tab.href);
59					
60					if (tabHash == hash)
61					{
62						active = index;
63					}
64				}
65				index++;
66			});
67			
68			if (active >= 0)
69			{
70				params.active = active;
71			}
72		}
73		
74		jthis.accordion(params);
75	});
76	
77	jQuery('.synved-tab-list.synved-content-dynamic', context).each(function() {
78		var tabs = jQuery(this);
79		
80		tabs.find('li.tab-title a').each(function() {
81			var tab = this;
82			var hash = jQuery.param.fragment(tab.href);
83			var args = { synved_dynamic_load : true };
84			var url = jQuery.param.querystring(tab.href, args);
85			jQuery.data(tab, 'synved-tab-link', url);
86			tab.href = '#' + hash;
87		});
88	}).removeClass('synved-content-dynamic');
89	
90	jQuery('.synved-tab-list', context).each(function() {
91		var tabs = jQuery(this);
92		
93		tabs.find('li.tab-title').removeClass('ui-tabs-selected ui-tabs-active ui-state-active');
94		
95		tabs.find('li.tab-title a').each(function() {
96			var tab = this;
97			if (tab.href != '' && tab.href[0] != '#') {
98				var hash = jQuery.param.fragment(tab.href);
99				tab.href = '#' + hash;
100			}
101		});
102	});
103	
104	jQuery('.synved-tab-list', context).removeClass('synved-tab-list-nojs').tabs({
105    select: function(event, ui) {
106    	var url = jQuery.data(ui.tab, 'synved-tab-link');
107    	var loaded = jQuery.data(ui.panel, 'synved-tab-loaded');
108    	
109    	if (!loaded && url)
110    	{
111    		jQuery(ui.panel).load(url);
112    		
113    		jQuery.data(ui.panel, 'synved-tab-loaded', true);
114    	}
115    	
116    	return true;
117    }
118	}).each(function () {
119		var tabs = jQuery(this);
120		
121		if (tabs.hasClass('synved-content-scrollable'))
122		{
123			var nav = tabs.find('.ui-tabs-nav');
124			var height = nav.find('.tab-title').height();
125			
126//			nav.css({
127//				overflowY: 'visible',
128//				overflowX: 'auto',
129//				height: height + 2,
130//			});
131		}
132	});
133	
134	jQuery('.synved-button', context).each(function() { 
135		var btn = jQuery(this);
136		var info = btn.next('.button-info');
137		var icon = info.find('.icon').html();
138		var icon2 = info.find('.icon2').html();
139		
140		if (icon) icon = 'ui-icon-' + icon;
141		if (icon2) icon2 = 'ui-icon-' + icon2;
142		
143		btn.button({ icons: {primary: icon, secondary: icon2} });
144	});
145	
146	jQuery('a.synved-button', context).click(function() { return false; });
147}
148

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.