summaryrefslogtreecommitdiff
path: root/frontend/2d/_collisions/pill_line.html.content
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/2d/_collisions/pill_line.html.content')
-rw-r--r--frontend/2d/_collisions/pill_line.html.content15
1 files changed, 15 insertions, 0 deletions
diff --git a/frontend/2d/_collisions/pill_line.html.content b/frontend/2d/_collisions/pill_line.html.content
index fb2994c..c534d93 100644
--- a/frontend/2d/_collisions/pill_line.html.content
+++ b/frontend/2d/_collisions/pill_line.html.content
@@ -1,4 +1,19 @@
<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>