remove hardcoded image url from script

Georg Fischer 2013-11-29 22:17:18 +01:00
parent 67487ed7be
commit e14be9efdc

@ -5,6 +5,7 @@ define(
var signals; var signals;
var image; var image;
var initialized = false; var initialized = false;
var defaultimage = document.body.getAttribute( 'data-defaultimage' );
function init( shared ) function init( shared )
{ {
@ -17,7 +18,7 @@ define(
// the image "Abraham Lincoln November 1863" is public domain: // the image "Abraham Lincoln November 1863" is public domain:
// https://en.wikipedia.org/wiki/File:Abraham_Lincoln_November_1863.jpg // https://en.wikipedia.org/wiki/File:Abraham_Lincoln_November_1863.jpg
setSrc( 'lincoln.jpg' ); setSrc( defaultimage );
} }
function imageLoaded() function imageLoaded()