Skip to content

Commit c024c02

Browse files
committed
made bsa load on every page at least once, fixed formatting, removed dead code
1 parent 6fbd169 commit c024c02

File tree

6 files changed

+11
-19
lines changed

6 files changed

+11
-19
lines changed

app/assets/javascripts/bsa.js.coffee

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
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)
2+
console.log('Loading BSA')
3+
e = document.createElement('script')
4+
e.type = 'text/javascript'
5+
e.async = !0
6+
e.src = document.location.protocol + '//s3.buysellads.com/ac/bsa.js'
7+
(document.getElementsByTagName('head')[0] or document.getElementsByTagName('body')[0]).appendChild(e)
98

109

1110
$(document).on 'page:change', ->

app/views/pages/faq.html.haml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
- title "FAQ"
22

3-
.container
3+
.container.clearfix
44
%h1 FAQ
55

66
.clearfix.sm-col.sm-col-6

app/views/protips/index.html.haml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,4 @@
8787
8888
-if show_ads?
8989
.clearfix.ml3.mt3
90-
#bsap_1305410.bsarocks.bsap_74f50e679004d8f4d62fec4b0f74ccf1
91-
-if Rails.env.development?
92-
%img{src: 'http://placehold.it/350x200'}
90+
#bsap_1305410.bsarocks.bsap_74f50e679004d8f4d62fec4b0f74ccf1

app/views/protips/show.html.haml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,7 @@
115115

116116
-if show_ads?
117117
.clearfix.ml3.mt3
118-
#bsap_1305410.bsarocks.bsap_74f50e679004d8f4d62fec4b0f74ccf1
119-
-if Rails.env.development?
120-
%img{src: 'http://placehold.it/350x200'}
118+
#bsap_1305410.bsarocks.bsap_74f50e679004d8f4d62fec4b0f74ccf1
121119

122120

123121
%script{ src: "https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js" }

app/views/streams/show.html.haml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,6 @@
8585

8686
-if show_ads?
8787
.clearfix.ml3.mt4
88-
-if Rails.env.production?
89-
#bsap_1305410.bsarocks.bsap_74f50e679004d8f4d62fec4b0f74ccf1
90-
-elsif Rails.env.development?
91-
%img{src: 'http://placehold.it/350x200'}
88+
#bsap_1305410.bsarocks.bsap_74f50e679004d8f4d62fec4b0f74ccf1
9289

9390
= render 'chat'

config/routes.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
get "/signin" => "clearance/sessions#new", as: :sign_in
2121
delete "/signout" => "clearance/sessions#destroy", as: :sign_out
2222
get "/signup" => "clearance/users#new", as: :sign_up
23-
get 'faq' => 'pages#show', page: 'faq', as: :faq
23+
get '/faq' => 'pages#show', page: 'faq', as: :faq
2424
get '/tos' => 'pages#show', page: 'tos', as: :tos
2525
get '/privacy_policy' => 'pages#show', page: 'privacy', as: :privacy
2626
get '/404' => "pages#show", page: 'not_found'

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy