Site web d'Antopie https://antopie.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
999B

  1. <!-- Code source : https://code.antopie.org/miraty/web/src/branch/master/clr.php -->
  2. <!DOCTYPE html>
  3. <html>
  4. <?php
  5. if (!isset($_GET['clr']))
  6. $clr = sprintf('#%06X', mt_rand(0, 0xFFFFFF));
  7. else
  8. $clr = "#" . htmlspecialchars($_GET['clr']);
  9. ?>
  10. <head>
  11. <meta content="UTF-8">
  12. <title>
  13. <?php
  14. echo $clr;
  15. if (isset($_GET['txt']))
  16. echo " " . htmlspecialchars($_GET['txt']);
  17. ?>
  18. </title>
  19. <style>
  20. body {
  21. background-color: <?php echo $clr; ?>;
  22. }
  23. #txt {
  24. font-family: "Ubuntu", system-ui, sans-serif;
  25. font-size: 50px;
  26. margin: 10px;
  27. background-color: black;
  28. color: white;
  29. padding: 10px;
  30. border-radius: 0px;
  31. position: fixed;
  32. top: 20%;
  33. left: 20%;
  34. right: 20%;
  35. text-align: center;
  36. }
  37. </style>
  38. </head>
  39. <body>
  40. <?php if (isset($_GET['txt'])) { ?>
  41. <div id=txt>
  42. <?php echo htmlspecialchars($_GET['txt']); ?>
  43. </div>
  44. <?php } ?>
  45. </body>
  46. </html>