public-health-ch/publichealth/static/js/main.js

22 lines
640 B
JavaScript
Raw Normal View History

2017-02-15 09:59:12 +00:00
$(document).ready(function() {
2017-01-27 16:06:53 +00:00
2017-07-04 08:26:53 +00:00
// 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
2017-01-27 16:06:53 +00:00
$('.carousel-inner.slick').slick({
autoplay: true,
autoplaySpeed: '10000',
dots: true,
infinite: true,
speed: 1000,
fade: true,
cssEase: 'linear',
prevArrow: '<span class="arrow left glyphicon glyphicon-chevron-left" aria-hidden="true">Previous</span>',
nextArrow: '<span class="arrow right glyphicon glyphicon-chevron-right" aria-hidden="true">Next</span>',
});
});