projectacrn.github.io/3.0/_static/acrn-custom.js

15 lines
556 B
JavaScript

/* Extra acrn-specific javascript */
$(document).ready(function(){
/* tweak logo link to the marketing site instead of doc site */
$( ".icon-home" ).attr({href: "https://projectacrn.org/", target: "_blank"});
/* open external links in a new tab */
$('a[class*=external]').attr({target: '_blank', rel: 'noopener'});
/* copy image alt tags in config option page as title for hover text tool tip by browser */
$("div#scenario-configuration-options img[alt]").each(function(){
$(this).attr('title', $(this).attr('alt'));
});
});