-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsample.html
69 lines (65 loc) · 1.6 KB
/
sample.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
<html>
<head>
<p id="para"></p>
</head>
<body>
<script>
document.getElementById("para").innerHTML = "<strong>Hello, World!</strong>";
</script>
</body>
</html>
<html>
<head>
<style>
#code-panel {
height: 50vh;
margin-top: 40px;
border: 3px #cccccc solid;
border-radius: 10;
/* background-color: #cccccc; */
height: 40vh;
position: fixed;
top: 20px;
right: 0;
left: 57%;
}
#code-panel textarea {
height: 39vh;
}
#output-panel {
margin-top: 3px;
border: 3px #cccccc solid;
border-radius: 10;
position: fixed;
height: 40vh;
position: fixed;
bottom: 56px;
right: 0;
left: 57%;
}
#output {
margin-top: 3px;
border: 3px #cccccc solid;
border-radius: 10;
position: fixed;
height: 40vh;
position: fixed;
bottom: 57px;
right: 0;
left: 57%;
}
</style>
</head>
<body>
<div class="col-md-5 code-box w-100">
<div class="container-fluid">
<div id="code-panel">
<textarea id="code" class="form-control" placeholder="Enter HTML, CSS, JS code here"></textarea>
</div>
<div id="output-panel">
<iframe id="output" width="100%"></iframe>
</div>
</div>
</div>
</body>
</html>