diff --git a/index.html b/index.html index 021d42f..9a5dae8 100644 --- a/index.html +++ b/index.html @@ -46,7 +46,7 @@
-
+
Apply to - +

-
+
- +

Downloads

diff --git a/index.js b/index.js index 0a6998d..7f8114a 100644 --- a/index.js +++ b/index.js @@ -115,6 +115,12 @@ seriousLightItalicButton.addEventListener("click", function () { mainClasses.add("seriousLightItalic"); }); +newExampleText.addEventListener("keydown", function (event) { + if (event.code === "Enter") { + exampleText.setHTML(newExampleText.value); + } +}); + newExampleTextButton.addEventListener("click", function () { exampleText.setHTML(newExampleText.value); });