L'ancien dépot du générateur de sites 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.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

49 lines
999 B

<!-- Code source : https://code.antopie.org/miraty/web/src/branch/master/clr.php -->
if (!isset($_GET['clr']))
$clr = sprintf('#%06X', mt_rand(0, 0xFFFFFF));
$clr = "#" . htmlspecialchars($_GET['clr']);
<meta content="UTF-8">
echo $clr;
if (isset($_GET['txt']))
echo " " . htmlspecialchars($_GET['txt']);
body {
background-color: <?php echo $clr; ?>;
#txt {
font-family: "Ubuntu", system-ui, sans-serif;
font-size: 50px;
margin: 10px;
background-color: black;
color: white;
padding: 10px;
border-radius: 0px;
position: fixed;
top: 20%;
left: 20%;
right: 20%;
text-align: center;
<?php if (isset($_GET['txt'])) { ?>
<div id=txt>
<?php echo htmlspecialchars($_GET['txt']); ?>
<?php } ?>