From 4815b9b008f0c154458efd49c595d732bb27cedc Mon Sep 17 00:00:00 2001 From: dseif Date: Wed, 20 Apr 2011 12:23:28 -0400 Subject: [PATCH] Removed some stuff that shouldnt be here --- 432testcase.html | 67 ------------- plugins/timeline/asdf.css | 48 --------- plugins/timeline/popcorn.timeline.html | 89 ----------------- plugins/timeline/popcorn.timeline.js | 105 -------------------- plugins/timeline/popcorn.timeline.unit.html | 44 -------- plugins/timeline/popcorn.timeline.unit.js | 66 ------------ 6 files changed, 419 deletions(-) delete mode 100644 432testcase.html delete mode 100644 plugins/timeline/asdf.css delete mode 100644 plugins/timeline/popcorn.timeline.html delete mode 100644 plugins/timeline/popcorn.timeline.js delete mode 100644 plugins/timeline/popcorn.timeline.unit.html delete mode 100644 plugins/timeline/popcorn.timeline.unit.js diff --git a/432testcase.html b/432testcase.html deleted file mode 100644 index 636f145..0000000 --- a/432testcase.html +++ /dev/null @@ -1,67 +0,0 @@ - - - - Popcorn Google Feed Plug-in Demo - - - 1 - - - - - -

Popcorn Google Feed Plug-in Demo

-

A Blog feed of Seneca's Planet Feed will be displayed from 0 seconds to 15 seconds

-

A Blog feed of pikiGeek's feed will be displayed from 5 seconds to 20 seconds

-
- -
-
-

Vertical Feed:

-

Horizontal Feed:

-
- - \ No newline at end of file diff --git a/plugins/timeline/asdf.css b/plugins/timeline/asdf.css deleted file mode 100644 index 46e5e66..0000000 --- a/plugins/timeline/asdf.css +++ /dev/null @@ -1,48 +0,0 @@ -@charset "UTF-8"; -body { - font-family: "Helvetica Neue", Helvetica, Arial; - font-size:12px; - } - -#footer { - width: 100%; - height: 20px; - position: fixed; - text-align:right; - right: 0px; - overflow: hidden; - background-color:#000000; - color: white; - top: 0; - border-bottom: 1px solid #333; - padding: 10px; -} -#playback { - width: 700px; - left: 0px; - top: 0px; - z-index:100; -} - -#details2 { - color: #fff; - padding: 7px; - right: 0px; - top: 0px; - line-height: 180%; -} -#details3 { - padding: 7px; - right: 0px; - top: 0px; - line-height: 180%; - border-top: 1px solid #333; -} -#big { -font-size:24px; -line-height: 130%; -} -#mid { -font-size: 16px; -} - diff --git a/plugins/timeline/popcorn.timeline.html b/plugins/timeline/popcorn.timeline.html deleted file mode 100644 index aba67c3..0000000 --- a/plugins/timeline/popcorn.timeline.html +++ /dev/null @@ -1,89 +0,0 @@ - - - - Popcorn Google Feed Plug-in Demo - - - - - - -

Popcorn Timeline Plug-in Demo

-

Continuos timeline elements will be added to the div throughout the video

-
- -
-
-

Vertical Feed:

-
- - \ No newline at end of file diff --git a/plugins/timeline/popcorn.timeline.js b/plugins/timeline/popcorn.timeline.js deleted file mode 100644 index df6ab8a..0000000 --- a/plugins/timeline/popcorn.timeline.js +++ /dev/null @@ -1,105 +0,0 @@ -// PLUGIN: Timeline -(function (Popcorn) { - - /** - * googlefeed popcorn plug-in - * Adds a feed from the specified blog url at the target div - * Options parameter will need a start, end, target, url and title - * -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 DOM element that you want the map to appear in. This element must be in the DOM - * -Url is the url of the blog's feed you are trying to access - * -Title is the title of the blog you want displayed above the feed - * -Orientation is the orientation of the blog, accepts either Horizontal or Vertical, defaults to Vertical - * @param {Object} options - * - * Example: - var p = Popcorn("#video") - .googlefeed({ - start: 5, // seconds - end: 15, // seconds - target: "map", - url: "http://zenit.senecac.on.ca/~chris.tyler/planet/rss20.xml", - title: "Planet Feed" - } ) - * - */ - - var i = 0, - that = this; - - var head = document.getElementsByTagName("head")[0]; - var css = document.createElement('link'); - css.type = "text/css"; - css.rel = "stylesheet"; - css.href = "asdf.css"; - head.insertBefore( css, head.firstChild ); - - - Popcorn.plugin( "timeline" , function( options ) { - // create a new div and append it to the parent div so nothing - // that already exists in the parent div gets overwritten - var newdiv = document.createElement( "div" ); - newdiv.style.display = "none"; - newdiv.id = "asdf"+i; - - if ( document.getElementById( options.target ) ) { - document.getElementById( options.target ).appendChild( newdiv ); - // if this isnt the first div added to the target div - if( i ){ - // insert the current div before the previous div inserted - document.getElementById( options.target ).insertBefore( newdiv, document.getElementById( "asdf" + ( i - 1 ) ) ); - } - } - - i++; - - newdiv.innerHTML = "

