-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
65 lines (63 loc) · 2.9 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>~~ Online HTML,CSS & JS Code Editor ~~</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
<link href="prism.css" rel="stylesheet">
<link href="./style.css" rel="stylesheet">
</head>
<body>
<h1>Code Editor for the Big 3 - HTML, CSS & JS</h1>
<div class="headings">
<div class="one">
<button type="button" class="btn btn-light">HTML</button>
</div>
<div class="two">
<button type="button" class="btn btn-light">CSS</button>
</div>
<div class="three">
<button type="button" class="btn btn-light">JS</button>
</div>
<div class="four">
<button type="button" class="btn btn-light">Result</button>
</div>
<div class="flexrun">
<button type="button" class="btn btn-light">Run</button>
</div>
</div>
<div class="container">
<div class="html">
<label for="html" style="color:white"></label>
<pre><code class="language-html"></code></pre>
<textarea id="html" name="html" rows="20" cols="35" spellcheck="false" autocorrect="false" autocapitalize="false"><!--HTML Boilerplate-> <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Output</title>
</head>
<body>
</body>
</html>--></textarea>
</div>
<div class="css">
<label for="css" style="color:white"></label>
<pre><code class="language-css"></code></pre>
<textarea id="css" name="css" rows="25" cols="45" spellcheck="false" autocorrect="false" autocapitalize="false">/*bg color defaults to black*/ body{background-color:white;}</textarea>
</div>
<div class="js">
<label for="js" style="color:white"></label>
<pre><code class="language-javascript"></code></pre>
<textarea id="js" name="js" rows="20" cols="35" spellcheck="false" autocorrect="false" autocapitalize="false">alert("Hello world!")</textarea>
</div>
<div class="result">
<iframe id="window" src="./sampleoutput.html" height="60%" width="100%" title="Result Window"></iframe>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
<script src="prism.js"></script>
<script src="./index.js"></script>
</body>
</html>