-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
91 lines (86 loc) · 3.41 KB
/
index.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<!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">
<title>Pseudocode interpreter</title>
<link rel="stylesheet" href="/theme/index.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/css/xterm.css">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/lib/xterm.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/lib/xterm-addon-fit.min.js"></script>
<script src="https://cdn.bootcdn.net/ajax/libs/vue/2.6.12/vue.min.js"></script>
<script src="https://cdn.bootcdn.net/ajax/libs/element-ui/2.15.10/index.js"></script>
<script src="https://cdn.bootcdn.net/ajax/libs/monaco-editor/0.23.0/min/vs/loader.min.js"></script>
<style>
.el-textarea>textarea {
font-family: consolas;
height: 100% !important;
}
html,
body,
#app,
.el-container,
.el-main>div {
height: 100%;
max-height: 100%;
overflow: hidden;
}
.options {
margin-bottom: 10px;
}
</style>
</head>
<body>
<div id="app">
<el-container>
<el-header height="auto" style="text-align:center">
<h1>Pseudocode interpreter</h1>
</el-header>
<el-container>
<el-aside width="auto" style="text-align:center">
<el-row style="margin:20px 10px">
<el-button @click="run">run</el-button>
</el-row>
<el-row style="margin:20px 10px">
<el-button disabled>stop</el-button>
</el-row>
<el-row style="margin:30px 10px">
<el-switch v-model="dumpast" width=20 active-text="DumpAST"></el-switch>
</el-row>
<el-row>
<el-upload
action
:multiple="false"
accept=".pc"
:on-change="handle_change"
:auto-upload="false">
<el-button>Upload</el-button>
</el-upload>
</el-row>
<!-- <el-menu>
<el-menu-item index="1" @click="run">
<i class="el-icon-caret-right"></i>
<span>Run</span>
</el-menu-item>
<el-menu-item index="2" @click="stop" disabled>
<i class="el-icon-circle-close"></i>
<span>Stop</span>
</el-menu-item>
<el-menu-item index="3">
<el-switch v-model="dumpast" width=20 active-text="DumpAST"></el-switch>
</el-menu-item>
</el-menu> -->
</el-aside>
<el-main height="auto">
<div ref="editor" class="main"></div>
</el-main>
</el-container>
<el-footer height="300px">
<div ref="terminal"></div>
</el-footer>
</el-container>
</div>
<script type="module" src="/js/main.js"></script>
</body>
</html>