520f4d45e9
Change-Id: I466b5e2232811af3fad2266c28e8c4475b77eb71
33 lines
No EOL
630 B
JavaScript
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 ];
|
|
}
|
|
|
|
} |