app.js 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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 './filtrenotes';
  17. import './filtre';
  18. import '../filtrify/js/filtrify';
  19. import '../filtrify/css/filtrify.css'
  20. $(document).ready(function() {
  21. $(function() {
  22. $.filtrify("tableFilms", "placeHolder");
  23. $('#filtre').on("keyup", function () {
  24. $(this).filtre();
  25. });
  26. $('[data-toggle="tooltip"]').tooltip();
  27. $('.add-another-collection-widget').addCollection();
  28. $('[data-fonction="switch"]').switchEtat();
  29. $('[data-toggle="star-filter"]').filtreNote();
  30. $('[data-toggle="notify"]').each(function() {
  31. $.notify({
  32. message: $(this).data('message')
  33. },{
  34. type: $(this).data('type'),
  35. animate: {
  36. enter: 'animated fadeInRight',
  37. exit: 'animated fadeOutRight'
  38. },
  39. delay: 4000,
  40. offset: {
  41. x: 15,
  42. y: 70
  43. }
  44. })
  45. })
  46. })
  47. })