Jelajahi Sumber

添加term_get_used()

visuddhinanda@gmail.com 4 tahun lalu
induk
melakukan
4e5ad4e805
1 mengubah file dengan 12 tambahan dan 0 penghapusan
  1. 12 0
      public/app/term/term.js

+ 12 - 0
public/app/term/term.js

@@ -716,6 +716,18 @@ function term_get_dict() {
 	);
 	);
 }
 }
 
 
+function term_get_used(){
+    let output = [];
+    $("term").each(function () {
+        output.push({
+            pali:$(this).attr("pali"),
+            meaning:$(this).attr("mean")
+        });
+    });
+    return {
+        glossary:output
+    }
+}
 /*
 /*
 function term_popup_init() {
 function term_popup_init() {
   $(".term_link").each(function () {
   $(".term_link").each(function () {