-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #38 from ably/example-styles-updates
updating google example and index page to have ably branding and styles.
- Loading branch information
Showing
6 changed files
with
93 additions
and
101 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
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
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
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 |
---|---|---|
@@ -1,36 +1,40 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>Map demo</title> | ||
|
||
<script src="https://cdn.ably.io/lib/ably.min-1.js"></script> | ||
<script src="/main.js"></script> | ||
<script src='https://unpkg.com/@turf/turf@5.1.6/turf.min.js'></script> | ||
<script src="/Google/script.js" type="module"></script> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>Map demo</title> | ||
|
||
<link rel="stylesheet" href="/style.css" type="text/css" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<script src="https://cdn.ably.io/lib/ably.min-1.js"></script> | ||
<script src="/main.js"></script> | ||
<script src='https://unpkg.com/@turf/turf@5.1.6/turf.min.js'></script> | ||
<script src="/Google/script.js" type="module"></script> | ||
|
||
<link rel="preconnect" href="https://fonts.gstatic.com"> | ||
<link href="https://fonts.googleapis.com/css2?family=Questrial&display=swap" rel="stylesheet"> | ||
<link rel="stylesheet" href="/style.css" type="text/css" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
</head> | ||
<body> | ||
<header> | ||
<h1>Position Tracking</h1> | ||
<div id="channel"> | ||
<label for="channelID" class="label">Tracking ID:</label> | ||
<input type="text" name="channelID" id="channelID" placeholder="Channel ID" class="input"> | ||
<input id="updateChannelButton" type="button" value="Update" class="button"> | ||
</div> | ||
<h2 class="subscribers" id="subscriberCount"></h2> | ||
<div class="controls"> | ||
<h2>Animation:</h2> | ||
<body> | ||
<header> | ||
<h1> | ||
<a href="http://ably.com/" class="logo">Ably</a> | ||
<span class="title">Asset Tracking</span> | ||
</h1> | ||
<div id="channel"> | ||
<label for="channelID" class="label">Tracking ID:</label> | ||
<input type="text" name="channelID" id="channelID" placeholder="Enter a Channel ID" class="input"> | ||
<h2 class="subscribers" id="subscriberCount"></h2> | ||
</div> | ||
<div class="controls"> | ||
<h2 class="animation">Animation:</h2> | ||
<label class="switch"> | ||
<span class="switch-text">Off</span> | ||
<input type="checkbox" id="animation" checked="true"> | ||
<span class="slider"></span> | ||
<span class="switch-text">On</span> | ||
<span class="switch-text off">Snap</span> | ||
<span class="switch-text on">Smooth</span> | ||
</label> | ||
</div> | ||
</header> | ||
</div> | ||
</header> | ||
<div id="map"></div> | ||
</body> | ||
</html> |
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 |
---|---|---|
@@ -1,17 +1,28 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Ably Map Demo</title> | ||
<link rel="stylesheet" href="style.css" type="text/css" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
</head> | ||
<body> | ||
<main> | ||
<h1 class="intro">Ably Mapbox NavSDK demo</h1> | ||
<p>The publishing driver SDK runs on Android and publishes the enhanced lat/long locations to an Ably channel, and these locations are shown on a map clipped to a road. View a demo using your preferred map provider with one of the links below.</p> | ||
<p>If you have accessed this site without API keys specified in the URL query parameters, when you click either of the below links you will be prompted to enter an API key for the map provider you have chosen. Please see the official documentation for how to create an API key (<a href="https://developers.google.com/maps/documentation/javascript/get-api-key">Google Maps</a>, <a href="https://docs.mapbox.com/help/how-mapbox-works/access-tokens/">Mapbox</a>).</p> | ||
<a onclick="window.location='/google'+window.location.search;" class="link">View Google Maps demo »</a> | ||
<a onclick="window.location='/mapbox'+window.location.search;" class="link">View Mapbox Maps demo »</a> | ||
</main> | ||
</body> | ||
</html> | ||
|
||
<head> | ||
<title>Ably Asset Tracking</title> | ||
<link rel="preconnect" href="https://fonts.gstatic.com"> | ||
<link href="https://fonts.googleapis.com/css2?family=Questrial&display=swap" rel="stylesheet"> | ||
|
||
<link rel="stylesheet" href="style.css" type="text/css" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
</head> | ||
<body> | ||
<header> | ||
<h1><a href="http://ably.com/" class="logo">Ably</a> <span class="title">Asset Tracking</span></h1> | ||
</header> | ||
<main class="intro"> | ||
<p>The publishing driver SDK runs on Android and publishes the enhanced lat/long locations to an Ably channel, and | ||
these locations are shown on a map clipped to a road. View a demo using your preferred map provider with one of | ||
the links below.</p> | ||
<p>If you have accessed this site without API keys specified in the URL query parameters, when you click either of | ||
the below links you will be prompted to enter an API key for the map provider you have chosen. Please see the | ||
official documentation for how to create an API key (<a href="https://developers.google.com/maps/documentation/javascript/get-api-key">Google Maps</a>, <a href="https://docs.mapbox.com/help/how-mapbox-works/access-tokens/">Mapbox</a>). | ||
</p> | ||
<a onclick="window.location='/google'+window.location.search;" class="link">View Google Maps demo »</a> | ||
<a onclick="window.location='/mapbox'+window.location.search;" class="link">View Mapbox Maps demo »</a> | ||
</main> | ||
</body> | ||
</html> |
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