Skip to content

Commit

Permalink
deploy: 92bb15a
Browse files Browse the repository at this point in the history
  • Loading branch information
nickpatrick committed Jan 17, 2024
1 parent 1af56c3 commit 1b90552
Show file tree
Hide file tree
Showing 11 changed files with 55 additions and 45 deletions.
6 changes: 3 additions & 3 deletions add-a-marker.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,20 @@
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-9ndCyUaIbzAi2FUVXJi0CjmCapSmO7SnpJef0486qhLnuZ2cdeRhO02iuK6FUUVM" crossorigin="anonymous">
<link href="./static/style.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/styles/github.min.css" crossorigin="anonymous">
<link href="https://js.radar.com/v4.1.15/radar.css" rel="stylesheet">
<link href="https://js.radar.com/v4.1.16/radar.css" rel="stylesheet">

<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-geWF76RCwLtnZ8qwWowPQNguL3RmwHVBC9FhGdlKrxdiJJigb/j/68SIy3Te4Bkz" crossorigin="anonymous"></script>
<script src="https://code.jquery.com/jquery-3.7.0.slim.min.js" integrity="sha256-tG5mcZUtJsZvyKAxYLVXrmjKBVLd6VpVccqz/r4ypFE=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/highlight.min.js" crossorigin="anonymous"></script>
<script src="https://js.radar.com/v4.1.15/radar.min.js"></script>
<script src="https://js.radar.com/v4.1.16/radar.min.js"></script>
</head>
<body>
<main>
<div class="container">
<div class="flex-shrink-0 p-3 bg-white" style="width: 280px;">
<a href="/" class="d-flex align-items-baseline pb-1 mb-3 link-dark text-decoration-none border-bottom">
<span class="fs-5 fw-semibold">Radar JS SDK</span>
<span style="font-size: 10px; margin-left: 10px;">v4.1.15</span>
<span style="font-size: 10px; margin-left: 10px;">v4.1.16</span>
</a>
<ul class="list-unstyled ps-0">
<li class="mb-1">
Expand Down
6 changes: 3 additions & 3 deletions create-autocomplete.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,20 @@
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-9ndCyUaIbzAi2FUVXJi0CjmCapSmO7SnpJef0486qhLnuZ2cdeRhO02iuK6FUUVM" crossorigin="anonymous">
<link href="./static/style.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/styles/github.min.css" crossorigin="anonymous">
<link href="https://js.radar.com/v4.1.15/radar.css" rel="stylesheet">
<link href="https://js.radar.com/v4.1.16/radar.css" rel="stylesheet">

<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-geWF76RCwLtnZ8qwWowPQNguL3RmwHVBC9FhGdlKrxdiJJigb/j/68SIy3Te4Bkz" crossorigin="anonymous"></script>
<script src="https://code.jquery.com/jquery-3.7.0.slim.min.js" integrity="sha256-tG5mcZUtJsZvyKAxYLVXrmjKBVLd6VpVccqz/r4ypFE=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/highlight.min.js" crossorigin="anonymous"></script>
<script src="https://js.radar.com/v4.1.15/radar.min.js"></script>
<script src="https://js.radar.com/v4.1.16/radar.min.js"></script>
</head>
<body>
<main>
<div class="container">
<div class="flex-shrink-0 p-3 bg-white" style="width: 280px;">
<a href="/" class="d-flex align-items-baseline pb-1 mb-3 link-dark text-decoration-none border-bottom">
<span class="fs-5 fw-semibold">Radar JS SDK</span>
<span style="font-size: 10px; margin-left: 10px;">v4.1.15</span>
<span style="font-size: 10px; margin-left: 10px;">v4.1.16</span>
</a>
<ul class="list-unstyled ps-0">
<li class="mb-1">
Expand Down
6 changes: 3 additions & 3 deletions custom-autocomplete.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,20 @@
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-9ndCyUaIbzAi2FUVXJi0CjmCapSmO7SnpJef0486qhLnuZ2cdeRhO02iuK6FUUVM" crossorigin="anonymous">
<link href="./static/style.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/styles/github.min.css" crossorigin="anonymous">
<link href="https://js.radar.com/v4.1.15/radar.css" rel="stylesheet">
<link href="https://js.radar.com/v4.1.16/radar.css" rel="stylesheet">

