Skip to content

Commit 5c19004

Browse files
Merge pull request #43 from Learnosity/LRN-38974/Create-demo-page-questions-api
[feature]Adding JSON structure with reference to Question api initial…
2 parents 19d6ba7 + a6bf743 commit 5c19004

26 files changed

+958
-53
lines changed

ChangeLog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
77

88
## [Unreleased]
99

10+
## [v0.9.2] - 2023-06-23
11+
### Security
12+
- Upgraded signature to match the security standard.
1013

1114
## [v0.9.1] - 2019-12-23
1215
### Added

LearnosityDemo/LearnosityDemo.sln

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 16
4+
VisualStudioVersion = 25.0.1704.3
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LearnosityDemo", "LearnosityDemo.csproj", "{27F96458-915A-4C09-91CF-C72F2144559F}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Any CPU = Debug|Any CPU
11+
Release|Any CPU = Release|Any CPU
12+
EndGlobalSection
13+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14+
{27F96458-915A-4C09-91CF-C72F2144559F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{27F96458-915A-4C09-91CF-C72F2144559F}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{27F96458-915A-4C09-91CF-C72F2144559F}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{27F96458-915A-4C09-91CF-C72F2144559F}.Release|Any CPU.Build.0 = Release|Any CPU
18+
EndGlobalSection
19+
GlobalSection(SolutionProperties) = preSolution
20+
HideSolutionNode = FALSE
21+
EndGlobalSection
22+
GlobalSection(ExtensibilityGlobals) = postSolution
23+
SolutionGuid = {1FD8BD7C-CC74-4222-AE18-82F15D9DF2CE}
24+
EndGlobalSection
25+
EndGlobal
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
@page
2+
@model LearnosityDemo.Pages.AssessAPIDemoModel
3+
@{
4+
ViewData["Title"] = "Learnosity Example: Standalone Assessment";
5+
ViewData["TopJS"] = "<script src=\"https://assess.learnosity.com?latest-lts\"></script>";
6+
7+
}
8+
<!-- Assess API will render the assess app into this id. -->
9+
<div id="learnosity_assess"></div>
10+
<!-- Initiate Assess API rendering, using the JSON blob of signed params. -->
11+
<script>
12+
const callbacks = {
13+
errorListener: function(e) {
14+
// Adds a listener to all error codes.
15+
console.log("Error Code ", e.code);
16+
console.log("Error Message ", e.msg);
17+
console.log("Error Detail ", e.detail);
18+
},
19+
20+
readyListener: function() {
21+
console.log("Learnosity Questions API is ready");
22+
}
23+
};
24+
25+
const assessApp = LearnosityAssess.init(@Html.Raw(ViewData["InitJSON"]), "learnosity_assess", callbacks);
26+
</script>

0 commit comments

Comments
 (0)