diff options
Diffstat (limited to 'frontend/2d/_collisions/pill_line.html')
-rw-r--r-- | frontend/2d/_collisions/pill_line.html | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/frontend/2d/_collisions/pill_line.html b/frontend/2d/_collisions/pill_line.html index 4cbefde..8b3539a 100644 --- a/frontend/2d/_collisions/pill_line.html +++ b/frontend/2d/_collisions/pill_line.html @@ -47,6 +47,21 @@ </ul> </nav> <script src="./pill_line/dist/output.js"></script> + <script> + window.onload = function() { + var lPlayElement = document.getElementById('gl_canvas_play'), + lStopElement = document.getElementById('gl_canvas_stop'); + lPlayElement.addEventListener('click', function() { + lPlayElement.style.display = 'none'; + lStopElement.style.display = 'block'; + }); + lStopElement.addEventListener('click', function() { + lStopElement.style.display = 'none'; + lPlayElement.style.display = 'block'; + }); + } + + </script> <section> <h1>Pill-Line</h1> <article> @@ -72,7 +87,6 @@ </footer> </article> </section> - <li> - </main> +don </main> </body> </html> |