Plugin Directory

Changeset 1513440


Ignore:
Timestamp:
10/12/2016 02:38:42 PM (9 years ago)
Author:
scor2k
Message:

tagging version 0.1.3

Location:
nxtbridge
Files:
7 edited
2 copied

Legend:

Unmodified
Added
Removed
  • nxtbridge/tags/0.1.3/nxtbridge.php

    r1507337 r1513440  
    44  Plugin Name: NXTBridge
    55  Plugin URI: http://nxter.org/nxtbridge
    6   Version: 0.1.2
     6  Version: 0.1.3
    77  Author: scor2k
    88  Description: Show Nxt asset information on your Wordpress sites.
     
    1111*/
    1212
     13$api = '//api.nxtex.info:8080/v1';
    1314
    14 $api = '//api.nxtex.info:8080/v1';
     15//$api = '//a.ubuntu.local:8080/v1';
    1516//$api = '//nxtbridge-srv.corp.comindware.com:8080/v1';
    1617
     
    2223function nxter_scripts() {
    2324  wp_register_script('mdl', plugins_url('/bower_components/material-design-lite/material.min.js', __FILE__), '', '1.x', 'all');
     25  wp_register_script('highstock', plugins_url('/bower_components/highcharts/highstock.js', __FILE__), '', '5.0', 'all');
    2426  wp_enqueue_script('mdl');
     27  wp_enqueue_script('highstock');
    2528}
    2629
     
    6265      $a[$i] .= sprintf("if ( xhr_%s.readyState != 4 ) return;", $i);
    6366      $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);
    64       $a[$i] .= sprintf("} // end onreadystatechange");
     67      $a[$i] .= sprintf("}\n\n");
     68      // LOAD HIGHSTOCK
     69      $a[$i] .= "jQuery(document).ready(function($){";
     70
     71      //$a[$i] .= sprintf("$.getJSON('https://www.highcharts.com/samples/data/jsonp.php?filename=aapl-c.json&callback=?', function (data) {");
     72      $a[$i] .= sprintf("$.getJSON('%s/asset/%s/data-price-line', function (price) {", $api, $asset_id);
     73      $a[$i] .= sprintf("data = price.data;");
     74      $a[$i] .= sprintf("");
     75      $a[$i] .= sprintf("$('#%s_chart').highcharts('StockChart', {", $asset_id);
     76      $a[$i] .= sprintf("rangeSelector: {selected: 1},title: {text: 'Asset stock price'}, series: [{name: 'NXT', data: data, tooltip: {valueDecimals: 4} }]");
     77      $a[$i] .= sprintf("});"); // highchart
     78      $a[$i] .= sprintf("});"); // getJSON
     79
     80      $a[$i] .= sprintf("");
     81      $a[$i] .= sprintf("");
     82
     83      $a[$i] .= "});"; // jQuery
     84
     85      // END LOAD HIGHSTOCK
    6586      $a[$i] .= sprintf("</script>");
    6687     
  • nxtbridge/tags/0.1.3/readme.txt

    r1507372 r1513440  
    55Donate link: http://nxter.org/nxtbridge
    66Donate Nxt address: NXT-FRNZ-PDJF-2CQT-DQ4WQ
    7 Tags: NXT, asstes, nxter
     7Tags: Nxt, assets, nxter, NXTBridge
    88Requires at least: 4.0
    99Tested up to: 4.6.1
     
    6767== Changelog ==
    6868
     69= 0.1.3 =
     70* Add bower.json
     71* Add highcharts JS http://www.highcharts.com/stock/demo/basic-line
     72
    6973= 0.1.2 =
    7074* Add ask and bid info
  • nxtbridge/tags/0.1.3/style.css

    r1504268 r1513440  
    1111  white-space: pre-wrap; }
    1212
     13.nxtbridge-asset-chart {
     14  height: 300px; }
     15
    1316/*# sourceMappingURL=style.css.map */
  • nxtbridge/tags/0.1.3/style.scss

    r1504268 r1513440  
    3535}
    3636
    37 
     37.nxtbridge-asset-chart {
     38  height: 300px;
     39}
  • nxtbridge/trunk/nxtbridge.php

    r1507337 r1513440  
    44  Plugin Name: NXTBridge
    55  Plugin URI: http://nxter.org/nxtbridge
    6   Version: 0.1.2
     6  Version: 0.1.3
    77  Author: scor2k
    88  Description: Show Nxt asset information on your Wordpress sites.
     
    1111*/
    1212
     13$api = '//api.nxtex.info:8080/v1';
    1314
    14 $api = '//api.nxtex.info:8080/v1';
     15//$api = '//a.ubuntu.local:8080/v1';
    1516//$api = '//nxtbridge-srv.corp.comindware.com:8080/v1';
    1617
     
    2223function nxter_scripts() {
    2324  wp_register_script('mdl', plugins_url('/bower_components/material-design-lite/material.min.js', __FILE__), '', '1.x', 'all');
     25  wp_register_script('highstock', plugins_url('/bower_components/highcharts/highstock.js', __FILE__), '', '5.0', 'all');
    2426  wp_enqueue_script('mdl');
     27  wp_enqueue_script('highstock');
    2528}
    2629
     
    6265      $a[$i] .= sprintf("if ( xhr_%s.readyState != 4 ) return;", $i);
    6366      $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);
    64       $a[$i] .= sprintf("} // end onreadystatechange");
     67      $a[$i] .= sprintf("}\n\n");
     68      // LOAD HIGHSTOCK
     69      $a[$i] .= "jQuery(document).ready(function($){";
     70
     71      //$a[$i] .= sprintf("$.getJSON('https://www.highcharts.com/samples/data/jsonp.php?filename=aapl-c.json&callback=?', function (data) {");
     72      $a[$i] .= sprintf("$.getJSON('%s/asset/%s/data-price-line', function (price) {", $api, $asset_id);
     73      $a[$i] .= sprintf("data = price.data;");
     74      $a[$i] .= sprintf("");
     75      $a[$i] .= sprintf("$('#%s_chart').highcharts('StockChart', {", $asset_id);
     76      $a[$i] .= sprintf("rangeSelector: {selected: 1},title: {text: 'Asset stock price'}, series: [{name: 'NXT', data: data, tooltip: {valueDecimals: 4} }]");
     77      $a[$i] .= sprintf("});"); // highchart
     78      $a[$i] .= sprintf("});"); // getJSON
     79
     80      $a[$i] .= sprintf("");
     81      $a[$i] .= sprintf("");
     82
     83      $a[$i] .= "});"; // jQuery
     84
     85      // END LOAD HIGHSTOCK
    6586      $a[$i] .= sprintf("</script>");
    6687     
  • nxtbridge/trunk/readme.txt

    r1507372 r1513440  
    55Donate link: http://nxter.org/nxtbridge
    66Donate Nxt address: NXT-FRNZ-PDJF-2CQT-DQ4WQ
    7 Tags: NXT, asstes, nxter
     7Tags: Nxt, assets, nxter, NXTBridge
    88Requires at least: 4.0
    99Tested up to: 4.6.1
     
    6767== Changelog ==
    6868
     69= 0.1.3 =
     70* Add bower.json
     71* Add highcharts JS http://www.highcharts.com/stock/demo/basic-line
     72
    6973= 0.1.2 =
    7074* Add ask and bid info
  • nxtbridge/trunk/style.css

    r1504268 r1513440  
    1111  white-space: pre-wrap; }
    1212
     13.nxtbridge-asset-chart {
     14  height: 300px; }
     15
    1316/*# sourceMappingURL=style.css.map */
  • nxtbridge/trunk/style.scss

    r1504268 r1513440  
    3535}
    3636
    37 
     37.nxtbridge-asset-chart {
     38  height: 300px;
     39}
Note: See TracChangeset for help on using the changeset viewer.