app.js 740 B

1234567891011121314151617181920212223242526
  1. /**
  2. * First we will load all of this project's JavaScript dependencies which
  3. * includes Vue and other libraries. It is a great starting point when
  4. * building robust, powerful web applications using Vue and Laravel.
  5. */
  6. require('./bootstrap');
  7. window.Vue = require('vue');
  8. /**
  9. * Next, we will create a fresh Vue application instance and attach it to
  10. * the page. Then, you may begin adding components to this application
  11. * or customize the JavaScript scaffolding to fit your unique needs.
  12. */
  13. Vue.component('example', require('./components/Example.vue'));
  14. const app = new Vue({
  15. el: '#app'
  16. });
  17. window.setTimeout(function () {
  18. $("#flash-message").fadeTo(500, 0).slideUp(500, function () {
  19. $(this).remove();
  20. });
  21. }, 3000);