Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ilham-poy committed Dec 23, 2023
0 parents commit bc9e2c9
Show file tree
Hide file tree
Showing 13 changed files with 889 additions and 0 deletions.
28 changes: 28 additions & 0 deletions app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
const ham = document.querySelector(".menu-toggle");
const tog = document.querySelector(".toggle");
const sertif = document.querySelectorAll(".certif");
const sidebar = document.querySelectorAll("nav .toggle li");
ham.addEventListener("click", () => {
tog.classList.toggle("aktif");
});

document.addEventListener("click", function (e) {
if (!ham.contains(e.target) && !tog.contains(e.target)) {
console.log("tai" + e);
tog.classList.remove("aktif");
}
});

function loopBG(all) {
all.forEach((el) => {
el.addEventListener("mouseenter", function () {
console.log("lu punya duit lu punya kuasa");
el.style.backgroundColor = " rgb(40 40 40)";
});
el.addEventListener("mouseleave", function () {
console.log("Tai");
el.style.backgroundColor = "rgb(26, 26, 26)";
});
});
}
loopBG(sidebar);
Binary file added img/foto apoy 2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/hero.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/js-intermediate-sololearn.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/mysql.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/nodejs.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/pict1.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/sertifikat1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/sertifikat2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/splash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/tes1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit bc9e2c9

Please sign in to comment.