PageSourceSearch

https://www.tinyportal.net/Themes/tinyportal-theme/scripts/theme.js?smf217_1773343223

js tinyportal.net collected 2026-09-24 08:47:34 UTC 1,829 bytes, 60 lines download raw bytes

1$(function() {
2	$('ul.dropmenu, ul.quickbuttons').superfish({delay : 250, speed: 100, sensitivity : 8, interval : 50, timeout : 1});
3
4	// tooltips
5	$('.preview').SMFtooltip();
6
7	// find all nested linked images and turn off the border
8	$('a.bbc_link img').parent().css('border', '0');
9});
10
11// The purpose of this code is to fix the height of overflow: auto blocks, because some browsers can't figure it out for themselves.
12function smf_codeBoxFix()
13{
14	var codeFix = $('code');
15	$.each(codeFix, function(index, tag)
16	{
17		if (is_webkit && $(tag).height() < 20)
18			$(tag).css({height: ($(tag).height() + 20) + 'px'});
19
20		else if (is_ff && ($(tag)[0].scrollWidth > $(tag).innerWidth() || $(tag).innerWidth() == 0))
21			$(tag).css({overflow: 'scroll'});
22
23		// Holy conditional, Batman!
24		else if (
25			'currentStyle' in $(tag) && $(tag)[0].currentStyle.overflow == 'auto'
26			&& ($(tag).innerHeight() == '' || $(tag).innerHeight() == 'auto')
27			&& ($(tag)[0].scrollWidth > $(tag).innerWidth() || $(tag).innerWidth == 0)
28			&& ($(tag).outerHeight() != 0)
29		)
30			$(tag).css({height: ($(tag).height + 24) + 'px'});
31	});
32}
33
34// Add a fix for code stuff?
35if (is_ie || is_webkit || is_ff)
36	addLoadEvent(smf_codeBoxFix);
37
38// Toggles the element height and width styles of an image.
39function smc_toggleImageDimensions()
40{
41	$('.postarea .bbc_img.resized').each(function(index, item)
42	{
43		$(item).click(function(e)
44		{
45			$(item).toggleClass('original_size');
46		});
47	});
48}
49
50// Add a load event for the function above.
51addLoadEvent(smc_toggleImageDimensions);
52
53function smf_addButton(stripId, image, options)
54{
55	$('#' + stripId).append(
56		'<a href="' + options.sUrl + '" class="button last" ' + ('sCustom' in options ? options.sCustom : '') + ' ' + ('sId' in options ? ' id="' + options.sId + '_text"' : '') + '>'
57			+ options.sText +
58		'</a>'
59	);
60}

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.