$(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', dots: true, infinite: true, speed: 1000, fade: true, cssEase: 'linear', prevArrow: '', nextArrow: '', }); });