(function($){
$(document).ready(function(){
$(document).tooltip({
content: function () {
return $(this).prop('title');
},
items: '.service-link',
tooltipClass: 'itatut-tooltip-style',
});
});
})(jQuery);
;
(function($){
$(document).ready(function(){
//Here's where we load some static block icons
var getHelpIcon = $("");
var quickLinksIcon = $("");
var additionalITResourcesIcon = $("");
var newsBlockIcon = $("");
var howDoIicon = $("");
var getHelpBlock = $("#block-block-4");
var quickLinksBlock = $("#block-block-5");
var additionalITResourcesBlock = $("#block-block-3");
var newsBlock = $("#block-views-news-block-1");
var howDoIBlock = $("#block-block-2");
getHelpBlock.prepend(getHelpIcon);
quickLinksBlock.prepend(quickLinksIcon);
additionalITResourcesBlock.prepend(additionalITResourcesIcon);
newsBlock.prepend(newsBlockIcon);
howDoIBlock.prepend(howDoIicon);
//Here's the "scroll me back up" button, so that if you're
// down on a page and want to go back up, you can click and do that
// easily.
// var scrollBackupBtn = $("");
// $("body").append(scrollBackupBtn);
// window.addEventListener("scroll",function() {
// if(window.scrollY > 500) {
// scrollBackupBtn.show();
// }
// else {
// scrollBackupBtn.hide();
// }
// },false);
// scrollBackupBtn.on("click", function(){
// $('html, body').animate({
// scrollTop: 0
// }, 1000);
// });
// Here's for the static block "Get Help" arrow button
// that opens up the expanded view.
expanded = false;
$("#get-help-block-expand-btn").click(function(){
$get_help_menu = $("#get-help-block-expanded-section");
$expander_icon = $("#get-help-expander-icon");
$expander_open_icon = "engaged";
$expander_closed_icon = "fa-arrow-down";
switch(expanded){
case true: $get_help_menu
.removeClass('fade-in')
.addClass('fade-out')
.addClass('hidden')
.removeClass('visible');
$expander_icon.removeClass($expander_open_icon);
// .removeClass($expander_open_icon)
// .addClass("fa");
break;
case false:
$get_help_menu
.addClass('visible')
.removeClass('hidden')
.removeClass('fade-out')
.addClass('fade-in');
$expander_icon.addClass($expander_open_icon);
// .removeClass($expander_closed_icon)
// .addClass("fa");
break;
}
expanded = !expanded;
});
});
// Simulate click on icon enter press for accessibility.
$("#get-help-expander-icon").keypress(function (e) {
var key = e.which;
if(key == 13) // the enter key code
{
$(this).click();
return false;
}
});
})(jQuery);
;