Introduction
This stand-alone website widget lists profitable closed orders from the Cooma social trading platform and allows users to go to the social platform with a click of a button.
Widget script installation
Implement the widget by adding the following script to your webpage, before the closing </body> tag.
<script src="https://cooma.s3.amazonaws.com/widgets/cooma-popping-trades/cooma-popping-trades.js"></script>Widget Attributes
The widget supports the following attributes:
| Attribute | Type | Mandatory | Description |
|---|---|---|---|
data-max-timeout | Number | No | Max time for every trade pop (Default "3") |
data-theme | Hex | No | The widget color theme (Default "00217D") |
data-theme-text-color | Hex | No | Default is auto Black or White |
data-path | String | No | Link to the social trading platform page |
data-background | Hex | No | The widget container background (Default "FFFFFF") |
Dom Integration
To add the widget on your site, just put the following div HTML tag to the desired place on your web page, and the script will draw the widget.
<div
class="cooma-popping-trades heavy-theme"
data-max-timeout="3"
data-path="/trading-platform-page-link/"
data-theme="00217D"
data-background="ffffff"
></div>Live Example
From the above code, you can see that the widget is responsive and can be placed anywhere on the page