1
0

HTML: file読み込みで疑似loop

Posted at

以下の例ではfileを読み込んだ直後からa要素にloop回数を表示しています。これだけでは当然何の意味も無い処理です

<input type=file oninput="files[0].arrayBuffer().then(b=>oninput(++a.innerHTML))"><a id=a>

応用すると下らないanimationを表示したり、gameを作ったり…できるかな? あえてこんな方法にする必要ないだろうと突っ込みたくなりますが…。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0