New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

jquery.vimeoplaylist

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jquery.vimeoplaylist - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

8

dist/froogaloop2.min.js

@@ -1,4 +0,4 @@

var Froogaloop=function(){function e(a){return new e.fn.init(a)}function h(a,c,b){if(!b.contentWindow.postMessage)return!1;var f=b.getAttribute("src").split("?")[0],a=JSON.stringify({method:a,value:c});"//"===f.substr(0,2)&&(f=window.location.protocol+f);b.contentWindow.postMessage(a,f)}function j(a){var c,b;try{c=JSON.parse(a.data),b=c.event||c.method}catch(f){}"ready"==b&&!i&&(i=!0);if(a.origin!=k)return!1;var a=c.value,e=c.data,g=""===g?null:c.player_id;c=g?d[g][b]:d[b];b=[];if(!c)return!1;void 0!==
a&&b.push(a);e&&b.push(e);g&&b.push(g);return 0<b.length?c.apply(null,b):c.call()}function l(a,c,b){b?(d[b]||(d[b]={}),d[b][a]=c):d[a]=c}var d={},i=!1,k="";e.fn=e.prototype={element:null,init:function(a){"string"===typeof a&&(a=document.getElementById(a));this.element=a;a=this.element.getAttribute("src");"//"===a.substr(0,2)&&(a=window.location.protocol+a);for(var a=a.split("/"),c="",b=0,f=a.length;b<f;b++){if(3>b)c+=a[b];else break;2>b&&(c+="/")}k=c;return this},api:function(a,c){if(!this.element||
!a)return!1;var b=this.element,f=""!==b.id?b.id:null,d=!c||!c.constructor||!c.call||!c.apply?c:null,e=c&&c.constructor&&c.call&&c.apply?c:null;e&&l(a,e,f);h(a,d,b);return this},addEvent:function(a,c){if(!this.element)return!1;var b=this.element,d=""!==b.id?b.id:null;l(a,c,d);"ready"!=a?h("addEventListener",a,b):"ready"==a&&i&&c.call(null,d);return this},removeEvent:function(a){if(!this.element)return!1;var c=this.element,b;a:{if((b=""!==c.id?c.id:null)&&d[b]){if(!d[b][a]){b=!1;break a}d[b][a]=null}else{if(!d[a]){b=
!1;break a}d[a]=null}b=!0}"ready"!=a&&b&&h("removeEventListener",a,c)}};e.fn.init.prototype=e.fn;window.addEventListener?window.addEventListener("message",j,!1):window.attachEvent("onmessage",j);return window.Froogaloop=window.$f=e}();
var Froogaloop=function(){function e(a){return new e.fn.init(a)}function g(a,c,b){if(!b.contentWindow.postMessage)return!1;a=JSON.stringify({method:a,value:c});b.contentWindow.postMessage(a,h)}function l(a){var c,b;try{c=JSON.parse(a.data),b=c.event||c.method}catch(e){}"ready"!=b||k||(k=!0);if(!/^https?:\/\/player.vimeo.com/.test(a.origin))return!1;"*"===h&&(h=a.origin);a=c.value;var m=c.data,f=""===f?null:c.player_id;c=f?d[f][b]:d[b];b=[];if(!c)return!1;void 0!==a&&b.push(a);m&&b.push(m);f&&b.push(f);
return 0<b.length?c.apply(null,b):c.call()}function n(a,c,b){b?(d[b]||(d[b]={}),d[b][a]=c):d[a]=c}var d={},k=!1,h="*";e.fn=e.prototype={element:null,init:function(a){"string"===typeof a&&(a=document.getElementById(a));this.element=a;return this},api:function(a,c){if(!this.element||!a)return!1;var b=this.element,d=""!==b.id?b.id:null,e=c&&c.constructor&&c.call&&c.apply?null:c,f=c&&c.constructor&&c.call&&c.apply?c:null;f&&n(a,f,d);g(a,e,b);return this},addEvent:function(a,c){if(!this.element)return!1;
var b=this.element,d=""!==b.id?b.id:null;n(a,c,d);"ready"!=a?g("addEventListener",a,b):"ready"==a&&k&&c.call(null,d);return this},removeEvent:function(a){if(!this.element)return!1;var c=this.element,b=""!==c.id?c.id:null;a:{if(b&&d[b]){if(!d[b][a]){b=!1;break a}d[b][a]=null}else{if(!d[a]){b=!1;break a}d[a]=null}b=!0}"ready"!=a&&b&&g("removeEventListener",a,c)}};e.fn.init.prototype=e.fn;window.addEventListener?window.addEventListener("message",l,!1):window.attachEvent("onmessage",l);return window.Froogaloop=
window.$f=e}();

@@ -1,2 +0,2 @@

