瀏覽代碼

百科点击巴利句子弹窗reader

visuddhinanda 5 年之前
父節點
當前提交
85e0a954b3
共有 1 個文件被更改,包括 13 次插入0 次删除
  1. 13 0
      app/term/note.js

+ 13 - 0
app/term/note.js

@@ -89,6 +89,19 @@ function note_refresh_new() {
               let strHtml = note_json_html(iterator);
               $("#" + id).html(strHtml);
             }
+            $(".palitext").click(function () {
+              let sentid = $(this).parent().attr("info").split("-");
+              window.open(
+                "../pcdl/reader.php?view=sent&book=" +
+                  sentid[0] +
+                  "&para=" +
+                  sentid[1] +
+                  "&begin=" +
+                  sentid[2] +
+                  "&end=" +
+                  sentid[3]
+              );
+            });
             note_ref_init();
             term_get_dict();
             note_channal_list();