[Pcsclite-git-commit] [website] 01/02: Reader selection: add % of readers in the result
Ludovic Rousseau
rousseau at moszumanska.debian.org
Sat Dec 26 17:08:53 UTC 2015
This is an automated email from the git hooks/post-receive script.
rousseau pushed a commit to branch master
in repository website.
commit de0e430b9b5225435a569e0e8760e4fb1cf4de98
Author: Ludovic Rousseau <ludovic.rousseau at free.fr>
Date: Sat Dec 26 13:35:13 2015 +0100
Reader selection: add % of readers in the result
The page now also displays the percentage of readers matchting the
filters.
With no filter:
Results
398 readers (100.00%)
With dwFeatures=11
Results
6 readers (1.51%)
---
select_readers/js/main.js | 1 +
1 file changed, 1 insertion(+)
diff --git a/select_readers/js/main.js b/select_readers/js/main.js
index 8e4eda3..7253a68 100644
--- a/select_readers/js/main.js
+++ b/select_readers/js/main.js
@@ -109,6 +109,7 @@ function update_list() {
txt = "1 reader";
} else {
txt = Filtered_readers.length + " readers";
+ txt += " (" + (100 * Filtered_readers.length / Object.keys(readers).length).toFixed(2) + "%)";
}
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pcsclite/website.git
More information about the Pcsclite-cvs-commit
mailing list