56 lines
1.8 KiB
HTML
56 lines
1.8 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>NewTab</title>
|
|
|
|
<link rel="stylesheet" type="text/css" href="assets/style.css">
|
|
</head>
|
|
<body>
|
|
<form class="search-grid" action="https://duckduckgo.com/">
|
|
<div class="search-logo">
|
|
<img als="girl_juice" src="assets/girl_juice.png" />
|
|
<h2 class="phrases">GirlJuice.Inject()</h2>
|
|
<img als="girl_juice" src="assets/girl_juice.png" />
|
|
</div>
|
|
<input name="q" type="text" class="grid-item" class="search" placeholder="Search DuckDuckGo :3 :3 :3" />
|
|
</form>
|
|
|
|
<script>
|
|
const phrases = [
|
|
"GirlJuice.Inject()",
|
|
"Child.CrowdKill()",
|
|
"CopCar.Burn()",
|
|
"You.Cute = true",
|
|
"You.Gay = true",
|
|
"Nazi.Punch()",
|
|
]
|
|
|
|
Array.from(document.querySelectorAll(".phrases")).forEach(element => {
|
|
element.textContent = phrases[Math.floor(Math.random()*phrases.length)];
|
|
})
|
|
|
|
document.addEventListener('DOMContentLoaded', function() {
|
|
const marqueeElement = document.body;
|
|
let position = 0;
|
|
const speed = 1; // Adjust speed here (lower is slower)
|
|
|
|
function animateMarquee() {
|
|
position -= speed;
|
|
|
|
// Reset position when the image has scrolled completely
|
|
if (Math.abs(position) >= marqueeElement.offsetWidth) {
|
|
position = 0;
|
|
}
|
|
|
|
marqueeElement.style.backgroundPosition = `${position}px 0`;
|
|
requestAnimationFrame(animateMarquee);
|
|
}
|
|
|
|
// Start the animation
|
|
animateMarquee();
|
|
});
|
|
</script>
|
|
</body>
|
|
</html> |