Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancing the AudioBooks page !!! #4857

Merged
merged 1 commit into from
Nov 9, 2024
Merged
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
44 changes: 28 additions & 16 deletions audiobook.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Privacy Notice - SwapReads</title>


<link rel="stylesheet" href="./assets/css/playNow.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">
Expand Down Expand Up @@ -860,6 +860,17 @@
z-index: 99999999;
transition: transform 0.1s ease-out;
}
.logo {
display: flex;
align-items: center;
}

.logopic {
height: 80px; /* Adjust as needed */
width: auto;
object-fit: contain;
}

</style>
</head>

Expand Down Expand Up @@ -912,7 +923,7 @@
<header class="header header-anim nav-h" data-header>

<div class="container mobile-container-styles">
<button class="hamburger" id="hamburger-button" aria-label="Menu">

<span></span>
<span></span>
<span></span>
Expand All @@ -922,7 +933,7 @@

<ul class="navbar-list nav" style="margin-right: 10px;">
<a href="index.html" class="logo" style="display:flex;">
<img src="./assets/images/final.png" class="logopic" style=" width: 10rem; height:100px; margin:0px 0px 15px -10px;">
<img src="./assets/images/final.png" class="logopic" style=" width: 15rem; height:100px; margin:0px 0px 15px -10px;">
</a>

<li class="navbar-item" style="margin-right: 10px;">
Expand All @@ -948,12 +959,13 @@
class="ri-bar-chart-fill"></i> Genre</a>
</li>

<li class="navbar-item" style="margin-right: 10px;">
<a href="books.html" class="navbar-link" data-nav-link>
<i class="ri-questionnaire-fill"></i> Books
<li class="navbar-item">
<a href="audiobook.html" class="navbar-link" data-nav-link>
<i class="ri-questionnaire-fill"></i> Audio Books
</a>
</li>


<li class="navbar-item" style="margin-right: 10px;">
<a href="index.html#contact" class="navbar-link" data-nav-link>
<i class="ri-contacts-fill"></i> Contact
Expand Down Expand Up @@ -986,7 +998,7 @@
</label>
</div>
<!-- Theme switcher -->



<script>
Expand Down Expand Up @@ -1019,40 +1031,40 @@
document.getElementById('hamburger-button').addEventListener('click', function() {
document.querySelector('.navbar').classList.toggle('active');
});

// Update the coordinates when the mouse moves
window.addEventListener("mousemove", function (e) {
coords.x = e.clientX;
coords.y = e.clientY;
});

// Animation function to move the circles
function animateCircles() {
let x = coords.x;
let y = coords.y;

circles.forEach(function (circle, index) {
// Update the position and scale of each circle
circle.style.left = x - 12 + "px";
circle.style.top = y - 12 + "px";
circle.style.scale = (circles.length - index) / circles.length;

circle.x = x;
circle.y = y;

// Get the next circle in the sequence
const nextCircle = circles[index + 1] || circles[0];
x += (nextCircle.x - x) * 0.15;
y += (nextCircle.y - y) * 0.15;
});

// Repeat the animation
requestAnimationFrame(animateCircles);
}

// Start the animation
animateCircles();

function scrollToGenre(genreId) {
const element = document.getElementById(genreId);
if (element) {
Expand Down Expand Up @@ -1398,7 +1410,7 @@ <h3>Christmas Song</h3>
</script>


<footer class="ff" style="font-size: 18px;">
<footer class="ff" style="font-size: 18px;">
<div class="foot-top">
<div class="foot-left">

Expand Down
Loading