-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
44 lines (42 loc) · 1.75 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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=UTF-8">
<title>Compact Markup Evaluator</title>
<link href="stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css">
</head>
<body onload="prettyPrint()">
<div class="input">
<form>
<fieldset id="div_html">
<legend title="html">HTML</legend>
<textarea name="html" id="html" cols="30" rows="10" placeholder="Enter your HTML here..."></textarea>
</fieldset>
<fieldset id="div_css">
<legend title="css">CSS</legend>
<textarea name="css" id="css" cols="30" rows="10" placeholder="Enter your CSS here..."></textarea>
</fieldset>
<fieldset id="div_js">
<legend title="js">JavaScript</legend>
<textarea name="js" id="js" cols="30" rows="10" placeholder="Enter your JavaScript here..."></textarea>
</fieldset>
<p>
<label><input name="jslib" type="radio" value="jquery" checked="checked">jQuery</label>
</p>
<p >***if you want to run jQuery on the output view, you have to manually change the context to that output view, by adding "output_context" to any jQuery selector function !</p>
<pre class="prettyprint">// output_context is in global scope
$('selector_from_the_output_view', output_context).hide();
</pre>
</form>
</div>
<div class="output">
<fieldset>
<legend>Output View</legend>
<iframe id="output" frameborder="0"></iframe>
</fieldset>
</div>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script type="text/javascript" src="js/prettify.js"></script>
<script type="text/javascript" src="js/application.js"></script>
</body>
</html>