New images & JS.
24
assets/app.js
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
const carousel = document.getElementById("carousel");
|
||||||
|
const projects = [
|
||||||
|
{
|
||||||
|
"name": "Pogo",
|
||||||
|
"description": "Self hosted podcast blah blah"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Database Janitor",
|
||||||
|
"description": "Customized MySQL database dumps"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
|
||||||
|
function carouselProjectPicker() {
|
||||||
|
let pointer = Math.round(Math.random() * 10 % projects.length) - 1;
|
||||||
|
if (pointer < 0) pointer = 1;
|
||||||
|
console.log(pointer);
|
||||||
|
let project = projects[pointer];
|
||||||
|
|
||||||
|
carousel.innerHTML = "<h2>" + project.name + "<small>" + project.description + "</small></h2>";
|
||||||
|
}
|
||||||
|
|
||||||
|
window.onload = carouselProjectPicker();
|
||||||
|
|
||||||
|
setInterval(carouselProjectPicker, 10000);
|
BIN
assets/project-tiles/alexanders.jpg
Normal file
After Width: | Height: | Size: 41 KiB |
BIN
assets/project-tiles/approve.jpg
Normal file
After Width: | Height: | Size: 40 KiB |
BIN
assets/project-tiles/gitgalaxy.png
Normal file
After Width: | Height: | Size: 26 KiB |
BIN
assets/project-tiles/nodemc.png
Normal file
After Width: | Height: | Size: 38 KiB |
BIN
assets/project-tiles/other.png
Normal file
After Width: | Height: | Size: 50 KiB |
BIN
assets/project-tiles/platypus.png
Normal file
After Width: | Height: | Size: 23 KiB |
BIN
assets/project-tiles/pogo.png
Normal file
After Width: | Height: | Size: 27 KiB |
BIN
assets/project-tiles/quantity-pricing.jpg
Normal file
After Width: | Height: | Size: 76 KiB |
BIN
assets/project-tiles/quicklook.jpg
Normal file
After Width: | Height: | Size: 48 KiB |
BIN
assets/project-tiles/vado.jpg
Normal file
After Width: | Height: | Size: 50 KiB |