diff --git a/README.md b/README.md index 27a6075a..0437ec18 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ JS-Interpreter ============== +Full width + A sandboxed JavaScript interpreter in JavaScript. Execute arbitrary JavaScript code line by line in isolation and safety. diff --git a/fullWidth.jpg b/fullWidth.jpg new file mode 100644 index 00000000..58ca1460 Binary files /dev/null and b/fullWidth.jpg differ diff --git a/index.css b/index.css new file mode 100644 index 00000000..fc9e6a1e --- /dev/null +++ b/index.css @@ -0,0 +1,60 @@ +* { + margin: 0; + padding: 0; + box-sizing: border-box; +} +.container { + max-width: 1200px; + width: 100%; + padding-right: 15px; + padding-left: 15px; + margin: 2rem auto; +} + +.container h1 { + margin: 1rem 0; + font-weight: 600; + font-size: x-large; + color: #324146; +} + +.container .description { + margin-bottom: .8rem; + font-weight: 100; + color: #355056; +} + +textarea { + background-color: #355056; + border: 1px solid #324146; + border-radius: .3rem; + color: #ffffff; + padding: .5rem 0; + margin-bottom: .5rem; +} + +button { + display: inline-block; + font-weight: 400; + text-align: center; + white-space: nowrap; + vertical-align: middle; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; + border: 1px solid transparent; + padding: 0.375rem 0.75rem; + font-size: 1rem; + line-height: 1.5; + border-radius: 0.25rem; + transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; + cursor: pointer; + margin-bottom: .5rem; +} + +button:hover { + color: #fff; + background-color: #324146; + border-color: #324146; +} \ No newline at end of file diff --git a/index.html b/index.html index b1ef32d4..ebf7f2e8 100644 --- a/index.html +++ b/index.html @@ -3,8 +3,12 @@ JS-Interpreter Demo + + + + -

JS-Interpreter Demo

- -

Enter JavaScript code below, then click Parse. To execute, either - click Step repeatedly, or click Run once. - Open your browser's console for errors.

-


- - - -

- -

- -

- -

Read the JS-Interpreter documentation.

-

Get the source code.

- + } + fibonacci(16, result); + alert(result.join(', ')); +
+ + + +

+ +

+ +

+ +

Read the JS-Interpreter documentation.

+

Get the source code.

+ + diff --git a/mobWidth.jpg b/mobWidth.jpg new file mode 100644 index 00000000..51b90533 Binary files /dev/null and b/mobWidth.jpg differ