-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
66 lines (60 loc) · 1.53 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
<head>
<link href="css/bootstrap.css" rel="stylesheet">
<script src="js/jquery.js"></script>
<style type="text/css">
textarea, iframe {
border: 2px solid #ddd;
height: 500px;
width: 100%;
}
.line_dv {
width:30px;
float:left;
position:absolute;
}
.input, .output {
width: 50%;
height: 50%;
float: left;
margin-top:40px;
}
.top_container {
height: 40px;
width: 100%;
position: absolute;
top: 6px;
bottom: 0px;
left: 0px;
right: 0px;
text-align: center;
}
.line {
float: left;
text-align:left;
font-weight:bold;
}
</style>
</head>
<body>
<div class="input">
<form>
<strong>Code</strong>
<textarea name="sourceCode" id="sourceCode" onchange="runCode()" onkeyup="getLineNumber(this, document.getElementById('lineNo'));" onmouseup="this.onkeypress();">
<html>
<head>
<title>Hello</title>
</head>
<body>
<h1>Hello!</h1>
<p>Write HTML, CSS or JavaScript code here and click 'Run Code'.</p>
</body>
</html>
</textarea>
</form>
</div>
<div class="output">
<strong>Output</strong><iframe name="targetCode" id="targetCode"></iframe></div>
<div class="top_container"><div class="line">Line No<span class="line_dv" id="lineNo"></span></div>
<input type="button" class="btn-success" value="Run Code"/></div>
<script src="js/script.js" type="text/javascript"></script>
</body>