From b7373ab119bf73ead274d34b2696ddedb1deb416 Mon Sep 17 00:00:00 2001 From: Dante Catalfamo Date: Fri, 3 Jul 2020 14:31:34 -0400 Subject: Add current homepage --- index.html | 53 +++++++++++++++++++++++++++++++++++++++++++++++ script.js | 70 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 123 insertions(+) create mode 100644 index.html create mode 100644 script.js diff --git a/index.html b/index.html new file mode 100644 index 0000000..5dce83d --- /dev/null +++ b/index.html @@ -0,0 +1,53 @@ + + + + + + + lambda.cx home + + + +
+

+      
+    
+ + + diff --git a/script.js b/script.js new file mode 100644 index 0000000..85037c3 --- /dev/null +++ b/script.js @@ -0,0 +1,70 @@ +function coss(height, width, theta) { + let amplitude = height/2; + let period = width; + let dx = Math.PI/width; + let yVal = []; + let x = theta; + + for(let i=0;iλ"; + } else if ((x < halfWidth) && (Math.abs(negy-y) < thick)) { + out += "λ"; + } else { + out += " "; + } + } + out += "\n"; + } + return out; +} + +function putlam(el, height, width, min, max, period) { + let amp = max-min; + const f = function() { + let percent = (Math.sin(((new Date).getTime()/period)) + 1) / 2; + let thick = (amp * percent) + min; + el.innerHTML = lamby(height, width, thick); + }; + window.setInterval(f, 100); +} + +let lamEl = document.querySelector('.lambda'); +putlam(lamEl, 45, 45, 0.3, 4.5, 450); + + +` +00 + 0 + 0 + 0 0 + 0 0 +0 00 + +0 + 0 +0 0 + +_ + \ + \ + /\ + / \ + / \ +/ \_ +`; -- cgit v1.2.3