Simple Demo

Demo Sample Code

<div id="cBlock_here"></div>
<script>
        $(function () {
            buildCBlock();
        });
        function buildCBlock() {
            var block1 = new xtnsvcryptoportfolioblock();
            var tasks = {
                data: [
                    { coin: "BTC", qty: 1 },
                    { coin: "ETH", qty: 10 }
                ]
            };
            block1.coins = tasks;
            block1.init($("#cBlock_here"));
        };
 </script>