Skip to content

Conversation

@AngelaRemolina
Copy link
Owner

@AngelaRemolina AngelaRemolina commented Jun 23, 2021

This PR resolves #8
A console is shown on the bottom part of the iframe. Here is displayed the result of the print() function and errors.
Here is a gif of how it looks and works:

console

Note: This is one approach where the console.error, console.debug, console.info and console.log function is redefined to log in screen as well. A better aproach is under construction #12

@AngelaRemolina
Copy link
Owner Author

AngelaRemolina commented Jun 27, 2021

The last commit adds the highlight.js module so errors get highlighted with colors.
The position of the <pre> element is on top when is an error and on bottom when is a print() statement.

console-highlight

@AngelaRemolina
Copy link
Owner Author

This approach works but we have chosen to use this one #13

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

Successfully merging this pull request may close these issues.

Show a console below the iframe

2 participants