<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-geWF76RCwLtnZ8qwWowPQNguL3RmwHVBC9FhGdlKrxdiJJigb/j/68SIy3Te4Bkz" crossorigin="anonymous"></script>
<script src="https://code.jquery.com/jquery-3.7.0.slim.min.js" integrity="sha256-tG5mcZUtJsZvyKAxYLVXrmjKBVLd6VpVccqz/r4ypFE=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/highlight.min.js" crossorigin="anonymous"></script>
<script src="https://js.radar.com/v4.1.15/radar.min.js"></script>
<script src="https://js.radar.com/v4.1.16/radar.min.js"></script>
</head>
<body>
<main>
<div class="container">
<div class="flex-shrink-0 p-3 bg-white" style="width: 280px;">
<a href="/" class="d-flex align-items-baseline pb-1 mb-3 link-dark text-decoration-none border-bottom">
<span class="fs-5 fw-semibold">Radar JS SDK</span>
<span style="font-size: 10px; margin-left: 10px;">v4.1.15</span>
<span style="font-size: 10px; margin-left: 10px;">v4.1.16</span>
</a>
<ul class="list-unstyled ps-0">
<li class="mb-1">
Expand Down
6 changes: 3 additions & 3 deletions display-a-map.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,20 @@
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-9ndCyUaIbzAi2FUVXJi0CjmCapSmO7SnpJef0486qhLnuZ2cdeRhO02iuK6FUUVM" crossorigin="anonymous">
<link href="./static/style.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/styles/github.min.css" crossorigin="anonymous">
<link href="https://js.radar.com/v4.1.15/radar.css" rel="stylesheet">
<link href="https://js.radar.com/v4.1.16/radar.css" rel="stylesheet">

<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-geWF76RCwLtnZ8qwWowPQNguL3RmwHVBC9FhGdlKrxdiJJigb/j/68SIy3Te4Bkz" crossorigin="anonymous"></script>
<script src="https://code.jquery.com/jquery-3.7.0.slim.min.js" integrity="sha256-tG5mcZUtJsZvyKAxYLVXrmjKBVLd6VpVccqz/r4ypFE=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/highlight.min.js" crossorigin="anonymous"></script>
<script src="https://js.radar.com/v4.1.15/radar.min.js"></script>
<script src="https://js.radar.com/v4.1.16/radar.min.js"></script>
</head>
<body>
<main>
<div class="container">
<div class="flex-shrink-0 p-3 bg-white" style="width: 280px;">
<a href="/" class="d-flex align-items-baseline pb-1 mb-3 link-dark text-decoration-none border-bottom">
<span class="fs-5 fw-semibold">Radar JS SDK</span>
<span style="font-size: 10px; margin-left: 10px;">v4.1.15</span>
<span style="font-size: 10px; margin-left: 10px;">v4.1.16</span>
</a>
<ul class="list-unstyled ps-0">
<li class="mb-1">
Expand Down
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,20 @@
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-9ndCyUaIbzAi2FUVXJi0CjmCapSmO7SnpJef0486qhLnuZ2cdeRhO02iuK6FUUVM" crossorigin="anonymous">
<link href="./static/style.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/styles/github.min.css" crossorigin="anonymous">
<link href="https://js.radar.com/v4.1.15/radar.css" rel="stylesheet">
<link href="https://js.radar.com/v4.1.16/radar.css" rel="stylesheet">

