File manager - Edit - /home/cipherteam/htdocs/cipherteam.in/API/FINNEWS/new/index.php
Back
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <title>60 Words News</title> <script src="https://cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.3/modernizr.min.js" type="text/javascript"></script> <meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0'/> <meta http-equiv="X-UA-Compatible" content="IE=8"> <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> <h1>60 Words News</h1> <div id='mySwipe' style='max-width:500px;margin:0 auto' class='swipe'> <div class='swipe-wrap'> <?php include_once("simple_html_dom.php"); $html = file_get_html("https://flipitnews.com/flips?page=1"); $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> <?php $img = $col->find('img',0)->src; ?> <img src="<?php echo $img; ?>" width="400px" height="300px"/> <h3><?php echo $col->find('h1',0)->plaintext; ?></h3> <p> <?php echo $col->find('p',0)->plaintext; ?> </p> Published: <?php echo $col->find('div[class=text-small text-muted]',0)->plaintext; ?> </div> <?php } ?> </div> </div> <div style='text-align:center;padding-top:20px;'> <button onclick='mySwipe.prev()'>prev</button> <button onclick='mySwipe.next()'>next</button> </div> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> <script src='swipe.js'></script> <!-- partial --> <script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src='https://cdnjs.cloudflare.com/ajax/libs/swipe/2.0/swipe.min.js'></script><script src="./script.js"></script> </body> </html>
| ver. 1.4 |
Github
|
.
| PHP 8.2.9 | Generation time: 0.03 |
proxy
|
phpinfo
|
Settings