File tree Expand file tree Collapse file tree 1 file changed +55
-1
lines changed Expand file tree Collapse file tree 1 file changed +55
-1
lines changed Original file line number Diff line number Diff line change 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 >
You can’t perform that action at this time.
0 commit comments