Skip to content

Commit

Permalink
more thread handling
Browse files Browse the repository at this point in the history
  • Loading branch information
aidandempsey committed Oct 27, 2024
1 parent 043da57 commit ced5727
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions application/notebook_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -1118,8 +1118,8 @@ def create_html_css_js(parsed_all_ports: list[dict], clock_enabled: bool, io_map
return HTML(html_code)
display(Javascript(\"\"\"
for (let i = 0; i < 1000; i++) {
display(Javascript(\"\"\"
for (let i = 0; i < 10000; i++) {
clearInterval(i);
}
\"\"\"))
Expand Down Expand Up @@ -1405,17 +1405,17 @@ def generate_set_signals_or_run_clock_period_function(output_textboxes: list[str
output: data => {{
if (data.content.text && data.content.text.trim() !== '') {{
let output = data.content.text.trim().split(",")
let output = data.content.text.trim().split(",")
output.forEach(output => {{
output = output.split(":")
output = output.split(":")
const element = document.getElementById(output[0])
const value = parseInt(output[1], 10)
if (element.tagName === "INPUT") {{
element.value = "0x" + value.toString(16)
}} else if (element.tagName === ("BUTTON")){{
}} else if (element.tagName === ("BUTTON")) {{
element.textContent = value === 1 ? '1' : '0';
element.classList.remove('mod-success', 'mod-danger');
element.classList.add(value === 1 ? 'mod-success' : 'mod-danger');
element.classList.add(value === 1 ? 'mod-success' : 'mod-danger');
}}
}})
}}
Expand Down

0 comments on commit ced5727

Please sign in to comment.