Skip to content

Commit c47e9fa

Browse files
committed
Minor adjustments to v2.11
1 parent 26a9dfe commit c47e9fa

3 files changed

Lines changed: 5 additions & 75 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Here are the functions available in the TypingDNA class:
2424

2525

2626
### TypingDNA.getTypingPattern(optionsObject)
27-
This is the main function that outputs the user's typing pattern as a String
27+
This is the main function that outputs the user's typing pattern as a `String`
2828

2929
**Returns**: A typing pattern in `String` form
3030

typingdna.js

Lines changed: 2 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* https://api.typingdna.com/scripts/typingdna.js
44
* https://typingdna.com/scripts/typingdna.js (alternative)
55
*
6-
* @version 2.10
6+
* @version 2.11
77
* @author Raul Popa
88
* @copyright SC TypingDNA SRL, http://typingdna.com
99
* @license http://www.apache.org/licenses/LICENSE-2.0
@@ -97,7 +97,7 @@ function TypingDNA() {
9797
TypingDNA.prototype.defaultHistoryLength = TypingDNA.defaultHistoryLength;
9898
TypingDNA.prototype.maxSeekTime = TypingDNA.maxSeekTime;
9999
TypingDNA.prototype.maxPressTime = TypingDNA.maxPressTime;
100-
TypingDNA.version = 2.10;
100+
TypingDNA.version = 2.11;
101101
TypingDNA.flags = 0;
102102
TypingDNA.instance = this;
103103
TypingDNA.document = document;
@@ -648,33 +648,10 @@ function TypingDNA() {
648648
}
649649
}
650650

651-
/**
652-
* This function outputs the linear diagram typing pattern as a String
653-
* @param {String} str Optional: The string represented by the diagram
654-
* The function checks for the exact string (with minor typos) in the recorded
655-
* history. Any letters that are not included in the string will be ommited from
656-
* the output diagram typing pattern.
657-
* @return {String} The TypingDNA linear diagram typing pattern, comma separated.
658-
* A non-fixed vector of only numeric values separated by commas.
659-
* @example var typingPattern = tdna.getDiagram();
660-
* @example var typingPattern = tdna.getDiagram("Hello5g21?*");
661-
*/
662651
TypingDNA.getDiagram = function(str, textId) {
663652
return TypingDNA.history.getDiagram(false, str, textId);
664653
}
665654

666-
/**
667-
* This function outputs the extended linear diagram typing pattern as a String
668-
* Compared to getDiagram, it includes char codes (not safe for storage)
669-
* @param {String} str Optional: The string represented by the diagram
670-
* The function checks for the exact string (with minor typos) in the recorded
671-
* history. Any letters that are not included in the string will be ommited from
672-
* the output diagram typing pattern.
673-
* @return {String} The TypingDNA linear diagram typing pattern, comma separated.
674-
* A non-fixed vector of only numeric values separated by commas.
675-
* @example var typingPattern = tdna.getExtendedDiagram();
676-
* @example var typingPattern = tdna.getExtendedDiagram("Hello5g21?*");
677-
*/
678655
TypingDNA.getExtendedDiagram = function(str, textId) {
679656
return TypingDNA.history.getDiagram(true, str, textId);
680657
}
@@ -683,18 +660,6 @@ function TypingDNA() {
683660
return TypingDNA.mouse.history.getDiagram();
684661
}
685662

