Open external links in a new window
This commit is contained in:
parent
fd14271ca8
commit
d04bbbd7ee
1 changed files with 6 additions and 0 deletions
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue