-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
52 lines (43 loc) · 1.92 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Web Live Editor</title>
<link rel="stylesheet" href="style.css">
<!-- Syntax Highlighters -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/ace/1.32.3/ace.js"></script>
</head>
<body>
<section class="container">
<div class="left">
<div class="label-list">
<label for="">HTML</label>
<label class="download" onclick="run()">Run </label>
</div>
<textarea onkeyup="run()" name="" id="html-code" cols="30" rows="10"><h1>hello world</h1></textarea>
<label for="">CSS</label>
<textarea onkeyup="run()" name="" id="css-code" cols="30" rows="10">h1{color:red}</textarea>
<label for="">JavaScript</label>
<textarea onkeyup="run()" name="" id="js-code" cols="30" rows="10"> console.log('hey');</textarea>
</div>
<div class="right">
<!-- <button id="downloadButton" >Download as ZIP</button> -->
<div class="label-list">
<label for="">Output</label>
<label class="download" onclick="download()">Download as ZIP</label>
</div>
<iframe id="output" src="" frameborder="0"></iframe>
</div>
</section>
<footer style="padding-bottom:20px; text-align: center; align-content: center; ">
<p style="font-size: 20px;">2023-<span id="year"></span> Created by
<a href="https://www.facebook.com/AbdurRahim1996" style="color: #fff;">Abdur Rahim</a>
</p>
</footer>
<script src="./script.js"></script>
<!-- download as zip -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/jszip.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/FileSaver.js/2.0.5/FileSaver.min.js"></script>
</body>
</html>