blob: 0940ab53dba317e20f932f3a99643b3ae75add2e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
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 ];
}
}
|