Browse Source

添加term_get_used()

visuddhinanda@gmail.com 4 years ago
parent
commit
4e5ad4e805
1 changed files with 12 additions and 0 deletions
  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() {
   $(".term_link").each(function () {