-
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.
Merge pull request #86 from MatsMoll/develop
[ExamSession][iOS Link] Added new exam session mode and link to iOS app
- Loading branch information
Showing
24 changed files
with
827 additions
and
474 deletions.
There are no files selected for viewing
43 changes: 43 additions & 0 deletions
43
Public/assets/images/Download_on_the_App_Store_Badge_NO.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,23 @@ | ||
function startExam(id) { | ||
|
||
let url = "/api/exams/" + id + "/start"; | ||
|
||
fetch(url, { | ||
method: "POST", | ||
headers: { | ||
"Accept": "application/json, text/plain, */*", | ||
"Content-Type" : "application/json" | ||
} | ||
}) | ||
.then(function (response) { | ||
if (response.ok) { | ||
return response.json(); | ||
} else { | ||
throw new Error(response.statusText); | ||
} | ||
}) | ||
.then(function (json) { | ||
let sessionID = json["id"]; | ||
window.location.href = "/exam-sessions/" + sessionID + "/tasks/1"; | ||
}) | ||
} |
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
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
Oops, something went wrong.