Skip to content

Instantly share code, notes, and snippets.

@erinrwhite
Created August 25, 2015 13:41
Show Gist options
  • Save erinrwhite/3b4def3438d26dadaaee to your computer and use it in GitHub Desktop.
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
.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;
}
//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);
}
@erinrwhite
Copy link
Author

See it in action: search.library.vcu.edu

screen shot 2016-04-19 at 10 46 50 am

Icon image:
icon-signin

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