-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathdemo.html
258 lines (254 loc) · 18.8 KB
/
demo.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no user-scalable=no">
<meta name="description" content="Browser identification demo, fraud detection demo">
<link rel="preconnect" href="https://f.fingerprintjs.com">
<link rel="preconnect" href="https://api.rollbar.com">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
<link href='https://api.tiles.mapbox.com/mapbox-gl-js/v1.4.1/mapbox-gl.css' rel='stylesheet' />
<link href="https://fonts.googleapis.com/css?family=Miriam+Libre&display=swap" rel="stylesheet">
<link rel="stylesheet" href="/dist/main.css">
<title>FingerprintJS Pro demo</title>
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-134245186-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', 'UA-134245186-1', {
'custom_map': { 'dimension1': 'branch' },
'branch': 'master'
});
</script>
<script>
var _rollbarConfig = {
accessToken: "7cccede652874b068cc3f9bb1e05b8e4",
captureUncaught: true,
captureUnhandledRejections: true,
payload: { environment: "production" }
};
!function (r) { function e(n) { if (o[n]) return o[n].exports; var t = o[n] = { exports: {}, id: n, loaded: !1 }; return r[n].call(t.exports, t, t.exports, e), t.loaded = !0, t.exports } var o = {}; return e.m = r, e.c = o, e.p = "", e(0) }([function (r, e, o) { "use strict"; var n = o(1), t = o(4); _rollbarConfig = _rollbarConfig || {}, _rollbarConfig.rollbarJsUrl = _rollbarConfig.rollbarJsUrl || "https://cdnjs.cloudflare.com/ajax/libs/rollbar.js/2.4.6/rollbar.min.js", _rollbarConfig.async = void 0 === _rollbarConfig.async || _rollbarConfig.async; var a = n.setupShim(window, _rollbarConfig), l = t(_rollbarConfig); window.rollbar = n.Rollbar, a.loadFull(window, document, !_rollbarConfig.async, _rollbarConfig, l) }, function (r, e, o) { "use strict"; function n(r) { return function () { try { return r.apply(this, arguments) } catch (r) { try { console.error("[Rollbar]: Internal error", r) } catch (r) { } } } } function t(r, e) { this.options = r, this._rollbarOldOnError = null; var o = s++; this.shimId = function () { return o }, "undefined" != typeof window && window._rollbarShims && (window._rollbarShims[o] = { handler: e, messages: [] }) } function a(r, e) { if (r) { var o = e.globalAlias || "Rollbar"; if ("object" == typeof r[o]) return r[o]; r._rollbarShims = {}, r._rollbarWrappedError = null; var t = new p(e); return n(function () { e.captureUncaught && (t._rollbarOldOnError = r.onerror, i.captureUncaughtExceptions(r, t, !0), i.wrapGlobals(r, t, !0)), e.captureUnhandledRejections && i.captureUnhandledRejections(r, t, !0); var n = e.autoInstrument; return e.enabled !== !1 && (void 0 === n || n === !0 || "object" == typeof n && n.network) && r.addEventListener && (r.addEventListener("load", t.captureLoad.bind(t)), r.addEventListener("DOMContentLoaded", t.captureDomContentLoaded.bind(t))), r[o] = t, t })() } } function l(r) { return n(function () { var e = this, o = Array.prototype.slice.call(arguments, 0), n = { shim: e, method: r, args: o, ts: new Date }; window._rollbarShims[this.shimId()].messages.push(n) }) } var i = o(2), s = 0, d = o(3), c = function (r, e) { return new t(r, e) }, p = d.bind(null, c); t.prototype.loadFull = function (r, e, o, t, a) { var l = function () { var e; if (void 0 === r._rollbarDidLoad) { e = new Error("rollbar.js did not load"); for (var o, n, t, l, i = 0; o = r._rollbarShims[i++];)for (o = o.messages || []; n = o.shift();)for (t = n.args || [], i = 0; i < t.length; ++i)if (l = t[i], "function" == typeof l) { l(e); break } } "function" == typeof a && a(e) }, i = !1, s = e.createElement("script"), d = e.getElementsByTagName("script")[0], c = d.parentNode; s.crossOrigin = "", s.src = t.rollbarJsUrl, o || (s.async = !0), s.onload = s.onreadystatechange = n(function () { if (!(i || this.readyState && "loaded" !== this.readyState && "complete" !== this.readyState)) { s.onload = s.onreadystatechange = null; try { c.removeChild(s) } catch (r) { } i = !0, l() } }), c.insertBefore(s, d) }, t.prototype.wrap = function (r, e, o) { try { var n; if (n = "function" == typeof e ? e : function () { return e || {} }, "function" != typeof r) return r; if (r._isWrap) return r; if (!r._rollbar_wrapped && (r._rollbar_wrapped = function () { o && "function" == typeof o && o.apply(this, arguments); try { return r.apply(this, arguments) } catch (o) { var e = o; throw e && ("string" == typeof e && (e = new String(e)), e._rollbarContext = n() || {}, e._rollbarContext._wrappedSource = r.toString(), window._rollbarWrappedError = e), e } }, r._rollbar_wrapped._isWrap = !0, r.hasOwnProperty)) for (var t in r) r.hasOwnProperty(t) && (r._rollbar_wrapped[t] = r[t]); return r._rollbar_wrapped } catch (e) { return r } }; for (var u = "log,debug,info,warn,warning,error,critical,global,configure,handleUncaughtException,handleUnhandledRejection,captureEvent,captureDomContentLoaded,captureLoad".split(","), f = 0; f < u.length; ++f)t.prototype[u[f]] = l(u[f]); r.exports = { setupShim: a, Rollbar: p } }, function (r, e) { "use strict"; function o(r, e, o) { if (r) { var t; "function" == typeof e._rollbarOldOnError ? t = e._rollbarOldOnError : r.onerror && !r.onerror.belongsToShim && (t = r.onerror, e._rollbarOldOnError = t); var a = function () { var o = Array.prototype.slice.call(arguments, 0); n(r, e, t, o) }; a.belongsToShim = o, r.onerror = a } } function n(r, e, o, n) { r._rollbarWrappedError && (n[4] || (n[4] = r._rollbarWrappedError), n[5] || (n[5] = r._rollbarWrappedError._rollbarContext), r._rollbarWrappedError = null), e.handleUncaughtException.apply(e, n), o && o.apply(r, n) } function t(r, e, o) { if (r) { "function" == typeof r._rollbarURH && r._rollbarURH.belongsToShim && r.removeEventListener("unhandledrejection", r._rollbarURH); var n = function (r) { var o, n, t; try { o = r.reason } catch (r) { o = void 0 } try { n = r.promise } catch (r) { n = "[unhandledrejection] error getting `promise` from event" } try { t = r.detail, !o && t && (o = t.reason, n = t.promise) } catch (r) { t = "[unhandledrejection] error getting `detail` from event" } o || (o = "[unhandledrejection] error getting `reason` from event"), e && e.handleUnhandledRejection && e.handleUnhandledRejection(o, n) }; n.belongsToShim = o, r._rollbarURH = n, r.addEventListener("unhandledrejection", n) } } function a(r, e, o) { if (r) { var n, t, a = "EventTarget,Window,Node,ApplicationCache,AudioTrackList,ChannelMergerNode,CryptoOperation,EventSource,FileReader,HTMLUnknownElement,IDBDatabase,IDBRequest,IDBTransaction,KeyOperation,MediaController,MessagePort,ModalWindow,Notification,SVGElementInstance,Screen,TextTrack,TextTrackCue,TextTrackList,WebSocket,WebSocketWorker,Worker,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload".split(","); for (n = 0; n < a.length; ++n)t = a[n], r[t] && r[t].prototype && l(e, r[t].prototype, o) } } function l(r, e, o) { if (e.hasOwnProperty && e.hasOwnProperty("addEventListener")) { for (var n = e.addEventListener; n._rollbarOldAdd && n.belongsToShim;)n = n._rollbarOldAdd; var t = function (e, o, t) { n.call(this, e, r.wrap(o), t) }; t._rollbarOldAdd = n, t.belongsToShim = o, e.addEventListener = t; for (var a = e.removeEventListener; a._rollbarOldRemove && a.belongsToShim;)a = a._rollbarOldRemove; var l = function (r, e, o) { a.call(this, r, e && e._rollbar_wrapped || e, o) }; l._rollbarOldRemove = a, l.belongsToShim = o, e.removeEventListener = l } } r.exports = { captureUncaughtExceptions: o, captureUnhandledRejections: t, wrapGlobals: a } }, function (r, e) { "use strict"; function o(r, e) { this.impl = r(e, this), this.options = e, n(o.prototype) } function n(r) { for (var e = function (r) { return function () { var e = Array.prototype.slice.call(arguments, 0); if (this.impl[r]) return this.impl[r].apply(this.impl, e) } }, o = "log,debug,info,warn,warning,error,critical,global,configure,handleUncaughtException,handleUnhandledRejection,_createItem,wrap,loadFull,shimId,captureEvent,captureDomContentLoaded,captureLoad".split(","), n = 0; n < o.length; n++)r[o[n]] = e(o[n]) } o.prototype._swapAndProcessMessages = function (r, e) { this.impl = r(this.options); for (var o, n, t; o = e.shift();)n = o.method, t = o.args, this[n] && "function" == typeof this[n] && ("captureDomContentLoaded" === n || "captureLoad" === n ? this[n].apply(this, [t[0], o.ts]) : this[n].apply(this, t)); return this }, r.exports = o }, function (r, e) { "use strict"; r.exports = function (r) { return function (e) { if (!e && !window._rollbarInitialized) { r = r || {}; for (var o, n, t = r.globalAlias || "Rollbar", a = window.rollbar, l = function (r) { return new a(r) }, i = 0; o = window._rollbarShims[i++];)n || (n = o.handler), o.handler._swapAndProcessMessages(l, o.messages); window[t] = n, window._rollbarInitialized = !0 } } } }]);
</script>
</head>
<body>
<div class="bg-primary navbar-dark text-white">
<div class="container">
<nav class="navbar px-0 navbar-expand-lg navbar-dark">
<a href="/" class="navbar-brand">
<span class="miriam">FingerprintJS Pro</span>
</a>
<a href="/pricing" class="text-decoration-none text-light"> Pricing </a>
<a href="https://docs.fingerprintjs.com/pro/" target="_blank" class="p-3 text-decoration-none text-light"> Docs </a>
<a href="https://dashboard.fingerprintjs.com/signup" target="_blank", class="p-3 text-light"><b> Start Trial</b></a>
</nav>
</div>
</div>
<div id="demo" class="container">
<div class="row">
<div class="col-12">
<h1 class="demo-h1 text-center mt-3">Browser Fingerprinting API Demo</h1>
<h4 class="text-center"><strong class="red">99.5%</strong> identification accuracy</h4>
</div>
<div class="col-12 order-lg-3">
<form id="email-form" method="POST" action="#start-trial" v-on:submit.prevent="emailFormSubmit()">
<div class="row no-gutters mt-3">
<div class="col-12 col-lg-4">
<div class="form-label-group">
<input id="lead-email1" type="email" name="lead-email" class="lead-input form-control form-control-lg"
autocomplete="off" placeholder="Enter your email" v-model="lead.email" />
<label for="lead-email1">Your work email</label>
</div>
</div>
<div class="col-12 col-lg-2">
<button type="submit" class="lead-submit btn btn-primary btn-block ml-lg-3">Talk to an expert</button>
</div>
</div>
</form>
</div>
<div class="col-12">
<h1 id="vid-container" class="miriam text-center text-md-left mt-2 pt-3">
Your ID:
<span class="red fw-900" v-cloak>{{currentVisit.visitorId}}</span>
</h1>
<div class="card">
<h5 class="card-header miriam text-center text-md-left" v-if="false">
LOADING...
</h5>
<h5 class="card-header miriam text-center text-md-left" v-cloak
v-bind:class="{'incognito-header': currentVisit.incognito}">
<img src="/img/incognito.svg" v-if="currentVisit.incognito" v-cloak />
YOUR CURRENT VISIT
</h5>
<div class="card-body p-0">
<div class="row no-gutters">
<div class="col-lg-7">
<table class="table table-borderless table-compact m-2">
<tbody>
<tr>
<th class="text-monospace">Location:</th>
<td class="miriam" v-cloak>
{{currentVisit.formattedLocation()}}
</td>
</tr>
<tr>
<th class="text-monospace">Browser:</th>
<td class="miriam" v-cloak>{{currentVisit.formattedBrowser()}}</td>
</tr>
<tr>
<th class="text-monospace">
Incognito?
</th>
<td class="miriam" v-cloak>
<span v-if="!currentVisit.incognito">
{{currentVisit.formattedIncognito()}}
<small>(open this demo in private tab to see it in action)</small>
</span>
<b v-if="currentVisit.incognito">
{{currentVisit.formattedIncognito()}}
</b>
</td>
</tr>
<tr>
<th class="text-monospace">Bot?</th>
<td class="miriam" v-cloak>{{currentVisit.formattedBot()}}</td>
</tr>
<tr>
<th class="text-monospace">IP:</th>
<td class="miriam" v-cloak>{{currentVisit.ip}}</td>
</tr>
</tbody>
</table>
</div>
<div id="current-visit-map-container" class="col-lg-5" style="min-height: 250px">
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col">
<div v-cloak v-if="!currentVisit.visitorFound">
<h2 class="text-center miriam my-5">Demo visit history</h2>
<img src="/img/demo-history.png" width="100%" />
<button id="show-my" class="btn btn-large btn-danger container-centered" v-on:click="refresh()">
<h2>show my visit history</h2>
</button>
</div>
<div v-cloak v-if="visits.length > 0">
<h2 class="miriam my-4 text-center text-md-left">Your visit history</h2>
<div class="card mb-2" v-for="visit in visits">
<div class="card-header" v-bind:class="{ 'incognito-header': visit.incognito }">
<div class="row">
<div class="miriam">
<strong>
<span> </span>
<img src="/img/incognito.svg" v-if="visit.incognito" v-cloak />
visited {{visit.formattedTimeAgo()}}
<button class="btn btn-sm btn-outline-secondary py-0" v-on:click="visit.onArrowClick()">
<small v-if="visit.collapsed">show more</small>
<small v-if="!visit.collapsed">hide</small>
</button>
</strong>
</div>
</div>
</div>
<div class="card-body p-0" v-bind:class="{collapse: visit.collapsed}">
<div class="row no-gutters">
<div class="col-lg-7">
<table class="table table-borderless table-compact m-2">
<tbody>
<tr>
<th class="text-monospace">Location:</th>
<td class="miriam" v-cloak>{{visit.formattedLocation()}}</td>
</tr>
<tr>
<th class="text-monospace">Browser:</th>
<td class="miriam" v-cloak>{{visit.formattedBrowser()}}</td>
</tr>
<tr>
<th class="text-monospace">Incognito?</th>
<td class="miriam" v-cloak>{{visit.formattedIncognito()}}</td>
</tr>
<tr>
<th class="text-monospace">IP:</th>
<td class="miriam" v-cloak>{{visit.ip}}</td>
</tr>
<tr>
<th class="text-monospace">Time:</th>
<td class="miriam" v-cloak>{{visit.formattedDateTime()}}</td>
</tr>
</tbody>
</table>
</div>
<div class="col-lg-5" v-bind:id="visit.mapContainerId" style="min-height: 200px"></div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="overlay" v-cloak v-if="leadMode">
<button type="button" class="overlay-close" v-on:click="leadMode=false">Close</button>
<div class="container">
<div class="row">
<div class="col-12 col-lg-6 offset-lg-3">
<h2 class="overlay-header mb-4">Talk to an expert</h2>
<form v-on:submit.prevent="fullFormSubmit()">
<div class="form-label-group">
<input id="lead-email2" type="email" name="lead-email" autocomplete="off" autocapitalize="none"
class="lead-input form-control form-control-lg" placeholder="Enter your email" required
v-model="lead.email" />
<label for="lead-email">Work email</label>
</div>
<div class="form-label-group">
<input id="lead-website2" type="text" name="lead-website" autocomplete="off" autocapitalize="none"
class="lead-input form-control form-control-lg" placeholder="Enter your website" required
v-model="lead.website" />
<label for="lead-email">Your company website</label>
</div>
<div class="form-group text-right">
<button type="submit" class="lead-submit btn btn-primary ml-2" :disabled="leadSubmitting">
{{leadSubmitting ? "Submitting" : "Send"}}
</button>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<div class="container-fluid mt-3 footer-container">
<footer>
<div class="container">
<div class="row">
<div class="col text-center mt-3 text-lg-left">
<a href="https://docs.fingerprintjs.com/pro/legal/terms-of-service" style="color:white" target="_blank">
<h5>Terms and conditions</h5>
</a>
<a href="https://docs.fingerprintjs.com/pro/legal/privacy-policy" style="color:white" target="_blank">
<h5>Privacy policy</h5>
</a>
<ul class="list-unstyled text-small">
<li class="py-2">
<i class="mdi mdi-email"></i>
<a style="color:white" href="mailto:[email protected]">[email protected]</a></li>
<!-- <li class="py-2">
<i class="mdi mdi-phone"></i>
<a style="color:white" href="tel:+13313307266">+1(331)330-7266</a></li> -->
<li class="py-2">
<i class="mdi mdi-near-me"></i>
<span class="white">
1440 W. Taylor St #735, Chicago, IL 60607, USA</li>
</span>
</ul>
<small class="d-block mb-3" style="color:white">© fingerprintjs.com 2020</small>
</div>
</div>
</div>
</footer>
</div>
<script src="/dist/demo.js"></script>
</body>
</html>