added conversions

This commit is contained in:
Zdenek Borovec 2024-01-03 12:10:52 +01:00
parent 3fafe5e5e0
commit f62e410287
4 changed files with 139 additions and 9 deletions

View file

@ -25,6 +25,7 @@ article {
padding-left: 1em;
padding-right: 1em;
padding-top: 0.5em;
padding-bottom: 0.5em;
font-family: serif;
}
@ -43,6 +44,17 @@ hr {
color: black;
}
table {
border-collapse: collapse;
width: 100%;
}
td, th {
border: 1px solid #000000;
text-align: left;
padding: 8px;
}
.image-container {
border-style: solid;
border-width: thin;
@ -68,3 +80,21 @@ hr {
font-style: italic;
margin-bottom: 0;
}
.frac {
display: inline-block;
position: relative;
vertical-align: middle;
letter-spacing: 0.001em;
text-align: center;
}
.frac > span {
display: block;
padding: 0.1em;
}
.frac span.bottom {
border-top: thin solid black;
}
.frac span.symbol {
display: none;
}

View file

@ -53,6 +53,6 @@
<li><a href="http://www.zdenekborovec-dev.cz">About</a></li>
<li><a href="http://www.zdenekborovec-dev.cz/blog">Blog</a></li>
<li>Gallery</li>
<li>Random tools</li>
<li><a href="http://www.zdenekborovec-dev.cz/random">Random Tools</a></li>
</ul>
</div>

View file

@ -0,0 +1,78 @@
<?php
$PageTitle="Unit conversions";
$COMMONS = $_SERVER['DOCUMENT_ROOT'] . "/../common";
include_once($COMMONS."/header.php");
?>
<article id="toc">
<h2>
Table of contents
</h2>
<ol>
<li><a href="#unretard">Standard unretard table</a></li>
<li><a href="#cooking">Cooking units</a></li>
</ol>
</article>
<article id="unretard">
<h2>
Unretard table
</h2>
<table>
<tr>
</tr>
</table>
</article>
<article id="cooking">
<h2>
Cooking unit coversions
</h2>
<p>
Disclaimer: these are chiefly my measurements, it is entirely possible
I made a mistake somewhere. If your measurements differ significantly,
please e-mail me.
</p>
<table style="width=100%; margin-bottom = 1em">
<tr>
<td> Item </td>
<td> Special </td>
<td> Volumetric </td>
<td> Weight </td>
<td>
<div class="frac">
<span> W </span>
<span class="symbol"> / </span>
<span class="bottom"> V </span>
</div>
</td>
</tr>
<tr>
<td> Cheese (eidam 45%, roughly grated, pressed down) </td>
<td> 1 cup </td>
<td> 236 ml </td>
<td> 128 g </td>
<td> 0.5 </td>
</tr>
<tr>
<td> Egg </td>
<td> Small </td>
<td> 39.5 ml </td>
<td> 50 g </td>
<td> 1.25 </td>
</tr>
<tr>
<td> Honey </td>
<td> 1 jar </td>
<td> 600 ml </td>
<td> 900 g </td>
<td> 1.5 </td>
</tr>
</table>
</article>
<?php
include_once($COMMONS."/footer.php");
?>

22
docs/www/random/index.php Normal file
View file

@ -0,0 +1,22 @@
<?php
$PageTitle="Zdenek: Random tools";
$COMMONS = $_SERVER['DOCUMENT_ROOT'] . "/../common";
include_once($COMMONS."/header.php");
?>
<article>
<p>
A collection of random tools I thought could be useful.
</p>
<ul>
<li>
<a href="http://www.zdenekborovec-dev.cz/random/conversions">Unit conversions</a>
</li>
</ul>
</article>
<?php
include_once($COMMONS."/footer.php");
?>