PageSourceSearch

https://wineyakimavalley.org/assets/wineyakimavalley.org/wp-conten…/js/jquery.fullscreen-0.4.1-0d9ddc1836.js

js wineyakimavalley.org collected 2026-10-02 13:15:36 UTC 8,918 bytes, 301 lines download raw bytes

1var _____WB$wombat$assign$function_____=function(name){return (globalThis._wb_wombat && globalThis._wb_wombat.local_init && globalThis._wb_wombat.local_init(name))||globalThis[name];};if(!globalThis.__WB_pmw){globalThis.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{
2let window = _____WB$wombat$assign$function_____("window");
3let self = _____WB$wombat$assign$function_____("self");
4let document = _____WB$wombat$assign$function_____("document");
5let location = _____WB$wombat$assign$function_____("location");
6let top = _____WB$wombat$assign$function_____("top");
7let parent = _____WB$wombat$assign$function_____("parent");
8let frames = _____WB$wombat$assign$function_____("frames");
9let opener = _____WB$wombat$assign$function_____("opener");
10/*
11 * jQuery.fullscreen library v0.4.0
12 * Copyright (c) 2013 Vladimir Zhuravlev
13 *
14 * @license https://github.com/private-face/jquery.fullscreen/blob/master/LICENSE
15 *
16 * Date: Wed Dec 11 22:45:17 ICT 2013
17 **/
18;(function($) {
19
20function defined(a) {
21	return typeof a !== 'undefined';
22}
23
24function extend(child, parent, prototype) {
25    var F = function() {};
26    F.prototype = parent.prototype;
27    child.prototype = new F();
28    child.prototype.constructor = child;
29	parent.prototype.constructor = parent;
30    child._super = parent.prototype;
31    if (prototype) {
32        $.extend(child.prototype, prototype);
33    }
34}
35
36var SUBST = [
37    ['', ''],               // spec
38    ['exit', 'cancel'],     // firefox & old webkits expect cancelFullScreen instead of exitFullscreen
39    ['screen', 'Screen']    // firefox expects FullScreen instead of Fullscreen
40];
41
42var VENDOR_PREFIXES = ['', 'o', 'ms', 'moz', 'webkit', 'webkitCurrent'];
43
44function native(obj, name) {
45    var prefixed;
46
47    if (typeof obj === 'string') {
48        name = obj;
49        obj = document;
50    }
51
52    for (var i = 0; i < SUBST.length; ++i) {
53        name = name.replace(SUBST[i][0], SUBST[i][1]);
54        for (var j = 0; j < VENDOR_PREFIXES.length; ++j) {
55            prefixed = VENDOR_PREFIXES[j];
56            prefixed += j === 0 ? name : name.charAt(0).toUpperCase() + name.substr(1);
57            if (defined(obj[prefixed])) {
58                return obj[prefixed];
59            }
60        }
61    }
62
63    return void 0;
64}var ua = navigator.userAgent;
65var fsEnabled = native('fullscreenEnabled');
66var IS_ANDROID_CHROME = ua.indexOf('Android') !== -1 && ua.indexOf('Chrome') !== -1; 
67var IS_NATIVELY_SUPPORTED = 
68		!IS_ANDROID_CHROME &&
69		 defined(native('fullscreenElement')) && 
70		(!defined(fsEnabled) || fsEnabled === true);
71
72var version = $.fn.jquery.split('.');
73var JQ_LT_17 = (parseInt(version[0]) < 2 && parseInt(version[1]) < 7);
74
75var FullScreenAbstract = function() {
76	this.__options = null;
77	this._fullScreenElement = null;
78	this.__savedStyles = {};
79};
80
81FullScreenAbstract.prototype = {
82	_DEFAULT_OPTIONS: {
83		styles: {
84			'boxSizing': 'border-box',
85			'MozBoxSizing': 'border-box',
86			'WebkitBoxSizing': 'border-box'
87		},
88		toggleClass: null
89	},
90	__documentOverflow: '',
91	__htmlOverflow: '',
92	_preventDocumentScroll: function() {
93		this.__documentOverflow = $('body')[0].style.overflow;
94		this.__htmlOverflow = $('html')[0].style.overflow;
95		// $('body, html').css('overflow', 'hidden');
96	},
97	_allowDocumentScroll: function() {
98		// $('body')[0].style.overflow = this.__documentOverflow;
99		// $('html')[0].style.overflow = this.__htmlOverflow;
100	},
101	_fullScreenChange: function() {
102		if (!this.isFullScreen()) {
103			this._allowDocumentScroll();
104			this._revertStyles();
105			this._triggerEvents();
106			this._fullScreenElement = null;
107		} else {
108			this._preventDocumentScroll();
109			this._triggerEvents();
110		}
111	},
112	_fullScreenError: function(e) {
113		this._revertStyles();
114		this._fullScreenElement = null;
115		if (e) {
116			$(document).trigger('fscreenerror', [e]);
117		}
118	},
119	_triggerEvents: function() {
120		$(this._fullScreenElement).trigger(this.isFullScreen() ? 'fscreenopen' : 'fscreenclose');
121		$(document).trigger('fscreenchange', [this.isFullScreen(), this._fullScreenElement]);
122	},
123	_saveAndApplyStyles: function() {
124		var $elem = $(this._fullScreenElement);
125		this.__savedStyles = {};
126		for (var property in this.__options.styles) {
127			// save
128			this.__savedStyles[property] = this._fullScreenElement.style[property];
129			// apply
130			this._fullScreenElement.style[property] = this.__options.styles[property];
131		}
132		if (this.__options.toggleClass) {
133			$elem.addClass(this.__options.toggleClass);
134		}
135	},
136	_revertStyles: function() {
137		var $elem = $(this._fullScreenElement);
138		for (var property in this.__options.styles) {
139			this._fullScreenElement.style[property] = this.__savedStyles[property];
140		}
141		if (this.__options.toggleClass) {
142			$elem.removeClass(this.__options.toggleClass);
143		}
144	},
145	open: function(elem, options) {
146		// do nothing if request is for already fullscreened element
147		if (elem === this._fullScreenElement) {
148			return;
149		}
150		// exit active fullscreen before opening another one
151		if (this.isFullScreen()) {
152			this.exit();
153		}
154		// save fullscreened element
155		this._fullScreenElement = elem;
156		// apply options, if any
157		this.__options = $.extend(true, {}, this._DEFAULT_OPTIONS, options);
158		// save current element styles and apply new
159		this._saveAndApplyStyles();
160	},
161	exit: null,
162	isFullScreen: null,
163	isNativelySupported: function() {
164		return IS_NATIVELY_SUPPORTED;
165	}
166};
167var FullScreenNative = function() {
168	FullScreenNative._super.constructor.apply(this, arguments);
169	this.exit = $.proxy(native('exitFullscreen'), document);
170	this._DEFAULT_OPTIONS = $.extend(true, {}, this._DEFAULT_OPTIONS, {
171		'styles': {
172			'width': '100%',
173			'height': '100%'
174		}
175	});
176	$(document)
177		.bind(this._prefixedString('fullscreenchange') + ' MSFullscreenChange', $.proxy(this._fullScreenChange, this))
178		.bind(this._prefixedString('fullscreenerror') + ' MSFullscreenError', $.proxy(this._fullScreenError, this));
179};
180
181extend(FullScreenNative, FullScreenAbstract, {
182	VENDOR_PREFIXES: ['', 'o', 'moz', 'webkit'],
183	_prefixedString: function(str) {
184		return $.map(this.VENDOR_PREFIXES, function(s) {
185			return s + str;
186		}).join(' ');
187	},
188	open: function(elem, options) {
189		FullScreenNative._super.open.apply(this, arguments);
190		var requestFS = native(elem, 'requestFullscreen');
191		requestFS.call(elem);
192	},
193	exit: $.noop,
194	isFullScreen: function() {
195		return native('fullscreenElement') !== null;
196	},
197	element: function() {
198		return native('fullscreenElement');
199	}
200});
201var FullScreenFallback = function() {
202	FullScreenFallback._super.constructor.apply(this, arguments);
203	this._DEFAULT_OPTIONS = $.extend({}, this._DEFAULT_OPTIONS, {
204		'styles': {
205			'position': 'fixed',
206			'zIndex': '2147483647',
207			'left': 0,
208			'top': 0,
209			'bottom': 0,
210			'right': 0
211		}
212	});
213	this.__delegateKeydownHandler();
214};
215
216extend(FullScreenFallback, FullScreenAbstract, {
217	__isFullScreen: false,
218	__delegateKeydownHandler: function() {
219		var $doc = $(document);
220		$doc.delegate('*', 'keydown.fullscreen', $.proxy(this.__keydownHandler, this));
221		var data = JQ_LT_17 ? $doc.data('events') : $._data(document).events;
222		var events = data['keydown'];
223		if (!JQ_LT_17) {
224			events.splice(0, 0, events.splice(events.delegateCount - 1, 1)[0]);
225		} else {
226			data.live.unshift(data.live.pop());
227		}
228	},
229	__keydownHandler: function(e) {
230		if (this.isFullScreen() && e.which === 27) {
231			this.exit();
232			return false;
233		}
234		return true;
235	},
236	_revertStyles: function() {
237		FullScreenFallback._super._revertStyles.apply(this, arguments);
238		// force redraw (fixes bug in IE7 with content dissapearing)
239		this._fullScreenElement.offsetHeight;
240	},
241	open: function(elem) {
242		FullScreenFallback._super.open.apply(this, arguments);
243		this.__isFullScreen = true;
244		this._fullScreenChange();
245	},
246	exit: function() {
247		this.__isFullScreen = false;
248		this._fullScreenChange();
249	},
250	isFullScreen: function() {
251		return this.__isFullScreen;
252	},
253	element: function() {
254		return this.__isFullScreen ? this._fullScreenElement : null;
255	}
256});$.fullscreen = IS_NATIVELY_SUPPORTED 
257				? new FullScreenNative() 
258				: new FullScreenFallback();
259
260$.fn.fullscreen = function(options) {
261	var elem = this[0];
262
263	options = $.extend({
264		toggleClass: null,
265		// overflow: 'hidden'
266	}, options);
267	options.styles = {
268		// overflow: options.overflow
269	};
270	// delete options.overflow;
271
272	if (elem) {
273		$.fullscreen.open(elem, options);
274	}
275
276	return this;
277};
278})(jQuery);
279
280}
281
282/*
283     FILE ARCHIVED ON 07:20:58 Feb 10, 2023 AND RETRIEVED FROM THE
284     INTERNET ARCHIVE ON 13:13:17 Aug 26, 2026.
285     JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE.
286
287     ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C.
288     SECTION 108(a)(3)).
289*/
290/*
291playback timings (ms):
292  captures_list: 0.628
293  exclusion.robots: 0.088
294  exclusion.robots.policy: 0.076
295  esindex: 0.009
296  cdx.remote: 16.307
297  LoadShardBlock: 129.311 (3)
298  PetaboxLoader3.datanode: 125.112 (5)
299  PetaboxLoader3.resolve: 156.601 (3)
300  load_resource: 236.324 (2)
301*/

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.