Created
December 20, 2012 23:36
-
-
Save rafops/4349574 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="taboola-grid-2x2" style="width:620px; height: 280px; display: none;"></div> | |
<script type="text/javascript"> | |
window._taboola = window._taboola || []; | |
if(document.URL.match('/noticia/') && !document.URL.match('/videos-ge')) { | |
$("#taboola-grid-2x2").show(); | |
_taboola.push({ mode: 'grid-2x2', container: 'taboola-grid-2x2' }); | |
} | |
</script> | |
<div id="taboola-grid-2x2" class="taboola-sidebar" style="width:300px; height: 540px; display:none;"></div> | |
<script type="text/javascript"> | |
window._taboola = window._taboola || []; | |
if(document.URL.match('/$') || document.URL.match('/canal/')) { | |
$("div.taboola-sidebar").show(); | |
_taboola.push({ mode: 'grid-2x2', container: 'taboola-grid-2x2' }); | |
} | |
</script> | |
<script type="text/javascript"> | |
window._taboola = window._taboola || []; | |
if(document.URL.match('/videos-ge')) { | |
var videoId = $('div.genet-media object').attr('id'); | |
_taboola.push({ video: "" + videoId + "", visible: 'false' }); | |
} else if(document.URL.match('/noticia/')) { | |
_taboola.push({ category: 'auto' }); | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
lines 1-8 should be removed
line 15 should change to...
if(document.URL.match('/$') || document.URL.match('/canal/') || document.URL.match('/noticia/')) {
line 27 should change to...
_taboola.push({ article: 'auto' });