mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-03-30 19:22:21 +00:00
Ads on right nav
This commit is contained in:
@@ -35,7 +35,33 @@
|
||||
</div>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<br><br>
|
||||
<br>
|
||||
<% if Rails.env.production? %>
|
||||
<div class="adLNav">
|
||||
<script type="text/javascript">
|
||||
if(WURFL.is_mobile){
|
||||
//Mobile and tablet ad
|
||||
(function (){
|
||||
if(window.CHITIKA===undefined) {window.CHITIKA = {'units' :[]};};
|
||||
var unit = {"calltype":"async[2]","publisher":"cwimer","width":468,"height":60,"sid":"Chitika Default"};
|
||||
var placement_id = window.CHITIKA.units.length;
|
||||
window.CHITIKA.units.push(unit);
|
||||
document.write('<div id="chitikaAdBlock-' + placement_id + '"></div>');
|
||||
}());
|
||||
} else {
|
||||
//Desktop ad
|
||||
(function (){
|
||||
if(window.CHITIKA===undefined) {window.CHITIKA = {'units' :[]};};
|
||||
var unit = {"calltype":"async[2]","publisher":"cwimer","width":300,"height":250,"sid":"Chitika Default"};
|
||||
var placement_id = window.CHITIKA.units.length;
|
||||
window.CHITIKA.units.push(unit);
|
||||
document.write('<div id="chitikaAdBlock-' + placement_id + '"></div>');
|
||||
}());
|
||||
}
|
||||
</script>
|
||||
<script type="text/javascript" src="//cdn.chitika.net/getads.js" async></script>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<% if Rails.env.production? %>
|
||||
<div class="ad">
|
||||
<div class="adRnav">
|
||||
<script type="text/javascript">
|
||||
if(WURFL.is_mobile){
|
||||
//Mobile and tablet ad
|
||||
|
||||
Reference in New Issue
Block a user