686-
/**
687-
* This function outputs the typing pattern as a String, in a new basic structure for
688-
* easy storage and usage in any kind of keystroke dynamics applications (e.g. typing
689-
* pattern matching, user recognition)
690-
* @param {Number} length Optional: The amount of history keystrokes to use for the
691-
* typing pattern. By default it will use the last 500 recorded keystrokes (or as many
692-
* available if less than 500).
693-
* @return {String} The TypingDNA typing pattern, comma separated.
694-
* A fixed vector of only numeric values separated by commas.
695-
* @example var typingPattern = tdna.get();
696-
* @example var typingPattern = tdna.get(200);
697-
*/
698663
TypingDNA.get = function(length) {
699664
var historyTotalLength = TypingDNA.history.stack.length;
700665
if (length == undefined) {
Lines changed: 2 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* https://api.typingdna.com/scripts/typingdna.js
44
* https://typingdna.com/scripts/typingdna.js (alternative)
55
*
6-
* @version 2.10
6+
* @version 2.11
77
* @author Raul Popa
88
* @copyright SC TypingDNA SRL, http://typingdna.com
99
* @license http://www.apache.org/licenses/LICENSE-2.0
@@ -97,7 +97,7 @@ function TypingDNA() {
9797
TypingDNA.prototype.defaultHistoryLength = TypingDNA.defaultHistoryLength;
9898
TypingDNA.prototype.maxSeekTime = TypingDNA.maxSeekTime;
9999
TypingDNA.prototype.maxPressTime = TypingDNA.maxPressTime;
100-
TypingDNA.version = 2.10;
100+
TypingDNA.version = 2.11;
101101
TypingDNA.flags = 0;
102102
TypingDNA.instance = this;
103103
TypingDNA.document = document;
@@ -648,33 +648,10 @@ function TypingDNA() {
648648
}
649649
}
650650

651-
/**
652-
* This function outputs the linear diagram typing pattern as a String
653-
* @param {String} str Optional: The string represented by the diagram
654-
* The function checks for the exact string (with minor typos) in the recorded
655-
* history. Any letters that are not included in the string will be ommited from
656-
* the output diagram typing pattern.
657-
* @return {String} The TypingDNA linear diagram typing pattern, comma separated.
658-
* A non-fixed vector of only numeric values separated by commas.
659-
* @example var typingPattern = tdna.getDiagram();
660-
* @example var typingPattern = tdna.getDiagram("Hello5g21?*");
661-
*/
662651
TypingDNA.getDiagram = function(str, textId) {
663652
return TypingDNA.history.getDiagram(false, str, textId);
664653
}
665654

666-
/**
667-
* This function outputs the extended linear diagram typing pattern as a String
668-
* Compared to getDiagram, it includes char codes (not safe for storage)
669-
* @param {String} str Optional: The string represented by the diagram
670-
* The function checks for the exact string (with minor typos) in the recorded
671-
* history. Any letters that are not included in the string will be ommited from
672-
* the output diagram typing pattern.
673-
* @return {String} The TypingDNA linear diagram typing pattern, comma separated.
674-
* A non-fixed vector of only numeric values separated by commas.
675-
* @example var typingPattern = tdna.getExtendedDiagram();
676-
* @example var typingPattern = tdna.getExtendedDiagram("Hello5g21?*");
677-
*/
678655
TypingDNA.getExtendedDiagram = function(str, textId) {
679656
return TypingDNA.history.getDiagram(true, str, textId);
680657
}
@@ -683,18 +660,6 @@ function TypingDNA() {
683660
return TypingDNA.mouse.history.getDiagram();
684661
}
685662

686-
/**
687-
* This function outputs the typing pattern as a String, in a new basic structure for
688-
* easy storage and usage in any kind of keystroke dynamics applications (e.g. typing
689-
* pattern matching, user recognition)
690-
* @param {Number} length Optional: The amount of history keystrokes to use for the
691-
* typing pattern. By default it will use the last 500 recorded keystrokes (or as many
692-
* available if less than 500).
693-
* @return {String} The TypingDNA typing pattern, comma separated.
694-
* A fixed vector of only numeric values separated by commas.
695-
* @example var typingPattern = tdna.get();
696-
* @example var typingPattern = tdna.get(200);
697-
*/
698663
TypingDNA.get = function(length) {
699664
var historyTotalLength = TypingDNA.history.stack.length;
700665
if (length == undefined) {

0 commit comments

Comments
 (0)