forked from LeaVerou/dabblet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
187 lines (155 loc) · 7.29 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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>dabblet.com</title>
<meta name="author" content="Lea Verou" />
<meta name="description" content="An interactive CSS playground and code sharing tool. Dabblet saves to Github gists and offers many conveniences for CSS editing." />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="/style/global.css" />
<link rel="stylesheet" href="/style/style.css" />
<script src="/code/prefixfree.min.js"></script>
<script>window._gaq = [['_setAccount', 'UA-27750908-1'], ['_trackPageview']];</script>
<script src="http://www.google-analytics.com/ga.js" async></script>
</head>
<body>
<header>
<h1><a href="/">dabblet</a></h1>
<div class="with-inactive-dropdown">
<a id="currentuser" target="_blank" class="user button">Log in</a>
<menu class="dropdown">
<a href="/user/" target="_blank" class="command my-profile">My profile</a>
<a href="/" onclick="Dabblet.user.logout()" class="command">Log out</a>
</menu>
</div>
<div class="with-dropdown">
<button class="with-symbol" title="Settings">⚙</button>
<form id="settings" class="dropdown">
<fieldset id="view">
<legend>View settings</legend>
<div class="segmented-control">
<input type="radio" name="view" value="split" id="view-split" checked data-scope="file" />
<label for="view-split" class="button" title="Horizontal split">Horizontal</label>
<input type="radio" name="view" value="split-vertical" id="view-split-vertical" data-scope="file" />
<label for="view-split-vertical" class="button" title="Vertical split">Vertical</label>
<input type="radio" name="view" value="separate" id="view-separate" data-scope="file" />
<label for="view-separate" class="button" title="Separate">Separate</label>
</div>
<label class="font-size slider" title="Font size">
<span title="Smaller">A</span>
<input type="range" name="fontsize" min="50" max="200" value="100" step="10" data-scope="file" />
<span title="Larger">A</span>
</label>
<label class="checkbox">
<input type="checkbox" name="seethrough" value="1" data-scope="file" />
See-through code
</label>
</fieldset>
<fieldset>
<legend>Libraries</legend>
<label class="checkbox">
<input type="checkbox" name="prefixfree" value="1" data-scope="file" checked />
Use -prefix-free
</label>
</fieldset>
</form>
</div>
<div class="with-dropdown" id="cloud">
<button id="save-button" class="with-symbol" title="Save">☁</button>
<menu class="dropdown">
<a href="/" onclick="Dabblet.wipe()" class="command" data-keyboard="⌘N">New dabblet</a>
<hr />
<a id="save-cmd" tabindex="0" class="command" data-keyboard="⌘S" data-disabled>Save</a>
<a onclick="gist.save({forceNew: true})" id="save-new-cmd" class="command" tabindex="0" data-disabled>Save as new</a>
<a onclick="gist.save({anon: true})" class="command" tabindex="0">Save anonymously</a>
<hr />
<a data-href="https://gist.github.com/{gist-id}/{gist-rev}" target="_blank" class="command" data-disabled>View gist</a>
<a data-href="http://result.dabblet.com/gist/{gist-id}/{gist-rev}" class="command" target="_blank" aria-hidden="true">View full page result</a>
<a class="user command" target="_blank" aria-hidden="true" id="gist-user"></a>
</menu>
</div>
<div class="controls-group">
<a href="/help/index.html" class="button" title="Help & credits" target="_blank">?</a>
<div class="tabs">
<input type="radio" name="page" value="css" id="page-css" data-scope="file" />
<label for="page-css" title="⌘1" class="tab">
<span class="title">CSS
<span class="if-not-separate"><i class="amp">&</i> Result</span>
</span>
</label>
<input type="radio" name="page" value="html" id="page-html" data-scope="file" />
<label for="page-html" title="⌘2" class="tab">
<span class="title">HTML
<span class="if-not-separate"><i class="amp">&</i> Result</span>
</span>
</label>
<input type="radio" name="page" value="all" id="page-all" checked data-scope="file" />
<label for="page-all" title="⌘3" class="tab">
<span class="title">All</span>
</label>
<input type="radio" name="page" value="javascript" id="page-javascript" data-scope="file" />
<label for="page-javascript" title="⌘4" class="tab">
<span class="title">JS<sub style="font-size: 50%; opacity: .6;">alpha</sub></span>
</label>
<input type="radio" name="page" value="result" id="page-result" data-scope="file" />
<label for="page-result" title="⌘5" class="tab">
<span class="title">Result</span>
</label>
</div>
</div>
</header>
<iframe class="page" id="result" src="http://preview.dabblet.com"></iframe>
<section id="css-container" class="editor page"><pre id="css" spellcheck="false" class="language-css" contenteditable>/**
* The first commented line is your dabblet’s title
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;</pre></section>
<button title="Validate CSS" onclick="Dabblet.validate.CSS()" class="for-code css">✓</button>
<section id="html-container" class="editor page"><pre id="html" spellcheck="false" class="language-html" contenteditable><!-- content to be placed inside <body>…</body> --></pre></section>
<button title="Validate HTML" onclick="Dabblet.validate.HTML()" class="for-code html">✓</button>
<section id="javascript-container" class="editor page"><pre id="javascript" spellcheck="false" class="language-javascript" contenteditable>// alert('Hello world!');</pre></section>
<button title="Run JavaScript (⌘↩)" onclick="Dabblet.update.JavaScript()" class="for-code javascript">▶</button>
<div id="color" class="previewer"></div>
<div id="abslength" class="previewer"></div>
<div id="time" class="previewer">
<svg>
<circle cx="32" cy="32" r="15.9">
<animate attributeName="stroke-dasharray" values="0,500;100,500;0,500" dur="5s" repeatCount="indefinite" />
<animate attributeName="stroke-dashoffset" values="0;0;-100" dur="5s" repeatCount="indefinite" />
</circle>
</svg>
</div>
<div id="angle" class="previewer">
<svg>
<circle cx="32" cy="32" r="15.9" stroke-dasharray="0,500" />
</svg>
</div>
<div id="fontfamily" class="previewer">(ABCabc123&@%)
(ABCabc123&@%)</div>
<div id="gradient" class="previewer"><div></div></div>
<div id="easing" class="previewer">
<svg width="100" height="100" viewBox="-20 -20 140 140">
<defs>
<marker id="marker" viewBox="0 0 4 4" refX="2" refY="2" markerUnits="strokeWidth">
<circle cx="2" cy="2" r="1.5" />
</marker>
</defs>
<path d="M0,100 C20,50, 40,30, 100,0" />
<line x1="0" y1="100" x2="20" y2="50" />
<line x1="100" y1="0" x2="40" y2="30" />
</svg>
</div>
<div id="url" class="previewer"><img src="data:," alt="Loading…" /></div>
<div id="entity" class="previewer"></div>
<script src="/code/utopia.js"></script>
<script src="/code/selection.js"></script>
<script src="/code/prism.js"></script>
<script src="/code/code-highlight.js"></script>
<script src="/code/editor.js"></script>
<!--[if lte IE 9]><script src="/code/classList.min.js"></script><![endif]-->
<script src="/code/global.js"></script>
<script src="/code/dabblet.js"></script>
<script src="/code/previewers.js" async defer></script>
</body>
</html>