Skip to content

Commit eecd4a4

Browse files
committed
lol
1 parent 27d4b2f commit eecd4a4

File tree

1 file changed

+55
-1
lines changed

1 file changed

+55
-1
lines changed

index.html

Lines changed: 55 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,55 @@
1-
Hey
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title></title>
5+
<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet">
6+
<style>
7+
.container {
8+
width: auto;
9+
max-width: 680px;
10+
padding: 0 15px;
11+
}
12+
</style>
13+
</head>
14+
<body>
15+
<div class="container">
16+
<div class="page-header"><h1>raven.js</h1></div>
17+
<div class="checkbox">
18+
<label>
19+
<input type="checkbox" value="jquery">
20+
jQuery
21+
</label>
22+
</div>
23+
<div class="checkbox">
24+
<label>
25+
<input type="checkbox" value="require">
26+
require.js
27+
</label>
28+
</div>
29+
<input id="download" class="form-control input-lg" type="text" />
30+
</div>
31+
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
32+
<script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script>
33+
<script>
34+
$(function() {
35+
var plugins = [], base = '//cdn.ravenjs.com/build/1.0.8/', $download = $('#download');
36+
$('input[type="checkbox"]').on('click', function() {
37+
var val = $(this).val();
38+
if ($(this).prop('checked')) {
39+
plugins.push($(this).val());
40+
} else {
41+
plugins.splice(plugins.indexOf(val), 1);
42+
}
43+
if (plugins) {
44+
plugins.sort();
45+
$download.val(base + plugins.join(',') + '/raven.min.js');
46+
} else {
47+
$download.val(base + 'raven.min.js');
48+
}
49+
});
50+
$download.val(base + 'raven.min.js');
51+
$download.on('click', function() { $(this).select(); });
52+
});
53+
</script>
54+
</body>
55+
</html>

0 commit comments

Comments
 (0)