You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apps/class-solid/README.md
+22Lines changed: 22 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -61,3 +61,25 @@ If you add a preset the `src/lib/presets.ts` file needs to be updated.
61
61
62
62
An experiment from a preset can be opened from a url like `?preset=<preset-name>`.
63
63
For example to load <src/lib/presets/death-valley.json> use `http://localhost:3000/?preset=Death%20Valley`.
64
+
65
+
## Loading experiments from url
66
+
67
+
A saved experiment can be loaded from a url with the `preset` search query parameter.
68
+
69
+
For example `https://classmodel.github.io/class-web?e=https://wildfiredataportal.eu/fire/batea/class.json` will load the experiment from `https://wildfiredataportal.eu/fire/batea/class.json`.
70
+
71
+
The server hosting the json file must have CORS enabled for this to work, see https://enable-cors.org/ for details.
72
+
73
+
<details>
74
+
<summary>Local development</summary>
75
+
76
+
Besides the `pnpm dev` start a static web server hosting `apps/class-solid/src/lib/presets/` directory.
0 commit comments