Update README.md
Browse files
README.md
CHANGED
@@ -407,7 +407,51 @@ body {
|
|
407 |
</div>
|
408 |
</div>
|
409 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
410 |
<script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
411 |
let slideIndex = 1;
|
412 |
showSlides(slideIndex);
|
413 |
|
|
|
407 |
</div>
|
408 |
</div>
|
409 |
|
410 |
+
<div class="section">
|
411 |
+
<div class="section-header">
|
412 |
+
<h2 class="section-title">🖼️ Example Images</h2>
|
413 |
+
</div>
|
414 |
+
<div class="section-content">
|
415 |
+
<div class="carousel">
|
416 |
+
<div class="carousel-inner">
|
417 |
+
<div class="carousel-item active">
|
418 |
+
<img src="https://huggingface.co/ayjays132/CustomImageGenerator/blob/main/ImageFiles/Ancient%20Temple%20in%20a%20Lush%20Jungle.jpg" alt="Ancient Temple in a Lush Jungle">
|
419 |
+
</div>
|
420 |
+
<!-- Add more carousel items here -->
|
421 |
+
</div>
|
422 |
+
<div class="carousel-controls">
|
423 |
+
<button class="carousel-control-prev" onclick="prevSlide()">❮</button>
|
424 |
+
<button class="carousel-control-next" onclick="nextSlide()">❯</button>
|
425 |
+
</div>
|
426 |
+
</div>
|
427 |
+
</div>
|
428 |
+
</div>
|
429 |
+
</div>
|
430 |
+
|
431 |
<script>
|
432 |
+
let currentIndex = 0;
|
433 |
+
|
434 |
+
function showSlide(index) {
|
435 |
+
const slides = document.querySelectorAll('.carousel-item');
|
436 |
+
if (index >= slides.length) {
|
437 |
+
currentIndex = 0;
|
438 |
+
} else if (index < 0) {
|
439 |
+
currentIndex = slides.length - 1;
|
440 |
+
} else {
|
441 |
+
currentIndex = index;
|
442 |
+
}
|
443 |
+
const offset = -currentIndex * 100;
|
444 |
+
document.querySelector('.carousel-inner').style.transform = `translateX(${offset}%)`;
|
445 |
+
}
|
446 |
+
|
447 |
+
function nextSlide() {
|
448 |
+
showSlide(currentIndex + 1);
|
449 |
+
}
|
450 |
+
|
451 |
+
function prevSlide() {
|
452 |
+
showSlide(currentIndex - 1);
|
453 |
+
}
|
454 |
+
|
455 |
let slideIndex = 1;
|
456 |
showSlides(slideIndex);
|
457 |
|