Skip to content

Commit

Permalink
Update some files
Browse files Browse the repository at this point in the history
  • Loading branch information
dk865 committed Jun 4, 2024
1 parent 1856b58 commit bb79362
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 55 deletions.
12 changes: 6 additions & 6 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,26 +32,26 @@ <h1>dk865</h1>
<div class="repo-container" id="construct">
<div class="repo-label">Construct Projects</div>
<div class="repo">
<a href="https://www.construct.net/en/free-online-games/planet-clicker-62046/play" target="_blank">Planet Clicker</a>
<a href="https://www.construct.net/en/free-online-games/planet-clicker-62046/play">Planet Clicker</a>
</div>
<div class="repo">
<a href="https://www.construct.net/en/free-online-games/rewind-62741/play" target="_blank">Rewind</a>
<a href="https://www.construct.net/en/free-online-games/rewind-62741/play">Rewind</a>
</div>
<div class="repo">
<a href="https://www.construct.net/en/free-online-games/pin-it-63909/play" target="_blank">Pin It</a>
<a href="https://www.construct.net/en/free-online-games/pin-it-63909/play">Pin It</a>
</div>
<div class="repo">
<a href="https://www.construct.net/en/free-online-games/rick-roll-timer-v2-62809/play" target="_blank">Rick Roll Timer V2</a>
<a href="https://www.construct.net/en/free-online-games/rick-roll-timer-v2-62809/play">Rick Roll Timer V2</a>
</div>
</div>

<div class="repo-container" id="jbtw">
<div class="repo-label">Jailbreak Tweaks</div>
<div class="repo">
<a href="https://dk865.github.io/debs/moon-buggy.deb" target="_blank">Monteal</a>
<a href="https://dk865.github.io/debs/moon-buggy.deb">Monteal</a>
</div>
<div class="repo">
<a href="https://dk865.github.io/debs/monteal.deb" target="_blank">moon-buggy</a>
<a href="https://dk865.github.io/debs/monteal.deb">moon-buggy</a>
</div>
</div>

Expand Down
Binary file removed repoextras/covers/cynders1(1).png
Binary file not shown.
Binary file removed repoextras/covers/cynders1.png
Binary file not shown.
44 changes: 0 additions & 44 deletions repoextras/htmlinfo/cynders.html

This file was deleted.

24 changes: 20 additions & 4 deletions scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ async function fetchRepos() {
githubRepos.forEach(repo => {
const repoElement = document.createElement('div');
repoElement.className = 'repo';
repoElement.innerHTML = `<a href="${repo.html_url}" target="_blank">${repo.name}</a>`;
repoElement.innerHTML = `<a href="${repo.html_url}">${repo.name}</a>`;
githubContainer.appendChild(repoElement);
});
}
Expand All @@ -28,9 +28,22 @@ function createConfetti(color) {
};
}


const buttons = document.querySelectorAll('.button');

function createHoverConfetti(color) {
return function(event) {
confetti({
particleCount: 1,
spread: 20,
origin: {
x: event.clientX / window.innerWidth,
y: event.clientY / window.innerHeight
},
colors: [color]
});
};
}

buttons.forEach(button => {
let color;
if (button.classList.contains('button-blue')) {
Expand All @@ -44,6 +57,8 @@ buttons.forEach(button => {
}

button.addEventListener('click', createConfetti(color));
button.addEventListener('mouseover', createHoverConfetti(color));


const icon = document.querySelector('.icon');
let iconTimeout;
Expand All @@ -58,10 +73,11 @@ buttons.forEach(button => {
iconTimeout = setTimeout(() => {
icon.style.transform = 'rotate(360deg)';
confetti({
particleCount: 10,
particleCount: 15,
spread: 360,
startVelocity: 10,
colors: ['#003757', '#005157'],
origin: { y: 0.13 }
origin: { y: 0.125 }
});
}, 100);
});
Expand Down
2 changes: 1 addition & 1 deletion styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ h1 {
.button-container {
display: flex;
gap: 20px;
margin-bottom: 40px;
margin-bottom: 5px;
justify-content: center;
flex-wrap: wrap;
opacity: 0;
Expand Down

0 comments on commit bb79362

Please sign in to comment.