PageSourceSearch

https://www.gyflfootball.com/desktopmodules/at/at.common.usercontr…/resources/jquery.smallpluggins.js?cdv=308

js gyflfootball.com collected 2026-09-24 14:44:30 UTC 7,234 bytes, 162 lines download raw bytes

1/*Resize size of selected item to given maxSize.*/
2(function ($) {
3	$.fn.ATCCResize = function (maxSize) {
4		if (!maxSize) maxSize = 400;
5		return this.each(function () {
6			var $this = jQuery(this);
7			var width = $this.width();
8			var height = $this.height();
9
10			if (width > maxSize || height > maxSize) {
11				if (width > maxSize) {
12					var ratio = height / width;
13					width = maxSize;
14					height = maxSize * ratio;
15				} else {
16					var ratio = width / height;
17					height = maxSize;
18					width = maxSize * ratio;
19				}
20				$this.width(width);
21				$this.height(height);
22			}
23		});
24	}
25})(jQuery);
26
27/*watermark in textbox.*/
28(function ($) {
29	$.fn.watermarkText = function (inputSelector) {
30		return this.each(function () {
31			var $this = jQuery(this);
32			if (this.watermarkInputControl) return;
33
34			//jQuery.log(this.name);
35			var nodeName = (this.tagName) ? this.tagName : this.nodeName;
36			nodeName = nodeName.toLowerCase();
37
38			var thisPos = $this.position();
39			var watermarkcss = "ATCCWatermark ";
40			if ($this.attr("watermarkcss")) watermarkcss = $this.attr("watermarkcss") + " ";
41
42			if ($this.attr("class")) watermarkcss += $this.attr("class");
43			watermarkcss = watermarkcss.replace(/ATCCToBeWatermark/g, "").replace(/DatePickerInput/g, "");
44
45			var newNode = jQuery("<" + nodeName + " class='" + watermarkcss + "' style='display:none'/>")
46					.insertAfter($this).css("width", $this.width()).css("height", $this.height())
47					.focus(function () { jQuery(this).hide(); $this.show(); $this.focus(); })
48					.val($this.attr("title")).attr("tabindex", $this.attr("tabindex"));
49			this.watermarkInputControl = newNode[0];
50
51			function CheckValue(){
52				if ($this.val() === "") {$this.hide(); jQuery(this.watermarkInputControl).show();}
53				else if(!$this.is(":visible")){$this.show(); jQuery(this.watermarkInputControl).hide();}
54			}
55
56			$this.blur(CheckValue)
57				.focus(function () { $this.show(); jQuery(this.watermarkInputControl).hide() })
58				.trigger("blur")
59				.attr("title", "");
60			if($this.hasClass("DatePickerInput"))
61				$this.change(CheckValue);
62		});
63	}
64})(jQuery);
65
66jQuery(document).ready(function () {
67	jQuery("input.ATCCToBeWatermark, textarea.ATCCToBeWatermark").watermarkText();
68});
69
70/*Get text out of clicked item and place it in given input.*/
71(function ($) {
72	$.fn.placeTextInTo = function (inputSelector, options) {
73		if (!options) { options = {}; }
74		if (!options.sepText) { options.sepText = ""; }
75
76		return this.each(function () {
77			$(this).bind("click", function () {
78				var text = $(this).text();
79				$(inputSelector).each(function () { $.ATPlaceText(this, text, options.sepText); });
80				return false;
81			});
82		});
83	}
84
85	///Following method is also used by ATTemplateManager.js
86	$.ATPlaceText = function (cnt, text, sepText) {
87		/*IE support*/
88		if (document.selection) {
89			cnt.focus();
90			sel = document.selection.createRange();
91			sel.text = text + sepText;
92		}
93		else if (cnt.selectionStart || cnt.selectionStart == '0') { /*MOZILLA/NETSCAPE support */
94			var startPos = cnt.selectionStart;
95			var endPos = cnt.selectionEnd;
96			cnt.value = cnt.value.substring(0, startPos)
97			+ text + sepText
98			+ cnt.value.substring(endPos, cnt.value.length);
99		} else {
100			cnt.value += text + sepText;
101		}
102	}
103})(jQuery);
104
105
106
107/**
108* --------------------------------------------------------------------
109* jQuery-Plugin "pngFix"
110* Version: 1.1, 11.09.2007
111* by Andreas Eberhard, [email protected]
112*                      http://jquery.andreaseberhard.de/
113*
114* Copyright (c) 2007 Andreas Eberhard
115* Licensed under GPL (http://www.opensource.org/licenses/gpl-license.php)
116*/
117eval(function (p, a, c, k, e, r) { e = function (c) { return (c < a ? '' : e(parseInt(c / a))) + ((c = c % a) > 35 ? String.fromCharCode(c + 29) : c.toString(36)) }; if (!''.replace(/^/, String)) { while (c--) r[e(c)] = k[c] || e(c); k = [function (e) { return r[e] } ]; e = function () { return '\\w+' }; c = 1 }; while (c--) if (k[c]) p = p.replace(new RegExp('\\b' + e(c) + '\\b', 'g'), k[c]); return p } ('(s($){3.1s.1k=s(j){j=3.1a({12:\'1m.1j\'},j);8 k=(n.P=="r 10 Z"&&U(n.v)==4&&n.v.E("14 5.5")!=-1);8 l=(n.P=="r 10 Z"&&U(n.v)==4&&n.v.E("14 6.0")!=-1);o(3.17.16&&(k||l)){3(2).L("1r[@m$=.M]").z(s(){3(2).7(\'q\',3(2).q());3(2).7(\'p\',3(2).p());8 a=\'\';8 b=\'\';8 c=(3(2).7(\'K\'))?\'K="\'+3(2).7(\'K\')+\'" \':\'\';8 d=(3(2).7(\'A\'))?\'A="\'+3(2).7(\'A\')+\'" \':\'\';8 e=(3(2).7(\'C\'))?\'C="\'+3(2).7(\'C\')+\'" \':\'\';8 f=(3(2).7(\'B\'))?\'B="\'+3(2).7(\'B\')+\'" \':\'\';8 g=(3(2).7(\'R\'))?\'1d:\'+3(2).7(\'R\')+\';\':\'\';8 h=(3(2).1c().7(\'1b\'))?\'19:18;\':\'\';o(2.9.y){a+=\'y:\'+2.9.y+\';\';2.9.y=\'\'}o(2.9.t){a+=\'t:\'+2.9.t+\';\';2.9.t=\'\'}o(2.9.w){a+=\'w:\'+2.9.w+\';\';2.9.w=\'\'}8 i=(2.9.15);b+=\'<x \'+c+d+e+f;b+=\'9="13:11;1q-1p:1o-1n;O:W-V;N:1l;\'+g+h;b+=\'q:\'+3(2).q()+\'u;\'+\'p:\'+3(2).p()+\'u;\';b+=\'J:I:H.r.G\'+\'(m=\\\'\'+3(2).7(\'m\')+\'\\\', D=\\\'F\\\');\';b+=i+\'"></x>\';o(a!=\'\'){b=\'<x 9="13:11;O:W-V;\'+a+h+\'q:\'+3(2).q()+\'u;\'+\'p:\'+3(2).p()+\'u;\'+\'">\'+b+\'</x>\'}3(2).1i();3(2).1h(b)});3(2).L("*").z(s(){8 a=3(2).T(\'N-S\');o(a.E(".M")!=-1){8 b=a.X(\'1g("\')[1].X(\'")\')[0];3(2).T(\'N-S\',\'1f\');3(2).Q(0).Y.J="I:H.r.G(m=\'"+b+"\',D=\'F\')"}});3(2).L("1e[@m$=.M]").z(s(){8 a=3(2).7(\'m\');3(2).Q(0).Y.J=\'I:H.r.G\'+\'(m=\\\'\'+a+\'\\\', D=\\\'F\\\');\';3(2).7(\'m\',j.12)})}1t 3}})(3);', 62, 92, '||this|jQuery||||attr|var|style|||||||||||||src|navigator|if|height|width|Microsoft|function|padding|px|appVersion|margin|span|border|each|class|alt|title|sizingMethod|indexOf|scale|AlphaImageLoader|DXImageTransform|progid|filter|id|find|png|background|display|appName|get|align|image|css|parseInt|block|inline|split|runtimeStyle|Explorer|Internet|relative|blankgif|position|MSIE|cssText|msie|browser|hand|cursor|extend|href|parent|float|input|none|url|after|hide|gif|pngFix|transparent|blank|line|pre|space|white|img|fn|return'.split('|'), 0, {}))
118
119
120
121function createCookie(name, value, days) {
122	if (days) {
123		var date = new Date();
124		date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
125		var expires = "; expires=" + date.toGMTString();
126	}
127	else var expires = "";
128	document.cookie = name + "=" + value + expires + "; path=/";
129}
130
131function readCookie(name) {
132	var nameEQ = name + "=";
133	var ca = document.cookie.split(';');
134	for (var i = 0; i < ca.length; i++) {
135		var c = ca[i];
136		while (c.charAt(0) == ' ') c = c.substring(1, c.length);
137		if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length);
138	}
139	return null;
140}
141
142function eraseCookie(name) {
143	createCookie(name, "", -1);
144}
145
146
147jQuery.fn.extend({
148	dataWithTrigger: function( key, value ) {
149		var parts = key.split(".");
150		parts[1] = parts[1] ? "." + parts[1] : "";
151		var args = [ parts[0], value ];
152		this.triggerHandler( "setData" + parts[1], args );
153		this.data(key, value);
154		this.triggerHandler( "changeData" + parts[1], args );
155	}
156});
157
158function setDropdownStyle(scope) {
159	if (!jQuery.fn.chosen) return;
160	var $combobox = jQuery(".chzn-select", scope || document.body).not(".converted");
161	$combobox.addClass("converted").chosen();
162}

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.