mirror of
https://github.com/System-End/riceathon.git
synced 2026-04-19 22:05:16 +00:00
fix: some of the req changes
This commit is contained in:
parent
fdef7798cd
commit
0c44fac9ff
2 changed files with 6 additions and 7 deletions
|
|
@ -3,7 +3,7 @@ function setupIcon(iconf, el) {
|
|||
icon.src = "./icons/" + iconf + ".png";
|
||||
// icon.width = "20px"
|
||||
// icon.height = "20px"
|
||||
icon.style.width = "40px";
|
||||
// icon.style.width = "40px";
|
||||
icon.style.height = "40px";
|
||||
return el ? el.appendChild(icon) : icon;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -32,7 +32,6 @@
|
|||
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<!-- Delete this HTML and replace with your own HTML -->
|
||||
<!-- starter code below -->
|
||||
|
|
@ -112,13 +111,13 @@ async function mainIfViewIndex(gallery) {
|
|||
carousel.appendChild(imgCarousel)
|
||||
const next = document.createElement('button')
|
||||
next.classList.add('next')
|
||||
next.innerText = 'Next'
|
||||
next.innerText = 'Next Image'
|
||||
const prev = document.createElement('button')
|
||||
prev.classList.add('prev')
|
||||
prev.innerText = 'Prev'
|
||||
prev.innerText = 'Prev Image'
|
||||
if(data.images.length > 1){
|
||||
carousel.appendChild(next)
|
||||
carousel.appendChild(prev)
|
||||
carousel.appendChild(next)
|
||||
}
|
||||
const titleThing = document.createElement('h1')
|
||||
titleThing.innerText = data.name
|
||||
|
|
@ -130,6 +129,7 @@ async function mainIfViewIndex(gallery) {
|
|||
gitLink.innerText = "Dotfiles"
|
||||
gitLink.style.textDecoration = "none"
|
||||
gitLink.target = "_blank"
|
||||
h1.style.verticalAlign = "center"
|
||||
h1.appendChild(document.createTextNode(" - "))
|
||||
h1.appendChild(gitLink)
|
||||
h1.appendChild(document.createTextNode(" "))
|
||||
|
|
@ -156,6 +156,5 @@ const acarousel = setupCarousel()
|
|||
window.addEventListener('hashchange', () => location.reload())
|
||||
}
|
||||
main()
|
||||
|
||||
</script>
|
||||
</html>
|
||||
</html>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue