mirror of
https://github.com/ParkerTenBroeck/automata.git
synced 2026-06-06 21:24:06 -04:00
organizing frontend
This commit is contained in:
parent
2c836875d2
commit
2e6330196d
7 changed files with 203 additions and 183 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import { setText } from "./editor.ts";
|
||||
import { bus } from "./bus.ts";
|
||||
|
||||
export type Category =
|
||||
| "Tutorial"
|
||||
|
|
@ -241,6 +241,6 @@ function buildExamplesDropdown(
|
|||
}
|
||||
|
||||
const selectEl = document.getElementById("exampleSelect") as HTMLSelectElement;
|
||||
buildExamplesDropdown(selectEl, examples, (picked) => {
|
||||
setText(picked.machine);
|
||||
buildExamplesDropdown(selectEl, examples, (example) => {
|
||||
bus.emit("example/selected", {example});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue