File: ui.js

package info (click to toggle)
libreoffice 1%3A4.2.5-1~bpo70%2B1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy-backports
  • size: 2,610,340 kB
  • sloc: cpp: 4,073,558; java: 376,402; xml: 229,507; ansic: 77,459; perl: 34,757; python: 29,421; objc: 17,869; yacc: 12,574; sh: 9,058; makefile: 8,891; cs: 6,620; lex: 2,267; asm: 1,514; pascal: 910; awk: 807; lisp: 115; php: 104; csh: 46; sed: 5
file content (9 lines) | stat: -rw-r--r-- 368 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
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();
}