" + options.title + "
" + - "" + options.text + "
" + -"
" + options.links + "

"; - - // adding eventlistener to each div, so when its clicked it will go to divs start time - newdiv.addEventListener( "click", function () { - that.currentTime( options.start ); - }, false ); - - document.links.addEventListener( "click", function () { - }, false ); - - return { - /** - * @member webpage - * 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 ){ - newdiv.setAttribute( "style", "display:block" ); - }, - /** - * @member webpage - * 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){ - newdiv.setAttribute( "style", "display:none" ); - } - }; - }, - { - about: { - name: "Popcorn Timeline Plugin", - version: "0.1", - author: "David Seifried", - website: "dseifried.wordpress.com" - }, - options: { - start : { elem:"input", type:"text", label:"In" }, - end : { elem:"input", type:"text", label:"Out" }, - target : "feed-container", - text : { elem:"input", type:"text", label:"text" } - } - }); - -})( Popcorn ); diff --git a/plugins/timeline/popcorn.timeline.unit.html b/plugins/timeline/popcorn.timeline.unit.html deleted file mode 100644 index 15ad19a..0000000 --- a/plugins/timeline/popcorn.timeline.unit.html +++ /dev/null @@ -1,44 +0,0 @@ - - - - Popcorn API - - - - - - - - - - -

Popcorn Google Feed Plugin

-

-
-

-
    -
    - - -
    -
    - - diff --git a/plugins/timeline/popcorn.timeline.unit.js b/plugins/timeline/popcorn.timeline.unit.js deleted file mode 100644 index 83369b5..0000000 --- a/plugins/timeline/popcorn.timeline.unit.js +++ /dev/null @@ -1,66 +0,0 @@ -test("Popcorn Google Feed Plugin", function () { - - var popped = Popcorn("#video"), - expects = 10, - count = 0; - - expect(expects); - - function plus() { - if ( ++count===expects) { - start(); - } - } - - stop(); - - ok ('googlefeed' in popped, "googlefeed is a method of the popped instance"); - plus(); - ok ( document.getElementById('feed').innerHTML === "", "initially, there is nothing inside the feed" ); - plus(); - ok ( document.getElementById('feed1').innerHTML === "", "initially, there is nothing inside the feed1" ); - plus(); - - popped.googlefeed({ - start: 0, // seconds - end: 5, // seconds - target: "feed", - url: "http://zenit.senecac.on.ca/~chris.tyler/planet/rss20.xml", - title: "Planet Feed", - orientation: "Vertical" - } ) - .googlefeed({ - start: 0, // seconds - end: 5, // seconds - target: "feed1", - url: "http://blog.pikimal.com/geek/feed/", - title: "pikiGeek", - orientation: "Horizontal" - } ) - .volume(0); - - popped.exec( 1, function() { - ok(google.load, "Google Feed is available"); - plus(); - ok(GFdynamicFeedControl, "Dynamic Feed Control Available"); - plus(); - ok (document.getElementById('_feed1'), "First feed is on the page" ); - plus(); - equals (document.getElementById('_feed1').offsetParent.id, "feed", "First feed is inside the 'feed' div" ); - plus(); - }); - popped.exec( 2, function() { - ok (document.getElementById('_feed2'), "Second feed is on the page" ); - plus(); - equals (document.getElementById('_feed2').offsetParent.id, "feed1", "Second feed is inside the 'feed2' div" ); - plus(); - }); - popped.exec( 6, function() { - ok (document.getElementById('_feed2').style.display === "none" && - document.getElementById('_feed1').style.display === "none", "Both feeds are no lnger visible" ); - plus(); - }); - - popped.play(); - -}); -- 2.43.0