app.js 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. import $ from 'jquery';
  2. global.$ = $;
  3. import '../css/app.scss';
  4. import 'bootstrap';
  5. import 'font-awesome/css/font-awesome.css';
  6. import 'jquery-ui/themes/base/all.css';
  7. import 'jquery-ui/ui/widgets/autocomplete';
  8. import 'bootstrap-notify/bootstrap-notify';
  9. import 'animate.css/animate.css';
  10. import 'bootstrap-star-rating';
  11. import 'bootstrap-star-rating/css/star-rating.css';
  12. import 'bootstrap-star-rating/themes/krajee-fa/theme';
  13. import 'bootstrap-star-rating/themes/krajee-fa/theme.css';
  14. import './suivifilms2';
  15. import './addCollectionWidget';
  16. import './filtre';
  17. import '../filtrify/js/filtrify';
  18. import '../filtrify/css/filtrify.css'
  19. $(document).ready(function() {
  20. $(function() {
  21. $('[data-toggle="tooltip"]').tooltip();
  22. $('.add-another-collection-widget').addCollection();
  23. $('[data-fonction="switch"]').switchEtat();
  24. $('[data-toggle="star-filter"]').filtreParNote();
  25. $('[data-toggle="notify"]').each(function() {
  26. $.notify({
  27. message: $(this).data('message')
  28. },{
  29. type: $(this).data('type'),
  30. animate: {
  31. enter: 'animated fadeInRight',
  32. exit: 'animated fadeOutRight'
  33. },
  34. delay: 4000,
  35. offset: {
  36. x: 15,
  37. y: 70
  38. }
  39. })
  40. })
  41. })
  42. })