-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·71 lines (71 loc) · 3.45 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
<!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>Compiler</title>
<link rel="stylesheet" href="assets/css/tabler.min.css">
<link rel="stylesheet" href="assets/css/tabler-vendors.min.css">
</head>
<body>
<div class="wrapper">
<div class="page-wrapper">
<div class="container-xl">
<div class="page-body">
<div class="row">
<div class="col-12">
<form target="coderesult" action="compile.php" method="POST" enctype="multipart/form-data" class="row" id="form">
<div class="col-md col-12">
<div class="card mb-3 h-100">
<div class="card-header d-flex justify-content-between">
<h3 class="card-title">Kode</h3>
<div class="row">
<div class="col-auto">
<select name="lang" class="form-control">
<option value="php">PHP</option>
<option value="html">html</option>
<option value="js">js</option>
</select>
</div>
<div class="col-auto">
<button type="submit" class="btn btn-success">RUN</button>
</div>
</div>
</div>
<div class="card-body">
<textarea name="code" class="form-control"><?php echo "hello world" ?></textarea>
</div>
</div>
</div>
<div class="col-md col-12">
<div class="card mb-3 h-100">
<div class="card-header">
<h3 class="card-title">Result</h3>
</div>
<div class="card-body">
<iframe name="coderesult" id="code-result" frameborder="0"></iframe>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="assets/js/tabler.min.js"></script>
<script>
(function() {
document.getElementById('form').addEventListener('submit', function() {
const createEl = function(inner) {
const el = document.createElement('div');
el.innerHTML = inner;
return el.children;
};
});
})();
</script>
</body>
</html>