From db05600a6a05fbea78d1916ecdc64442477bf8a3 Mon Sep 17 00:00:00 2001 From: ScottDowne Date: Mon, 10 Jan 2011 12:53:29 -0500 Subject: [PATCH] [#246] fixed some camel notation references --- demos/semantic_video/index.html | 1 + demos/semantic_video/xml/webMadeMovies.xml | 40 +++++++++++----------- plugins/googleMap/popcorn.googleMap.html | 4 +-- plugins/googleMap/popcorn.googleMap.js | 8 ++--- plugins/googleNews/popcorn.googleNews.html | 4 +-- plugins/googleNews/popcorn.googleNews.js | 6 ++-- plugins/lowerThird/popcorn.lowerThird.html | 4 +-- plugins/lowerThird/popcorn.lowerThird.js | 16 ++++----- plugins/wikipedia/popcorn.wikipedia.js | 24 ++++++------- 9 files changed, 54 insertions(+), 53 deletions(-) diff --git a/demos/semantic_video/index.html b/demos/semantic_video/index.html index c6f70e0..b348ec3 100644 --- a/demos/semantic_video/index.html +++ b/demos/semantic_video/index.html @@ -19,6 +19,7 @@ + diff --git a/demos/semantic_video/xml/webMadeMovies.xml b/demos/semantic_video/xml/webMadeMovies.xml index 55be40f..66806fd 100644 --- a/demos/semantic_video/xml/webMadeMovies.xml +++ b/demos/semantic_video/xml/webMadeMovies.xml @@ -91,37 +91,37 @@ - + - + - + - + - - + + - + Learn more about Grass Roots mapping at www.grassrootsmapping.org - + @@ -133,10 +133,10 @@ - - - - + + + + - - + + - + - - + + - - + + - + diff --git a/plugins/googleMap/popcorn.googleMap.html b/plugins/googleMap/popcorn.googleMap.html index e0bd0fb..9a216f1 100644 --- a/plugins/googleMap/popcorn.googleMap.html +++ b/plugins/googleMap/popcorn.googleMap.html @@ -10,7 +10,7 @@ var p = Popcorn('#video') .volume(0) .play() - .googleMap({ + .googlemap({ start: 0, // seconds end: 20, // seconds type: 'ROADMAP', @@ -19,7 +19,7 @@ long: -79.403323, zoom: 10 } ) - .googleMap({ + .googlemap({ start: 0, // seconds end: 30, // seconds type: 'ROADMAP', diff --git a/plugins/googleMap/popcorn.googleMap.js b/plugins/googleMap/popcorn.googleMap.js index 83184ab..073bea4 100644 --- a/plugins/googleMap/popcorn.googleMap.js +++ b/plugins/googleMap/popcorn.googleMap.js @@ -3,7 +3,7 @@ var googleCallback; (function (Popcorn) { /** - * googleMap popcorn plug-in + * googlemap popcorn plug-in * Adds a map to the target div centered on the location specified by the user * Options parameter will need a start, end, target, type, zoom, lat and long, and location * -Start is the time that you want this plug-in to execute @@ -19,7 +19,7 @@ var googleCallback; * * Example: var p = Popcorn('#video') - .googleMap({ + .googlemap({ start: 5, // seconds end: 15, // seconds type: 'ROADMAP', @@ -29,7 +29,7 @@ var googleCallback; } ) * */ - Popcorn.plugin( "googleMap" , (function(){ + Popcorn.plugin( "googlemap" , (function(){ var newdiv, i = 1, _mapFired = false, _mapLoaded = false; @@ -148,4 +148,4 @@ var googleCallback; })()); -})( Popcorn ); \ No newline at end of file +})( Popcorn ); diff --git a/plugins/googleNews/popcorn.googleNews.html b/plugins/googleNews/popcorn.googleNews.html index 81ed3c4..2ad7bd4 100644 --- a/plugins/googleNews/popcorn.googleNews.html +++ b/plugins/googleNews/popcorn.googleNews.html @@ -14,13 +14,13 @@ var p = Popcorn('#video') .volume(0) .play() - .googleNews({ + .googlenews({ start: 0, // seconds end: 20, // seconds topic: 'Oil Spill', target: 'newsdiv' } ) - .googleNews({ + .googlenews({ start: 25, // seconds end: 30, // seconds topic: 'Village Telco', diff --git a/plugins/googleNews/popcorn.googleNews.js b/plugins/googleNews/popcorn.googleNews.js index 54a0312..3f17460 100644 --- a/plugins/googleNews/popcorn.googleNews.js +++ b/plugins/googleNews/popcorn.googleNews.js @@ -4,7 +4,7 @@ /** */ - Popcorn.plugin( "googleNews" , { + Popcorn.plugin( "googlenews" , { manifest: { about:{ @@ -36,7 +36,7 @@ }, /** - * @member googleNews + * @member googlenews * The start function will be executed when the currentTime * of the video reaches the start time provided by the * options variable @@ -45,7 +45,7 @@ options.container.setAttribute( 'style', 'display:inline' ); }, /** - * @member googleNews + * @member googlenews * The end function will be executed when the currentTime * of the video reaches the end time provided by the * options variable diff --git a/plugins/lowerThird/popcorn.lowerThird.html b/plugins/lowerThird/popcorn.lowerThird.html index 0543fd5..58b4b9a 100644 --- a/plugins/lowerThird/popcorn.lowerThird.html +++ b/plugins/lowerThird/popcorn.lowerThird.html @@ -10,14 +10,14 @@ document.addEventListener('DOMContentLoaded', function () { var p = Popcorn('#video') .play() - .lowerThird({ + .lowerthird({ start: 5, // seconds end: 15, // seconds salutation: 'Mr', name: 'Hyde', role: 'Monster' } ) - .lowerThird({ + .lowerthird({ start: 20, // seconds end: 45, // seconds salutation: 'Dr', diff --git a/plugins/lowerThird/popcorn.lowerThird.js b/plugins/lowerThird/popcorn.lowerThird.js index 7bcc6b4..23e42bc 100644 --- a/plugins/lowerThird/popcorn.lowerThird.js +++ b/plugins/lowerThird/popcorn.lowerThird.js @@ -1,4 +1,4 @@ -// PLUGIN: LowerThird +// PLUGIN: lowerthird (function (Popcorn) { @@ -21,11 +21,11 @@ return { left: x, top: y }; } - Popcorn.plugin( "lowerThird" , { + Popcorn.plugin( "lowerthird" , { manifest: { about:{ - name: "Popcorn LowerThird Plugin", + name: "Popcorn lowerthird Plugin", version: "0.1", author: "Scott Downe", website: "http://scottdowne.wordpress.com/" @@ -33,7 +33,7 @@ options:{ start : {elem:'input', type:'text', label:'In'}, end : {elem:'input', type:'text', label:'Out'}, - target : 'LowerThird-container', + target : 'lowerthird-container', salutation : {elem:'input', type:'text', label:'Text'}, name : {elem:'input', type:'text', label:'Text'}, role : {elem:'input', type:'text', label:'Text'} @@ -42,7 +42,7 @@ _setup: function( options ) { - // Creates a div for all LowerThirds to use + // Creates a div for all Lower Thirds to use if ( !this.container ) { this.container = document.createElement('div'); @@ -61,7 +61,7 @@ } // if a target is specified, use that - if ( options.target && options.target !== 'LowerThird-container' ) { + if ( options.target && options.target !== 'lowerthird-container' ) { options.container = document.getElementById( options.target ); } else { // use shared default container options.container = this.container; @@ -71,7 +71,7 @@ }, /** - * @member lowerThird + * @member lowerthird * The start function will be executed when the currentTime * of the video reaches the start time provided by the * options variable @@ -81,7 +81,7 @@ this.container.style.top = offset( this.video ).top + this.video.offsetHeight - ( 40 + this.container.offsetHeight ) + "px"; }, /** - * @member lowerThird + * @member lowerthird * The end function will be executed when the currentTime * of the video reaches the end time provided by the * options variable diff --git a/plugins/wikipedia/popcorn.wikipedia.js b/plugins/wikipedia/popcorn.wikipedia.js index 13a4b1b..ed85fbb 100644 --- a/plugins/wikipedia/popcorn.wikipedia.js +++ b/plugins/wikipedia/popcorn.wikipedia.js @@ -9,7 +9,7 @@ var wikiCallback; * Wikipedia popcorn plug-in * Displays a wikipedia aricle in the target specified by the user by using * new DOM element instead overwriting them - * Options parameter will need a start, end, target, lang, src, title and numOfWords. + * Options parameter will need a start, end, target, lang, src, title and numberofwords. * -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 from the article needs to be @@ -17,7 +17,7 @@ var wikiCallback; * -Lang (optional, defaults to english) is the language in which the article is in. * -Src is the url of the article * -Title (optional) is the title of the article - * -NumOfWords (optional, defaults to 200) is the number of words you want displaid. + * -numberofwords (optional, defaults to 200) is the number of words you want displaid. * * @param {Object} options * @@ -41,13 +41,13 @@ var wikiCallback; website: "annasob.wordpress.com" }, options:{ - start : {elem:'input', type:'text', label:'In'}, - end : {elem:'input', type:'text', label:'Out'}, - lang : {elem:'input', type:'text', label:'Language'}, - src : {elem:'input', type:'text', label:'Src'}, - title : {elem:'input', type:'text', label:'Title'}, - numOfWords : {elem:'input', type:'text', label:'Num Of Words'}, - target : 'wiki-container' + start : {elem:'input', type:'text', label:'In'}, + end : {elem:'input', type:'text', label:'Out'}, + lang : {elem:'input', type:'text', label:'Language'}, + src : {elem:'input', type:'text', label:'Src'}, + title : {elem:'input', type:'text', label:'Title'}, + numberofwords : {elem:'input', type:'text', label:'Num Of Words'}, + target : 'wiki-container' } }, /** @@ -66,7 +66,7 @@ var wikiCallback; // if the user didn't specify a language default to english if (typeof options.lang === 'undefined') { options.lang ="en"; } // if the user didn't specify number of words to use default to 200 - options.numOfWords = options.numOfWords || 200; + options.numberofwords = options.numberofwords || 200; // replace the user specified target with the actual DOM element options.target = document.getElementById( options.target ); @@ -84,7 +84,7 @@ var wikiCallback; // get the article text and remove any special characters _text = data.parse.text["*"].substr(data.parse.text["*"].indexOf('

')); _text = _text.replace(/((<(.|\n)+?>)|(\((.*?)\) )|(\[(.*?)\]))/g, ""); - options._desc.innerHTML = _text.substr(0, options.numOfWords ) + " ..."; + options._desc.innerHTML = _text.substr(0, options.numberofwords ) + " ..."; options._fired = true; }; @@ -138,4 +138,4 @@ var wikiCallback; }); -})( Popcorn ); \ No newline at end of file +})( Popcorn ); -- 2.43.0