Last active
July 20, 2017 17:10
-
-
Save kevee/6ab5a8e5e226d47acb92f887688dc1c8 to your computer and use it in GitHub Desktop.
CSUMB Javascript Snippets
This file contains 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
//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