<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-geWF76RCwLtnZ8qwWowPQNguL3RmwHVBC9FhGdlKrxdiJJigb/j/68SIy3Te4Bkz" crossorigin="anonymous"></script>
<script src="https://code.jquery.com/jquery-3.7.0.slim.min.js" integrity="sha256-tG5mcZUtJsZvyKAxYLVXrmjKBVLd6VpVccqz/r4ypFE=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/highlight.min.js" crossorigin="anonymous"></script>
<script src="https://js.radar.com/v4.1.15/radar.min.js"></script>
<script src="https://js.radar.com/v4.1.16/radar.min.js"></script>
</head>
<body>
<main>
<div class="container">
<div class="flex-shrink-0 p-3 bg-white" style="width: 280px;">
<a href="/" class="d-flex align-items-baseline pb-1 mb-3 link-dark text-decoration-none border-bottom">
<span class="fs-5 fw-semibold">Radar JS SDK</span>
<span style="font-size: 10px; margin-left: 10px;">v4.1.15</span>
<span style="font-size: 10px; margin-left: 10px;">v4.1.16</span>
</a>
<ul class="list-unstyled ps-0">
<li class="mb-1">
Expand Down
10 changes: 5 additions & 5 deletions log-a-conversion.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,20 @@
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-9ndCyUaIbzAi2FUVXJi0CjmCapSmO7SnpJef0486qhLnuZ2cdeRhO02iuK6FUUVM" crossorigin="anonymous">
<link href="./static/style.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/styles/github.min.css" crossorigin="anonymous">
<link href="https://js.radar.com/v4.1.15/radar.css" rel="stylesheet">
<link href="https://js.radar.com/v4.1.16/radar.css" rel="stylesheet">

<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-geWF76RCwLtnZ8qwWowPQNguL3RmwHVBC9FhGdlKrxdiJJigb/j/68SIy3Te4Bkz" crossorigin="anonymous"></script>
<script src="https://code.jquery.com/jquery-3.7.0.slim.min.js" integrity="sha256-tG5mcZUtJsZvyKAxYLVXrmjKBVLd6VpVccqz/r4ypFE=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/highlight.min.js" crossorigin="anonymous"></script>
<script src="https://js.radar.com/v4.1.15/radar.min.js"></script>
<script src="https://js.radar.com/v4.1.16/radar.min.js"></script>
</head>
<body>
<main>
<div class="container">
<div class="flex-shrink-0 p-3 bg-white" style="width: 280px;">
<a href="/" class="d-flex align-items-baseline pb-1 mb-3 link-dark text-decoration-none border-bottom">
<span class="fs-5 fw-semibold">Radar JS SDK</span>
<span style="font-size: 10px; margin-left: 10px;">v4.1.15</span>
<span style="font-size: 10px; margin-left: 10px;">v4.1.16</span>
</a>
<ul class="list-unstyled ps-0">
<li class="mb-1">
Expand Down Expand Up @@ -124,8 +124,8 @@ <h6 class="mt-4">Response</h6>
&lt;head&gt;
&lt;meta charset="utf-8" /&gt;
&lt;meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no" /&gt;
&lt;link href="https://js.radar.com/v4.1.15/radar.css" rel="stylesheet"&gt;
&lt;script src="https://js.radar.com/v4.1.15/radar.min.js"&gt;&lt;/script&gt;
&lt;link href="https://js.radar.com/v4.1.16/radar.css" rel="stylesheet"&gt;
&lt;script src="https://js.radar.com/v4.1.16/radar.min.js"&gt;&lt;/script&gt;
&lt;/head&gt;

&lt;body&gt;
Expand Down
6 changes: 3 additions & 3 deletions search-near-location.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,20 @@
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-9ndCyUaIbzAi2FUVXJi0CjmCapSmO7SnpJef0486qhLnuZ2cdeRhO02iuK6FUUVM" crossorigin="anonymous">
<link href="./static/style.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/styles/github.min.css" crossorigin="anonymous">
<link href="https://js.radar.com/v4.1.15/radar.css" rel="stylesheet">
<link href="https://js.radar.com/v4.1.16/radar.css" rel="stylesheet">

