-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.php
90 lines (74 loc) · 2.01 KB
/
test.php
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>IDE</title>
</head>
<body>
<div class="header"> Codeboard Online IDE </div>
<div class="control-panel">
Select Language:
<select id="languages" class="languages" onchange="changeLanguage()">
<option value="c"> C </option>
<option value="cpp"> C++ </option>
<option value="php"> PHP </option>
<option value="python"> Python </option>
<option value="node"> Node JS </option>
</select>
</div>
<div class="editor" id="editor"></div>
<div class="button-container">
<button class="btn" onclick="executeCode()"> Run </button>
</div>
<div class="output"></div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="./lib/ace.js"></script>
<script src="./lib/theme-monokai.js"></script>
<script src="./lib/ide.js"></script>
<style>
* {
margin: 0;
}
.header {
background: #57a958;
text-align: left;
font-size: 20px;
font-weight: bold;
color: white;
padding: 4px;
font-family: sans-serif;
}
.control-panel {
background: lightgray;
text-align: right;
padding: 4px;
font-family: sans-serif;
}
.languages {
background: white;
border: 1px solid gray;
}
#editor {
height: 400px;
}
.button-container {
text-align: right;
padding: 4px;
}
.btn {
background: #57a958;
color: white;
padding: 8px;
border: 0;
}
.output {
padding: 4px;
border: 2px solid gray;
min-height: 100px;
width: 99%;
resize: none;
}
</style>
</body>
</html>