PageSourceSearch

https://coloradocrosscountry.com/DesktopModules/EasyDNNNews/static…/EasyDnnSolutions_1.1_2.2.js?cdv=4

js coloradocrosscountry.com collected 2026-10-01 14:09:07 UTC 5,619 bytes, 215 lines download raw bytes

1(function ($) {
2
3var defaultOptions = {
4		instanceGlobal: 'EasyDnnSolutions1_1_instance',
5		google: {
6			maps: {
7				api: {
8					key: '',
9					libraries: []
10				}
11			}
12		}
13	},
14	$window = $(window),
15
16	getExplicitStyleValue = function ($element, styleProperty) {
17		var propertyValue = '',
18			styleAttribute = $element.attr('style'),
19			zIndexStartPosition,
20			semicolonPosition;
21
22		if (typeof styleAttribute != 'string')
23			return propertyValue;
24
25		zIndexStartPosition = styleAttribute.indexOf(' ' + styleProperty + ':');
26
27		if (zIndexStartPosition == -1) {
28			zIndexStartPosition = styleAttribute.indexOf(';' + styleProperty + ':');
29
30			if (zIndexStartPosition == -1) {
31				zIndexStartPosition = styleAttribute.indexOf(styleProperty + ':');
32
33				if (zIndexStartPosition != 0)
34					return propertyValue;
35			} else
36				zIndexStartPosition++;
37		} else
38			zIndexStartPosition++;
39
40		propertyValue = styleAttribute.substr(zIndexStartPosition + styleProperty.length + 1);
41		semicolonPosition = propertyValue.indexOf(';');
42
43		if (semicolonPosition == -1)
44			return propertyValue.trim();
45
46		propertyValue = propertyValue.substr(0, semicolonPosition).trim();
47
48		return propertyValue;
49	};
50
51GoogleHelper = function (parent) {
52	var self = this;
53
54	self.parent = parent;
55	self.maps = {
56		api: {
57			loaded: (typeof window.google == 'object' && typeof window.google.maps == 'object'),
58			callbacks: []
59		}
60	}
61	self.options = parent.options.google;
62
63	self.public = {
64		maps: {
65			api: {
66				callback: function () {
67					var i = 0,
68						l = self.maps.api.callbacks.length;
69
70					self.maps.api.loaded = true;
71
72					for (; i < l; i++)
73						self.maps.api.callbacks[i]();
74				},
75
76				load: function () {
77					var tagId = 'eds_googleMapsApi',
78						gMapsKey = self.options.maps.api.key,
79						script,
80						src = 'https://maps.googleapis.com/maps/api/js?v=3.50&callback=' + self.parent.options.instanceGlobal + '.google.maps.api.callback';
81
82					if ($('script#' + tagId, self.parent.$head).length == 0) {
83						if (typeof gMapsKey != 'string')
84							gMapsKey = '';
85
86						if (gMapsKey != '')
87							gMapsKey = '&key=' + gMapsKey;
88
89						script = document.createElement('script');
90						script.type = 'text/javascript';
91						script.id = tagId;
92
93						if (self.options.maps.api.libraries)
94							src += '&libraries=' + self.options.maps.api.libraries.join(',');
95
96						src += gMapsKey;
97
98						script.src = src;
99
100						self.parent.$head[0].appendChild(script);
101					}
102
103					return self.parent;
104				},
105
106				onLoad: function (toExecute) {
107					if (self.maps.api.loaded)
108						toExecute();
109					else {
110						self.maps.api.callbacks.push(toExecute)
111						self.public.maps.api.load();
112					}
113
114					return self.parent;
115				}
116			}
117		}
118	};
119
120	return self.public;
121}
122
123window.EasyDnnSolutions1_1 = function (instanceOptions) {
124	var self = this;
125
126	self.options = $.extend(true, {}, defaultOptions, instanceOptions);
127
128	self.google = new GoogleHelper(this);
129	self.$head = $('html > head');
130
131	$(function () {
132		$('body')
133			.on('click', '.eds_openModal', function () {
134				var $clicked = $(this),
135					$modalTarget = $('.eds_modalWrapper')
136						.filter(function () {
137							return $clicked.data('targetId') == this.id || $(this).hasClass($clicked.data('targetClass'));
138						}),
139					$dnnModuleElements = $modalTarget.parents('.DnnModule'),
140					$modalContent,
141					$modalResizeWrapper,
142					$modalContentTitle,
143					initialHeight,
144
145					resizeContent = function () {
146						var windowHeight = $window.height(),
147							ContentHDiff = Math.round($modalContent.outerHeight(true) - $modalContent.height()),
148							resizeWrapperHDiff = Math.round($modalResizeWrapper.outerHeight(true) - $modalResizeWrapper.height()),
149							titleHeight = $modalContentTitle.outerHeight(true),
150							maxHeight = windowHeight - ContentHDiff - resizeWrapperHDiff - titleHeight;
151
152						if (maxHeight < initialHeight)
153							$modalResizeWrapper.height(maxHeight);
154						else
155							$modalResizeWrapper.css('height', '');
156					};
157
158				$dnnModuleElements.each(function () {
159					var $this = $(this);
160
161					$this
162						.data('previousZIndex', getExplicitStyleValue($this, 'z-index'))
163						.css('z-index', 99999);
164				});
165
166				$modalTarget.addClass("eds_modalVisible");
167				$("> .eds_modalContent", $modalTarget).addClass("eds_fadeInDown");
168
169				if ($modalTarget.hasClass('eds_resizable')) {
170					$modalContent = $('>', $modalTarget);
171					$modalContentTitle = $('> h3', $modalContent);
172					$modalResizeWrapper = $('> div', $modalContent);
173
174					initialHeight = $modalResizeWrapper.height();
175
176					resizeContent()
177
178					$window.on('resize.eds_modalWrapper', function () {
179						resizeContent();
180					});
181				}
182			})
183			.on('click', '.eds_modalClose', function () {
184				var $clicked = $(this),
185					$modalTarget = $('.eds_modalWrapper'),
186					$dnnModuleElements = $modalTarget.parents('.DnnModule');
187
188				$dnnModuleElements.each(function () {
189					var $this = $(this);
190
191					$this.css('z-index', $this.data('previousZIndex'));
192				});
193
194				$modalTarget
195					.filter(function () {
196						return $clicked.data('targetId') == this.id || $(this).hasClass($clicked.data('targetClass'));
197					})
198						.removeClass("eds_modalVisible")
199						.css('z-index', '');
200			});
201	});
202	}
203
204var initOptions = null;
205if ($('#eds_js1_1').length > 0) {
206	initOptions = $('#eds_js1_1').data('initJson')
207}
208if ($('meta[name="eds__GmapsInitData"]').length > 0) {
209	initOptions = JSON.parse($('meta[name="eds__GmapsInitData"]').attr("content"));
210}
211
212if (window[initOptions.instanceGlobal] == undefined && initOptions != null)
213	window[initOptions.instanceGlobal] = new EasyDnnSolutions1_1(initOptions);
214
215})(eds3_5_jq);

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.