Open external links in a new window

This commit is contained in:
Oleg Lavrovsky 2017-07-04 10:26:53 +02:00
parent fd14271ca8
commit d04bbbd7ee

View file

@ -1,5 +1,11 @@
$(document).ready(function() {
// All external links in a new window
$('a[href^="http"]').filter(function() {
return this.hostname && this.hostname !== location.hostname;
}).attr('target', '_blank');
// Initialise front page carousel component
$('.carousel-inner.slick').slick({
autoplay: true,
autoplaySpeed: '10000',