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

33 lines
No EOL
630 B
JavaScript

function Slideshow() {
var mSlides = 0;
var mCurrentSlide;
var mNotes = [];
var mPreviews = [];
this.setLength = function( aLength ) {
mSlides = aLength;
}
this.setCurrentSlide = function( aSlide ) {
mCurrentSlide = aSlide;
}
this.getCurrentSlide = function() {
return mCurrentSlide;
}
this.putPreview = function( aSlide, aImage ) {
mPreviews[ aSlide ] = aImage;
}
this.putNotes = function( aSlide, aNotes ) {
mNotes[ aSlide ] = aNotes;
}
this.getPreview = function( aSlide ) {
return mPreviews[ aSlide ];
}
}