exam_detail.js 567 B

1234567891011121314151617
  1. $(function () {
  2. let list_flex = $(".list .list-flex");
  3. Array.from(list_flex).forEach(item => {
  4. let list_item = $(item).find(".list-item");
  5. list_item.click(function (e) {
  6. if (e.target.className != "blue" && $(e.target).parent()[0].className == "p") {
  7. $("#toast").addClass("show")
  8. return false;
  9. }
  10. if (!$(this).data("href")) return false;
  11. window.location.href = $(this).data("href");
  12. })
  13. if (list_item.length == 1) {
  14. $(item).append(`<div style="visibility:hidden" class="list-item"></div>`);
  15. }
  16. })
  17. })