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

jquery-chameleon

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jquery-chameleon

jQuery plugin for synchronizing slides with JWPlayer Video - https://github.com/wingkwong/jquery-chameleon

  • 1.0.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-88.89%
Maintainers
1
Weekly downloads
 
Created
Source

Chameleon

Synchronizing slides with JWPlayer Video

alt text

Prerequisites

You should have a valid JW Player license key. The key is required in ChameleonContext.

Installing

  • NPM: https://www.npmjs.com/package/jquery-chameleon

Options

DescriptionOptional
widthThe width of Chameleon container. Default: 1024pxY
heightThe height of JWPlayer container. Default: 300pxY
chameleonContextA JSON object or JSON file including configuration of JWPlayer and the plugin. See below for further detail.N
numOfCarouselSlideNumber of slides shown in the carousel. Default: 6.Y
ChameleonContext
DescriptionOptional
jwplayerKeyThe license key of JW Player.N
jwplayerSetupJW Player setup objectN
downloadDefinition of the url and the title for slides, video and transcriptY
slidesAn array storing multiple objects defining slides info such as time, image path, title and alt textN

Usages

HTML:

<div class="chameleon"></div>

JavaScript: You can either define the chameleon context with a json file

$('.chameleon').chameleon({
  chameleonContext: 'http://dev.github.org/chameleon/context.json'
});

or a inline JSON object

$(document).ready(function(){
	$('.chameleon').chameleon({
		chameleonContext: {  
		   "jwplayerKey": "XXXXXXXXXXXXXXXXXXXXXXXXXXX" ,
		   "jwplayerSetup" : {
		   		"file": "XXXXX.xxx"
		   },
		   "download": {
		   		"slides": {
		   			"url": "xxxxxxxxxxxxxxxxxxx.xxx",
		   			"title": "this is title"
		   		},
		   		"video": {
		   			"url": "XXXXXXXXXXXXXXXXXX.xxx",
		   			"title": "this is video title"
		   		},
		   		"transcript": {
		   			"url": "xxxxx.xxx",
		   			"title": "this is transcript title"
		   		}
		   },
		   "slides":[  
		      {  
		         "time":"00:00:00",
		         "img":"https://dummyimage.com/600x400/000/fff&text=1",
		         "title": "This is a title",
	             "alt": "Dummy alt text"
		      },
		      {  
		         "time":"00:00:30",
		         "img":"https://dummyimage.com/600x400/000/fff&text=2",
		         "title": "This is a title 2"
		      },
		      {  
		         "time":"00:01:25",
		         "img":"https://dummyimage.com/600x400/000/fff&text=3",
	             "alt": "Dummy alt text"
		      },
		      {  
		         "time":"00:02:35",
		         "img":"https://dummyimage.com/600x400/000/fff&text=4"
		      }
		   ]
		}
	});
});

Authors

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Keywords

FAQs

Package last updated on 28 Feb 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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