From 8a6e3b86dfc025d0eb043cf34a15e44e8adb76ce Mon Sep 17 00:00:00 2001 From: Sheldan <5037282+Sheldan@users.noreply.github.com> Date: Sat, 9 Aug 2025 00:00:43 +0200 Subject: [PATCH] collatzConjecture: fixing download button dotLines: fixing controls --- collatzConjecture/src/index.html | 2 +- dotLines/src/index.html | 13 ++++++++++--- dotLines/src/js/main.js | 9 ++++++++- 3 files changed, 19 insertions(+), 5 deletions(-) diff --git a/collatzConjecture/src/index.html b/collatzConjecture/src/index.html index 0738eac..7270ce8 100644 --- a/collatzConjecture/src/index.html +++ b/collatzConjecture/src/index.html @@ -51,7 +51,7 @@ Beware of ... interesting outcomes as this can cause the created tree to become
-Download +Download
diff --git a/dotLines/src/index.html b/dotLines/src/index.html index 56ee944..a80a584 100644 --- a/dotLines/src/index.html +++ b/dotLines/src/index.html @@ -25,14 +25,21 @@ left: 150px; top: 3px; } + .controls { + position: absolute; + top: 0px; + right: 10px + }
- - - Download
+
+ + + Download
+
diff --git a/dotLines/src/js/main.js b/dotLines/src/js/main.js index eae31c2..8cc4fbf 100644 --- a/dotLines/src/js/main.js +++ b/dotLines/src/js/main.js @@ -1,5 +1,5 @@ import { - docReady, getMousePos, pointDistance, roundedRandom + docReady, downloadCanvasWithoutButton, getMousePos, pointDistance, roundedRandom } from "canvas-common"; @@ -166,4 +166,11 @@ docReady(function () { }); +function downloadCanvasDotlines() { + downloadCanvasWithoutButton('dotLines', canvas); +} + +window.downloadCanvasCommon = downloadCanvasDotlines; +window.pause = pause; +window.showAll = showAll;