npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

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

  1. npm run build
  2. Open a live server (npm i -g serve) in the example/ folder and open simple.html

Installation

  1. 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>
  1. 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 readyevent 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