Last active
September 1, 2017 12:16
-
-
Save soup-bowl/143c656d55d5b0db6ddc1cfdd8045a12 to your computer and use it in GitHub Desktop.
A quick way to display a quick no.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$words = [ | |
"No" | |
]; | |
$background = "black"; | |
$colour = "white"; | |
?> | |
<head> | |
<title>Is something working yet?</title> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/7.0.0/normalize.min.css"> | |
<style> | |
body { | |
background-color: <?php echo $background; ?>; | |
} | |
h1 { | |
color: <?php echo $colour; ?>; | |
font-family: sans-serif; | |
font-size: 10em; | |
margin: 0; | |
} | |
.centered { | |
position: fixed; | |
top: 50%; | |
left: 50%; | |
margin-top: -50px; | |
margin-left: -100px; | |
} | |
</style> | |
</head> | |
<body> | |
<div class="centered"> | |
<h1> | |
<?php echo $words[rand(0, (count($words) - 1))] . "."; ?> | |
</h1> | |
</div> | |
</body> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment