https://github.com/cassproject/cass-gap-analysis
Inspect and analyze gaps in learner profiles using CASS.
https://github.com/cassproject/cass-gap-analysis
Last synced: about 1 year ago
JSON representation
Inspect and analyze gaps in learner profiles using CASS.
- Host: GitHub
- URL: https://github.com/cassproject/cass-gap-analysis
- Owner: cassproject
- License: apache-2.0
- Created: 2018-10-23T21:49:15.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-12-23T22:25:19.000Z (over 4 years ago)
- Last Synced: 2025-02-07T04:41:27.010Z (over 1 year ago)
- Language: JavaScript
- Size: 8.9 MB
- Stars: 2
- Watchers: 9
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://travis-ci.org/cassproject/cass-gap-analysis)
# cass-gap-analysis
Competency and Skills Service -- Gap analysis
View your or another's profile and share assertions with your contacts.
# Features
* View your profile across all competency frameworks.
* Navigate your profile and understand what assertions and evidence contribute to it.
* Share assertions by compiling them into profiles and sharing them with others.
* Customizable - Change the default behavior of the cass-align via post messages.
* Unbranded and open source - Carries no branding information, allowing you to use it easily and without concern.
# Try it out
cass-gap-analysis is available for use in default installations as part of the Framework Viewer.
# Integration
Integrate the cass-gap-analysis into your website by nesting it into an iframe on your website.
```html
document.getElementsByTagName("iframe")[0].setAttribute("src", "cass-gap-analysis/index.html");
```
# URL Parameters
To ensure the iframe is passing the correct origin, pass the origin into the iframe using a URL parameter, `origin=window.location.origin`.
# Post Messages
CASS can operate using credentials and signals provided by the parent site. These credentials are passed into the iframe via a message, in order to avoid transmitting them over HTTP. Wait for a `{message:"waiting"}` message to be posted from the iframe.
```javascript
$("iframe").ready(function () {
$(window).on("message", function (event) {
if (event.originalEvent.data.message == "waiting") {
//Initialize the server and identity
//Set framework alignment parameters
}
});
});
```
## Setting the server
You must set the server and the identity to be used when accessing the server.
```javascript
$("iframe")[0].contentWindow.postMessage(JSON.stringify({
action: "initIdentity",
serverParm: selectedServer,
nameParm: loggedInIdentityName,
pemParm: loggedInPpkPem
}), window.location.origin);
```