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

sezion-player-injector

v2.0.0

Published

UI plugin to get a sezion id from the URL and load the sezion's player

Downloads

2

Readme

sezion-player-injector

UI component to get a sezion id from the url and initialize a sezion's player.

By default, the component will try to auto initialize players on document load. Please note If you are using the script tag to import the component, all the properties must be accesses through sezionPlayerInjector

Auto init with id in the url

Include in the html the iframe tag with the GlobalSezionPlayerInjectorParams.query.

The component will try to get the video id from the url using GlobalSezionPlayerInjectorParams.urlSearchParam

<iframe data-sezion-player-injector></iframe>

To disable the auto init use SezionPlayerInjector.GLOBAL.autoInitOnLoad = false

<script src="../dist/sezion-player-injector.js"></script>
<script>
 sezionPlayerInjector.SezionPlayerInjector.GLOBAL.autoInitOnLoad = false;
</script>

## Auto init with id in the element
 Include in the html the iframe tag with the `GlobalSezionPlayerInjectorParams.query`
 
```html
<iframe data-sezion-player-injector data-sezion-video-id="videoId"></iframe>

Disable auto init

To disable the auto init use SezionPlayerInjector.GLOBAL.autoInitOnLoad = false

<script src="../dist/sezion-player-injector.js"></script>
<script>
 sezionPlayerInjector.SezionPlayerInjector.GLOBAL.autoInitOnLoad = false;
</script>

Manual init

<head>
<script src="../dist/sezion-player-injector.js"></script>
<script>
 sezionPlayerInjector.SezionPlayerInjector.GLOBAL.autoInitOnLoad = false;
</script>
</head>
<body>
    <iframe id="sezionPlayer"></iframe>
    <script>
        new sezionPlayerInjector.SezionPlayerInjector({
            element:"#sezionPlayer",
            videoId:"videoId"
        });
    </script>
</body>

Examples

Examples are available in the examples folder.

Also could be checked here:

  • http://enproyecto.com/spi/url.html?sezionVideo=5818e54ef0f8f11703fa2b1d
  • http://enproyecto.com/spi/attribute.html
  • http://enproyecto.com/spi/manual.html
  • http://enproyecto.com/spi/disable-auto-init.html

Dev

Available tasks:

  • npm run build: Build the sources. Generates dist and esm2015
  • npm run doc: Generate the docs
  • npm run changelog: Generate the changelog