Name: explainer
Owner: FT Interactive News
Description: Explainer player component
Created: 2012-10-24 15:43:36.0
Updated: 2014-10-30 09:17:53.0
Pushed: 2013-02-18 09:40:43.0
Homepage: null
Size: 19532
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
'wide'
or 'narrow'
are your options. See below.<link rel="stylesheet" type="text/css" href="../lib/0.0.2/explainer-0.0.2.min.css"/>
to the <head>
of the HTML generated by Edge. This ensures styles are loaded immediately. Again, ensure the URL is correct.Javscript Snippet for pasting into the Stage section of the Edge Code window:
var version = '0.0.2';
Edge.yepnope({
load: [
'../lib/'+ version +'/explainer-'+ version +'.min.js'
],
callback: function(){
IG.Explainer.create(compId, 'audiofilename', version, 'wide');
}
});
HTML fallback message example:
<!--[if lt IE 9]>
<div id="fallback" class="fallback fallback-overlay">
<div class="fallback-msg">
<p>Sorry, your internet browser does not support
the technology used in this interactive graphic. Most likely you
are using an older version of Internet Explorer.</p>
<p>Please either upgrade to
Internet Explorer 9, or view this interactive graphic in another browser such as
Mozilla Firefox, Google Chrome, Safari or Opera.</p>
</div>
</div>
<![endif]-->
You may also like to try using Grunt to package (minify JavaScript files etc) the Explainer before publishing it. :-)
Adobe Audition doesn't let me export as .oga format. What should I do?
You can export as an 'ogg' file and then manually change the the file extension to 'oga'.
What standard settings do I need to use in Adobe Edge?
Normal (Wide)
792px
600px
Narrow
600px
400px
All
#FFF1E0
Composition ID
. e.g. my_explainer_animation
What should the Methode iFrame code look like?
Wide
<iframe src="http://interactive.ftdata.co.uk/path/to/explainer" width="792px" height="650px"></iframe>
Narrow
<iframe src="http://interactive.ftdata.co.uk/path/to/explainer" width="600px" height="450px"></iframe>
MORE HELP WITH EDGE
See the [Explainer wiki](wiki)
We use the following libs and tools.
window.AdobeEdge.yepnope
Getting started
$ git clone https://github.com/ft-interactive/explainer.git
$ cd explainer
$ npm install
$ grunt --help
Create a distribution package
$ grunt dist
Create a release package
$ grunt release
Notes
You'll need to serve the code out of a webserver that is set up to do the following:
Content-Type
on mp3, ogg, oga audio filesAccept-Ranges:bytes
on the response headers of audio files