|
|
|
@ -5,6 +5,69 @@ jQuery(document).ready(function ($) {
|
|
|
|
|
$(document).foundation(); |
|
|
|
|
// Homepage blocks
|
|
|
|
|
$('.p-navigation__nav > ul').superfish(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//askus
|
|
|
|
|
$(".page-node-627 .page-title").prepend('<i class="fa-brands fa-weixin"></i>'); |
|
|
|
|
//computers
|
|
|
|
|
$(".page-node-2411 .page-title").prepend('<i class="fa-solid fa-laptop"></i>'); |
|
|
|
|
//search
|
|
|
|
|
$(".path-databases-all .page-title").prepend('<i class="fa-solid fa-magnifying-glass"></i>'); |
|
|
|
|
//print scan
|
|
|
|
|
$(".page-node-2415 .page-title").prepend('<i class="fa-solid fa-print"></i>'); |
|
|
|
|
//collections
|
|
|
|
|
$(".page-node-371 .page-title").prepend('<i class="fa-solid fa-image"></i>'); |
|
|
|
|
// tours
|
|
|
|
|
$(".page-node-99 .page-title").prepend('<i class="fa-solid fa-info-circle"></i>'); |
|
|
|
|
//booking
|
|
|
|
|
//$(".page-node-2409 .page-title").prepend('<i class="fa-solid fa-users"></i>');
|
|
|
|
|
// subject guides
|
|
|
|
|
$(".page-node-1291 .page-title").prepend('<i class="fa-solid fa-book"></i>'); |
|
|
|
|
// faq
|
|
|
|
|
$(".page-node-889 .page-title").prepend('<i class="fa-solid fa-question-circle"></i>'); |
|
|
|
|
// hours
|
|
|
|
|
$(".page-node-675 .page-title").prepend('<i class="fa-solid fa-clock"></i>'); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Drupal.behaviors.pageIcons = { |
|
|
|
|
attach: function attach(context, settings) { |
|
|
|
|
|
|
|
|
|
//$(".page-node-2411 .page-title").prepend('<i class="fa-solid fa-laptop"></i>');
|
|
|
|
|
//var pageTitle = $(".page-databases-all .page_title"); //select the element
|
|
|
|
|
//var icon = 'fa-search';
|
|
|
|
|
//pageTitle.prepend('<i class="fa ' + icon + '"></i>');
|
|
|
|
|
////==============================================
|
|
|
|
|
//var pageTitle = $(".section-bar-askus .page_title"); //select the element
|
|
|
|
|
//var icon = 'fa-weixin';
|
|
|
|
|
//pageTitle.prepend('<i class="fa ' + icon + '"></i>');
|
|
|
|
|
////==============================================
|
|
|
|
|
//var pageTitle = $(".section-computers .page_title"); //select the element
|
|
|
|
|
//var icon = 'fa-laptop';
|
|
|
|
|
//pageTitle.prepend('<i class="fa ' + icon + '"></i>');
|
|
|
|
|
////==============================================
|
|
|
|
|
//var pageTitle = $(".section-printing .page_title"); //select the element
|
|
|
|
|
//var icon = 'fa-print';
|
|
|
|
|
//pageTitle.prepend('<i class="fa ' + icon + '"></i>');
|
|
|
|
|
////==============================================
|
|
|
|
|
//var pageTitle = $(".section-peicollection .page_title"); //select the element
|
|
|
|
|
//var icon = 'fa-picture-o';
|
|
|
|
|
//pageTitle.prepend('<i class="fa ' + icon + '"></i>');
|
|
|
|
|
////==============================================
|
|
|
|
|
//var pageTitle = $(".section-tours .page_title"); //select the element
|
|
|
|
|
//var icon = 'fa-info-circle';
|
|
|
|
|
//pageTitle.prepend('<i class="fa ' + icon + '"></i>');
|
|
|
|
|
////==============================================
|
|
|
|
|
//var pageTitle = $(".section-sg .page_title"); //select the element
|
|
|
|
|
//var icon = 'fa-book';
|
|
|
|
|
//pageTitle.prepend('<i class="fa ' + icon + '"></i>');
|
|
|
|
|
////==============================================
|
|
|
|
|
//var pageTitle = $(".section-faq-frequently-asked-questions-about-library-resources-and-services .page_title"); //select the element
|
|
|
|
|
//var icon = 'fa-question-circle';
|
|
|
|
|
//pageTitle.prepend('<i class="fa ' + icon + '"></i>');
|
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
/* End document |
|
|
|
|
--------------------------*/ |
|
|
|
|
}); |
|
|
|
|