зеркало из https://github.com/mozilla/popcorn-js.git
192 строки
27 KiB
JavaScript
Executable File
192 строки
27 KiB
JavaScript
Executable File
// PLUGIN: Attribution
|
|
|
|
(function( Popcorn ) {
|
|
|
|
/**
|
|
* Attribution popcorn plug-in
|
|
* Adds text to an element on the page.
|
|
* Options parameter will need a mandatory start, end, target.
|
|
* Optional parameters include nameofwork, NameOfWorkUrl, CopyrightHolder, CopyrightHolderUrl, license & licenseUrl.
|
|
* Start is the time that you want this plug-in to execute
|
|
* End is the time that you want this plug-in to stop executing
|
|
* Target is the id of the document element that the text needs to be attached to, this target element must exist on the DOM
|
|
* nameofwork is the title of the attribution
|
|
* NameOfWorkUrl is a url that provides more details about the attribution
|
|
* CopyrightHolder is the name of the person/institution that holds the rights to the attribution
|
|
* CopyrightHolderUrl is the url that provides more details about the copyrightholder
|
|
* license is the type of license that the work is copyrighted under
|
|
* LicenseUrl is the url that provides more details about the ticense type
|
|
* @param {Object} options
|
|
*
|
|
* Example:
|
|
var p = Popcorn('#video')
|
|
.attribution({
|
|
start: 5, // seconds
|
|
end: 15, // seconds
|
|
target: 'attributiondiv'
|
|
} )
|
|
*
|
|
*/
|
|
Popcorn.plugin( "attribution" , (function() {
|
|
|
|
var
|
|
common = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFgAAAAfCAYAAABjyArgAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVA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ev16hLuGzdtpNH3JEpKCerx9HweySVuvijt9fSgwyHAaDTisP8wXvnjKyveMvI944UsyxgejuOJx56o5TuCOf1YyrQRlW2OVvh/MZzF2mj3qIaxFE6lflYNEeWl19OjevKlFL0c/j1ZLJaa35jFYqHgkSBJl1KUlBL04u9erLnt/OXx/PPy36rhVGtfC9YngbPAgzXresqFBx96kG31iNEBnDh+Yslt+/uF+2G3t7ANzePHT2Cfb99yvoRZ1DNq8dxKnlbpuJz+VMOphrkowQCw4eb16PXsQf1aS9luRHm6ETrdqn14MjU5iV8fCuDcwLnlfmp0RaGhWkhYDjGfFM6SBGt2e8vtaGtvw83fvBlfNplKn07NBRgiwnQ+jwvJCzh98vSyif20PPhqiME1EfyFrdw4Irqe47h/f0HFp7DAIOL+NwDFrtvhh4x87AAAAABJRU5ErkJggg=="
|
|
},
|
|
target;
|
|
|
|
return {
|
|
|
|
_setup: function( options ) {
|
|
|
|
var attrib = "",
|
|
license = options.license && licenses[ options.license.toLowerCase() ],
|
|
tar = "target=_blank";
|
|
|
|
// make a div to put the information into
|
|
options._container = document.createElement( "div" );
|
|
options._container.style.display = "none";
|
|
|
|
// Cache declared target
|
|
target = document.getElementById( options.target );
|
|
|
|
if ( options.nameofworkurl ) {
|
|
attrib += "<a href='" + options.nameofworkurl + "' " + tar + ">";
|
|
}
|
|
if ( options.nameofwork ) {
|
|
attrib += options.nameofwork;
|
|
}
|
|
if ( options.nameofworkurl ) {
|
|
attrib += "</a>";
|
|
}
|
|
if ( options.copyrightholderurl ) {
|
|
attrib += "<a href='" + options.copyrightholderurl + "' " + tar + ">";
|
|
}
|
|
if ( options.copyrightholder ) {
|
|
attrib += ", " + options.copyrightholder;
|
|
}
|
|
if ( options.copyrightholderurl ) {
|
|
attrib += "</a>";
|
|
}
|
|
|
|
//if the user did not specify any parameters just pull the text from the tag
|
|
if ( attrib === "" ) {
|
|
attrib = options.text;
|
|
}
|
|
|
|
if ( options.license ) {
|
|
if ( license ) {
|
|
if ( options.licenseurl ) {
|
|
attrib = "<a href='" + options.licenseurl + "' " + tar + "><img src='"+ license +"' border='0'/></a> " + attrib;
|
|
} else {
|
|
attrib = "<img src='"+ license +"' />" + attrib;
|
|
}
|
|
} else {
|
|
attrib += ", license: ";
|
|
|
|
if ( options.licenseurl ) {
|
|
attrib += "<a href='" + options.licenseurl + "' " + tar + ">" + options.license + "</a> ";
|
|
} else {
|
|
attrib += options.license;
|
|
}
|
|
}
|
|
} else if ( options.licenseurl ) {
|
|
attrib += ", <a href='" + options.licenseurl + "' " + tar + ">license</a> ";
|
|
}
|
|
|
|
options._container.innerHTML = attrib;
|
|
|
|
if ( !target && Popcorn.plugin.debug ) {
|
|
throw new Error( "target container doesn't exist" );
|
|
}
|
|
target && target.appendChild( options._container );
|
|
},
|
|
/**
|
|
* @member attribution
|
|
* The start function will be executed when the currentTime
|
|
* of the video reaches the start time provided by the
|
|
* options variable
|
|
*/
|
|
start: function( event, options ) {
|
|
options._container.style.display = "inline";
|
|
},
|
|
/**
|
|
* @member attribution
|
|
* The end function will be executed when the currentTime
|
|
* of the video reaches the end time provided by the
|
|
* options variable
|
|
*/
|
|
end: function( event, options ) {
|
|
options._container.style.display = "none";
|
|
},
|
|
_teardown: function( options ) {
|
|
|
|
// Cache declared target
|
|
target = document.getElementById( options.target );
|
|
|
|
target && target.removeChild( options._container );
|
|
}
|
|
};
|
|
})(),
|
|
{
|
|
about:{
|
|
name: "Popcorn Attribution Plugin",
|
|
version: "0.2",
|
|
author: "@rwaldron",
|
|
website: "github.com/rwldrn"
|
|
},
|
|
options:{
|
|
start: {
|
|
elem: "input",
|
|
type: "text",
|
|
label: "In"
|
|
},
|
|
end: {
|
|
elem: "input",
|
|
type: "text",
|
|
label: "Out"
|
|
},
|
|
nameofwork: {
|
|
elem: "input",
|
|
type: "text",
|
|
label: "Name of Work"
|
|
},
|
|
nameofworkurl: {
|
|
elem: "input",
|
|
type: "url",
|
|
label: "Url of Work",
|
|
optional: true
|
|
},
|
|
copyrightholder: {
|
|
elem: "input",
|
|
type: "text",
|
|
label: "Copyright Holder"
|
|
},
|
|
copyrightholderurl: {
|
|
elem: "input",
|
|
type: "url",
|
|
label: "Copyright Holder Url",
|
|
optional: true
|
|
},
|
|
license: {
|
|
elem: "input",
|
|
type: "text",
|
|
label: "License type"
|
|
},
|
|
licenseurl: {
|
|
elem: "input",
|
|
type: "url",
|
|
label: "License URL",
|
|
optional: true
|
|
},
|
|
target: "attribution-container"
|
|
}
|
|
});
|
|
})( Popcorn );
|