updating js, split class and object list into new file
This commit is contained in:
parent
400f5c6f0c
commit
c2b724a81b
3 changed files with 23 additions and 12 deletions
|
@ -1,9 +1,12 @@
|
|||
<HTML>
|
||||
|
||||
<header>
|
||||
<link rel = "stylesheet" href = "Mainpage.css">
|
||||
<script src = "Gallery.js" defer></script>
|
||||
<script src = "Gallery.js"></script>
|
||||
|
||||
<title>Nye Evans Portfolio</title>
|
||||
</header>
|
||||
|
||||
<body>
|
||||
<!--<img src = "..\Images\ScreenFilter.png" style = "position: fixed; top: 0; left: 0;">-->
|
||||
<div id = "introScreenSpace">
|
||||
|
@ -36,8 +39,8 @@
|
|||
<img src = "gallery\Cat_tower_defense\projectHeaderImage.png" class = "GalleryImage">
|
||||
<p class = "GalleryTitle orangeBack">Image Title</p>
|
||||
<p class = "GalleryCaption orangeBack">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
||||
<button class = "GalleryLeftArrow" onclick = "lastSlide()">◄</button>
|
||||
<button class = "GalleryRightArrow" onclick = "nextSlide()">►</button>
|
||||
<button class = "GalleryLeftArrow" onClick = lastSlide()>◄</button>
|
||||
<button class = "GalleryRightArrow" onClick = nextSlide()>►</button>
|
||||
</div>
|
||||
|
||||
<div id = "personalGallery" style = "margin-bottom: 40vh;">
|
||||
|
@ -52,6 +55,9 @@
|
|||
<a href = "https://twitter.com/Wi__Ro" style = "color:#ffd256;">Twitter</a>
|
||||
 
|
||||
<a href="mailto:WillowRo@outlook.com" style = "color:#ffd256;">Email</a>
|
||||
 
|
||||
<a href="https://github.com/WillowRo" style = "color:#ffd256;">Github</a>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</HTML>
|
|
@ -1,13 +1,7 @@
|
|||
class slide{
|
||||
constructor(title, caption, image){
|
||||
this.title = title;
|
||||
this.caption = caption;
|
||||
this.image = image;
|
||||
}
|
||||
}
|
||||
import {slide} from "GalleryIndex.js";
|
||||
import {slides} from "GalleryIndex.js";
|
||||
|
||||
var currentSlide = 0;
|
||||
var slides = [1, 2, 3, 4, 5, 6, 7] //generic info, placeholder
|
||||
|
||||
|
||||
function nextSlide(){
|
||||
|
@ -27,5 +21,5 @@ function updateSlide(){
|
|||
currentSlide = slides.length;
|
||||
}
|
||||
|
||||
console.log(currentSlide);
|
||||
console.log(slides[currentSlide]);
|
||||
}
|
11
pages/GalleryIndex.js
Normal file
11
pages/GalleryIndex.js
Normal file
|
@ -0,0 +1,11 @@
|
|||
export class slide{
|
||||
constructor(title, caption, image){
|
||||
this.title = title;
|
||||
this.caption = caption;
|
||||
this.image = image;
|
||||
}
|
||||
};
|
||||
export var slides = [slide(),
|
||||
slide(),
|
||||
slide()
|
||||
]
|
Loading…
Add table
Reference in a new issue