35 lines
602 B
HTML
35 lines
602 B
HTML
|
<!doctype html>
|
||
|
<html>
|
||
|
<head>
|
||
|
<script type="text/javascript" src="jquery.js"></script>
|
||
|
<script type="text/javascript">
|
||
|
|
||
|
$(function() {
|
||
|
$('#do').click(function() {
|
||
|
var html = $('#testCode').val();
|
||
|
$('#preview').html(html);
|
||
|
});
|
||
|
});
|
||
|
</script>
|
||
|
<style type="text/css">
|
||
|
#testCode {
|
||
|
width: 500px;
|
||
|
height: 300px;
|
||
|
font-size: 20px;
|
||
|
}
|
||
|
</style>
|
||
|
|
||
|
</head>
|
||
|
<body>
|
||
|
<div id="wrapper">
|
||
|
<div id="preview"></div>
|
||
|
<div id="txtWrap">
|
||
|
<textarea id="testCode"></textarea><br />
|
||
|
<button id="do">Do</button>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
</body>
|
||
|
|
||
|
</html>
|