-
Notifications
You must be signed in to change notification settings - Fork 1
/
view.html
40 lines (38 loc) · 1004 Bytes
/
view.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Potigol in Action</title>
<script>
//const urlParams = new URLSearchParams(window.location.search);
//const file = urlParams.get('a');
//document.getElementById("editor").innerHTML = file
</script>
<style type="text/css" media="screen">
#editor {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
/* height: 25ex; /* 10 linhas */
/* width: 80em; */
font-size: 14pt;
}
</style>
</head>
<body>
<div id="editor"></div>
<script src="src-min/ace.js" type="text/javascript" charset="utf-8"></script>
<script>
var editor = ace.edit("editor");
editor.setTheme("ace/theme/monokai");
editor.getSession().setMode("ace/mode/potigol");
fetch('https://raw.githubusercontent.com/potigol/URI-Potigol/master/src/1001-1100/1001.poti')
.then(function(blob) {
editor.setValue(blob.text());
});
// editor.setShowPrintMargin(true);
</script>
</body>
</html>