File manager - Edit - /home/cipherteam/htdocs/cipherteam.in/backup2609/APPS/FINNEWS/index.php
Back
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <title>CodePen - Card Slider</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel="stylesheet" href="./style.css"> </head> <body> <!-- partial:index.partial.html --> <div class="swiper-container"> <div class="swiper-wrapper"> <?php include_once("simple_html_dom.php"); $no =1; while($no < 3) { $html = file_get_html("https://flipitnews.com/flips?page=".$no); $row = $html->find('div[class=col]',0); foreach($row->find('div[class=d-flex flex-column flex-lg-row no-gutters border rounded bg-white o-hidden]') as $col) { ?> <div class="slider-item swiper-slide"> <div class="slider-image-wrapper"> <?php $img = $col->find('img',0)->src; ?> <img class="slider-image" src="<?php echo $img; ?>" alt="SliderImg"> </div> <div class="slider-item-content"> <h1><?php echo $col->find('h1',0)->plaintext; ?></h1> <p><?php echo $col->find('p',0)->plaintext; ?></p> </div> </div> <?php } $no = $no + 1; } ?> </div> <br/> <span>Swipe Rigth & Left</span> <div class="slider-buttons"> <button class="swiper-button-prev">Prev</button> <button class="swiper-button-next">Next</button> </div> </div> <!-- partial --> <script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js'></script> <script src='https://cdnjs.cloudflare.com/ajax/libs/Swiper/6.4.5/swiper-bundle.min.js'></script><script src="./script.js"></script> </body> </html>
| ver. 1.4 |
Github
|
.
| PHP 8.2.9 | Generation time: 0.07 |
proxy
|
phpinfo
|
Settings