From 0687dd431aec4831f03135e3a4fb1fad9364cc7f Mon Sep 17 00:00:00 2001 From: ylemkimon Date: Fri, 17 Aug 2018 22:59:16 +0900 Subject: [PATCH] Improve demo (REPL, sandbox) on the main page (#1615) * Improve demo (REPL, sandbox) on the main page * Update button label * Update textarea styles * Change input event listeners to change * Stack editor/render views vertically * Add animation to options panel * Open options panel and maximize view when hash is `demo` * Fix clipboard text building * Add -ms prefix to flex-direction * Set width for [type="color"] * Add macro example to the demo --- website/pages/index.html | 49 +++++++++++++- website/static/js/index.js | 109 ++++++++++++++++++++++++++++++-- website/static/static/index.css | 102 ++++++++++++++++++++++++++++-- 3 files changed, 246 insertions(+), 14 deletions(-) diff --git a/website/pages/index.html b/website/pages/index.html index 50535873..a93eef84 100644 --- a/website/pages/index.html +++ b/website/pages/index.html @@ -25,6 +25,7 @@ + @@ -48,14 +49,18 @@ View on GitHub -
+
+ + +
@@ -118,6 +123,44 @@ f(x) = \int_{-\infty}^\infty
MIT License ยท Built from the hard work of many contributors
+ +
+

KaTeX Options

+ + + + + + + + + + + + + + + + + +
+ +
+

+ + +

Editor Options

+
+
+
+