60
u/shredinger137 Oct 21 '19
This reminds me of learning programs like Scratch, but more advanced. Were you intending to go somewhere with this, or is it just a demo? I ask because there are some parallels with my job and related projects. The teaching tools market has quite a bit of opportunity.
5
53
11
8
u/franksvalli Oct 22 '19 edited Oct 22 '19
Kinda a nitpick - I would avoid using DOM level 0 events, since you can only add one per element. The spec for DOM level 2 events via addEventListener was introduced in the year 2000 (e.g. document.addEventListener('mousemove', event => {}, false)). The newest browser that doesn't support it is IE8, so you're pretty safe using it instead!
16
7
3
5
2
u/YmFzZTY0dXNlcm5hbWU_ Oct 21 '19
Very cool. Any plans to post the project so we can give it a try, or is it closed source?
I suck at Javascript so this would be a great way to tinker with it in a more accessible way.
2
Oct 21 '19
This is so cool! I've been wanting to make something like this for myself, do you have source code available? Thanks!
2
1
1
1
1
1
u/z1024 Oct 21 '19
What happens with the visual thingy when you edit the text? What if the code has an error?
1
1
u/Middlerun Oct 22 '19
Cool! I've been getting interested in this sort of thing lately. Are you aiming for a general-purpose editor covering the entire language, or just specific tasks like event handlers?
1
1
1
1
Oct 21 '19
Sweet! How did you format the code on the right hand side? Is there a library which does this? I need to do something similar for my dissertation
4
2
-20
Oct 21 '19
[removed] — view removed comment
0
Oct 21 '19
[deleted]
1
48
u/rahatchd Oct 21 '19
u used the javascript to render the javascript
back to the javascript and back