popped.attribution({
start: 0, // seconds
- end: 0.5, // seconds
+ end: 2, // seconds
nameofwork: "A Shared Culture",
copyrightholder:"Jesse Dylan",
license: "CC-BY-N6",
target: 'attribdiv'
} )
.attribution({
- start: 0.5, // seconds
- end: 1, // seconds
+ start: 2, // seconds
+ end: 4, // seconds
nameofwork: "Internet",
nameofworkurl:"http://www.archive.org/details/CC1232_internet",
copyrightholder:"The Computer Chronicles",
plus();
});
- popped.exec( 0.5, function() {
+ popped.exec( 2, function() {
equals (attributiondiv.children[1].style.display , "inline", "second attribution is visible on the page" );
plus();
});
- popped.exec( 1, function() {
+ popped.exec( 4, function() {
equals(attributiondiv.children[1].style.display , "none", "second attribution is no longer visible on the page" );
plus();
equals(attributiondiv.children[0].style.display , "none", "first attribution is no longer visible on the page" );
plus();
popped.code({
- start: 1,
- end: 3,
+ start: 0,
+ end: 2,
onStart: function( options ) {
codeDiv.innerHTML = 'Test 1 - onStart (no onEnd)';
ok(true, 'Test 1 onStart was run.');
});
popped.code({
- start: 5,
- end: 8,
+ start: 2,
+ end: 4,
onStart: function( options ) {
codeDiv.innerHTML = 'Test 2 - onStart';
ok(true, 'Test 2 onStart was run.');
});
popped.code({
- start: 10,
- end: 14,
+ start: 4,
+ end: 6,
onStart: function( options ) {
codeDiv.innerHTML = 'Test 3 - onStart [Frames: ';
ok(true, 'Test 3 onStart was run.');
popped.facebook({
target: "likediv",
start : 1,
- end : 7
+ end : 6
} )
.facebook({
href : "http://www.facebook.com/senecacollege",
type : "LIKE_BOX",
target: "likeboxdiv",
start : 2,
- end : 7
+ end : 6
} )
.facebook({
site : "http://popcornjs.org/",
type : "ACTIVITY",
target : "activitydiv",
start : 3,
- end : 7
+ end : 6
} )
.facebook({
href : "http://www.facebook.com/senecacollege",
type : "FACEPILE",
target : "facepilediv",
start : 4,
- end : 7,
+ end : 6,
width : 300
} )
.volume(0)
popped.flickr({
start: 0, // seconds
- end: 1, // seconds
+ end: 2, // seconds
userid: '35034346917@N01',
numberofimages: '1',
target: 'flickrdiv'
} )
.flickr({
- start: 1, // seconds
- end: 2, // seconds
+ start: 2, // seconds
+ end: 4, // seconds
username: 'AniaSob',
apikey: 'd1d249260dd1673ec8810c8ce5150ae1',
numberofimages: '1',
setupId = popped.getLastTrackEventId();
- popped.exec( 0.5, function() {
+ popped.exec( 1, function() {
ok( /display: inline;/.test( flickrdiv.innerHTML ), "Div contents are displayed" );
plus();
ok( /img/.test( flickrdiv.innerHTML ), "An image exists" );
plus();
});
- popped.exec( 1.5, function() {
+ popped.exec( 3, function() {
ok( /display: inline;/.test( flickrdiv.innerHTML ), "Div contents are displayed" );
plus();
ok( /img/.test( flickrdiv.innerHTML ), "An image exists" );
plus();
});
- popped.exec( 2, function() {
+ popped.exec( 4, function() {
ok( /display: none;/.test( flickrdiv.innerHTML ), "Div contents are hidden again" );
plus();
popped.footnote({
start: 0, // seconds
- end: 1, // seconds
+ end: 2, // seconds
text: 'This video made exclusively for drumbeat.org',
target: 'footnotediv'
})
.footnote({
- start: 1, // seconds
- end: 2, // seconds
+ start: 2, // seconds
+ end: 4, // seconds
text: 'Visit webmademovies.org for more details',
target: 'footnotediv'
});
plus();
});
- popped.exec( 1, function() {
+ popped.exec( 3, function() {
equals (footnotediv.children[1].style.display , "inline", "second footnote is visible on the page" );
plus();
});
- popped.exec( 2, function() {
+ popped.exec( 4, function() {
ok (footnotediv.children[1].style.display === 'none' && footnotediv.children[0].style.display === 'none', "footnote are no longer vidible on the page" );
plus();
popped.gml({
start: 0, // seconds
- end: 1, // seconds
+ end: 2, // seconds
gmltag: '29582',
target: 'gmldiv'
})
.gml({
- start: 1, // seconds
- end: 2, // seconds
+ start: 2, // seconds
+ end: 4, // seconds
gmltag: '155',
target: 'gmldiv'
}).volume( 0 );
plus();
});
- popped.exec( 1, function() {
+ popped.exec( 3, function() {
equals( gmldiv.children[1].style.display , "block", "second GML is visible on the page" );
plus();
});
- popped.exec( 2, function() {
+ popped.exec( 4, function() {
equals( gmldiv.children[1].style.display , "none", "second GML is no longer visible on the page" );
plus();
equals( gmldiv.children[0].style.display , "none", "first GML is no longer visible on the page" );
popped.googlefeed({
start: 0, // seconds
- end: 1, // seconds
+ end: 2, // seconds
target: "feed",
url: "http://zenit.senecac.on.ca/~chris.tyler/planet/rss20.xml",
title: "Planet Feed",
})
.googlefeed({
start: 0, // seconds
- end: 2, // seconds
+ end: 4, // seconds
target: "feed1",
url: "http://blog.pikimal.com/geek/feed/",
title: "pikiGeek",
equals (document.getElementById('_feed1').offsetParent.id, "feed", "First feed is inside the 'feed' div" );
plus();
});
- popped.exec( 1, function() {
+ popped.exec( 3, 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( 2, function() {
+ popped.exec( 4, function() {
ok (document.getElementById('_feed2').style.display === "none" &&
document.getElementById('_feed1').style.display === "none", "Both feeds are no lnger visible" );
plus();
popped.googlemap({
start: 0, // seconds
- end: 5, // seconds
+ end: 2, // seconds
type: 'ROADMAP',
target: 'map',
lat: 43.665429,
})
.googlemap({
start: 0, // seconds
- end: 10, // seconds
+ end: 2, // seconds
type: 'SATELLITE',
target: 'map2',
location:'toronto',
zoom: 15
});
var mapz = popped.googlemap({
- start: 0, // seconds
- end: 10, // seconds
+ start: 2, // seconds
+ end: 4, // seconds
type: "STREETVIEW",
target: "map3",
location: "6th Line, Oakville, Ontario",
setupId = popped.getLastTrackEventId();
- popped.exec( 4, function() {
+ popped.exec( 1, function() {
ok(google.maps, "Google maps is available");
plus();
ok(google.maps.Geocoder, "Google maps Geocoder is available");
plus();
});
- popped.exec( 4, function() {
+ popped.exec( 1, function() {
ok (document.getElementById('actualmap2'), "Second map is on the page" );
plus();
equals (document.getElementById('actualmap2').offsetParent.id, "map2", "Second map is inside the 'map2' div" );
plus();
});
- popped.exec( 4, function() {
+ popped.exec( 3, function() {
equals (document.getElementById('actualmap3').offsetParent.id, "map3", "Tweening map is inside the 'map3' div" );
plus();
});
- popped.exec( 11, function() {
+ popped.exec( 5, function() {
ok (document.getElementById('actualmap2').style.display === "none" &&
document.getElementById('actualmap1').style.display === "none" &&
document.getElementById('actualmap3').style.display === "none", "All maps are no longer visible" );
popped.googlenews({
start: 0, // seconds
- end: 1, // seconds
+ end: 2, // seconds
topic: "Oil Spill",
target: "googlenewsdiv"
})
.googlenews({
- start: 1, // seconds
- end: 2, // seconds
+ start: 2, // seconds
+ end: 4, // seconds
topic: "Village Telco",
target: "googlenewsdiv"
})
plus();
});
- popped.exec( 1, function() {
+ popped.exec( 3, function() {
equals( googlenewsdiv.children[1].style.display , "inline", "second googlenews is visible on the page" );
plus();
});
- popped.exec( 2, function() {
+ popped.exec( 4, function() {
equals( googlenewsdiv.children[1].style.display , "none", "second googlenews is no longer visible on the page" );
plus();
equals( googlenewsdiv.children[0].style.display , "none", "first googlenews is no longer visible on the page" );
})
.image({
// seconds
- start: 5,
+ start: 4,
// seconds
- end: 7,
+ end: 6,
// no href
src: sources[1],
target: "imagediv"
// seconds
start: 5,
// seconds
- end: 7,
+ end: 6,
// no href
src: sources[2],
target: "imagediv"
plus();
});
- popped.exec( 4, function() {
+ popped.exec( 3, function() {
ok( /display: none;/.test( imagediv.innerHTML ), "Div contents are hidden again" );
plus();
});
- popped.exec( 6, function() {
+ popped.exec( 5, function() {
[].forEach.call( document.querySelectorAll( "#imagediv a img" ), function( img, idx ) {
ok( img.src === sources[ idx ], "Image " + idx + " is in the right order" );
plus();
});
});
- popped.exec( 8, function() {
+ popped.exec( 7, function() {
popped.pause().removeTrackEvent( setupId );
ok( !imagediv.children[2], "removed image was properly destroyed" );
plus();
companyid: "LinkedIn",
productid: "201714",
apikey: "ZOLRI2rzQS_oaXELpPF0aksxwFFEvoxAFZRLfHjaAhcGPfOX0Ds4snkJpWwKs8gk",
- start: 5,
- end: 7
+ start: 1,
+ end: 3
});
- popped.exec( 6, function() {
+ popped.exec( 2, function() {
ok( /block/.test( recommenddiv.style.display ), "recommenddiv contents are displayed" );
plus();
plus();
});
- popped.exec( 8, function() {
+ popped.exec( 4, function() {
ok( /none/.test( recommenddiv.style.display ), "recommenddiv contents are hidden again" );
plus();
format: "inline",
target: "memberprofilediv",
apikey: "ZOLRI2rzQS_oaXELpPF0aksxwFFEvoxAFZRLfHjaAhcGPfOX0Ds4snkJpWwKs8gk",
- start: 9,
- end: 11
+ start: 1,
+ end: 3
});
- popped.exec( 10, function() {
+ popped.exec( 2, function() {
ok( /block/.test( memberprofilediv.style.display ), "memberprofilediv contents are displayed" );
plus();
plus();
});
- popped.exec( 12, function() {
+ popped.exec( 4, function() {
ok( /none/.test( memberprofilediv.style.display ), "memberprofilediv contents are hidden again" );
plus();
companyid: "1441",
target: "companyinsiderdiv",
apikey: "ZOLRI2rzQS_oaXELpPF0aksxwFFEvoxAFZRLfHjaAhcGPfOX0Ds4snkJpWwKs8gk",
- start: 13,
- end: 15
+ start: 1,
+ end: 3
});
- popped.exec( 14, function() {
+ popped.exec( 2, function() {
ok( /block/.test( companyinsiderdiv.style.display ), "companyinsiderdiv contents are displayed" );
plus();
plus();
});
- popped.exec( 16, function() {
+ popped.exec( 4, function() {
ok( /none/.test( companyinsiderdiv.style.display ), "companyinsiderdiv contents are hidden again" );
plus();
format: "inline",
target: "companyprofilediv",
apikey: "ZOLRI2rzQS_oaXELpPF0aksxwFFEvoxAFZRLfHjaAhcGPfOX0Ds4snkJpWwKs8gk",
- start: 17,
- end: 19
+ start: 1,
+ end: 3
});
setupId = popped.getLastTrackEventId();
- popped.exec( 18, function() {
+ popped.exec( 2, function() {
ok( /block/.test( companyprofilediv.style.display ), "companyprofilediv contents are displayed" );
plus();
plus();
});
- popped.exec( 20, function() {
+ popped.exec( 4, function() {
ok( /none/.test( companyprofilediv.style.display ), "companyprofilediv contents are hidden again" );
plus();
popped.lowerthird({
start: 0, // seconds
- end: 5, // seconds
+ end: 2, // seconds
salutation: "Mr",
name: "Hyde",
role: "Monster"
} )
.lowerthird({
- start: 3, // seconds
- end: 10, // seconds
+ start: 2, // seconds
+ end: 4, // seconds
target: "lowerthirddiv",
salutation: "Dr",
name: "Jekyll",
plus();
});
- popped.exec( 4, function() {
+ popped.exec( 3, function() {
equals ( lowerthirddiv.innerHTML, "Dr Jekyll<br>Person", "second lowerthird is visible" );
plus();
});
- popped.exec( 11, function() {
+ popped.exec( 5, function() {
equals ( popped.container.innerHTML, "", "first lowerthird is empty" );
plus();
equals ( lowerthirddiv.innerHTML, "", "second lowerthird is empty" );
popped.play();
-});
\ No newline at end of file
+});
// Static strings
popped.mustache({
- start: 1, // seconds
- end: 3, // seconds
+ start: 0, // seconds
+ end: 2, // seconds
template: '<h1>{{heading}}</h1>',
data: '{"heading": "mustache - test 1/3"}',
target: 'mustache-div',
// Dynamic functions
popped.mustache({
- start: 5, // seconds
- end: 7, // seconds
+ start: 2, // seconds
+ end: 4, // seconds
template: function(plugin, options) {
return '<h1>{{heading}}</h1>';
},
// Template + Object literal
popped.mustache({
- start: 9, // seconds
- end: 11, // seconds
+ start: 4, // seconds
+ end: 5, // seconds
template: function(plugin, options) {
return '<h1>{{heading}}</h1>';
},
var t = Math.floor(video.currentTime);
- if (t === 2 && !two) {
+ if (t === 1 && !two) {
pass(1, 3);
two = true;
- } else if (t === 6 && !six) {
+ } else if (t === 3 && !six) {
pass(2, 3);
six = true;
- } else if (t === 10 && !ten) {
+ } else if (t === 4 && !ten) {
pass(3, 3);
ten = true;
}
- if (t === 11) {
+ if (t === 6) {
video.pause();
}
popped.openmap({
start: 0,
- end: 5,
+ end: 4,
type: 'ROADMAP',
target: 'map',
lat: 43.665429,
} )
.openmap({
start: 0,
- end: 5,
+ end: 4,
type: 'SATELLITE',
target: 'map2',
lat: 40.943926,
} )
.openmap( {
start: 0,
- end: 5,
+ end: 4,
type: 'TERRAIN',
target: 'map3',
lat: 40.943926,
} )
.openmap( {
start: 0,
- end: 5,
+ end: 4,
target: 'map4',
lat: 40.943926,
lng: -78.968525,
setupId = popped.getLastTrackEventId();
- popped.exec( 4, function() {
+ popped.exec( 3, function() {
ok(OpenLayers, "OpenLayers is available");
plus();
plus();
} )
- .exec( 6, function() {
+ .exec( 5, function() {
ok (document.getElementById('openmapdiv2').style.display === "none" &&
document.getElementById('openmapdiv3').style.display === "none" &&
document.getElementById('openmapdiv4').style.display === "none" &&
} )
.wikipedia({
start: 4, // seconds
- end: 8, // seconds
+ end: 5, // seconds
src: 'http://en.wikipedia.org/wiki/S%C3%A3o_Paulo',
target: 'wikidiv'
} )
plus();
});
- popped.exec( 5, function() {
+ popped.exec( 4, function() {
ok (theArticle.innerHTML !== "", "wikidiv now contains information" );
plus();
equals (theArticle.childElementCount, 2, "wikidiv now contains two child elements" );