-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.php
64 lines (58 loc) · 2.97 KB
/
index.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
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title> Compilador </title>
<!-- Bootstrap -->
<link href="assets/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="assets/bootstrap/css/mystyle.css" rel="stylesheet">
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body style="background-color: #222">
<!-- <body> -->
<div class="container" style="margin-top: 30px;">
<form action="compilador.php" method="POST">
<div class="row">
<div class="col-md-12">
<button type="submit" class="btn button-compilar">
<span class="glyphicon glyphicon-play" aria-hidden="true"></span>
run
</button>
</div>
</div>
<div class="row" >
<div class="col-md-5" style="height: 630px;">
<textarea name="codigo" class="text-codigo" placeholder="escreva o código aqui ..." autofocus><?php echo isset($inputCodigo) ? trim($inputCodigo) : ""; ?></textarea>
</div>
<div class="col-md-7" >
<div class="row" style="height: 300px; overflow-y: auto">
<div class="col-md-12" >
<?php include("resultado.php"); ?>
</div>
</div>
<div class="row" style="">
<h2 class="text-primary">
<span style="color: #000;" class="glyphicon glyphicon-console" aria-hidden="true"></span>
Console
</h2>
<div class="col-md-12" style="height: 180px; overflow-y: auto; background-color: #000; margin-top: 10px; min-height: 180px">
<?php include("console.php"); ?>
</div>
</div>
</div>
</div>
</form>
</div>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="assets/jquery.js"></script>
<script src="assets/bootstrap/js/bootstrap.min.js"></script>
</body>
</html>