-
Notifications
You must be signed in to change notification settings - Fork 70
/
Copy pathindex.html
79 lines (76 loc) · 3.4 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
<!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>Live Web Code Editor</title>
<link href='https://fonts.googleapis.com/css?family=Bree Serif' rel='stylesheet'>
<link rel="stylesheet" href="./bootstrap/bootstrap.min.css">
<link rel="stylesheet" href="./css/style.css">
</head>
<body class="bg-light mt-5 pt-2" onresize="show_all()">
<nav class="navbar navbar-expand-lg navbar-light bg-light border-bottom fixed-top">
<div class="container-fluid">
<a class="navbar-brand" href="#home">Online Live Web Code Editor</a>
</div>
</nav>
<div class="container-fluid mt-2">
<div class="row mb-2" id="controls">
<div class="col-3">
<div class="container-fluid p-0">
<button class="btn btn-light w-100 p-1 border rounded" onclick="show('html')">HTML</button>
</div>
</div>
<div class="col-3">
<div class="container-fluid p-0">
<button class="btn btn-light w-100 p-1 border rounded" onclick="show('css')">CSS</button>
</div>
</div>
<div class="col-3">
<div class="container-fluid p-0">
<button class="btn btn-light w-100 p-1 border rounded" onclick="show('js')">JS</button>
</div>
</div>
<div class="col-3">
<div class="container-fluid p-0">
<button class="btn btn-primary w-100 p-1 border rounded" onclick="show('result')">Result</button>
</div>
</div>
</div>
<div class="row">
<div class="col-lg-4 col-md-12 col-sm-12" id="html">
<div class="container-fluid border rounded p-1 bg-dark text-light editor">
<textarea id="htmlCode" placeholder="HTML Code"
oninput="showPreview()"></textarea>
</div>
</div>
<div class="col-lg-4 col-md-12 col-sm-12" id="css">
<div class="container-fluid border rounded p-1 bg-dark text-light editor">
<textarea id="cssCode" placeholder="CSS Code"
oninput="showPreview()"></textarea>
</div>
</div>
<div class="col-lg-4 col-md-12 col-sm-12" id="js">
<div class="container-fluid border rounded p-1 bg-dark text-light editor">
<textarea id="jsCode" placeholder="JavaScript Code"
oninput="showPreview()"></textarea>
</div>
</div>
<div class="col-lg-12 col-md-12 col-sm-12 mt-2 mb-2" id="result">
<div class="container-fluid border rounded p-1 result bg-white">
<iframe id="preview-window"></iframe>
</div>
</div>
</div>
</div>
<footer>
<div class="text-center p-2 bg-light border-top mt-2">
Developed By
<a class="text-reset fw-bold" href="https://ahmed0saber.github.io/bootstrap-projects/portfolio/" target="_blank">Ahmed Saber</a>
</div>
</footer>
</body>
<script src="./bootstrap/bootstrap.bundle.min.js"></script>
<script src="./js/app.js"></script>
</html>