520f4d45e9
Change-Id: I466b5e2232811af3fad2266c28e8c4475b77eb71
9 lines
No EOL
368 B
JavaScript
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();
|
|
} |