Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@
<input type="radio" name="backend_inputs" value="mathbox" id="backend_mathbox">
<label for="backend_mathbox" title="Use the try-mathbox backend">Mathbox</label>
</li>
<li>
<input type="radio" name="backend_inputs" value="behaviors" id="backend_behaviors">
<label for="backend_behaviors" title="Use the try-behaviors backend">Behaviors</label>
</li>
</ul>

<ul id="gists">
Expand Down
9 changes: 9 additions & 0 deletions js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,15 @@ $(function() {
extra_body: '',
bundleAndExecute: defaultBundleAndExecute
};
} else if (backend === "behaviors") {
return {
backend: "behaviors",
endpoint: "https://compile.purescript.org/behaviors",
mainGist: "ff1e87f0872d2d891e77d209d8f7706d",
extra_styling: '',
extra_body: '<canvas id="canvas" width="800" height="600"></canvas>',
bundleAndExecute: defaultBundleAndExecute
};
} else { // core
return {
backend: "core",
Expand Down