montecarlo-inception
v1.0.0
Published
handling AS24 iframe
Downloads
3
Readme
montecarlo-inception
This package is responsible for handling the special case of AS24 <> Montecarlo Iframe
Try it
npm run build
- Open a live server (
npm i -g serve
) in theexample/
folder and opensimple.html
Installation
- Put this snippet at the end of your
body
tag:
<script
src="https://montecarlo.int.finanzcheck-shared.de/inception/inception/index.js"
charset="utf-8"
>
</script>
- Call
inception.init(inceptionOptions, extraOptions)
afterwards (for information about the options read further)
InceptionOptions
| Option | What | | ------------------- | ---------------------------------------------------------------- | | iframeName | Name of the iframe (will be used to identify the iFrame) | | iframeHostElementId | The id of the container which will hold the iFrame | | advertisement | AdvertismentId | | backUrl | The URL used to navigate to after a back click on the first page | | isOptOut | Did the user opt out before? |
ExtraOptions
This can be a flat object containing any data. After receiving the ready
event this data will be published back to the iFrames application.
For Monte-Carlo this should be the car data
ToDo
- [x] IFFE or executable
- [x] Load in script
- [x] Pass attributes to script tag (needed?)
- [x] on CDN mc.ffg.de/frame/Script.js
- [x] Build to same name e.g. „script.js“, no hash
- [x] Open iFrame after script OR at div#id
- [x] Handle events as in frameman
- [x] Setup pollard
- [x] compile to at least es5 maybe even es3
- [x] Should request PAAS log call to persist cookie as first party
- [x] Implement solution for backlink logic
- [x] Save traversal to local storage and publish it after iFrames application is ready
- [x] Guard/Handle localStorage and sessionStorage
- [x] set and return resume hash