Skip to content

Commit c5d9b3e

Browse files
committed
update demos
1 parent 004b93d commit c5d9b3e

9 files changed

Lines changed: 40 additions & 109 deletions

File tree

README.md

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ Call ```eon.map({})```. Check out the table of options below for more informatio
4747
var channel = 'pubnub-mapbox';
4848
4949
var pn = new PubNub({
50-
publishKey: 'demo', // replace with your own pub-key
51-
subscribeKey: 'demo' // replace with your own sub-key
50+
publishKey: 'YOUR_PUB_KEY', // replace with your own pub-key
51+
subscribeKey: 'YOUR_SUB_KEY' // replace with your own sub-key
5252
});
5353
5454
var map = eon.map({
@@ -118,8 +118,8 @@ function connect() {
118118
};
119119

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

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

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

167167
var map = eon.map({
@@ -201,8 +201,8 @@ You can supply a custom Mapbox marker object with custom tooltips by extening th
201201
});
202202
203203
var pn = new PubNub({
204-
publishKey: 'demo', // replace with your own pub-key
205-
subscribeKey: 'demo' // replace with your own sub-key
204+
publishKey: 'YOUR_PUB_KEY', // replace with your own pub-key
205+
subscribeKey: 'YOUR_SUB_KEY' // replace with your own sub-key
206206
});
207207
208208
var map = eon.map({
@@ -239,7 +239,10 @@ You can set the `pubnub` init parameter when using Eon Maps. This allows you to
239239
```html
240240
<div id="map"></div>
241241
<script>
242-
var pn = PUBNUB({ subscribeKey : 'YOUR_SUBKEY_HERE', ssl : true });
242+
var pn = PUBNUB({
243+
subscribeKey : 'YOUR_SUB_KEY',
244+
ssl : true
245+
});
243246
var channel = 'my-map';
244247
var map = eon.map({
245248
pubnub: pn, // PubNub goes here

examples/bower.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@
3535
<script>
3636

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

4242
var channel = 'pubnub-mapbox' + getNonZeroRandomNumber();

examples/channel_groups.html

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,9 @@
1616
width:100%;
1717
}
1818
</style>
19-
20-
<link rel="stylesheet" type="text/css" href="../bower_components/mapbox.js/mapbox.css">
21-
<script src="../bower_components/mapbox.js/mapbox.js"></script>
22-
<script src="../bower_components/pubnub/dist/web/pubnub.min.js"></script>
23-
<script src="../pubnub-mapbox.js"></script>
19+
20+
<script type="text/javascript" src="https://pubnub.github.io/eon/v/eon/1.0.0/eon.js"></script>
21+
<link type="text/css" rel="stylesheet" href="https://pubnub.github.io/eon/v/eon/1.0.0/eon.css"/>
2422

2523
</head>
2624
<body>
@@ -35,8 +33,8 @@
3533
<script>
3634

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

4240
var channels = ['pubnub-mapbox-1', 'pubnub-mapbox-2', 'pubnub-mapbox-3'];

examples/distributed.html

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,8 @@
1717
}
1818
</style>
1919

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

2523
</head>
2624
<body>
@@ -36,8 +34,8 @@
3634

3735

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

4341
var channel = 'pubnub-mapbox' + getNonZeroRandomNumber();

examples/history.html

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,8 @@
1717
}
1818
</style>
1919

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

2523
</head>
2624
<body>
@@ -35,8 +33,8 @@
3533
<script>
3634

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

4240
var channels = ['pubnub-mapbox-history-1', 'pubnub-mapbox-history-2', 'pubnub-mapbox-history-3'];

examples/multiple.html

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,9 @@
1616
width:100%;
1717
}
1818
</style>
19-
20-
<link rel="stylesheet" type="text/css" href="../bower_components/mapbox.js/mapbox.css">
21-
<script src="../bower_components/mapbox.js/mapbox.js"></script>
22-
<script src="../bower_components/pubnub/dist/web/pubnub.min.js"></script>
23-
<script src="../pubnub-mapbox.js"></script>
19+
20+
<script type="text/javascript" src="https://pubnub.github.io/eon/v/eon/1.0.0/eon.js"></script>
21+
<link type="text/css" rel="stylesheet" href="https://pubnub.github.io/eon/v/eon/1.0.0/eon.css"/>
2422

2523
</head>
2624
<body>
@@ -35,8 +33,8 @@
3533
<script>
3634

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

examples/rando.html

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,8 @@
1717
}
1818
</style>
1919

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

2523
</head>
2624
<body>
@@ -35,8 +33,8 @@
3533
<script>
3634

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

4240
var channel = 'pubnub-mapbox' + getNonZeroRandomNumber();

examples/simple.html

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,8 @@
1717
}
1818
</style>
1919

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

2523
</head>
2624
<body>
@@ -35,8 +33,8 @@
3533
<script>
3634

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

4240
var channel = 'pubnub-mapbox' + getNonZeroRandomNumber();

examples/transform.html

Lines changed: 0 additions & 60 deletions
This file was deleted.

0 commit comments

Comments
 (0)