index.js 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. window.HELP_IMPROVE_VIDEOJS = false;
  2. $(document).ready(function() {
  3. // Check for click events on the navbar burger icon
  4. var options = {
  5. slidesToScroll: 1,
  6. slidesToShow: 1,
  7. loop: true,
  8. infinite: true,
  9. autoplay: true,
  10. autoplaySpeed: 5000,
  11. }
  12. // Initialize all div with carousel class
  13. var carousels = bulmaCarousel.attach('.carousel', options);
  14. bulmaSlider.attach();
  15. })
  16. $(document).ready(function() {
  17. var trs = $('#tabResults').children("[class!=th]")
  18. for (let item of trs) {
  19. if ($(item).children().length > 0) {
  20. $(item).children()[1].remove()
  21. $(item).children()[1].remove()
  22. $(item).children()[5].remove()
  23. $(item).children()[$(item).children().length - 1].remove()
  24. }
  25. }
  26. $('.buttonGroup').on('click', (e) => {
  27. // console.log(e.target.tagName)
  28. if (e.target.tagName !== 'BUTTON') {
  29. return
  30. } else if (e.target.value === 'ALL') {
  31. $('#tabResults').children().show()
  32. } else {
  33. $('#tabResults').children().hide()
  34. $('#' + e.target.value).parent().nextUntil('.th').show()
  35. $('#' + e.target.value).parent().show()
  36. }
  37. })
  38. $('#myTable').DataTable({
  39. "pageLength": 50,
  40. "lengthChange": false
  41. });
  42. });