Removed unused css and irrelevant comments and cleaned up formatting

This commit is contained in:
vi 2015-09-07 20:51:59 +10:00
parent b421fbc22b
commit c868d4892a
3 changed files with 16 additions and 51 deletions

View File

@ -37,13 +37,8 @@ PageTracker.current().on('change', function(url) {
}
// Reinitialize script so that the ad can reload
// window.adsbygoogle = [];
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.id="adsense_loader";
ga.src = '//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js';
// Creates array of postGoogle vars which are only elements starting with 'google' related to
// Adsense's googleads. This array is used in line 34 to undefine google elements related to Adsense only.
// Puts relevant elements back into script.
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
});

View File

@ -10,7 +10,6 @@
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>
{{else}}
<div style={{adWrapperStyle}}>
<ins class="adsbygoogle"
@ -23,7 +22,6 @@
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>
{{/if}}

View File

@ -15,20 +15,6 @@ register_css <<CSS
margin: 0 auto;
}
.google-dfp-ad .google-dfp-ad-label {
width: 728px;
margin: 0 auto;
}
.google-dfp-ad .google-dfp-ad-label h2 {
margin: 4px 0 !important;
color: #858a8c;
text-transform: uppercase;
font-size: 12px;
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-weight: normal;
}
.google-adsense {
padding: 3px;
margin-bottom: 10px;
@ -39,18 +25,4 @@ register_css <<CSS
margin: 0 auto;
}
.google-adsense .google-adsense-label {
width: 728px;
margin: 0 auto;
}
.google-adsense .google-adsense-label h2 {
margin: 4px 0 !important;
color: #858a8c;
text-transform: uppercase;
font-size: 12px;
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-weight: normal;
}
CSS