Skip to content

Instantly share code, notes, and snippets.

@kevee
Last active July 20, 2017 17:10
Show Gist options
  • Save kevee/6ab5a8e5e226d47acb92f887688dc1c8 to your computer and use it in GitHub Desktop.
Save kevee/6ab5a8e5e226d47acb92f887688dc1c8 to your computer and use it in GitHub Desktop.
CSUMB Javascript Snippets
//If they have social icons:
(function($) {
$(document).ready(function() {
$('#site-secondary-content .contact .block div:has(.social-icon)').before('<p><a href="https://csumb.edu/[something]">View staff</a></p>');
});
})(jQuery);
//If they don't have social icons:
(function($) {
$(document).ready(function() {
$('#site-secondary-content .contact').append('<p><a href="https://csumb.edu/[something]">View staff</a></p>');
});
})(jQuery);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment