Reorganizing folder structure ready for automated deployment.
This commit is contained in:
1 parent
0665ab292b
commit
3e33231440
27 files changed
+5
-4
No files matched your search
@@ -0,0 +1,26 @@
|
||||
$(() => {
|
||||
// Enable any tooltips on the page
|
||||
$('[data-toggle="tooltip"]').tooltip()
|
||||
|
||||
// Enable masonry layout
|
||||
$('.masonry').each(function() {
|
||||
var opts = { itemSelector: '.masonry-item' }
|
||||
if ($(this).hasClass('masonry-horizontal')) opts.horizontalOrder = true
|
||||
|
||||
$(this).masonry(opts)
|
||||
})
|
||||
|
||||
// Resize textareas to fit their content
|
||||
$('textarea').each(function() {
|
||||
$(this).height($(this)[0].scrollHeight)
|
||||
})
|
||||
|
||||
// Use google analytics in production
|
||||
if (!window.location.hostname.includes('dev')) {
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag(){dataLayer.push(arguments);}
|
||||
gtag('js', new Date());
|
||||
|
||||
gtag('config', 'UA-167178542-1');
|
||||
}
|
||||
});
|
||||
Reference in new issue
Block a user