New images & JS.

This commit is contained in:
Gabriel Simmer 2019-03-23 22:33:14 -07:00
parent 7cd59a98ca
commit 4fe5af1978
No known key found for this signature in database
GPG key ID: 0394452F45EF2817
11 changed files with 24 additions and 0 deletions

24
assets/app.js Normal file
View 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);

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB