From 97c3ee64f5d95bf23a48f2a19d92c8e275d40224 Mon Sep 17 00:00:00 2001 From: Florian Wellmann Date: Sun, 7 Jan 2024 09:13:02 +0100 Subject: [PATCH] Some more layout and style adjustments --- d3j/dist/modal.bundle.js | 2 +- d3j/modal.js | 5 +++ d3j/plot_interpolations.html | 31 +++++++++------ d3j/spline_interpolation.html | 17 +++++--- d3j/style_dark.css | 74 ++++++++++++++++++++++++++++++----- 5 files changed, 100 insertions(+), 29 deletions(-) diff --git a/d3j/dist/modal.bundle.js b/d3j/dist/modal.bundle.js index 583a2b4..5c8162b 100644 --- a/d3j/dist/modal.bundle.js +++ b/d3j/dist/modal.bundle.js @@ -15,7 +15,7 @@ \******************/ /***/ (() => { -eval("// modal.js\ndocument.addEventListener('DOMContentLoaded', function() {\n var modal = document.getElementById(\"infoModal\");\n var btn = document.getElementById(\"infoBtn\");\n var span = document.getElementsByClassName(\"close\")[0];\n\n btn.onclick = function() {\n modal.style.display = \"block\";\n };\n\n span.onclick = function() {\n modal.style.display = \"none\";\n };\n\n window.onclick = function(event) {\n if (event.target == modal) {\n modal.style.display = \"none\";\n }\n };\n});\n\n\n//# sourceURL=webpack://sgm_interpolations/./modal.js?"); +eval("// modal.js\ndocument.addEventListener('DOMContentLoaded', function() {\n var modal = document.getElementById(\"infoModal\");\n var btn = document.getElementById(\"infoBtn\");\n var span = document.getElementsByClassName(\"close\")[0];\n\n btn.onclick = function() {\n modal.style.display = \"block\";\n };\n\n span.onclick = function() {\n modal.style.display = \"none\";\n };\n\n window.onclick = function(event) {\n if (event.target == modal) {\n modal.style.display = \"none\";\n }\n };\n});\n\n// for home button\ndocument.getElementById('homeBtn').addEventListener('click', function() {\n window.location.href = '../index.html'; // Replace 'index.html' with the correct path if different\n});\n\n//# sourceURL=webpack://sgm_interpolations/./modal.js?"); /***/ }) diff --git a/d3j/modal.js b/d3j/modal.js index 49bf461..bb5a774 100644 --- a/d3j/modal.js +++ b/d3j/modal.js @@ -18,3 +18,8 @@ document.addEventListener('DOMContentLoaded', function() { } }; }); + +// for home button +document.getElementById('homeBtn').addEventListener('click', function() { + window.location.href = '../index.html'; // Replace 'index.html' with the correct path if different +}); \ No newline at end of file diff --git a/d3j/plot_interpolations.html b/d3j/plot_interpolations.html index 0a0f512..071ce82 100644 --- a/d3j/plot_interpolations.html +++ b/d3j/plot_interpolations.html @@ -10,30 +10,37 @@ +

Polynomial Regression Visualization

This interactive plot allows you to visualize polynomial regression with adjustable degrees. Drag the points and adjust the slider to see how the regression curve changes.

- -
- -
- -
- - + +
+
+ + +
+ +
+
+ +
+ +
+ + +
+
- - - +