Server IP : 103.53.40.154 / Your IP : 18.118.144.199 Web Server : Apache System : Linux md-in-35.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : ppcad7no ( 715) PHP Version : 8.2.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0750) : /home2/ppcad7no/procompliance.in/../yugayurvedaold.com/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<style> .full-screen-carousel-item { height: 100vh !important; /* Full screen height */ } .full-screen-carousel-item img { width: 100% !important; height: 100vh !important; object-fit: cover !important; /* Ensures the image covers the entire slide */ filter: brightness(0.7) !important; /* Adjust the brightness as needed */ } .centered-carousel-caption { position: absolute !important; top: 50% !important; transform: translateY(-50%) !important; bottom: initial !important; /* Prevents the default bottom positioning */ text-align: center !important; width: 100% !important; } @media only screen and (max-width: 600px) { .full-screen-carousel-item img { height: 250px !important; filter: brightness(0.8) !important; } } </style> <div id="fullScreenCarousel" class="carousel carousel-dark slide" style="margin-top: -28px;" data-bs-ride="carousel"> <div class="carousel-indicators"> <?php $sqlslide = "SELECT * FROM `tbl_slider` WHERE slider_status='Active' ORDER BY slider_order"; $runslide = mysqli_query($db, $sqlslide) or die("Query Not run"); $count = 0; while ($dataslide = mysqli_fetch_assoc($runslide)) { $active = ($count == 0) ? 'active' : ''; ?> <button type="button" data-bs-target="#fullScreenCarousel" data-bs-slide-to="<?php echo $count; ?>" class="<?php echo $active; ?>" aria-current="<?php echo $active; ?>" aria-label="Slide <?php echo $count + 1; ?>"></button> <?php $count++; } ?> </div> <div class="carousel-inner"> <?php $count = 0; mysqli_data_seek($runslide, 0); // Reset the result pointer to the beginning while ($dataslide = mysqli_fetch_assoc($runslide)) { $active = ($count == 0) ? 'active' : ''; ?> <div class="carousel-item full-screen-carousel-item <?php echo $active; ?>" data-bs-interval="20000"> <img src="admin/images/<?php echo $dataslide['image']; ?>" class="d-block w-100" alt="Slide <?php echo $count + 1; ?>"> <div class="carousel-caption centered-carousel-caption d-none d-md-block"> <h5 class="text-light" style="font-size:5vh;"><?php echo $dataslide['title']; ?></h5> <p class="text-light"><?php echo $dataslide['line']; ?></p> </div> </div> <?php $count++; } ?> </div> <button class="carousel-control-prev text-light" type="button" data-bs-target="#fullScreenCarousel" data-bs-slide="prev"> <span class="carousel-control-prev-icon" aria-hidden="true"></span> <span class="visually-hidden">Previous</span> </button> <button class="carousel-control-next" type="button" data-bs-target="#fullScreenCarousel" data-bs-slide="next"> <span class="carousel-control-next-icon" aria-hidden="true"></span> <span class="visually-hidden">Next</span> </button> </div> <script>