office-gobmx/firefoxos/sdremote/js/ui.js
Andrzej J.R. Hunt 520f4d45e9 Image/Notes storage and basic preview.
Change-Id: I466b5e2232811af3fad2266c28e8c4475b77eb71
2013-04-12 10:50:24 +01:00

9 lines
No EOL
368 B
JavaScript

function updatePreview( aSlideshow ) {
var aOutputImage = document.getElementById('preview');
var aPreview = aSlideshow.getPreview( aSlideshow.getCurrentSlide() );
aOutputImage.src = "data:image/png;base64," + aPreview;
console.log( "Set image : " + aPreview );
document.getElementById('current_slide').innerHTML = aSlideshow.getCurrentSlide();
}