-
Notifications
You must be signed in to change notification settings - Fork 4
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 #43 from Learnosity/LRN-38974/Create-demo-page-que…
…stions-api [feature]Adding JSON structure with reference to Question api initial…
- Loading branch information
Showing
26 changed files
with
958 additions
and
53 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,25 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
# Visual Studio Version 16 | ||
VisualStudioVersion = 25.0.1704.3 | ||
MinimumVisualStudioVersion = 10.0.40219.1 | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LearnosityDemo", "LearnosityDemo.csproj", "{27F96458-915A-4C09-91CF-C72F2144559F}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|Any CPU = Debug|Any CPU | ||
Release|Any CPU = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{27F96458-915A-4C09-91CF-C72F2144559F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{27F96458-915A-4C09-91CF-C72F2144559F}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{27F96458-915A-4C09-91CF-C72F2144559F}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{27F96458-915A-4C09-91CF-C72F2144559F}.Release|Any CPU.Build.0 = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
GlobalSection(ExtensibilityGlobals) = postSolution | ||
SolutionGuid = {1FD8BD7C-CC74-4222-AE18-82F15D9DF2CE} | ||
EndGlobalSection | ||
EndGlobal |
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,26 @@ | ||
@page | ||
@model LearnosityDemo.Pages.AssessAPIDemoModel | ||
@{ | ||
ViewData["Title"] = "Learnosity Example: Standalone Assessment"; | ||
ViewData["TopJS"] = "<script src=\"https://assess.learnosity.com?latest-lts\"></script>"; | ||
|
||
} | ||
<!-- Assess API will render the assess app into this id. --> | ||
<div id="learnosity_assess"></div> | ||
<!-- Initiate Assess API rendering, using the JSON blob of signed params. --> | ||
<script> | ||
const callbacks = { | ||
errorListener: function(e) { | ||
// Adds a listener to all error codes. | ||
console.log("Error Code ", e.code); | ||
console.log("Error Message ", e.msg); | ||
console.log("Error Detail ", e.detail); | ||
}, | ||
readyListener: function() { | ||
console.log("Learnosity Questions API is ready"); | ||
} | ||
}; | ||
const assessApp = LearnosityAssess.init(@Html.Raw(ViewData["InitJSON"]), "learnosity_assess", callbacks); | ||
</script> |
Oops, something went wrong.