Changeset 1507337
- Timestamp:
- 10/03/2016 09:48:10 AM (10 years ago)
- Location:
- nxtbridge
- Files:
-
- 4 edited
- 1 copied
-
tags/0.1.2 (copied) (copied from nxtbridge/trunk)
-
tags/0.1.2/nxtbridge.php (modified) (3 diffs)
-
tags/0.1.2/readme.txt (modified) (3 diffs)
-
trunk/nxtbridge.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
nxtbridge/tags/0.1.2/nxtbridge.php
r1504268 r1507337 4 4 Plugin Name: NXTBridge 5 5 Plugin URI: http://nxter.org/nxtbridge 6 Version: 0.1. 16 Version: 0.1.2 7 7 Author: scor2k 8 8 Description: Show Nxt asset information on your Wordpress sites. … … 13 13 14 14 $api = '//api.nxtex.info:8080/v1'; 15 //$api = '//nxtbridge-srv.corp.comindware.com:8080/v1'; 15 16 16 17 /*****************************************************************************************************/ … … 60 61 $a[$i] .= sprintf("xhr_%s.onreadystatechange = function() { ", $i); 61 62 $a[$i] .= sprintf("if ( xhr_%s.readyState != 4 ) return;", $i); 62 $a[$i] .= sprintf("if ( xhr_%s.status != 200 ) { asset_%s.innerHTML = ' Something goes wrong.'; } else { var data = xhr_%s.responseText; var page = JSON.parse(data); asset_%s.innerHTML = page.data;} ", $i, $i, $i, $i);63 $a[$i] .= sprintf("if ( xhr_%s.status != 200 ) { asset_%s.innerHTML = 'Error while load info about asset ID= %s '; } else { var data = xhr_%s.responseText; var page = JSON.parse(data); asset_%s.innerHTML = page.data;} ", $i, $i, $asset_id, $i, $i); 63 64 $a[$i] .= sprintf("} // end onreadystatechange"); 64 65 $a[$i] .= sprintf("</script>"); -
nxtbridge/tags/0.1.2/readme.txt
r1504268 r1507337 14 14 == Description == 15 15 16 The plugin gets data from the Nxt Asset Exchange ( https://nxt.org, http://nxter.org/assets). Add an asset’s ID to the NxtBridge shortcode and the asset’s meta data will be shown in posts or pages.16 The plugin gets data from the Nxt Asset Exchange ( https://nxt.org, http://nxter.org/assets ). Add an asset’s ID to the NxtBridge shortcode and the asset’s meta data will be shown in posts or pages. 17 17 18 18 … … 29 29 30 30 Just insert simple shortcode to your page with the asset ID you want to show. [NXTBridgeAsset id=17290457900272383726] for example. 31 32 You can customise output by changing styles for the next classes: nxtbridge-asset-name, nxtbridge-asset-init-quantity, nxtbridge-asset-quantity, nxtbridge-asset-decimals, nxtbridge-asset-accountRS, nxtbridge-asset-id, nxtbridge-asset-ask, nxtbridge-asset-bid, nxtbridge-asset-description. 31 33 32 34 == About this project == … … 65 67 == Changelog == 66 68 69 = 0.1.2 = 70 * Add ask and bid info 71 67 72 = 0.1.1 = 68 73 * Bug Fix -
nxtbridge/trunk/nxtbridge.php
r1504268 r1507337 4 4 Plugin Name: NXTBridge 5 5 Plugin URI: http://nxter.org/nxtbridge 6 Version: 0.1. 16 Version: 0.1.2 7 7 Author: scor2k 8 8 Description: Show Nxt asset information on your Wordpress sites. … … 13 13 14 14 $api = '//api.nxtex.info:8080/v1'; 15 //$api = '//nxtbridge-srv.corp.comindware.com:8080/v1'; 15 16 16 17 /*****************************************************************************************************/ … … 60 61 $a[$i] .= sprintf("xhr_%s.onreadystatechange = function() { ", $i); 61 62 $a[$i] .= sprintf("if ( xhr_%s.readyState != 4 ) return;", $i); 62 $a[$i] .= sprintf("if ( xhr_%s.status != 200 ) { asset_%s.innerHTML = ' Something goes wrong.'; } else { var data = xhr_%s.responseText; var page = JSON.parse(data); asset_%s.innerHTML = page.data;} ", $i, $i, $i, $i);63 $a[$i] .= sprintf("if ( xhr_%s.status != 200 ) { asset_%s.innerHTML = 'Error while load info about asset ID= %s '; } else { var data = xhr_%s.responseText; var page = JSON.parse(data); asset_%s.innerHTML = page.data;} ", $i, $i, $asset_id, $i, $i); 63 64 $a[$i] .= sprintf("} // end onreadystatechange"); 64 65 $a[$i] .= sprintf("</script>"); -
nxtbridge/trunk/readme.txt
r1504268 r1507337 14 14 == Description == 15 15 16 The plugin gets data from the Nxt Asset Exchange ( https://nxt.org, http://nxter.org/assets). Add an asset’s ID to the NxtBridge shortcode and the asset’s meta data will be shown in posts or pages.16 The plugin gets data from the Nxt Asset Exchange ( https://nxt.org, http://nxter.org/assets ). Add an asset’s ID to the NxtBridge shortcode and the asset’s meta data will be shown in posts or pages. 17 17 18 18 … … 29 29 30 30 Just insert simple shortcode to your page with the asset ID you want to show. [NXTBridgeAsset id=17290457900272383726] for example. 31 32 You can customise output by changing styles for the next classes: nxtbridge-asset-name, nxtbridge-asset-init-quantity, nxtbridge-asset-quantity, nxtbridge-asset-decimals, nxtbridge-asset-accountRS, nxtbridge-asset-id, nxtbridge-asset-ask, nxtbridge-asset-bid, nxtbridge-asset-description. 31 33 32 34 == About this project == … … 65 67 == Changelog == 66 68 69 = 0.1.2 = 70 * Add ask and bid info 71 67 72 = 0.1.1 = 68 73 * Bug Fix
Note: See TracChangeset
for help on using the changeset viewer.