PageSourceSearch

http://www.anguilla-vacation.com/wp-content/themes/headway/library/media/js/jquery.fitvids_ver-5.4.2.js

js anguilla-vacation.com collected 2026-10-02 13:15:30 UTC 3,351 bytes, 84 lines download raw bytes

vendor: 3,351 bytes, lines 1-84
1var _____WB$wombat$assign$function_____=function(name){return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name))||self[name];};if(!self.__WB_pmw){self.__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 opens = _____WB$wombat$assign$function_____("opens");
10/*global jQuery */
11/*jshint multistr:true browser:true */
12/*!
13 * FitVids 1.0.3
14 *
15 * Copyright 2013, Chris Coyier - http://css-tricks.com + Dave Rupert - http://daverupert.com
16 * Credit to Thierry Koblentz - http://www.alistapart.com/articles/creating-intrinsic-ratios-for-video/
17 * Released under the WTFPL license - http://sam.zoy.org/wtfpl/
18 *
19 * Date: Thu Sept 01 18:00:00 2011 -0500
20 */
21
22(function( $ ){
23
24	"use strict";
25
26	$.fn.fitVids = function( options ) {
27		var settings = {
28			customSelector: null
29		};
30
31		if(!document.getElementById('fit-vids-style')) {
32
33			var div = document.createElement('div'),
34				ref = document.getElementsByTagName('base')[0] || document.getElementsByTagName('script')[0],
35				cssStyles = '&shy;<style>.fluid-width-video-wrapper{width:100%;position:relative;padding:0;}.fluid-width-video-wrapper iframe,.fluid-width-video-wrapper object,.fluid-width-video-wrapper embed {position:absolute;top:0;left:0;width:100%;height:100%;}</style>';
36
37			div.className = 'fit-vids-style';
38			div.id = 'fit-vids-style';
39			div.style.display = 'none';
40			div.innerHTML = cssStyles;
41
42			ref.parentNode.insertBefore(div,ref);
43
44		}
45
46		if ( options ) {
47			$.extend( settings, options );
48		}
49
50		return this.each(function(){
51			var selectors = [
52				"iframe[src*='player.vimeo.com']",
53				"iframe[src*='youtube.com']",
54				"iframe[src*='youtube-nocookie.com']",
55				"iframe[src*='kickstarter.com'][src*='video.html']",
56				"object",
57				"embed"
58			];
59
60			if (settings.customSelector) {
61				selectors.push(settings.customSelector);
62			}
63
64			var $allVideos = $(this).find(selectors.join(','));
65			$allVideos = $allVideos.not("object object"); // SwfObj conflict patch
66
67			$allVideos.each(function(){
68				var $this = $(this);
69				if (this.tagName.toLowerCase() === 'embed' && $this.parent('object').length || $this.parent('.fluid-width-video-wrapper').length) { return; }
70				var height = ( this.tagName.toLowerCase() === 'object' || ($this.attr('height') && !isNaN(parseInt($this.attr('height'), 10))) ) ? parseInt($this.attr('height'), 10) : $this.height(),
71					width = !isNaN(parseInt($this.attr('width'), 10)) ? parseInt($this.attr('width'), 10) : $this.width(),
72					aspectRatio = height / width;
73				if(!$this.attr('id')){
74					var videoID = 'fitvid' + Math.floor(Math.random()*999999);
75					$this.attr('id', videoID);
76				}
77				$this.wrap('<div class="fluid-width-video-wrapper"></div>').parent('.fluid-width-video-wrapper').css('padding-top', (aspectRatio * 100)+"%");
78				$this.removeAttr('height').removeAttr('width');
79			});
80		});
81	};
82// Works with either jQuery or Zepto
83})( window.jQuery || window.Zepto );
84}

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.