<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-geWF76RCwLtnZ8qwWowPQNguL3RmwHVBC9FhGdlKrxdiJJigb/j/68SIy3Te4Bkz" crossorigin="anonymous"></script>
<script src="https://code.jquery.com/jquery-3.7.0.slim.min.js" integrity="sha256-tG5mcZUtJsZvyKAxYLVXrmjKBVLd6VpVccqz/r4ypFE=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/highlight.min.js" crossorigin="anonymous"></script>
<script src="https://js.radar.com/v4.1.15/radar.min.js"></script>
<script src="https://js.radar.com/v4.1.16/radar.min.js"></script>
</head>
<body>
<main>
<div class="container">
<div class="flex-shrink-0 p-3 bg-white" style="width: 280px;">
<a href="/" class="d-flex align-items-baseline pb-1 mb-3 link-dark text-decoration-none border-bottom">
<span class="fs-5 fw-semibold">Radar JS SDK</span>
<span style="font-size: 10px; margin-left: 10px;">v4.1.15</span>
<span style="font-size: 10px; margin-left: 10px;">v4.1.16</span>
</a>
<ul class="list-unstyled ps-0">
<li class="mb-1">
Expand Down
10 changes: 5 additions & 5 deletions start-a-trip.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,20 @@
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-9ndCyUaIbzAi2FUVXJi0CjmCapSmO7SnpJef0486qhLnuZ2cdeRhO02iuK6FUUVM" crossorigin="anonymous">
<link href="./static/style.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/styles/github.min.css" crossorigin="anonymous">
<link href="https://js.radar.com/v4.1.15/radar.css" rel="stylesheet">
<link href="https://js.radar.com/v4.1.16/radar.css" rel="stylesheet">

<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-geWF76RCwLtnZ8qwWowPQNguL3RmwHVBC9FhGdlKrxdiJJigb/j/68SIy3Te4Bkz" crossorigin="anonymous"></script>
<script src="https://code.jquery.com/jquery-3.7.0.slim.min.js" integrity="sha256-tG5mcZUtJsZvyKAxYLVXrmjKBVLd6VpVccqz/r4ypFE=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/highlight.min.js" crossorigin="anonymous"></script>
<script src="https://js.radar.com/v4.1.15/radar.min.js"></script>
<script src="https://js.radar.com/v4.1.16/radar.min.js"></script>
</head>
<body>
<main>
<div class="container">
<div class="flex-shrink-0 p-3 bg-white" style="width: 280px;">
<a href="/" class="d-flex align-items-baseline pb-1 mb-3 link-dark text-decoration-none border-bottom">
<span class="fs-5 fw-semibold">Radar JS SDK</span>
<span style="font-size: 10px; margin-left: 10px;">v4.1.15</span>
<span style="font-size: 10px; margin-left: 10px;">v4.1.16</span>
</a>
<ul class="list-unstyled ps-0">
<li class="mb-1">
Expand Down Expand Up @@ -159,8 +159,8 @@ <h6 class="mt-2">Events</h6>
&lt;head&gt;
&lt;meta charset="utf-8" /&gt;
&lt;meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no" /&gt;
&lt;link href="https://js.radar.com/v4.1.15/radar.css" rel="stylesheet"&gt;
&lt;script src="https://js.radar.com/v4.1.15/radar.min.js"&gt;&lt;/script&gt;
&lt;link href="https://js.radar.com/v4.1.16/radar.css" rel="stylesheet"&gt;
&lt;script src="https://js.radar.com/v4.1.16/radar.min.js"&gt;&lt;/script&gt;
&lt;/head&gt;

