1
0
mirror of https://github.com/ipdb/website.git synced 2024-09-24 01:58:51 +02:00
website/_src/_assets/js/ipdb.js

28 lines
640 B
JavaScript
Raw Normal View History

2017-08-29 15:09:36 +02:00
/* global SmoothScroll */
2017-08-30 15:58:38 +02:00
/* global Autogrow */
2017-08-29 15:09:36 +02:00
/* eslint-disable spaced-comment */
//=include _dnt.js
//=include _newsletter.js
//=include smooth-scroll/dist/js/smooth-scroll.js
//=include textarea-autogrow/textarea-autogrow.js
/* eslint-enable spaced-comment */
2017-08-09 17:38:44 +02:00
2017-08-29 13:51:54 +02:00
document.addEventListener('DOMContentLoaded', () => {
2017-08-30 15:58:38 +02:00
//
// init smooth scroll
//
2017-08-29 13:51:54 +02:00
const scroll = new SmoothScroll('a[data-scroll]', {
easing: 'easeOutQuint'
})
2017-08-30 15:58:38 +02:00
//
// init textarea autogrow
//
const textarea = document.querySelector('textarea')
if (textarea) {
const growingTextarea = new Autogrow(textarea)
}
2017-08-29 13:51:54 +02:00
})