Skip to content

Instantly share code, notes, and snippets.

Created October 28, 2010 14:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/651456 to your computer and use it in GitHub Desktop.
Save anonymous/651456 to your computer and use it in GitHub Desktop.
$(document).ready(function(){
var targets = Drupal.settings.adslug.targets.split("\n");
$.each(targets, function(index, element) {
try {
if ($(element).length) {
$(element).append('<p class="adslug">' + Drupal.t(Drupal.settings.adslug.slug).toUpperCase() + '</p>');
}
} catch (err) {
alert(err.name + ' ' + err.message);
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment