Skip to content
Browse files

[#895] moved ie8 out of modules and into its own entity. Whitespace f…

…ixes.
  • Loading branch information...
1 parent ace6073 commit e18b39b10ea97a39ad3003d62f258c146c8a0a4f @ScottDowne ScottDowne committed Mar 6, 2012
View
106 modules/ie8/popcorn.ie8.html → ie8/popcorn.ie8.html
@@ -3,17 +3,17 @@
<head>
<title>Popcorn Youtube Player Example</title>
<script src="popcorn.ie8.js"></script>
- <script src="../../popcorn.js"></script>
- <script src="../../modules/player/popcorn.player.js"></script>
- <script src="../../players/youtube/popcorn.youtube.js"></script>
- <script src="../../plugins/footnote/popcorn.footnote.js"></script>
- <script src="../../plugins/flickr/popcorn.flickr.js"></script>
- <script src="../../plugins/attribution/popcorn.attribution.js"></script>
- <script src="../../plugins/webpage/popcorn.webpage.js"></script>
- <script src="../../plugins/googlefeed/popcorn.googlefeed.js"></script>
- <script src="../../plugins/image/popcorn.image.js"></script>
- <script src="../../plugins/subtitle/popcorn.subtitle.js"></script>
- <script src="../../plugins/twitter/popcorn.twitter.js"></script>
+ <script src="../popcorn.js"></script>
+ <script src="../modules/player/popcorn.player.js"></script>
+ <script src="../players/youtube/popcorn.youtube.js"></script>
+ <script src="../plugins/footnote/popcorn.footnote.js"></script>
+ <script src="../plugins/flickr/popcorn.flickr.js"></script>
+ <script src="../plugins/attribution/popcorn.attribution.js"></script>
+ <script src="../plugins/webpage/popcorn.webpage.js"></script>
+ <script src="../plugins/googlefeed/popcorn.googlefeed.js"></script>
+ <script src="../plugins/image/popcorn.image.js"></script>
+ <script src="../plugins/subtitle/popcorn.subtitle.js"></script>
+ <script src="../plugins/twitter/popcorn.twitter.js"></script>
<script>
var attachEvent = function( element, event, callBack ) {
@@ -28,14 +28,14 @@
};
// Helper function to get elements
- function element(id) {
+ function element( id ) {
- return document.getElementById(id);
+ return document.getElementById( id );
}
var done = false;
- attachEvent( document, 'DOMContentLoaded', function( e ) {
+ attachEvent( document, "DOMContentLoaded", function( e ) {
if ( done ) {
@@ -47,52 +47,52 @@
var paused = true,
popcorn;
- popcorn = Popcorn.youtube( '#video', 'http://www.youtube.com/watch?v=nfGV32RNkhw&autoplay=0' );
+ popcorn = Popcorn.youtube( "#video", "http://www.youtube.com/watch?v=nfGV32RNkhw&autoplay=0" );
popcorn = popcorn
.footnote({
start: 5, // seconds
end: 40, // seconds
- text: 'The video is "RiP: A Remix Manifesto", by Brett Gaylor',
- target: 'footnotediv'
+ text: "The video is 'RiP: A Remix Manifesto', by Brett Gaylor",
+ target: "footnotediv"
})
.flickr({
start: 20, // seconds
end: 40, // seconds
- tags: 'georgia',
- numberofimages: '8',
- target: 'flickrdiv'
+ tags: "georgia",
+ numberofimages: "8",
+ target: "flickrdiv"
})
.twitter({
start: 20, // seconds
end: 45, // seconds
- title: 'Oil Spill',
- src: '#oilspill',
- target: 'twitterdiv'
+ title: "Oil Spill",
+ src: "#oilspill",
+ target: "twitterdiv"
})
.attribution({
start: 5, // seconds
end: 60, // seconds
nameofwork: "Internet",
- nameofworkurl:"http://www.archive.org/details/CC1232_internet",
- copyrightholder:"The Computer Chronicles",
- license:"CC-BY-NC-ND",
+ nameofworkurl: "http://www.archive.org/details/CC1232_internet",
+ copyrightholder: "The Computer Chronicles",
+ license: "CC-BY-NC-ND",
licenseurl: "http://creativecommons.org/licenses/by-nc-nd/2.0/",
- target: 'attribdiv'
+ target: "attribdiv"
})
.subtitle({
start: 5, // seconds
end: 15, // seconds
- text: 'This is overlaid on top of the video. You can hightlight it!',
- display: 'inline',
+ text: "This is overlaid on top of the video. You can hightlight it!",
+ display: "inline",
language: "en"
})
.webpage({
id: "webpages-a",
start: 0, // seconds
end: 15, // seconds
- src: 'http://webmademovies.org/',
- target: 'webpagediv'
+ src: "http://webmademovies.org/",
+ target: "webpagediv"
})
/*.googlefeed({
start: 0, // seconds
@@ -105,35 +105,35 @@
.image({
start: 5, // seconds
end: 15, // seconds
- href: 'http://www.drumbeat.org/',
- src: 'https://www.drumbeat.org/media//images/drumbeat-logo-splash.png',
- target: 'imagediv'
+ href: "http://www.drumbeat.org/",
+ src: "https://www.drumbeat.org/media//images/drumbeat-logo-splash.png",
+ target: "imagediv"
})
- .listen( 'durationchange', function() {
- element( 'player-duration' ).innerHTML = popcorn.duration();
+ .listen( "durationchange", function() {
+ element( "player-duration" ).innerHTML = popcorn.duration();
})
- .listen( 'volumechange', function() {
- element( 'player_vol' ).innerHTML = popcorn.volume();
+ .listen( "volumechange", function() {
+ element( "player_vol" ).innerHTML = popcorn.volume();
})
- .listen( 'timeupdate', function() {
- element( 'player-time' ).innerHTML = popcorn.currentTime();
+ .listen( "timeupdate", function() {
+ element( "player-time" ).innerHTML = popcorn.currentTime();
})
// Update button labels
- .listen( 'play' , function() {
+ .listen( "play" , function() {
paused = false;
- element( 'btn-play-pause' ).innerHTML = 'Pause';
+ element( "btn-play-pause" ).innerHTML = "Pause";
})
- .listen('pause', function() {
+ .listen( "pause", function() {
paused = true;
- element( 'btn-play-pause' ).innerHTML = 'Play';
+ element( "btn-play-pause" ).innerHTML = "Play";
});
- element( 'player-status' ).innerHTML = 'Ready';
- element( 'player_vol' ).innerHTML = popcorn.volume();
+ element( "player-status" ).innerHTML = "Ready";
+ element( "player_vol" ).innerHTML = popcorn.volume();
// Single play/pause button
- attachEvent( element( 'btn-play-pause' ), 'click', function() {
+ attachEvent( element( "btn-play-pause" ), "click", function() {
if ( paused ) {
popcorn.play();
@@ -143,20 +143,20 @@
}, false);
// Seek
- attachEvent( element('btn-seek'), 'click', function() {
+ attachEvent( element( "btn-seek" ), "click", function() {
popcorn.currentTime( 30 );
}, false);
// Volume
- attachEvent( element('btn-volume'), 'click', function() {
- var volume = (popcorn.volume() === 1) ? 0.5 : 1;
- popcorn.volume(volume);
+ attachEvent( element( "btn-volume" ), "click", function() {
+ var volume = ( popcorn.volume() === 1 ) ? 0.5 : 1;
+ popcorn.volume( volume );
}, false);
- attachEvent( element('btn-mute'), 'click', function() {
+ attachEvent( element( "btn-mute" ), "click", function() {
popcorn.mute( !popcorn.media.muted );
- }, false);
+ }, false );
}, false );
</script>
</head>
View
0 modules/ie8/popcorn.ie8.js → ie8/popcorn.ie8.js
File renamed without changes.
View
14 modules/ie8/popcorn.ie8.unit.html → ie8/popcorn.ie8.unit.html
@@ -2,17 +2,17 @@
<html>
<head>
<title>Popcorn YouTube Player</title>
- <link rel="stylesheet" href="../../test/qunit/qunit.css" type="text/css" media="screen">
- <script src="../../test/qunit/qunit.js"></script>
+ <link rel="stylesheet" href="../test/qunit/qunit.css" type="text/css" media="screen">
+ <script src="../test/qunit/qunit.js"></script>
<!--
do not move - this must be called immediately prior to popcorn.js.
-->
<script src="popcorn.ie8.js"></script>
- <script src="../../popcorn.js"></script>
- <script src="../../modules/player/popcorn.player.js"></script>
- <script src="../../players/youtube/popcorn.youtube.js"></script>
- <script src="../../players/youtube/popcorn.youtube.unit.js"></script>
- <script src="../../test/inject.js"></script>
+ <script src="../popcorn.js"></script>
+ <script src="../modules/player/popcorn.player.js"></script>
+ <script src="../players/youtube/popcorn.youtube.js"></script>
+ <script src="../players/youtube/popcorn.youtube.unit.js"></script>
+ <script src="../test/inject.js"></script>
</head>
<body>
<h1 id="qunit-header">Popcorn YouTube Player Plugin</h1>

0 comments on commit e18b39b

Please sign in to comment.
Something went wrong with that request. Please try again.