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
|
|
|
|
2017-08-29 13:51:54 +02:00
|
|
|
// =include _dnt.js
|
|
|
|
// =include smooth-scroll/dist/js/smooth-scroll.js
|
2017-08-30 15:58:38 +02:00
|
|
|
// =include textarea-autogrow/textarea-autogrow.js
|
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
|
|
|
})
|