/*! jquery.vimeoplaylist v0.1.0 | MIT */
/*! jquery.vimeoplaylist v0.2.1 | MIT */
!function(a){function b(b,e){this.element=b,this.settings=a.extend({},d,e),this._defaults=d,this._name=c,this.init()}var c="vimeoplaylist",d={startFrom:0,startTime:0,videoList:[],volume:-1,onVideoFinish:function(){},onVideoStart:function(){}};a.extend(b.prototype,{init:function(){function b(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}function c(){}function d(){var b=f._currentVideo%f._videos.length;a(f.element).trigger("videoend",[b,f.settings.videoList[b]]),f.settings.onVideoFinish.call(f.element,b,f.settings.videoList[b]),f._currentVideo++,f._iframe.attr("src",f._videos[f._currentVideo%f._videos.length]),f._firstPlay=!1}function e(){if(b()&&f._firstPlay){var c=f._currentVideo%f._videos.length;a(f.element).trigger("videostart",[c,f.settings.videoList[c]]),f.settings.onVideoStart.call(f.element,c,f.settings.videoList[c]),f._player.api("seekTo",f.settings.startTime),f._firstPlay=!1}}var f=this;this._videos=[],this._firstPlay=!0;for(var g="",h=0;h<this.settings.videoList.length;h++)g=this.settings.videoList[h].hasOwnProperty("vimeoid")?this.settings.videoList[h].vimeoid:this.settings.videoList[h],this._videos.push("//player.vimeo.com/video/"+g+"?api=1&player_id="+f.element.id);this._currentVideo=this.settings.startFrom,this._currentVideo>=this._videos.length&&(this._currentVideo=this._videos.length-1),this._iframe=a(this.element),this._iframe.attr("src",this._videos[this._currentVideo%this._videos.length]),this._player=$f(a(this.element)[0]),this._player.addEvent("ready",function(){if(f._player.addEvent("pause",c),f._player.addEvent("playProgress",e),f._player.addEvent("finish",d),-1!==f.settings.volume&&f._player.api("setVolume",f.settings.volume),b());else{f._player.api("play"),f._firstPlay&&f._player.api("seekTo",f.settings.startTime);var g=f._currentVideo%f._videos.length;a(f.element).trigger("videostart",[g,f.settings.videoList[g]]),f.settings.onVideoStart.call(f.element,g,f.settings.videoList[g])}})},startVideo:function(b){var c=this._currentVideo%this._videos.length;a(this.element).trigger("videoend",[c,this.settings.videoList[c]]),this.settings.onVideoFinish.call(this.element,c,this.settings.videoList[c]),this._currentVideo=b,this._iframe.attr("src",this._videos[b%this._videos.length]),this._firstPlay=!1},getPlayer:function(){return this._player},getVolume:function(){return this.settings.volume}}),a.fn[c]=function(d){return this.each(function(){a.data(this,"plugin_"+c)||a.data(this,"plugin_"+c,new b(this,d))}),this}}(jQuery);
{
"name": "jquery.vimeoplaylist",
"description": "jQuery plugin for creating your playlists with Vimeo.",
"version": "0.2.0",
"version": "0.2.1",
"author": "Nephila",

@@ -6,0 +6,0 @@ "license": "MIT",

@@ -1,12 +0,15 @@

# jquery.vimeoplaylist [![Build Status](https://travis-ci.org/nephila/jquery-vimeoplaylist.png?branch=master)](https://travis-ci.org/nephila/jquery-vimeoplaylist)
# jquery.vimeoplaylist
Create your playlist with Vimeo.
[![Build Status](https://travis-ci.org/nephila/jquery-vimeoplaylist.png?branch=master)](https://travis-ci.org/nephila/jquery-vimeoplaylist)
![Bower version](https://img.shields.io/bower/v/jquery.vimeoplaylist.svg)
[![npm version](https://img.shields.io/npm/v/jquery.vimeoplaylist.svg)](https://www.npmjs.com/package/jquery.vimeoplaylist)
Create your playlists with Vimeo.
## Install
You can install with [bower](http://bower.io/) or [npm](https://www.npmjs.com/).
```
$ bower install jquery.vimeoplaylist
$ npm install jquery.vimeoplaylist
```
$ bower install jquery.vimeoplaylist
$ npm install jquery.vimeoplaylist
## Try it!

@@ -37,4 +40,4 @@ Run

## Events
- 'videostart'(videoIndex): triggered when the current video starts
- 'videoend'(videoIndex): triggered when the current video ends
- 'videostart'(videoIndex, videoInfo): triggered when the current video starts
- 'videoend'(videoIndex, videoInfo): triggered when the current video ends

@@ -57,4 +60,1 @@ ## Usage

});
## Dependencies
- Froogaloop 2.0
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc