Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- File containing div:
- <!doctype html>
- <html lang="it">
- <head>
- <!-- Required meta tags -->
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <!-- Bootstrap CSS -->
- <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-F3w7mX95PdgyTmZZMECAngseQB83DfGTowi0iMjiWaeVhAn4FJkqJByhZMI3AhiU" crossorigin="anonymous">
- <link rel="stylesheet" href="styles.css">
- <title>Il diario</title>
- </head>
- <body>
- <div id='menu' style="background-color:powderblue;">
- <a href="homepage.html" style="text-decoration:none; display: inline-block;">
- <h4 style="color:white;">About</h4>
- </a>
- <a href="clid.html" style="text-decoration:none; display: inline-block; padding-left: 1%;">
- <h4 style="color:white;">option 1</h4>
- </a>
- <a href="contatti.html" style="text-decoration:none; display: inline-block; padding-left: 1%;">
- <h4 style="color:white;">option 2</h4>
- </a>
- <a href="id.php" style="text-decoration:none; display: inline-block; padding-left: 1%; ">
- <h4 style="color:red;">option 3</h4>
- </a>
- <a href="di.html" style="text-decoration:none; display: inline-block; padding-left: 1%; ">
- <h4 style="color:red;">option 4</h4>
- </a>
- <a href="pdqd.html" style="text-decoration:none; display: inline-block; padding-left: 1%; ">
- <h4 style="color:red;">option 5</h4>
- </a>
- <a href="rs.html" style="text-decoration:none; display: inline-block; padding-left: 1%; ">
- <h4 style="color:red;">option 6</h4>
- </a>
- </div>
- <div id="set" style="background-color:grey">
- <label for="Setting">Order of the posts:</label>
- <select name="Order" id="ord">
- <option value="<">decreasing</option>
- <option value=">">increasing</option>
- </select>
- <button id='order'>Order</button>
- </div>
- <div id='main'>
- <?php
- $myfile = fopen("Nuovo documento di testo.html", "r") or die("Non รจ stato possibile caricare il diario");
- echo fread($myfile,filesize("Nuovo documento di testo.html"));
- fclose($myfile);
- ?>
- </div>
- <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.1/dist/js/bootstrap.bundle.min.js" integrity="sha384-/bQdsTh/da6pkI1MST/rWKFNjaCP5gBSY4sEBT38Q/9RBh9AH40zEOg7Hlq2THRZ" crossorigin="anonymous"></script>
- <script src='https://code.jquery.com/jquery-3.5.1.min.js' integrity='sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=' crossorigin='anonymous'></script>
- <script src='ordina.js'></script>
- </body>
- </html>
- Jquery script
- $(document).ready(
- function(){
- $("#order").click(function(){
- alert("it works");
- });
- }
- );
- contents of the divs
- <div id='612' name='25 Settembre 2021'> <!--Numero post-->
- <p>
- 24 Settembre 2021
- </p>
- <br>
- <p>
- 612
- </p>
- <p>
- 612
- </p>
- </div>
- <div id='611' name='25 Settembre 2021'> <!--Numero post-->
- <p>
- 24 Settembre 2021
- </p>
- <br>
- <p>
- 611
- </p>
- <p>
- 611
- </p>
- </div>
- <div id='610' name='25 Settembre 2021'> <!--Numero post-->
- <p>
- 24 Settembre 2021
- </p>
- <br>
- <p>
- 610
- </p>
- <p>
- 610
- </p>
- </div>
- <div id='609' name='25 Settembre 2021'> <!--Numero post-->
- <p>
- 24 Settembre 2021
- </p>
- <br>
- <p>
- 609
- </p>
- <p>
- 609
- </p>
- </div>
- <div id='608' name='25 Settembre 2021'> <!--Numero post-->
- <p>
- 24 Settembre 2021
- </p>
- <br>
- <p>
- 608
- </p>
- <p>
- 608
- </p>
- </div>
- <div id='607' name='25 Settembre 2021'> <!--Numero post-->
- <p>
- 24 Settembre 2021
- </p>
- <br>
- <p>
- 607
- </p>
- <p>
- 607
- </p>
- </div>
- <div id='606' name='25 Settembre 2021'> <!--Numero post-->
- <p>
- 24 Settembre 2021
- </p>
- <br>
- <p>
- 607
- </p>
- <p>
- 607 dsaogfadfsgdfsagiy
- </p>
- </div>
- <div id='605' name='25 Settembre 2021'> <!--Numero post-->
- <p>
- 24 Settembre 2021
- </p>
- <br>
- <p>
- 607
- </p>
- <p>
- 607 dsaogfadfsgdfsagiy
- </p>
- </div>
- <div id='676' name='25 Settembre 2021'> <!--Numero post-->
- <p>
- 24 Settembre 2021
- </p>
- <br>
- <p>
- 676
- </p>
- <p>
- 444444444444444
- </p>
- </div>
- <div id='602' name='25 Settembre 2021'> <!--Numero post-->
- <p>
- 24 Settembre 2021
- </p>
- <br>
- <p>
- 602
- </p>
- <p>
- 602 dsaogfadfsgdfsagiy
- </p>
- </div>
- <div id='601' name='25 Settembre 2021'> <!--Numero post-->
- <p>
- 24 Settembre 2021
- </p>
- <br>
- <p>
- 601
- </p>
- <p>
- 601 dsaogfadfsgdfsagiy
- </p>
- </div>
- <div id='600' name='24 Settembre 2021'> <!--Numero post-->
- <p>
- 24 Settembre 2021
- </p>
- <br>
- <p>
- 13:36
- </p>
- <p>
- test 1
- </p>
- <br>
- <p>
- 14:15
- </p>
- <p>
- test 1
- </p>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement