зеркало из https://github.com/mozilla/popcorn-js.git
fixed documentation errors
This commit is contained in:
Родитель
c047a72684
Коммит
9db72e4f84
|
@ -26,7 +26,7 @@
|
||||||
*
|
*
|
||||||
* Example:
|
* Example:
|
||||||
var p = Popcorn('#video')
|
var p = Popcorn('#video')
|
||||||
.footnote({
|
.flickr({
|
||||||
start: 5, // seconds, mandatory
|
start: 5, // seconds, mandatory
|
||||||
end: 15, // seconds, mandatory
|
end: 15, // seconds, mandatory
|
||||||
userid: '35034346917@N01', // optional
|
userid: '35034346917@N01', // optional
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
*
|
*
|
||||||
* Example:
|
* Example:
|
||||||
var p = Popcorn('#video')
|
var p = Popcorn('#video')
|
||||||
.footnote({
|
.googlenews({
|
||||||
start: 5, // seconds, mandatory
|
start: 5, // seconds, mandatory
|
||||||
end: 15, // seconds, mandatory
|
end: 15, // seconds, mandatory
|
||||||
topic: 'oil spill', // optional
|
topic: 'oil spill', // optional
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
*
|
*
|
||||||
* Example:
|
* Example:
|
||||||
var p = Popcorn('#video')
|
var p = Popcorn('#video')
|
||||||
.footnote({
|
.lowerthird({
|
||||||
start: 5, // seconds, mandatory
|
start: 5, // seconds, mandatory
|
||||||
end: 15, // seconds, mandatory
|
end: 15, // seconds, mandatory
|
||||||
salutation: 'Mr', // optional
|
salutation: 'Mr', // optional
|
||||||
|
|
|
@ -84,7 +84,7 @@
|
||||||
*
|
*
|
||||||
* Example:
|
* Example:
|
||||||
var p = Popcorn('#video')
|
var p = Popcorn('#video')
|
||||||
.footnote({
|
.subtitle({
|
||||||
start: 5, // seconds, mandatory
|
start: 5, // seconds, mandatory
|
||||||
end: 15, // seconds, mandatory
|
end: 15, // seconds, mandatory
|
||||||
text: 'Hellow world', // optional
|
text: 'Hellow world', // optional
|
||||||
|
|
|
@ -42,6 +42,26 @@
|
||||||
// Garbage collect support test span
|
// Garbage collect support test span
|
||||||
document.head.removeChild( span );
|
document.head.removeChild( span );
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Word River popcorn plug-in
|
||||||
|
* Displays a string of text, fading it in and out
|
||||||
|
* while transitioning across the height of the parent container
|
||||||
|
* for the duration of the instance (duration = end - start)
|
||||||
|
*
|
||||||
|
* @param {Object} options
|
||||||
|
*
|
||||||
|
* Example:
|
||||||
|
var p = Popcorn( '#video' )
|
||||||
|
.wordriver({
|
||||||
|
start: 5, // When to begin the Word River animation
|
||||||
|
end: 15, // When to finish the Word River animation
|
||||||
|
text: 'Hello World', // The text you want to be displayed by Word River
|
||||||
|
target: 'wordRiverDiv', // The target div to append the text to
|
||||||
|
color: "blue" // The color of the text. (can be Hex value i.e. #FFFFFF )
|
||||||
|
} )
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
Popcorn.plugin( "wordriver" , {
|
Popcorn.plugin( "wordriver" , {
|
||||||
|
|
||||||
manifest: {},
|
manifest: {},
|
||||||
|
|
Загрузка…
Ссылка в новой задаче