latex/index.php
<?php include '../config.php' ?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>LaTeX Tester</title>
<?php include DOCROOT.'header.php' ?>
<script src="script.js"></script>
<style type="text/css">
input
{
display: inline-block;
margin-right: 1.5em;
text-align: center;
}
textarea
{
width: 100%;
}
#output
{
margin-left: .5em;
}
#output div
{
padding: .5em;
}
</style>
</head>
<body>
<h1>LaTeX tester</h1>
<p>
<label>Foreground: <input id="fg" name="fg" type="color" value="#000000" size="6" /></label>
<label>Background: <input id="bg" name="bg" type="color" value="#ffffff" size="6" /></label>
<label>Size: <input id="s" name="s" type="number" value="2" min="0" max="4" step="1" size="3" /></label></p>
<p><textarea cols="20" id="latex" name="latex" rows="7" autofocus></textarea></p>
<p>
<button>Get image</button> Powered by <a href="http://wordpress.com" title="To be more exact: http://s.wordpress.com/latex.php">WordPress.com</a>
<!--Powered by <a href="http://quicklatex.com/">QuickLaTeX</a>-->
</p>
<div id="output"></div>
<?php include DOCROOT.'footer.php'; ?>
</body>
</html>