Hedy is a gradual programming language to teach children programming. Gradual languages use different language levels, where each level adds new concepts and syntactic complexity. At the end of the Hedy level sequence, kids master a subset of syntactically valid Python.
The variable view was acting a little wanky, showing and hiding seemingly at random. After some digging, I found that this area was being hidden and shown by several pieces of code, so I tried to simplify the logic a bit; also instead of just hiding and showing the box, I added a little bit of animation by using JQuery's slideToggle.
Fixes #5553
How to test
Go to the code page, debug a program, and verify that the variable view is updated with each step, and that it can be hidden and shown without issues.
Thank you for contributing! Your pull request is now going on the merge train (choo choo! Do not click update from main anymore, and be sure to allow changes to be pushed to your fork).
The variable view was acting a little wanky, showing and hiding seemingly at random. After some digging, I found that this area was being hidden and shown by several pieces of code, so I tried to simplify the logic a bit; also instead of just hiding and showing the box, I added a little bit of animation by using JQuery's
slideToggle
.Fixes #5553
How to test
Go to the code page, debug a program, and verify that the variable view is updated with each step, and that it can be hidden and shown without issues.