Skip to content

StratCheck/widget

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Documentation

How to embed the widget to the site

  • The code below should be placed there frontend developer want to render widget.
<widget id="test-widget" style="display:block;width:1124px;height:780px;background:url(build/713.GIF) no-repeat center"></widget>
  • The code below should be placed before closing "" tag:
<script type="text/javascript">
    var _scw = _scw || {};
    _scw.id        = '#test-widget';
    _scw.widget_id = 'b601906f-607e-4748-b15e-88dcc9f256d2';
    _scw.icons_prifex = '';

    (function() {
      var scw = document.createElement('script'); scw.type = 'text/javascript'; scw.async = true;
      scw.src = 'http://scw.github.io/scw.github.io/build/strat-check-interactive-widget.min.js';
      var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(scw, s);
    })();
  </script>
  • Options:
    • _scw.id - id element there widget will be rendered
    • _scw.widget_id - id of the data on the server, endpoint: http://api.stratcheck.io/v1/widget/ <widget_id>
    • _scw.icons_prifex - adress prefix for the graph assets

How to embeding the script on the goodharborfinancial.com

var scw = document.createElement('script'); scw.type = 'text/javascript'; scw.async = true;scw.src = 'http://semeyon.github.io/scw.github.io/scemb.js';var s = document.getElementsByTagName('body')[0]; s.appendChild(scw);
  • Paste it to the opened console and hit enter.

About

Origin repo for StratCheck Widget project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors