layCrumbs(70611); jQuery("article header h1").append("Quick access to Law ebook collections"); jQuery("#linkFilter").change(function(){ var filterText = jQuery(this).val().toUpperCase(); if(filterText !== "") { jQuery(".indexBrowser").hide(); jQuery("#onlineResources").find(".compare:not(:contains(" + filterText + "))").parent().hide(); jQuery("#onlineResources").find(".compare:contains(" + filterText + ")").parent().show(); } else { jQuery(".onlineResource").show(); jQuery(".indexBrowser").show(); } }).keyup(function(){ jQuery(this).change(); }); /* removed status indication from contact-us boxes 20220719 jQuery.ajax({ url: 'https://libraryh3lp.com/presence/jid/lawreference/chat.libraryh3lp.com/js', success: function(data){ if((jabber_resources[0] !== undefined) && (jabber_resources[0]['show']=='available')) jQuery('#chatStatus').html(' - online'); }, dataType: 'script' }); jQuery.ajax({ url: 'https://libraryh3lp.com/presence/jid/lawstudentcomputing/chat.libraryh3lp.com/js', success: function(data){ if((jabber_resources[0] !== undefined) && (jabber_resources[0]['show']=='available')) jQuery('#techChatStatus').html(' - online'); }, dataType: 'script' }); */ function fireTopDB(){ window.open(jQuery("select[name='topDatabase']").val(), '_blank'); return false; } function layCrumbs(pageID, terminalLabel = false){ var target = jQuery.find("#menu-library-menu .page-item-" + pageID)[0]; if(target) { lis = jQuery(target).parentsUntil("#menu-library-menu").filter("li"); var crumbs = Array(lis.length); for(var i = 0; i < lis.length; i++){ firstChild = jQuery(lis[i]).children()[0]; if(firstChild.tagName.match(/^a$/i)) { crumbs[i] = firstChild.outerHTML; } else if(firstChild.tagName.match(/button/i)){ crumbs[i] = firstChild.innerText; } } crumbs.reverse(); if(terminalLabel) crumbs.push(terminalLabel); crumbsString = crumbs.join(' ') jQuery('.breadcrumbs .row span:last').replaceWith(crumbsString); } } function toTitleCase(str) { return str.replace(/\w\S*/g, function(txt){return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase();}); } jQuery(document).ready(function(){ jQuery('#menu-footer-menu').append("
  • Staff Tools
  • "); });