summaryrefslogtreecommitdiff
path: root/firefoxos/sdremote/js/slideshow.js
diff options
context:
space:
mode:
Diffstat (limited to 'firefoxos/sdremote/js/slideshow.js')
-rw-r--r--firefoxos/sdremote/js/slideshow.js33
1 files changed, 33 insertions, 0 deletions
diff --git a/firefoxos/sdremote/js/slideshow.js b/firefoxos/sdremote/js/slideshow.js
new file mode 100644
index 000000000000..0940ab53dba3
--- /dev/null
+++ b/firefoxos/sdremote/js/slideshow.js
@@ -0,0 +1,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 ];
+ }
+
+} \ No newline at end of file