File tree 2 files changed +15
-9
lines changed
2 files changed +15
-9
lines changed Original file line number Diff line number Diff line change
1
+ jQuery ->
2
+ if $ (' .bsarocks' ).length > 0
3
+ console .log (' Loading BSA' )
4
+ e = document .createElement (' script' )
5
+ e .type = ' text/javascript'
6
+ e .async = ! 0
7
+ e .src = document .location .protocol + ' //s3.buysellads.com/ac/bsa.js'
8
+ (document .getElementsByTagName (' head' )[0 ] or document .getElementsByTagName (' body' )[0 ]).appendChild (e)
9
+
10
+
11
+ $ (document ).on ' page:change' , ->
12
+ if window ._bsap ?
13
+ console .log (" Reloading BSA" )
14
+ _bsap .reload ()
Original file line number Diff line number Diff line change 10
10
= csrf_meta_tags
11
11
= render 'shared/analytics'
12
12
= yield :head
13
- %body
14
- :javascript
15
- (function (){
16
- var bsa = document .createElement (' script' );
17
- bsa .type = ' text/javascript' ;
18
- bsa .async = true ;
19
- bsa .src = ' //s3.buysellads.com/ac/bsa.js' ;
20
- (document .getElementsByTagName (' head' )[0 ]|| document .getElementsByTagName (' body' )[0 ]).appendChild (bsa);
21
- })();
13
+ %body
22
14
.clearfix
23
15
%header .border-bottom
24
16
%nav .clearfix
You can’t perform that action at this time.
0 commit comments