Add Litlab

This commit is contained in:
2025-07-04 13:35:51 +03:00
parent 1cf6e3d7d2
commit dabbf541dc
17 changed files with 159 additions and 17 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

View File

@@ -41,25 +41,28 @@ require '../src/helpers.php';
transform: translate(-50%, -50%);
max-height: 92dvh;
overflow-y: auto;
background-color: attr(data-color type(<color>), #eef0f0);
background-color: attr(data-color type(< color >), #eef0f0);
}
pre, code {
font-family: Consolas, monospace;
font-size: 1.125rem;
}
pre {
align-self: center;
}
img.diagram {
display: block;
max-width: 100%;
margin: 0 auto 1rem;
}
.et {
position: absolute;
top: .5rem;
left: .5rem;
bottom: .5rem;
right: .5rem;
font-size: small;
font-weight: 500;
color: #333;
@@ -68,12 +71,10 @@ require '../src/helpers.php';
</head>
<body>
<main data-color="#eef0f0">
<?php require '../src/router.php' ?>
<?php
require '../src/router.php' ?>
</main>
<div class="et">ET: <?= (microtime(true) - $time_start) ?> secs</div>
<script>hljs.highlightAll()</script>
</body>
</html>
</html>