forked from ionic-team/ionic-code
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
307 lines (261 loc) · 8.3 KB
/
index.html
File metadata and controls
307 lines (261 loc) · 8.3 KB
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
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<style>
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, img, ins, kbd, q, s, samp,
small, strike, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
display: block;
}
body {
font-size: 1em;
line-height: 1.5;
font-family: 'Helvetica Neue', Helvetica, Arial, serif;
text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
color: #6d6d6d;
padding-bottom: 30px;
}
a {
color: #4F8EF7;
}
a:hover {
text-decoration: underline;
}
header {
padding: 20px 0;
}
header h1 {
font-family: 'Helvetica Neue', Helvetica, Arial, serif; font-weight: 900;
letter-spacing: -1px;
font-size: 36px;
color: #303030;
line-height: 1.2;
}
header h2 {
letter-spacing: -1px;
font-size: 24px;
color: #aaa;
font-weight: normal;
line-height: 1.3;
}
h2 {
font-weight: bold;
font-size: 18px;
}
#container {
min-height: 595px;
}
.inner {
width: 800px;
margin: 0 auto;
}
#container .inner img {
max-width: 100%;
}
#downloads {
margin-bottom: 40px;
}
p {
font-weight: 300;
margin-bottom: 20px;
}
a {
text-decoration: none;
}
select {
font-size: 16px;
}
#files {
line-height: 24px
}
.files-panel {
margin: 0 0 18px 0;
}
.files-panel h3 {
line-height: 18px;
}
.files-panel p {
font-size: 12px;
line-height: 18px;
margin: 3px 0 1px 0;
}
.note {
background: #eee;
padding: 5px 10px;
font-size: 14px;
margin: 25px 0;
}
footer {
text-align: center;
font-size: 12px;
border-top: 1px solid #ccc;
margin: 25px 0 0 0;
padding: 25px;
}
footer a {
padding: 0 10px;
}
</style>
<title>Ionic Framework CDN</title>
</head>
<body>
<div id="container">
<div class="inner">
<header>
<h1>Ionic Framework CDN</h1>
</header>
<section>
<p>
<select id="versions" disabled="disabled">
<option>Loading...</option>
</select>
</p>
<div id="files" style="display: none">
<div class="files-panel">
<h3>Ionic Package: <span id="version-id"></span></h3>
<p>Includes all the files below in one archive file.</p>
<div id="zip-files"></div>
</div>
<div class="files-panel">
<h3>Ionic CSS Files</h3>
<div id="css-files"></div>
</div>
<div class="files-panel">
<h3>Ionic JavaScript Files</h3>
<p>The ionic.bundle.js file combines all the required JS files, both Ionic and Angular.
Use ionic.js and ionic-angular.js if you'd like to break the files apart.</p>
<div id="js-files"></div>
</div>
<div class="files-panel">
<h3>Dependencies</h3>
<p>Not all of these files are required by Ionic, but they have been included here if you need them.</p>
<div id="dependency-files"></div>
</div>
<div class="files-panel">
<h3>Ionicons</h3>
<p>These files automatically get referenced from Ionic's CSS files.
See <a href="http://ionicons.com/">Ionicons</a> for more info.</p>
<div id="font-files"></div>
</div>
</div>
<p class="note">
<strong>Note:</strong> Its best to use your own local copies of the framework's files when building a Cordova/Phonegap hybrid app. These CDN files are provided for archived versions, online tutorials, demos, examples, etc.
</p>
<h2>
Awesomely sponsored by <a href="http://www.maxcdn.com/">MaxCDN</a>.
</h2>
</section>
<footer>
<a href="http://ionicframework.com/">Ionic Framework</a>
· <a href="https://github.com/driftyco/ionic">Github</a>
· <a href="http://ionicons.com/">Ionicons</a>
· <a href="http://ionicframework.com/blog/">Blog</a>
· <a href="http://forum.ionicframework.com/">Forum</a>
· <a href="http://ionicframework.com/subscribe/">Newsletter</a>
· <a href="https://twitter.com/Ionicframework">@ionicframework</a>
</footer>
</div>
</div>
<script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
<script>
(function(){
var data, preload;
$.get( "versions.json", function( d ) {
if(!d) return;
data = d;
var selectOptions = [];
for(var x=0; x<data.length; x++) {
selectOptions.push( '<option value="' +
data[x].id + '">' +
data[x].version_number +
' - ' +
data[x].version_name +
'</option>');
}
$('#versions').html( selectOptions.join('') ).removeAttr('disabled');
if(preload) {
loadVersion(preload);
} else {
loadVersion(data[0].id);
}
});
function loadVersion(versionId) {
if(!data) return;
var
x, f, file, newUrl, link,
zip = [],
css = [],
js = [],
dependency = [],
font = [];
for(x=0; x<data.length; x++) {
if(versionId === data[x].id ||
versionId === data[x].version_number ||
versionId === data[x].version_name ||
versionId === data[x].version_codename) {
for(f=0; f<data[x].files.length; f++) {
file = data[x].files[f];
link = '<div><a href="http://code.ionicframework.com' + file.path + '">http://code.ionicframework.com' + file.path + '</a></div>'
if(file.type === 'zip') {
zip.push(link)
} else if(file.type === 'css') {
css.push(link)
} else if(file.type === 'js') {
js.push(link)
} else if(file.type === 'dependency') {
dependency.push(link)
} else if(file.type === 'font') {
font.push(link)
}
}
$('#zip-files').html( zip.join('') );
$('#css-files').html( css.join('') );
$('#js-files').html( js.join('') );
$('#dependency-files').html( dependency.join('') );
$('#font-files').html( font.join('') );
$('#versions').val(data[x].id);
$('#files').show();
$('#version-id').html(data[x].version_number + ' ' + data[x].version_name + ' (' + data[x].release_date + ')');
newUrl = (x > 0 ? data[x].version_number : '');
try {
history.replaceState({},
'Ionic Framework CDN, ' + data[x].version_number,
'#' + newUrl);
}catch(e){};
return;
}
}
}
$('#versions').change(function(){
loadVersion( $(this).val() );
});
if(location.hash.length) {
preload = location.hash.replace('#', '');
loadVersion(preload);
}
})();
</script>
</body>
</html>