&lt;body&gt;
Expand Down
24 changes: 17 additions & 7 deletions track-a-user.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,20 @@
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-9ndCyUaIbzAi2FUVXJi0CjmCapSmO7SnpJef0486qhLnuZ2cdeRhO02iuK6FUUVM" crossorigin="anonymous">
<link href="./static/style.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/styles/github.min.css" crossorigin="anonymous">
<link href="https://js.radar.com/v4.1.15/radar.css" rel="stylesheet">
<link href="https://js.radar.com/v4.1.16/radar.css" rel="stylesheet">

<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-geWF76RCwLtnZ8qwWowPQNguL3RmwHVBC9FhGdlKrxdiJJigb/j/68SIy3Te4Bkz" crossorigin="anonymous"></script>
<script src="https://code.jquery.com/jquery-3.7.0.slim.min.js" integrity="sha256-tG5mcZUtJsZvyKAxYLVXrmjKBVLd6VpVccqz/r4ypFE=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/highlight.min.js" crossorigin="anonymous"></script>
<script src="https://js.radar.com/v4.1.15/radar.min.js"></script>
<script src="https://js.radar.com/v4.1.16/radar.min.js"></script>
</head>
<body>
<main>
<div class="container">
<div class="flex-shrink-0 p-3 bg-white" style="width: 280px;">
<a href="/" class="d-flex align-items-baseline pb-1 mb-3 link-dark text-decoration-none border-bottom">
<span class="fs-5 fw-semibold">Radar JS SDK</span>
<span style="font-size: 10px; margin-left: 10px;">v4.1.15</span>
<span style="font-size: 10px; margin-left: 10px;">v4.1.16</span>
</a>
<ul class="list-unstyled ps-0">
<li class="mb-1">
Expand Down Expand Up @@ -91,7 +91,7 @@ <h1 class="mb-4">Track a user</h1>
<input type="text" class="form-control" id="user-id" value="test-user-id" style="width: 250px;">
</div>
</div>
<div class="mb-4 form-row">
<div class="mb-3 form-row">
<label for="desired-accuracy" class="col-form-label" style="width: 128px;">Desired accuracy</label>
<div>
<select id="desired-accuracy" class="form-select" style="width: 250px;">
Expand All @@ -101,6 +101,15 @@ <h1 class="mb-4">Track a user</h1>
</select>
</div>
</div>
<div class="mb-4 form-row">
<label for="fraud" class="col-form-label" style="width: 128px;">Fraud</label>
<div>
<select id="fraud" class="form-select" style="width: 250px;">
<option value="false" selected>false</option>
<option value="true">true</option>
</select>
</div>
</div>

<div>
<button id="track-once" type="button" class="btn btn-primary" disabled>Call track once</button>
Expand Down Expand Up @@ -136,8 +145,8 @@ <h6 class="mt-2">Events</h6>
&lt;head&gt;
&lt;meta charset="utf-8" /&gt;
&lt;meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no" /&gt;
&lt;link href="https://js.radar.com/v4.1.15/radar.css" rel="stylesheet"&gt;
&lt;script src="https://js.radar.com/v4.1.15/radar.min.js"&gt;&lt;/script&gt;
&lt;link href="https://js.radar.com/v4.1.16/radar.css" rel="stylesheet"&gt;
&lt;script src="https://js.radar.com/v4.1.16/radar.min.js"&gt;&lt;/script&gt;
&lt;/head&gt;

&lt;body&gt;
Expand Down Expand Up @@ -191,7 +200,8 @@ <h6 class="mt-2">Events</h6>

const userId = $('#user-id').val();
const desiredAccuracy = $('#desired-accuracy').val();
Radar.trackOnce({ userId, desiredAccuracy })
const fraud = $('#fraud').val() === 'true';
Radar.trackOnce({ userId, desiredAccuracy, fraud })
.then(({ location, user, events }) => {
console.log('TRACK RESPONSE', { location, user, events });
$('#loader').hide();
Expand Down
Loading

0 comments on commit 1b90552

Please sign in to comment.