From b3c01bba3a5690edfa659e97a224f06ac5e91c4f Mon Sep 17 00:00:00 2001 From: Thomas Smith <49042513+tsmitty11@users.noreply.github.com> Date: Mon, 6 Feb 2023 18:17:31 -0500 Subject: [PATCH] Second smaple code animated w/ button --- src/layouts/index.html | 129 +++++++++++++++++++---------------------- 1 file changed, 61 insertions(+), 68 deletions(-) diff --git a/src/layouts/index.html b/src/layouts/index.html index 79a8206..eb86b5b 100644 --- a/src/layouts/index.html +++ b/src/layouts/index.html @@ -461,14 +461,16 @@ Created next project successfully
-
+
- + + {{- partial "play-btn.html" -}} +
@@ -476,39 +478,26 @@ Created next project successfully
@@ -556,14 +545,16 @@ Created next project successfully
-
+
- + + {{- partial "play-btn.html" -}} +
@@ -573,35 +564,35 @@ Created next project successfully const commands4 = [ { input: "$ node --eval 'console.log(\"Hello World!\")'", output: `command not found: node
#Node is not installed, thus command is not found :/ ...
` }, { input: "$ sh <(curl tea.xyz) --yes", output: `installing ~/.tea...
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
% Total% Received% XferdAverage SpeedTimeTimeTimeCurrent
10013306100549830--:--:----:--:----:--:--
k, we installed /Users/userName/.tea/tea.xyz/v0.21.0/bin/tea
-` }, + + + % Total + % Received + % Xferd + Average Speed + Time + Time + Time + Current + + + + + 100 + 13306 + 100 + 54983 + 0 + --:--:-- + --:--:-- + --:--:-- + + + k, we installed /Users/userName/.tea/tea.xyz/v0.21.0/bin/tea + + + + ` }, { input: "$ node --eval 'console.log(\"Hello World!\")'", output: `tea: installing nodejs.org^19
#tea magically installs needed dependencies...` }, { input: "", output: `Hello World! 😎
#and tah-dah!` }, ]; @@ -628,7 +619,9 @@ Created next project successfully setTimeout(typeCommand4, 100); } - typeCommand4(); + document.querySelector("#start-animation-4").addEventListener("click", function() { + typeCommand4(); + });