2025-07-02 14:50:04 +02:00

43 lines
1.4 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>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>
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>