<div dir="ltr">Thanks,<div><br></div><div>I'll watch at ClockWeb activity.</div><div><br></div><div>Regards</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/10/10 Manuel Quiñones <span dir="ltr"><<a href="mailto:manuq@laptop.org" target="_blank">manuq@laptop.org</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">2013/10/9 laurent bernabe <<a href="mailto:laurent.bernabe@gmail.com">laurent.bernabe@gmail.com</a>>:<br>
> Hello,<br>
><br>
> *) I am wondering whether I can safely replace, in an index.html file of a<br>
> web activity, the <div id="canvas></div> with <canvas id="canvas"></canvas><br>
> ?<br>
><br>
> Because the library I am using need a real canvas element.<br>
<br>
You just put your <canvas> inside that <div>.<br>
<br>
> *) Also, if I can use a real canvas element, how can set its size to the<br>
> remaining size of the screen ? (As my laptop has a wider screen than XO<br>
> ones).<br>
<br>
It's possible by connecting to the window resize event in JS. You can<br>
see an example in Clock Web activity.<br>
<br>
<a href="https://github.com/manuq/clock-web" target="_blank">https://github.com/manuq/clock-web</a><br>
<a href="http://manuq.github.io/clock-web/" target="_blank">http://manuq.github.io/clock-web/</a><br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
.. manuq ..<br>
</font></span></blockquote></div><br></div>