???
This commit is contained in:
53
visualisers/hmvis/public/css/main.css
Normal file
53
visualisers/hmvis/public/css/main.css
Normal 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
|
||||
}
|
||||
|
||||
29
visualisers/hmvis/public/index.html
Normal file
29
visualisers/hmvis/public/index.html
Normal 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 -> 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>
|
||||
|
||||
Reference in New Issue
Block a user