Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Commit built program (1321282026610)

  • Loading branch information...
commit 7957748245f37f4d5d4d20fb47edfb31ecc71efb 1 parent 21423af
@rwaldron authored
View
2  dist/adventure.js
@@ -255,7 +255,7 @@ $(function() {
Adventure({
// ID Selector for media element
- mediaId: "#adventure",
+ mediaId: "#adventure-media",
// Track Event source
events: "adventure.json",
View
4 dist/adventure.min.js
@@ -1,4 +1,4 @@
-// Adventure - v0.0.0 - 11/12/2011
+// Adventure - v0.0.0 - 11/14/2011
//
// Copyright (c) 2011 Rick Waldron, Mike Pennisi; Licensed MIT
-(function(a,$,b,c){var d={pop:null,tracks:null,scenarios:null,init:function(a){var e=d,f={media:$.Deferred(),events:$.Deferred()};e.pop=c(a.mediaId),e.scenarios=a.scenarios,e.pop.listen("canplayall",function(){f.media.resolve(e.pop)}),$.getJSON(a.events,function(a){f.events.resolve(a)}),$.when(f.media,f.events).then(function(c,d){console.log("Continue to movie setup",c,d);var f={cues:a.cues||{},tracks:d||[],handlers:a.handlers},g=[];b.forEach(e.setup,function(a,d){var h=f[d],i=$.Deferred();a.call(c,h,i,e),g.push(i),b.size(h)===0&&i.resolve()}),$.when.apply(null,g).then(function(){console.log("Ready for assertion tests"),e.pop.play()})})},setup:{tracks:function(a,c,d){var e=b.size(a);b.forEach(a,function(a,d){var f=b.keys(a)[0],g=b.values(a)[0];this[f](g),d+1===e&&c.resolve()},this)},cues:function(a,c,d){var e=b.size(a),f=0;b.forEach(a,function(a,b){this.cue(+b,a),f+1===e&&c.resolve(),f++},this)},handlers:function(a,c,d){var e=b.size(a),f=0;b.forEach(a,function(a,g){var h=$(g);b.forEach(a,function(a,b){var c=b.split(" on ");c.push(d,a),h.on.apply(h,c)}),f+1===e&&c.resolve(),f++},this)}}};a.Adventure=d.init})(this,this.jQuery,this._,this.Popcorn),$(function(){Adventure({mediaId:"#adventure",events:"adventure.json",cues:{0:function(){$(this.media).animate({opacity:1},"med")},6:function(){this.pause()},12:function(){this.play(.25)},22:function(){$(this.media).animate({opacity:0},"med")}},scenarios:{a:function(){this.play(13)},b:function(){this.play()}},handlers:{"#adventure-world":{"click on [data-choice]":function(a){a.preventDefault(),a.data.scenarios[$(this).data("choice")].call(a.data.pop)}}}})})
+(function(a,$,b,c){var d={pop:null,tracks:null,scenarios:null,init:function(a){var e=d,f={media:$.Deferred(),events:$.Deferred()};e.pop=c(a.mediaId),e.scenarios=a.scenarios,e.pop.listen("canplayall",function(){f.media.resolve(e.pop)}),$.getJSON(a.events,function(a){f.events.resolve(a)}),$.when(f.media,f.events).then(function(c,d){console.log("Continue to movie setup",c,d);var f={cues:a.cues||{},tracks:d||[],handlers:a.handlers},g=[];b.forEach(e.setup,function(a,d){var h=f[d],i=$.Deferred();a.call(c,h,i,e),g.push(i),b.size(h)===0&&i.resolve()}),$.when.apply(null,g).then(function(){console.log("Ready for assertion tests"),e.pop.play()})})},setup:{tracks:function(a,c,d){var e=b.size(a);b.forEach(a,function(a,d){var f=b.keys(a)[0],g=b.values(a)[0];this[f](g),d+1===e&&c.resolve()},this)},cues:function(a,c,d){var e=b.size(a),f=0;b.forEach(a,function(a,b){this.cue(+b,a),f+1===e&&c.resolve(),f++},this)},handlers:function(a,c,d){var e=b.size(a),f=0;b.forEach(a,function(a,g){var h=$(g);b.forEach(a,function(a,b){var c=b.split(" on ");c.push(d,a),h.on.apply(h,c)}),f+1===e&&c.resolve(),f++},this)}}};a.Adventure=d.init})(this,this.jQuery,this._,this.Popcorn),$(function(){Adventure({mediaId:"#adventure-media",events:"adventure.json",cues:{0:function(){$(this.media).animate({opacity:1},"med")},6:function(){this.pause()},12:function(){this.play(.25)},22:function(){$(this.media).animate({opacity:0},"med")}},scenarios:{a:function(){this.play(13)},b:function(){this.play()}},handlers:{"#adventure-world":{"click on [data-choice]":function(a){a.preventDefault(),a.data.scenarios[$(this).data("choice")].call(a.data.pop)}}}})})
View
2  dist/adventure.present.js
@@ -255,7 +255,7 @@ $(function() {
Adventure({
// ID Selector for media element
- mediaId: "#adventure",
+ mediaId: "#adventure-media",
// Track Event source
events: "adventure.json",
Please sign in to comment.
Something went wrong with that request. Please try again.