This commit is contained in:
crumbtoo
2024-03-17 09:25:29 -06:00
parent de058abc40
commit 6aae979a58
9 changed files with 2233 additions and 1 deletions

View File

@@ -0,0 +1,53 @@
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
color: green;
overflow: hidden;
}
#editor {
margin: 0;
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
}
#type-check {
position: fixed;
top: 0;
left: 50%;
z-index: 2;
transform: translateX(-50%);
}
.split {
height: 100%;
width: 50%;
position: fixed;
z-index: 1;
top: 0;
overflow-x: hidden;
padding-top: 20px;
}
.left {
left: 0;
}
.right {
right: 0;
}
.annotation-wrapper
{ display: inline-block
}
.annotation-wrapper .annotation
{ display: hidden
}
.annotation-wrapper.hovering .annotation
{ display: sticky
}

View File

@@ -0,0 +1,29 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="/css/main.css">
<title>Hindley-Milner</title>
<style type="text/css" media="screen">
</style>
</head>
<body>
<button id="type-check">type-check</button>
<div class="split left">
<pre id="editor">id = \x -&gt x
twice f x = f (f x)
</pre>
</div>
<div class="split right" id="output">
</div>
<script src="/js/node_modules/ace-builds/src-min-noconflict/ace.js"></script>
<script src="/js/node_modules/ace-builds/src-min-noconflict/theme-solarized_light.js"></script>
<script src="/js/main.js"></script>
</body>
</html>