-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.js
25 lines (22 loc) · 959 Bytes
/
app.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
(function () {
[...document.querySelectorAll(".control")].forEach(button => {
button.addEventListener("click", function() {
document.querySelector(".active-btn").classList.remove("active-btn");
this.classList.add("active-btn");
document.querySelector(".active").classList.remove("active");
document.getElementById(button.dataset.id).classList.add("active");
})
});
document.querySelector(".theme-btn").addEventListener("click", () => {
document.body.classList.toggle("light-mode");
})
})();
//Typed Js///////////////////////////////////////////////////////////////////////
const typed = new Typed('.multiple-text', {
strings:['Desenvolvedor Frontend...', 'Desenvolvedor Web...'],
typeSpeed: 100,
backSpeed: 50,
backDelay: 1000,
loop: true
});
//Typed Js///////////////////////////////////////////////////////////////////////