Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 24 additions & 24 deletions src/Js/index.js
Original file line number Diff line number Diff line change
@@ -1,39 +1,40 @@
AOS.init();
AOS.init()

var typed = new Typed(" .typing", {
strings: ["Developer", "Writer", "AI Enthusiast"],
const typed = new Typed(' .typing', {
strings: ['Developer', 'Writer', 'AI Enthusiast'],
typeSpeed: 100,
backSpeed: 100,
loop: true,
});
loop: true
})

let valueNumbers = document.querySelectorAll(".exp-number");
let interval = 2000;
const valueNumbers = document.querySelectorAll('.exp-number')
const interval = 2000

valueNumbers.forEach((valueNumber) => {
let startValue = 0;
let endValue = parseInt(valueNumber.getAttribute("data-val"));
let duration = Math.floor(interval / endValue);
let counter = setInterval(() => {
startValue += 1;
valueNumber.textContent = startValue;
let startValue = 0
const endValue = parseInt(valueNumber.getAttribute('data-val'))
const duration = Math.floor(interval / endValue)
const counter = setInterval(() => {
startValue += 1
valueNumber.textContent = startValue
if (startValue == endValue) {
clearInterval(counter);
clearInterval(counter)
}
}, duration);
});
}, duration)
})

// function visitPage() {
// window.location = "https://drive.google.com/file/d/1j5zVdicwCTsxXpvP3-EgRDSHGY7IvbJM/view?usp=sharing";
// };

const btnopen = document.querySelector('#resume');
const btnopen = document.querySelector('#resume')

btnopen.addEventListener('click',(event) => {
window.open('https://drive.google.com/file/d/1j5zVdicwCTsxXpvP3-EgRDSHGY7IvbJM/view?usp=sharing', '_top');


});
btnopen.addEventListener('click', (event) => {
window.open(
'https://drive.google.com/file/d/1j5zVdicwCTsxXpvP3-EgRDSHGY7IvbJM/view?usp=sharing',
'_top'
)
})

// const link = document.getElementById("nav-link");
// link.addEventListener("click", () => {
Expand All @@ -44,7 +45,6 @@ btnopen.addEventListener('click',(event) => {
// },
// console.log(link),


// function gotoLink(link) {
// location.href = 'https://drive.google.com/file/d/1j5zVdicwCTsxXpvP3-EgRDSHGY7IvbJM/view?usp=sharing';
// };
// };