let height = parseFloat(query.height)
let area = (a_length + b_length) / 2 * height
- _site.serve(
+ env.site.serve(
env,
200,
`<!DOCTYPE html>
<html>
<head>
+<link rel="stylesheet" type="text/css" href="olly.css">
<title>Calculation</title>
</head>
-<body>
+<body class="olly">
<h1>The Height is: ${height} units</h1>
<h1>The A length is: ${a_length} units</h1>
<h1>The B length is: ${b_length} units</h1>
)
}
else {
- _site.serve(
+ env.site.serve(
env,
200,
`<!DOCTYPE html>
<html>
<head>
+<link rel="stylesheet" type="text/css" href="olly.css">
<title>Calculation</title>
</head>
-<body>
+<body class="olly">
<h1>Error - Unable to Calculate</h1>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
+<link rel="stylesheet" type="text/css" href="olly.css">
<title>Trapezium Area Calculator</title>
<style>
form div + div {
}
</style>
</head>
-<body>
+<body class="olly">
<h1>Trapezium Area Calculator</h1>
<img src="drawing.svg">
<form action="/calculate_button_trapezium.html" method="post">