-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
download.html
185 lines (153 loc) · 4 KB
/
download.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="assets/favicon.png" />
<title>Download ▲ Prism</title>
<link rel="stylesheet" href="assets/style.css" />
<link rel="stylesheet" href="themes/prism.css" data-noprefix />
<style>
form label {
display: block;
padding: .2em;
padding-left: 1.9em;
page-break-inside: avoid;
break-inside: avoid;
-webkit-column-break-inside: avoid;
}
form label .name {
margin-right: .3em;
}
form label a.owner {
margin-left: 0;
hyphens: none;
}
form label input {
margin-right: .7em;
margin-left: -1.7em;
}
form > p:first-of-type > label {
font-size: 150%;
}
form > p:first-of-type > label input {
vertical-align: .3em;
}
.filesize:empty {
display: none;
}
#components {
overflow: hidden;
}
section.options {
width: 33.3%;
width: calc(100% / 3);
float: left;
}
section.options#category-languages,
section.options#category-plugins {
width: 100%;
float: none;
column-count: 3;
padding-top: 2em;
overflow: visible;
}
section.options#category-languages label,
section.options#category-plugins label {
break-inside: avoid;
}
section.options#category-languages > h1,
section.options#category-plugins > h1 {
margin-top: 0;
column-span: all;
}
section.options#category-languages label[data-id="javascript"],
section.options label[data-id^="check-all-"] {
border-bottom: 1px solid #aaa;
padding-bottom: 1em;
margin-bottom: 1em;
}
section.options#category-themes {
width: 66.6%;
width: calc(100% * 2/3);
column-count: 2;
overflow: visible;
float: none;
}
section.options#category-themes > h1 {
column-span: all;
}
section.download {
width: 50%;
float: left;
}
#download {
overflow: hidden;
padding: .3em;
}
#download .error {
color: #B61500;
display: none;
}
#download pre {
height: 20em;
}
#download .download-button {
cursor: pointer;
width: 100%;
}
#download-js .download-button {
border-top-right-radius: 0;
border-bottom-right-radius: 0;
}
#download-css .download-button {
background-color: #dc9e23;
border-top-left-radius: 0;
border-bottom-left-radius: 0;
}
</style>
<script src="assets/vendor/prefixfree.min.js"></script>
<script>var _gaq = [['_setAccount', 'UA-33746269-1'], ['_trackPageview']];</script>
<script src="https://www.google-analytics.com/ga.js" async></script>
</head>
<body>
<header>
<div class="intro" data-src="assets/templates/header-main.html" data-type="text/html"></div>
<h2>Customize your download</h2>
<p>Select your compression level, as well as the languages and plugins you need.</p>
</header>
<section>
<form>
<p>
Compression level:
<label><input type="radio" name="compression" value="0" /> Development version</label>
<label><input type="radio" name="compression" value="1" checked /> Minified version</label>
</p>
<section id="components"></section>
<p>
Total filesize: <strong id="filesize"></strong> (<strong id="percent-js"></strong> JavaScript + <strong id="percent-css"></strong> CSS)
</p>
<p><strong>Note:</strong> The filesizes displayed refer to non-gizipped files and include any CSS code required. The CSS code is not minified.</p>
<section id="download">
<div class="error"></div>
<section id="download-js" class="download">
<pre><code class="language-javascript"></code></pre>
<button type="button" class="download-button">Download JS</button>
</section>
<section id="download-css" class="download">
<pre><code class="language-css"></code></pre>
<button type="button" class="download-button">Download CSS</button>
</section>
</section>
</form>
</section>
<footer data-src="assets/templates/footer.html" data-type="text/html"></footer>
<script src="assets/vendor/utopia.js"></script>
<script src="prism.js"></script>
<script src="components.js"></script>
<script src="dependencies.js"></script>
<script src="assets/code.js"></script>
<script src="assets/vendor/promise.js"></script>
<script src="assets/vendor/FileSaver.min.js"></script>
<script src="assets/download.js"></script>
</body>
</html>