Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.idea
node_modules/

out/
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,22 @@ You can try it online at https://felipec.github.io/math-notepad/.

This is a simplified version of [Engineering-Solver](https://github.com/dvd101x/Engineering-Solver)
plus syntax highlighting.

## run instructions

simply run:
```sh
yarn install
```

and then:
```sh
yarn run start
```

## build instructions

run:
```sh
yarn run make
```
7 changes: 7 additions & 0 deletions css/highlight.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
33 changes: 18 additions & 15 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
<html lang="en">

<head>
<meta charset="utf-8">
<title>Notepad</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.5.1/styles/felipec.min.css">
<link rel="stylesheet" href="style.css">
<meta charset="utf-8">
<title>Notepad</title>
<link rel="stylesheet" href="css/highlight.min.css">
<link rel="stylesheet" href="css/style.css">
</head>

<body>
<div id="input" class="editor language-mathjs"></div>
<div id="output" class="editor language-mathjs"></div>
<div id="help" style="display: none">
<div id="input" class="editor language-mathjs"></div>
<div id="output" class="editor language-mathjs"></div>
<div id="help" style="display: none">
<h1 id="help_name"></h1>
<p id="help_description"></p>
<h2>Syntax</h2>
Expand All @@ -21,18 +21,21 @@ <h2>Examples</h2>
<pre><code id="help_examples" class="language-mathjs"></code></pre>
<h2>See also</h2>
<p id="help_seealso"></p>
</div>
</div>
</body>

<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.5.1/highlight.min.js"></script>
<script src="js/highlight.min.js"></script>
<script type="module">
import { CodeJar } from 'https://medv.io/codejar/codejar.js';
window.editor = CodeJar(input, hljs.highlightElement);
window.results = CodeJar(output, hljs.highlightElement);
import {CodeJar} from './js/codejar.js';

window.editor = CodeJar(input, hljs.highlightElement);
window.results = CodeJar(output, hljs.highlightElement);

// focus on window when opens
document.querySelector('#input').focus();
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjs/10.0.1/math.min.js"></script>
<script src="js/math.min.js"></script>
<script src="hljs/mathjs.js"></script>

<script src="script.js" defer></script>

<script src="js/notepad.js" defer></script>
</html>
Loading