-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
127 lines (112 loc) · 2.51 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<!DOCTYPE html>
<meta charset="utf-8">
<title>How Do Web Pages Work?</title>
<link rel="stylesheet" href="webxray/static-files/webxray.css">
<script src="jquery.min.js"></script>
<script src="protovis-r3.2.js"></script>
<script src="ace/ace.js"></script>
<script src="ace/mode-html.js"></script>
<script src="ace/theme-eclipse.js"></script>
<script src="webxray/src/utils.js"></script>
<script src="webxray/src/tag-colors.js"></script>
<script src="webxray/src/event-emitter.js"></script>
<script src="webxray/src/focused-overlay.js"></script>
<script src="webxray/src/hud-overlay.js"></script>
<script src="mix-master-dialog.js"></script>
<script src="skeleton.js"></script>
<script src="editor.js"></script>
<script src="html-rendering.js"></script>
<script src="main.js"></script>
<script>
$(window).ready(jQuery.setupMixMaster);
</script>
<style>
body {
font-family: Baskerville, Georgia, serif;
background: white;
}
h1, h2 {
font-weight: normal;
margin-top: 0.5em;
margin-bottom: 0.1em;
}
div.column {
width: 300px;
float: left;
margin-left: 1em;
}
div.desc {
font-size: 9pt;
color: gray;
height: 9em;
}
#header {
margin-left: 1em;
}
#editor-container {
position: relative;
width: 280px;
height: 280px;
border: 1px dotted gray;
}
#editor {
position: absolute;
top: 3px;
left: 3px;
width: 280px;
height: 280px;
margin: 0;
}
#rendering div.content {
font-family: Helvetica, sans-serif;
font-size: 14pt;
}
/* Hide the horizontal scrollbar of the editor. */
.ace_scroller {
overflow: hidden;
}
/* Hide the vertical scrollbar of the editor. */
.ace_sb {
display: none;
}
.highlight {
background-color: yellow;
}
pre {
font-family: Monaco, monospace;
font-size: 9pt;
}
pre span.tag {
color: purple;
}
.button {
float: right;
padding: 0.5em;
background: #f0f0f0;
margin: 0.25em;
cursor: pointer;
}
div.button:hover {
background: black;
color: white;
}
</style>
<div id="buttons">
<div class="button" id="nevermind">Nevermind</div>
<div class="button" id="ok">Ok</div>
</div>
<div id="header"><h1><!-- This is filled by the dialog caller. --></h1></div>
<div id="html" class="column">
<h2>HTML Source Code</h2>
<pre><<span class="tag">div</span>></pre>
<div id="editor-container"><pre id="editor"></pre></div>
<pre></<span class="tag">div</span>></pre>
</div>
<div id="skeleton" class="column">
<h2>What Your Browser Sees</h2>
<div class="content"></div>
</div>
<div id="rendering" class="column">
<h2>What You See</h2>
<div class="content"></div>
</div>