Ekapp/skolehjem/resources/js/app.js

61 lines
1.7 KiB
JavaScript
Raw Normal View History

2020-06-09 06:24:20 +00:00
/**
* First we will load all of this project's JavaScript dependencies which
* includes Vue and other libraries. It is a great starting point when
* building robust, powerful web applications using Vue and Laravel.
*/
2020-06-15 06:56:21 +00:00
//Bootstrap
2020-06-08 08:04:45 +00:00
require('./bootstrap');
2020-06-15 06:56:21 +00:00
//Dependencies
2020-06-25 11:20:47 +00:00
require("moment");
require('./date');
2020-06-09 06:24:20 +00:00
2020-06-15 06:56:21 +00:00
//Sites
require('./sites/menuplan');
2020-06-15 13:09:13 +00:00
//Webapp hamburger menu
2020-06-25 13:11:59 +00:00
import { toggleMenu } from './navmenu/menu';
2020-06-15 06:56:21 +00:00
2020-06-25 06:28:36 +00:00
// require("./calendar/calendar");
2020-06-25 11:20:47 +00:00
// import { nextMonth, previousMonth, countDays, createCalendar, months, month, currentMonth, days, calendar } from "./calendar/calendar";
2020-06-25 06:28:36 +00:00
2020-06-09 06:38:05 +00:00
// window.Vue = require('vue');
2020-06-09 06:24:20 +00:00
2020-06-25 13:11:59 +00:00
//import { generateCalendar } from "./calendar/calendar";
2020-06-25 06:28:36 +00:00
2020-06-25 11:20:47 +00:00
// createCalendar();
//
// document.getElementById("month-next").onclick = nextMonth;
// document.getElementById("month-previous").onclick = previousMonth;
2020-06-25 06:28:36 +00:00
2020-06-09 06:24:20 +00:00
/**
* The following block of code may be used to automatically register your
* Vue components. It will recursively scan this directory for the Vue
* components and automatically register them with their "basename".
*
* Eg. ./components/ExampleComponent.vue -> <example-component></example-component>
*/
// const files = require.context('./', true, /\.vue$/i)
// files.keys().map(key => Vue.component(key.split('/').pop().split('.')[0], files(key).default))
2020-06-09 06:38:05 +00:00
// Vue.component('example-component', require('./components/ExampleComponent.vue').default);
2020-06-09 06:24:20 +00:00
/**
* Next, we will create a fresh Vue application instance and attach it to
* the page. Then, you may begin adding components to this application
* or customize the JavaScript scaffolding to fit your unique needs.
*/
2020-06-09 06:38:05 +00:00
// const app = new Vue({
// el: '#app',
// });
2020-06-25 11:20:47 +00:00
2020-06-25 13:11:59 +00:00
//generateCalendar();
document.getElementById("toggle").onclick = function () {
toggleMenu('menu');
};