Skip to content

Commit

Permalink
update demos
Browse files Browse the repository at this point in the history
  • Loading branch information
ianjennings committed Oct 18, 2016
1 parent 004b93d commit c5d9b3e
Show file tree
Hide file tree
Showing 9 changed files with 40 additions and 109 deletions.
21 changes: 12 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ Call ```eon.map({})```. Check out the table of options below for more informatio
var channel = 'pubnub-mapbox';
var pn = new PubNub({
publishKey: 'demo', // replace with your own pub-key
subscribeKey: 'demo' // replace with your own sub-key
publishKey: 'YOUR_PUB_KEY', // replace with your own pub-key
subscribeKey: 'YOUR_SUB_KEY' // replace with your own sub-key
});
var map = eon.map({
Expand Down Expand Up @@ -118,8 +118,8 @@ function connect() {
};

var pn = new PubNub({
publishKey: 'demo', // replace with your own pub-key
subscribeKey: 'demo' // replace with your own sub-key
publishKey: 'YOUR_PUB_KEY', // replace with your own pub-key
subscribeKey: 'YOUR_SUB_KEY' // replace with your own sub-key
});

setInterval(function(){
Expand Down Expand Up @@ -160,8 +160,8 @@ You can tell the map to follow a point to it's new location whenever data is rec

```js
var pn = new PubNub({
publishKey: 'demo', // replace with your own pub-key
subscribeKey: 'demo' // replace with your own sub-key
publishKey: 'YOUR_PUB_KEY', // replace with your own pub-key
subscribeKey: 'YOUR_SUB_KEY' // replace with your own sub-key
});

var map = eon.map({
Expand Down Expand Up @@ -201,8 +201,8 @@ You can supply a custom Mapbox marker object with custom tooltips by extening th
});
var pn = new PubNub({
publishKey: 'demo', // replace with your own pub-key
subscribeKey: 'demo' // replace with your own sub-key
publishKey: 'YOUR_PUB_KEY', // replace with your own pub-key
subscribeKey: 'YOUR_SUB_KEY' // replace with your own sub-key
});
var map = eon.map({
Expand Down Expand Up @@ -239,7 +239,10 @@ You can set the `pubnub` init parameter when using Eon Maps. This allows you to
```html
<div id="map"></div>
<script>
var pn = PUBNUB({ subscribeKey : 'YOUR_SUBKEY_HERE', ssl : true });
var pn = PUBNUB({
subscribeKey : 'YOUR_SUB_KEY',
ssl : true
});
var channel = 'my-map';
var map = eon.map({
pubnub: pn, // PubNub goes here
Expand Down
4 changes: 2 additions & 2 deletions examples/bower.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
<script>

var pubnub = new PubNub({
publishKey: 'pub-c-6dbe7bfd-6408-430a-add4-85cdfe856b47',
subscribeKey: 'sub-c-2a73818c-d2d3-11e3-9244-02ee2ddab7fe'
publishKey: 'YOUR_PUB_KEY',
subscribeKey: 'YOUR_SUB_KEY'
});

var channel = 'pubnub-mapbox' + getNonZeroRandomNumber();
Expand Down
12 changes: 5 additions & 7 deletions examples/channel_groups.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,9 @@
width:100%;
}
</style>

<link rel="stylesheet" type="text/css" href="../bower_components/mapbox.js/mapbox.css">
<script src="../bower_components/mapbox.js/mapbox.js"></script>
<script src="../bower_components/pubnub/dist/web/pubnub.min.js"></script>
<script src="../pubnub-mapbox.js"></script>

<script type="text/javascript" src="https://pubnub.github.io/eon/v/eon/1.0.0/eon.js"></script>
<link type="text/css" rel="stylesheet" href="https://pubnub.github.io/eon/v/eon/1.0.0/eon.css"/>

</head>
<body>
Expand All @@ -35,8 +33,8 @@
<script>

var pubnub = new PubNub({
publishKey: 'pub-c-6dbe7bfd-6408-430a-add4-85cdfe856b47',
subscribeKey: 'sub-c-2a73818c-d2d3-11e3-9244-02ee2ddab7fe'
publishKey: 'YOUR_PUB_KEY',
subscribeKey: 'YOUR_SUB_KEY'
});

var channels = ['pubnub-mapbox-1', 'pubnub-mapbox-2', 'pubnub-mapbox-3'];
Expand Down
10 changes: 4 additions & 6 deletions examples/distributed.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,8 @@
}
</style>

<link rel="stylesheet" type="text/css" href="../bower_components/mapbox.js/mapbox.css">
<script src="../bower_components/mapbox.js/mapbox.js"></script>
<script src="../bower_components/pubnub/dist/web/pubnub.min.js"></script>
<script src="../pubnub-mapbox.js"></script>
<script type="text/javascript" src="https://pubnub.github.io/eon/v/eon/1.0.0/eon.js"></script>
<link type="text/css" rel="stylesheet" href="https://pubnub.github.io/eon/v/eon/1.0.0/eon.css"/>

</head>
<body>
Expand All @@ -36,8 +34,8 @@


var pubnub = new PubNub({
publishKey: 'pub-c-6dbe7bfd-6408-430a-add4-85cdfe856b47',
subscribeKey: 'sub-c-2a73818c-d2d3-11e3-9244-02ee2ddab7fe'
publishKey: 'YOUR_PUB_KEY',
subscribeKey: 'YOUR_SUB_KEY'
});

var channel = 'pubnub-mapbox' + getNonZeroRandomNumber();
Expand Down
10 changes: 4 additions & 6 deletions examples/history.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,8 @@
}
</style>

<link rel="stylesheet" type="text/css" href="../bower_components/mapbox.js/mapbox.css">
<script src="../bower_components/mapbox.js/mapbox.js"></script>
<script src="../bower_components/pubnub/dist/web/pubnub.min.js"></script>
<script src="../pubnub-mapbox.js"></script>
<script type="text/javascript" src="https://pubnub.github.io/eon/v/eon/1.0.0/eon.js"></script>
<link type="text/css" rel="stylesheet" href="https://pubnub.github.io/eon/v/eon/1.0.0/eon.css"/>

</head>
<body>
Expand All @@ -35,8 +33,8 @@
<script>

var pubnub = new PubNub({
publishKey: 'pub-c-6dbe7bfd-6408-430a-add4-85cdfe856b47',
subscribeKey: 'sub-c-2a73818c-d2d3-11e3-9244-02ee2ddab7fe'
publishKey: 'YOUR_PUB_KEY',
subscribeKey: 'YOUR_SUB_KEY'
});

var channels = ['pubnub-mapbox-history-1', 'pubnub-mapbox-history-2', 'pubnub-mapbox-history-3'];
Expand Down
12 changes: 5 additions & 7 deletions examples/multiple.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,9 @@
width:100%;
}
</style>

<link rel="stylesheet" type="text/css" href="../bower_components/mapbox.js/mapbox.css">
<script src="../bower_components/mapbox.js/mapbox.js"></script>
<script src="../bower_components/pubnub/dist/web/pubnub.min.js"></script>
<script src="../pubnub-mapbox.js"></script>

<script type="text/javascript" src="https://pubnub.github.io/eon/v/eon/1.0.0/eon.js"></script>
<link type="text/css" rel="stylesheet" href="https://pubnub.github.io/eon/v/eon/1.0.0/eon.css"/>

</head>
<body>
Expand All @@ -35,8 +33,8 @@
<script>

var pn = new PubNub({
publishKey: 'pub-c-923938f1-a4c1-4253-b15a-9c24087904c9',
subscribeKey: 'sub-c-bd9ab0d6-6e02-11e5-8d3b-0619f8945a4f',
publishKey: 'YOUR_PUB_KEY',
subscribeKey: 'YOUR_SUB_KEY',
ssl: (('https:' == document.location.protocol) ? true : false)
});

Expand Down
10 changes: 4 additions & 6 deletions examples/rando.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,8 @@
}
</style>

<link rel="stylesheet" type="text/css" href="../bower_components/mapbox.js/mapbox.css">
<script src="../bower_components/mapbox.js/mapbox.js"></script>
<script src="../bower_components/pubnub/dist/web/pubnub.min.js"></script>
<script src="../pubnub-mapbox.js"></script>
<script type="text/javascript" src="https://pubnub.github.io/eon/v/eon/1.0.0/eon.js"></script>
<link type="text/css" rel="stylesheet" href="https://pubnub.github.io/eon/v/eon/1.0.0/eon.css"/>

</head>
<body>
Expand All @@ -35,8 +33,8 @@
<script>

var pubnub = new PubNub({
publishKey: 'pub-c-6dbe7bfd-6408-430a-add4-85cdfe856b47',
subscribeKey: 'sub-c-2a73818c-d2d3-11e3-9244-02ee2ddab7fe'
publishKey: 'YOUR_PUB_KEY',
subscribeKey: 'YOUR_SUB_KEY'
});

var channel = 'pubnub-mapbox' + getNonZeroRandomNumber();
Expand Down
10 changes: 4 additions & 6 deletions examples/simple.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,8 @@
}
</style>

<link rel="stylesheet" type="text/css" href="../bower_components/mapbox.js/mapbox.css">
<script src="../bower_components/mapbox.js/mapbox.js"></script>
<script src="../bower_components/pubnub/dist/web/pubnub.min.js"></script>
<script src="../pubnub-mapbox.js"></script>
<script type="text/javascript" src="https://pubnub.github.io/eon/v/eon/1.0.0/eon.js"></script>
<link type="text/css" rel="stylesheet" href="https://pubnub.github.io/eon/v/eon/1.0.0/eon.css"/>

</head>
<body>
Expand All @@ -35,8 +33,8 @@
<script>

var pubnub = new PubNub({
publishKey: 'pub-c-6dbe7bfd-6408-430a-add4-85cdfe856b47',
subscribeKey: 'sub-c-2a73818c-d2d3-11e3-9244-02ee2ddab7fe'
publishKey: 'YOUR_PUB_KEY',
subscribeKey: 'YOUR_SUB_KEY'
});

var channel = 'pubnub-mapbox' + getNonZeroRandomNumber();
Expand Down
60 changes: 0 additions & 60 deletions examples/transform.html

This file was deleted.

0 comments on commit c5d9b3e

Please sign in to comment.