├── .gitignore ├── LICENSE ├── README.md ├── demo ├── iframe.html ├── images │ ├── JqueryVideoLightningIcon144.png │ ├── JqueryVideoLightningIcon45.png │ ├── JqueryVideoLightningIconPurple144.png │ └── favicon.ico ├── index.html ├── javascripts │ ├── jquery.min.js │ ├── jqvl-page.js │ ├── scale.fix.js │ └── videoLightning.js └── stylesheets │ ├── jqvl-page.css │ └── pygment_trac.css ├── dist ├── videoLightning.js └── videoLightning.min.js ├── index.js └── package.json /.gitignore: -------------------------------------------------------------------------------- 1 | .idea/ 2 | node_modules/ 3 | mongoose.conf 4 | *.exe 5 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2013 Andrew Carpenter 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy of 6 | this software and associated documentation files (the "Software"), to deal in 7 | the Software without restriction, including without limitation the rights to 8 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 9 | the Software, and to permit persons to whom the Software is furnished to do so, 10 | subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 17 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 18 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 19 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 20 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ![alt text](http://doesdev.github.io/jquery-video-lightning/images/JqueryVideoLightningIcon45.png "Video Lightning Logo") Video Lightning [![Build Status](https://travis-ci.org/doesdev/jquery-video-lightning.png)](https://travis-ci.org/doesdev/jquery-video-lightning) [![Pinkie Pie Approval Status](http://dosowisko.net/pinkiepieapproved.svg)](https://www.youtube.com/watch?v=FULyN9Ai-A0) 2 | ====================== 3 | 4 | Turn any element into a lightbox or popover link for Youtube and Vimeo videos. 5 | 6 | Repo name is for posterity, Video Lightning is standalone so jQuery is optional. 7 | 8 | ### Table of Contents 9 | - [Why](#why) 10 | - [How](#how) 11 | - [Features](#features) 12 | - [Demos](#demos) 13 | - [Docs](#docs) 14 | - [Getting Started](#getting-started) 15 | - [Passing in Options](#passing-in-options) 16 | - [Available Options](#available-options) 17 | - [Changes](#changes) 18 | - [Alternate Builds](#alternate-builds) 19 | - [Contributing](#contributing) 20 | 21 | Why? 22 | ---- 23 | Lots of reasons. The main one, and the reason we built it, is for quick video explainers in the appropriate places. This little plugin bootstraps getting those helpful little videos in place. 24 | 25 | How? 26 | ---- 27 | Simple. Add the js your project, initialize with target and options and enjoy your video lightbox enhanced element! 28 | 29 | Features 30 | ---- 31 | - Simple access to all embed API options for both providers 32 | - Lots of options to customize and beautify your lightboxes 33 | - Intelligent popover auto positioning gravitates to page center 34 | - Preview videos on hover, pin if you want them to stick around 35 | - Lazy loading of videos prevents slow page load due to video embeds 36 | - Rick Roll with ease (don't pass video id, add rick_roll option to prevent closing) 37 | 38 | Demos 39 | ---- 40 | Check the [GH Project Page](http://doesdev.github.io/jquery-video-lightning/) for demos. 41 | 42 | Docs 43 | ---- 44 | 45 | ### Getting Started 46 | **i.** Add script where you desire *(bottom of body is recommended)* 47 | 48 | ```html 49 | 50 | ``` 51 | 52 | **ii.** Initialize it on the desired elements with any options you please *(options can also be passed as data attributes)* 53 | 54 | #### Native initialization: 55 | 56 | ```html 57 | 70 | ``` 71 | 72 | #### jQuery flavored initialization: 73 | 74 | ```html 75 | 84 | ``` 85 | 86 | Alternatively, for a simple setup you could initialize on a class, set your options globally, and add video id to each el. 87 | 88 | ```html 89 | 90 |