Created
August 25, 2015 13:41
-
-
Save erinrwhite/3b4def3438d26dadaaee to your computer and use it in GitHub Desktop.
Ex Libris Primo sign in link - custom CSS/JS - see in action at search.library.vcu.edu
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
.signin-link { | |
padding: 12px; | |
margin-bottom: 15px; | |
border-radius: 4px; | |
font-size: 14px; | |
font-weight: bold; | |
text-align: center; | |
background: #f8f4d6; | |
} | |
.signin-link a { | |
background-image: url('images/icon-signin.png'); | |
background-size: 17px; | |
background-repeat: no-repeat; | |
background-position: 2px 0px; | |
padding: 0 0 5px 27px; | |
} |
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
//add sign in link | |
var signinHref = $("li#exlidSignIn a").attr('href'); | |
var signinLink="<div class='signin-link'><a href=''>Sign in to see all search results</a></div>"; | |
if ($("li#exlidSignIn").is(':visible') && $('.EXLResultsTable').length){ | |
$('.EXLResultsHeader').after(signinLink); | |
$(".signin-link a").attr('href', signinHref); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See it in action: search.library.vcu.edu
Icon image: