Initial commit

This commit is contained in:
Daniel Brendel
2022-08-16 13:54:30 +02:00
commit 94353ac3c8
64 changed files with 32771 additions and 0 deletions

39
app/resources/js/app.js Normal file
View File

@ -0,0 +1,39 @@
/**
* app.js
*
* Put here your application specific JavaScript implementations
*/
window.vue = new Vue({
el: '#app',
data: {
},
methods: {
initNavBar: function() {
const $navbarBurgers = Array.prototype.slice.call(document.querySelectorAll('.navbar-burger'), 0);
if ($navbarBurgers.length > 0) {
$navbarBurgers.forEach( el => {
el.addEventListener('click', () => {
const target = el.dataset.target;
const $target = document.getElementById(target);
el.classList.toggle('is-active');
$target.classList.toggle('is-active');
});
});
}
},
}
});
import hljs from 'highlight.js';
import 'highlight.js/scss/github.scss';
window.hljs = hljs;
document.addEventListener('DOMContentLoaded', function(){
window.hljs.highlightAll();
});