clearing files, will readd them later
This commit is contained in:
parent
cc3f55d055
commit
6aa08fabbd
21 changed files with 0 additions and 714 deletions
|
@ -1,24 +0,0 @@
|
|||
import {slidem, slides} from "GalleryIndex.js";
|
||||
|
||||
var currentSlide = 0;
|
||||
|
||||
|
||||
function nextSlide(){
|
||||
currentSlide++;
|
||||
updateSlide();
|
||||
}
|
||||
|
||||
function lastSlide(){
|
||||
currentSlide--;
|
||||
updateSlide();
|
||||
}
|
||||
|
||||
function updateSlide(){
|
||||
if (currentSlide > slides.length){
|
||||
currentSlide = 0;
|
||||
} else if (currentSlide < 0){
|
||||
currentSlide = slides.length;
|
||||
}
|
||||
|
||||
console.log(slides[currentSlide]);
|
||||
}
|
|
@ -1,11 +0,0 @@
|
|||
export class slide{
|
||||
constructor(title, caption, image){
|
||||
this.title = title;
|
||||
this.caption = caption;
|
||||
this.image = image;
|
||||
}
|
||||
};
|
||||
export var slides = [slide(),
|
||||
slide(),
|
||||
slide()
|
||||
]
|
Binary file not shown.
Before Width: | Height: | Size: 18 KiB |
Loading…
Add table
Add a link
Reference in a new issue