freeCodeCamp / freeCodeCamp/devdocs

API JSON messaging

Open
#1,831 0 comments 0 reactions 0 assignees View on GitHub
feature
Dominant language
Ruby
Stars
39.5k
Forks
2.6k
Avg merge
4d 32m
Merged PRs (30d)
13

Description

I load devdocs in an iframe

## Example
2 function would look like this....

```js
window.parent.postMessage({message: { event:"css", type: "attribute",list:{} ,"*");
```

I post a JSON msg to you and you send BACK JSON to what i need or find and change what i need in the viewer.

```js
window.addEventListener('message', function(event) {
switch (event.data.message.event) {
case "CSS":
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.