-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #63 added an introduction page and FRED only accessable by pres…
…sing continue button
- Loading branch information
1 parent
b3dbda1
commit 082088f
Showing
4 changed files
with
42 additions
and
160 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
//======================================================================== | ||
// SciKit-SurgeryFRED Introduction | ||
//======================================================================== | ||
|
||
|
||
function startfredo() { | ||
|
||
console.log("starting fred"); | ||
fetch("/startfred", { | ||
method: "POST", | ||
headers: { | ||
"Content-Type": "application/json" | ||
}, | ||
body: JSON.stringify({ | ||
"ok": 0 | ||
}) | ||
}) | ||
.then(resp => resp.text()) | ||
.then(data => { | ||
console.log(data); | ||
document.write('crumbs'); | ||
document.write(data); | ||
}) | ||
.catch(err => { | ||
console.log("error"); | ||
console.log("An error occured when trying to start fred", err.message); | ||
window.alert("An error occured when trying to start fred"); | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters