Skip to content

Commit

Permalink
migrate examples to pubnub js sdk v4
Browse files Browse the repository at this point in the history
  • Loading branch information
ianjennings committed Sep 27, 2016
1 parent 6b139a8 commit fdea3d9
Show file tree
Hide file tree
Showing 16 changed files with 176 additions and 86 deletions.
16 changes: 11 additions & 5 deletions examples/axis.html
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
<html>
<head>

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

<link rel="stylesheet" type="text/css" href="../bower_components/c3/c3.min.css">
<script src="../bower_components/pubnub/dist/web/pubnub.min.js"></script>
<script src="../bower_components/d3/d3.min.js"></script>
<script src="../bower_components/c3/c3.min.js"></script>
<script src="../bower_components/visibilityjs/lib/visibility.core.js"></script>

<script src="../pubnub-c3.js"></script>

</head>
<body>
<div id="chart"></div>
<script>

var pubnub = PUBNUB.init({
publish_key: 'pub-c-923938f1-a4c1-4253-b15a-9c24087904c9',
subscribe_key: 'sub-c-bd9ab0d6-6e02-11e5-8d3b-0619f8945a4f'
var pubnub = new PubNub({
publishKey: 'pub-c-923938f1-a4c1-4253-b15a-9c24087904c9',
subscribeKey: 'sub-c-bd9ab0d6-6e02-11e5-8d3b-0619f8945a4f'
});

var channel = "c3-spline-test-test-test";
Expand Down
16 changes: 11 additions & 5 deletions examples/bar.html
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
<html>
<head>

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

<link rel="stylesheet" type="text/css" href="../bower_components/c3/c3.min.css">
<script src="../bower_components/pubnub/dist/web/pubnub.min.js"></script>
<script src="../bower_components/d3/d3.min.js"></script>
<script src="../bower_components/c3/c3.min.js"></script>
<script src="../bower_components/visibilityjs/lib/visibility.core.js"></script>

<script src="../pubnub-c3.js"></script>

</head>
<body>
<div id="chart"></div>
<script>

var pubnub = PUBNUB.init({
publish_key: 'pub-c-923938f1-a4c1-4253-b15a-9c24087904c9',
subscribe_key: 'sub-c-bd9ab0d6-6e02-11e5-8d3b-0619f8945a4f'
var pubnub = new PubNub({
publishKey: 'pub-c-923938f1-a4c1-4253-b15a-9c24087904c9',
subscribeKey: 'sub-c-bd9ab0d6-6e02-11e5-8d3b-0619f8945a4f'
});

var channel = "c3-bar-test" + Math.random();
Expand Down
16 changes: 11 additions & 5 deletions examples/custom_keys.html
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
<html>
<head>

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

<link rel="stylesheet" type="text/css" href="../bower_components/c3/c3.min.css">
<script src="../bower_components/pubnub/dist/web/pubnub.min.js"></script>
<script src="../bower_components/d3/d3.min.js"></script>
<script src="../bower_components/c3/c3.min.js"></script>
<script src="../bower_components/visibilityjs/lib/visibility.core.js"></script>

<script src="../pubnub-c3.js"></script>

</head>
<body>
<div id="chart"></div>
<script>

var pubnub = PUBNUB.init({
publish_key: 'pub-c-923938f1-a4c1-4253-b15a-9c24087904c9',
subscribe_key: 'sub-c-bd9ab0d6-6e02-11e5-8d3b-0619f8945a4f'
var pubnub = new PubNub({
publishKey: 'pub-c-923938f1-a4c1-4253-b15a-9c24087904c9',
subscribeKey: 'sub-c-bd9ab0d6-6e02-11e5-8d3b-0619f8945a4f'
});

var channel = "c3-spline" + Math.random();
Expand Down
16 changes: 11 additions & 5 deletions examples/distributed.html
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
<html>
<head>

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

<link rel="stylesheet" type="text/css" href="../bower_components/c3/c3.min.css">
<script src="../bower_components/pubnub/dist/web/pubnub.min.js"></script>
<script src="../bower_components/d3/d3.min.js"></script>
<script src="../bower_components/c3/c3.min.js"></script>
<script src="../bower_components/visibilityjs/lib/visibility.core.js"></script>

<script src="../pubnub-c3.js"></script>

</head>
<body>
<div id="chart"></div>
<script>

var pubnub = PUBNUB.init({
publish_key: 'pub-c-923938f1-a4c1-4253-b15a-9c24087904c9',
subscribe_key: 'sub-c-bd9ab0d6-6e02-11e5-8d3b-0619f8945a4f'
var pubnub = new PubNub({
publishKey: 'pub-c-923938f1-a4c1-4253-b15a-9c24087904c9',
subscribeKey: 'sub-c-bd9ab0d6-6e02-11e5-8d3b-0619f8945a4f'
});

var channel = "c3-spline-history" + Math.random();
Expand Down
16 changes: 11 additions & 5 deletions examples/double.html
Original file line number Diff line number Diff line change
@@ -1,16 +1,22 @@
<html>
<head>

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

<link rel="stylesheet" type="text/css" href="../bower_components/c3/c3.min.css">
<script src="../bower_components/pubnub/dist/web/pubnub.min.js"></script>
<script src="../bower_components/d3/d3.min.js"></script>
<script src="../bower_components/c3/c3.min.js"></script>
<script src="../bower_components/visibilityjs/lib/visibility.core.js"></script>

<script src="../pubnub-c3.js"></script>
</head>
<body>
<div id="chart"></div>
<script>

var pubnub = PUBNUB.init({
publish_key: 'pub-c-923938f1-a4c1-4253-b15a-9c24087904c9',
subscribe_key: 'sub-c-bd9ab0d6-6e02-11e5-8d3b-0619f8945a4f'
var pubnub = new PubNub({
publishKey: 'pub-c-923938f1-a4c1-4253-b15a-9c24087904c9',
subscribeKey: 'sub-c-bd9ab0d6-6e02-11e5-8d3b-0619f8945a4f'
});

var channel = "c3-spline" + Math.random();
Expand Down
16 changes: 11 additions & 5 deletions examples/eons.html
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
<html>
<head>

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

<link rel="stylesheet" type="text/css" href="../bower_components/c3/c3.min.css">
<script src="../bower_components/pubnub/dist/web/pubnub.min.js"></script>
<script src="../bower_components/d3/d3.min.js"></script>
<script src="../bower_components/c3/c3.min.js"></script>
<script src="../bower_components/visibilityjs/lib/visibility.core.js"></script>

<script src="../pubnub-c3.js"></script>

</head>
<body>
<div id="chart"></div>
<script>

var pubnub = PUBNUB.init({
publish_key: 'pub-c-923938f1-a4c1-4253-b15a-9c24087904c9',
subscribe_key: 'sub-c-bd9ab0d6-6e02-11e5-8d3b-0619f8945a4f'
var pubnub = new PubNub({
publishKey: 'pub-c-923938f1-a4c1-4253-b15a-9c24087904c9',
subscribeKey: 'sub-c-bd9ab0d6-6e02-11e5-8d3b-0619f8945a4f'
});

var channel = "c3-spline-" + new Date().getTime();
Expand Down
16 changes: 11 additions & 5 deletions examples/gauge.html
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
<html>
<head>

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

<link rel="stylesheet" type="text/css" href="../bower_components/c3/c3.min.css">
<script src="../bower_components/pubnub/dist/web/pubnub.min.js"></script>
<script src="../bower_components/d3/d3.min.js"></script>
<script src="../bower_components/c3/c3.min.js"></script>
<script src="../bower_components/visibilityjs/lib/visibility.core.js"></script>

<script src="../pubnub-c3.js"></script>

</head>
<body>
<div id="chart"></div>
<script>

var pubnub = PUBNUB.init({
publish_key: 'pub-c-923938f1-a4c1-4253-b15a-9c24087904c9',
subscribe_key: 'sub-c-bd9ab0d6-6e02-11e5-8d3b-0619f8945a4f'
var pubnub = new PubNub({
publishKey: 'pub-c-923938f1-a4c1-4253-b15a-9c24087904c9',
subscribeKey: 'sub-c-bd9ab0d6-6e02-11e5-8d3b-0619f8945a4f'
});

var channel = 'c3-gauge' + Math.random();
Expand Down
16 changes: 11 additions & 5 deletions examples/history.html
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
<html>
<head>

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

<link rel="stylesheet" type="text/css" href="../bower_components/c3/c3.min.css">
<script src="../bower_components/pubnub/dist/web/pubnub.min.js"></script>
<script src="../bower_components/d3/d3.min.js"></script>
<script src="../bower_components/c3/c3.min.js"></script>
<script src="../bower_components/visibilityjs/lib/visibility.core.js"></script>

<script src="../pubnub-c3.js"></script>

</head>
<body>
<div id="chart"></div>
<script>

var pubnub = PUBNUB.init({
publish_key: 'pub-c-923938f1-a4c1-4253-b15a-9c24087904c9',
subscribe_key: 'sub-c-bd9ab0d6-6e02-11e5-8d3b-0619f8945a4f'
var pubnub = new PubNub({
publishKey: 'pub-c-923938f1-a4c1-4253-b15a-9c24087904c9',
subscribeKey: 'sub-c-bd9ab0d6-6e02-11e5-8d3b-0619f8945a4f'
});

var channel = "c3-spline-history-test";
Expand Down
16 changes: 11 additions & 5 deletions examples/pie.html
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
<html>
<head>

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

<link rel="stylesheet" type="text/css" href="../bower_components/c3/c3.min.css">
<script src="../bower_components/pubnub/dist/web/pubnub.min.js"></script>
<script src="../bower_components/d3/d3.min.js"></script>
<script src="../bower_components/c3/c3.min.js"></script>
<script src="../bower_components/visibilityjs/lib/visibility.core.js"></script>

<script src="../pubnub-c3.js"></script>

</head>
<body>
<div id="chart"></div>
<script>

var pubnub = PUBNUB.init({
publish_key: 'pub-c-923938f1-a4c1-4253-b15a-9c24087904c9',
subscribe_key: 'sub-c-bd9ab0d6-6e02-11e5-8d3b-0619f8945a4f'
var pubnub = new PubNub({
publishKey: 'pub-c-923938f1-a4c1-4253-b15a-9c24087904c9',
subscribeKey: 'sub-c-bd9ab0d6-6e02-11e5-8d3b-0619f8945a4f'
});

var channel = "c3-spline" + Math.random();
Expand Down
16 changes: 11 additions & 5 deletions examples/reject.html
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
<html>
<head>

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

<link rel="stylesheet" type="text/css" href="../bower_components/c3/c3.min.css">
<script src="../bower_components/pubnub/dist/web/pubnub.min.js"></script>
<script src="../bower_components/d3/d3.min.js"></script>
<script src="../bower_components/c3/c3.min.js"></script>
<script src="../bower_components/visibilityjs/lib/visibility.core.js"></script>

<script src="../pubnub-c3.js"></script>

</head>
<body>
<div id="chart"></div>
<script>

var pubnub = PUBNUB.init({
publish_key: 'pub-c-923938f1-a4c1-4253-b15a-9c24087904c9',
subscribe_key: 'sub-c-bd9ab0d6-6e02-11e5-8d3b-0619f8945a4f'
var pubnub = new PubNub({
publishKey: 'pub-c-923938f1-a4c1-4253-b15a-9c24087904c9',
subscribeKey: 'sub-c-bd9ab0d6-6e02-11e5-8d3b-0619f8945a4f'
});

var channel = "c3-spline" + Math.random();
Expand Down
16 changes: 11 additions & 5 deletions examples/simple.html
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
<html>
<head>

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

<link rel="stylesheet" type="text/css" href="../bower_components/c3/c3.min.css">
<script src="../bower_components/pubnub/dist/web/pubnub.min.js"></script>
<script src="../bower_components/d3/d3.min.js"></script>
<script src="../bower_components/c3/c3.min.js"></script>
<script src="../bower_components/visibilityjs/lib/visibility.core.js"></script>

<script src="../pubnub-c3.js"></script>

</head>
<body>
<div id="chart"></div>
<script>

var pubnub = PUBNUB.init({
publish_key: 'pub-c-923938f1-a4c1-4253-b15a-9c24087904c9',
subscribe_key: 'sub-c-bd9ab0d6-6e02-11e5-8d3b-0619f8945a4f'
var pubnub = new PubNub({
publishKey: 'pub-c-923938f1-a4c1-4253-b15a-9c24087904c9',
subscribeKey: 'sub-c-bd9ab0d6-6e02-11e5-8d3b-0619f8945a4f'
});

var channel = "c3-spline" + Math.random();
Expand Down
14 changes: 10 additions & 4 deletions examples/transform.html
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
<html>
<head>

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

<link rel="stylesheet" type="text/css" href="../bower_components/c3/c3.min.css">
<script src="../bower_components/pubnub/dist/web/pubnub.min.js"></script>
<script src="../bower_components/d3/d3.min.js"></script>
<script src="../bower_components/c3/c3.min.js"></script>
<script src="../bower_components/visibilityjs/lib/visibility.core.js"></script>

<script src="../pubnub-c3.js"></script>

</head>
<body>
<div id="chart"></div>
<script>
// using the example stream from
// http://www.pubnub.com/developers/data-streams/sensor-network
var pubnub = PUBNUB.init({
subscribe_key: 'sub-c-5f1b7c8e-fbee-11e3-aa40-02ee2ddab7fe',
var pubnub = new PubNub({
subscribeKey: 'sub-c-5f1b7c8e-fbee-11e3-aa40-02ee2ddab7fe',
ssl: true
});
eon.chart({
Expand Down
16 changes: 11 additions & 5 deletions examples/transform_history.html
Original file line number Diff line number Diff line change
@@ -1,16 +1,22 @@
<html>
<head>

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

<link rel="stylesheet" type="text/css" href="../bower_components/c3/c3.min.css">
<script src="../bower_components/pubnub/dist/web/pubnub.min.js"></script>
<script src="../bower_components/d3/d3.min.js"></script>
<script src="../bower_components/c3/c3.min.js"></script>
<script src="../bower_components/visibilityjs/lib/visibility.core.js"></script>

<script src="../pubnub-c3.js"></script>

</head>
<body>
<div id="chart"></div>
<script>
var pubnub = PUBNUB.init({
publish_key: 'pub-c-923938f1-a4c1-4253-b15a-9c24087904c9',
subscribe_key: 'sub-c-bd9ab0d6-6e02-11e5-8d3b-0619f8945a4f'
var pubnub = new PubNub({
publishKey: 'pub-c-923938f1-a4c1-4253-b15a-9c24087904c9',
subscribeKey: 'sub-c-bd9ab0d6-6e02-11e5-8d3b-0619f8945a4f'
});

var channel = "c3-spline-history-test";
Expand Down
Loading

0 comments on commit fdea3d9

Please sign in to comment.