WidgetsFeatured User → Documentation & Demo
Demo
Documentation
Widget description
This widget randomly selects a top performer and highlights:
  • Proficiency level
  • The previous months P/L
  • The previous months risk level
Configurable parameters
fetchDataUrl
Url of the social server
(Please contact Leverate's administrator for this info)
language
The language key (e.g. 'en')
Implementation example
* Please add the script before the </body> tag.
* If you are already using jQuery, please remove the 'Framework.jQuery.js' from the 'js.src'.
                
                <script type="text/javascript">
                    (function () {
                        var clientUrl = "http://developers.sirixtrader.com";
                        var js = document.createElement('script'); js.type = 'text/javascript'; js.async = true;
                        js.src = clientUrl + '/PageScripts/GetJavaScript/?files=Framework.jQuery.js;Framework.jQuery.Tpl.js;FeaturedUser.Widget.js&callback=window.onFeaturedUserWidgetLoad';
                        document.getElementsByTagName('head')[0].appendChild(js);

                        var css = document.createElement('link'); css.type = 'text/css'; css.async = true; css.rel = 'stylesheet';
                        css.href = clientUrl + '/PageScripts/GetCss/?files=FeaturedUser.Widget.css';
                        document.getElementsByTagName('head')[0].appendChild(css);

                        onFeaturedUserWidgetLoad = function () {
                            $('#featured_user').leverateFeaturedUser({
                                socialWidgetClientUrl: clientUrl,
                                fetchDataUrl: 'https://social-mt2.forexwebservices.com',
                                language: 'en'
                            });
                        }
                    })();
                </script>