Member
Last active 3 years ago
This example for the Counter Object is pretty cool! My question is…
How do you set up text to update when the value increases? In the example, it shows "Counter Value."
https://docs.pubcoder.com/pubcoder_counter_object.html
Never mind, I figured it out. Here is the answer…
<script type="text/javascript"><![CDATA[ $(document).ready(function() { window.init(); }); ]]></script> <canvas id="canvas" width="900" height="360" style="background-color:#FFFFFF">Canvas is not supported, sorry.</canvas>
Is there a way to add a CANVAS tag to a Smart Object?
I've tried this:
<body onload="init();" style="background-color:#9aaede;margin:0px;"> <canvas id="canvas" width="900" height="360" style="background-color:#FFFFFF">CANVAS NOT SUPPORTED</canvas> </body>
But, when I publish, I get an error, saying that a Body tag is not allowed in this area.