Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can you add an html input output interface? #60

Open
glennhanks opened this issue May 10, 2020 · 0 comments
Open

Can you add an html input output interface? #60

glennhanks opened this issue May 10, 2020 · 0 comments

Comments

@glennhanks
Copy link

glennhanks commented May 10, 2020

Dear developer, thanks a lot for the great project!

I am completely a newbie in programming. I would like to have an html input output interface that I can use instantly. I tried to learn a little html and javascript and have written a stupid html with the following code, which does not work at all. Could you please help make it work? Or even better, you can provide a better version? Thanks a lot anyway!

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>tex2max</title>

<script src="C:/Users/dell/node_modules/tex2max/lib/tex2max.js">
const tex2max = require('tex2max');
const converter = new tex2max();
</script>

</head>

<body>

<form oninput="y.value=converter.toMaxima(z.value)">
LaTeX: <input type="text" id="z" value=" "><br>
Maxima: <output name="y" for="z"></output>

<br>
converter.toMaxima("z.value")
z.value

</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant