Browse Source

Merge pull request #365 from visuddhinanda/master

字符数计算(临时)
Bhikkhu-Kosalla 5 years ago
parent
commit
8ad0cadcb9
1 changed files with 1 additions and 2 deletions
  1. 1 2
      app/term/note.js

+ 1 - 2
app/term/note.js

@@ -355,7 +355,6 @@ function render_channal_list(channalinfo) {
 		let svg_width = article_len;
 		let svg_width = article_len;
 		let svg_height = parseInt(article_len / 10);
 		let svg_height = parseInt(article_len / 10);
 		output += '<svg viewBox="0 0 ' + svg_width + " " + svg_height + '" width="100%" >';
 		output += '<svg viewBox="0 0 ' + svg_width + " " + svg_height + '" width="100%" >';
-
 		let curr_x = 0;
 		let curr_x = 0;
 		let allFinal = 0;
 		let allFinal = 0;
 		for (const iterator of channalinfo["final"]) {
 		for (const iterator of channalinfo["final"]) {
@@ -385,7 +384,7 @@ function render_channal_list(channalinfo) {
 			svg_height / 5 +
 			svg_height / 5 +
 			"' class='progress_bar_percent' style='stroke-width: 0; fill: rgb(100, 228, 100);'/>";
 			"' class='progress_bar_percent' style='stroke-width: 0; fill: rgb(100, 228, 100);'/>";
 		output += '<text x="0" y="' + svg_height + '" font-size="' + svg_height * 0.8 + '">';
 		output += '<text x="0" y="' + svg_height + '" font-size="' + svg_height * 0.8 + '">';
-		output += channalinfo["count"] + "/" + channalinfo["all"];
+		output += channalinfo["count"] + "/" + channalinfo["all"]+"@"+curr_x;
 		output += "</text>";
 		output += "</text>";
 		output += "<svg>";
 		output += "<svg>";
 		output += "</div>";
 		output += "</div>";