diff --git a/examples/broadcast.html b/examples/broadcast.html index 49a7614f7ce15e50d780331a1eb8f2ba59c8a3c9..7033eac46e036ac50c0e9a47e44f54fa76e8e4d4 100644 --- a/examples/broadcast.html +++ b/examples/broadcast.html @@ -1,19 +1,19 @@ <!DOCTYPE html> <html lang="en"> <head> - <meta charset="UTF-8"> - <title>Steem.js Broadcast</title> + <meta charset="UTF-8"> + <title>Steem.js Broadcast</title> </head> <body> <script src="../dist/steem.min.js"></script> <script> steem.broadcast.vote( - '5JRaypasxMx1L97ZUX7YuC5Psb5EAbF821kkAGtBj7xCJFQcbLg', - 'guest123', - 'firepower', - 'steemit-veni-vidi-vici-steemfest-2016-together-we-made-it-happen-thank-you-steemians', - 10000, + '5JRaypasxMx1L97ZUX7YuC5Psb5EAbF821kkAGtBj7xCJFQcbLg', // Posting WIF + 'guest123', // Voter username + 'firepower', // Author + 'steemit-veni-vidi-vici-steemfest-2016-together-we-made-it-happen-thank-you-steemians', // Permlink + 10000, // Weight (10000 = 100%) function(err, result) { console.log(err, result); } diff --git a/examples/index.html b/examples/index.html index b51de333eaac74a2593cc60200365f24a01f051d..2da043ffd24be778b493610ad0b06c7f6553f588 100644 --- a/examples/index.html +++ b/examples/index.html @@ -1,21 +1,21 @@ <!DOCTYPE html> <html lang="en"> <head> - <meta charset="UTF-8"> - <title>Steem.js</title> + <meta charset="UTF-8"> + <title>Steem.js</title> </head> <body> <script src="../dist/steem.min.js"></script> <script> steem.api.getConfig(function(err, response){ - console.log(err, response); + console.log(err, response); }); steem.api.getAccounts(['ned', 'dan'], function(err, response){ - console.log(err, response); + console.log(err, response); }); steem.api.getAccountCount(function(err, response){ - console.log(err, response); + console.log(err, response); }); </script> diff --git a/examples/stream.html b/examples/stream.html index e9add22c08cde61b055e5a2b1227577167dbb17c..ba6fae92c6389fe317e1ecbfff9763ff12dc5876 100644 --- a/examples/stream.html +++ b/examples/stream.html @@ -1,23 +1,16 @@ <!DOCTYPE html> <html lang="en"> <head> - <meta charset="UTF-8"> - <title>Steem.js</title> + <meta charset="UTF-8"> + <title>Steem.js Stream</title> </head> <body> <script src="../dist/steem.min.js"></script> <script> -steem.api.streamOperations(function(err, operations) { - if (err) { - document.write('Error:', err.message); - return; - } - +steem.api.streamOperations(function (err, operations) { operations.forEach(function (operation) { - document.write('New operation:', JSON.stringify(operation)); - console.log('New operation:', operation); - document.write('<br />'); + console.log(operation); }); }); </script>