Last active
August 29, 2015 14:04
-
-
Save j127/fe8063f31529242b796d to your computer and use it in GitHub Desktop.
Add "Sponsor" to a page
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
<!-- 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> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bugfix added.