Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
99 lines (96 loc) · 3.47 KB
/
Copy pathindex.html
File metadata and controls
99 lines (96 loc) · 3.47 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
<!DOCTYPE html>
<html>
<head>
<title></title>
<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet">
<style>
.container {
width: auto;
max-width: 680px;
padding: 0 15px;
}
</style>
</head>
<body>
<div class="container">
<div class="page-header"><h1>raven.js</h1></div>
<div class="checkbox">
<label>
<input type="checkbox" value="jquery">
jQuery <a href="https://github.com/getsentry/raven-js/blob/master/plugins/jquery.js">View Source</a>
</label>
</div>
<div class="checkbox">
<label>
<input type="checkbox" value="native">
native (setTimeout/setInterval patches) <a href="https://github.com/getsentry/raven-js/blob/master/plugins/native.js">View Source</a>
</label>
</div>
<div class="checkbox">
<label>
<input type="checkbox" value="require">
require.js (experimental, may not work at all) <a href="https://github.com/getsentry/raven-js/blob/master/plugins/require.js">View Source</a>
</label>
</div>
<div class="checkbox">
<label>
<input type="checkbox" value="console">
console (experimental) <a href="https://github.com/getsentry/raven-js/blob/master/plugins/console.js">View Source</a>
</label>
</div>
<div class="checkbox">
<label>
<input type="checkbox" value="ember">
ember.js (experimental) <a href="https://github.com/getsentry/raven-js/blob/master/plugins/ember.js">View Source</a>
</label>
</div>
<div class="checkbox">
<label>
<input type="checkbox" value="angular">
angular.js (experimental) <a href="https://github.com/getsentry/raven-js/blob/master/plugins/angular.js">View Source</a>
</label>
</div>
<div class="checkbox">
<label>
<input type="checkbox" value="backbone">
backbone.js (experimental) <a href="https://github.com/getsentry/raven-js/blob/master/plugins/backbone.js">View Source</a>
</label>
</div>
<input id="download" class="form-control input-lg" type="text" />
</div>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
<script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script>
<script>
$(function() {
var plugins = [], base = '//cdn.ravenjs.com/1.1.16/', $download = $('#download');
$('input[type="checkbox"]').on('click', function() {
var val = $(this).val(), url;
if ($(this).prop('checked')) {
plugins.push($(this).val());
} else {
plugins.splice(plugins.indexOf(val), 1);
}
if (plugins.length) {
plugins.sort();
url = base + plugins.join(',') + '/raven.min.js';
} else {
url = base + 'raven.min.js';
}
$download.val(url);
});
var defaults = ['jquery', 'native'];
for (var i=0; i<defaults.length; i++) {
$('input[value="'+defaults[i]+'"]').click();
}
$download.on('click', function() { $(this).select(); });
});
// Google Analytics
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-34959157-5', 'ravenjs.com');
ga('send', 'pageview');
</script>
</body>
</html>