Skip to content

Instantly share code, notes, and snippets.

@j127
Last active August 29, 2015 14:04
Show Gist options
  • Save j127/fe8063f31529242b796d to your computer and use it in GitHub Desktop.
Save j127/fe8063f31529242b796d to your computer and use it in GitHub Desktop.
Add "Sponsor" to a page
<!-- place the following line where you want the sponsor message to appear -->
<span class="s-message"></span>
<!-- place the following right before the </body> tag in the footer -->
<script>
$(document).ready(function () {
var message = "Sponsor",
target = $(".s-message");
// Check if there is that class on the page
if (target[0] != undefined) {
target.text(message);
}
});
</script>
@j127
Copy link
Author

j127 commented Aug 3, 2014

Bugfix added.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment