-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 22e63b9
Showing
13 changed files
with
6,660 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
node_modules | ||
.idea/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"cSpell.words": [ | ||
"fingerprintjs" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
module.exports = { | ||
presets: [ | ||
[ | ||
"@babel/preset-env", | ||
{ | ||
targets: { | ||
esmodules: true | ||
} | ||
} | ||
] | ||
], | ||
plugins: [ | ||
"@babel/plugin-proposal-object-rest-spread", | ||
"@babel/plugin-proposal-class-properties" | ||
] | ||
}; |
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<meta http-equiv="X-UA-Compatible" content="ie=edge" /> | ||
<script src="./fingerprint.js"></script> | ||
<title>Browser example</title> | ||
</head> | ||
<body> | ||
<div id="root"></div> | ||
|
||
<script> | ||
var uniqueId; | ||
var fingerprint = new Fingerprint(); | ||
// options = { | ||
// COOKIE_NAME: "__fingerprint", | ||
// COOKIE_EXPIRE_TIME: 12, | ||
// // Fingerprint options check https://github.com/Valve/fingerprintjs2 | ||
// fpParams: { | ||
// fonts: { extendedJsFonts: false } | ||
// } | ||
// }; | ||
|
||
fingerprint.generate(function(id) { | ||
console.log(id); | ||
uniqueId = id; | ||
|
||
document.getElementById("root").innerHTML = | ||
" This is a browser example where and api is called to generate first fingerprint " + | ||
uniqueId; | ||
}); | ||
</script> | ||
</body> | ||
</html> |
Oops, something went wrong.