fork download
  1. if (batch === '2022-2023') {
  2. document.querySelectorAll('.card-container:nth-child(-n+3), .carousel-indicators:nth-child(-n+3)').forEach(function (el) {
  3. el.classList.remove('d-none');
  4. });
  5. } else if (batch === '2023-2024') {
  6. document.querySelectorAll('.card-container:nth-child(n+4), .carousel-indicators:nth-child(n+4)').forEach(function (el) {
  7. el.classList.remove('d-none');
  8. });
  9. } else (batch === '2024-2025') {
  10. document.querySelectorAll('.card-container:nth-child(n+5), .carousel-indicators:nth-child(n+5)').forEach(function (el) {
  11. el.classList.remove('d-none');
  12. });
  13. }
Success #stdin #stdout 0.04s 25812KB
stdin
Standard input is empty
stdout
if (batch === '2022-2023') {
              document.querySelectorAll('.card-container:nth-child(-n+3), .carousel-indicators:nth-child(-n+3)').forEach(function (el) {
                  el.classList.remove('d-none');
              });
          } else if (batch === '2023-2024') {
              document.querySelectorAll('.card-container:nth-child(n+4), .carousel-indicators:nth-child(n+4)').forEach(function (el) {
                  el.classList.remove('d-none'); 
              });
	      } else (batch === '2024-2025') {
              document.querySelectorAll('.card-container:nth-child(n+5), .carousel-indicators:nth-child(n+5)').forEach(function (el) {
                  el.classList.remove('d-none');
              });
          }