-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
36 lines (35 loc) · 1.5 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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="pragma" content="no-cache" />
<title>Code Me Live Player</title>
<link type="text/css" rel="stylesheet" href="style.css" />
<script language="javascript" type="text/javascript" src="jquery-2.1.0.js"></script>
<script language="javascript" type="text/javascript" src="js.js"></script>
</head>
<body>
<div id="hdr">
<a class="logo" href="#"><span>Code</span> <span>Me</span> <span>Live</span></a><a class="tab" onclick="document.getElementById('texthtml').focus()">HTML</a><a class="tab" onclick="document.getElementById('textcss').focus()">CSS</a><a class="tab" onclick="document.getElementById('textjs').focus()">JS</a><a class="tab" target="_blank" href="#"><img src="new_window_icon.gif" /></a>
</div>
<div id="container">
<div class="clm">
<span class="tag hidh">HTML</span>
<textarea id="texthtml" onkeyup="generateop()"></textarea>
<span class="tag hidc">CSS</span>
<textarea id="textcss" onkeyup="generateop()"></textarea>
<span class="tag hidj">JS</span>
<textarea id="textjs" onkeyup="generateop()"></textarea>
</div>
<div class="clm">
<input type="hidden" id="heights" value="" />
<div id="op">
</div>
</div>
</div>
<script type="text/javascript">
$("#heights").val(($(document).height()-34)/3);
$("textarea").height($("#heights").val());
</script>
</body>
</html>