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