Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

ceri-portal

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ceri-portal

teleports the content to another location in the dom

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

ceri-portal

teleports the content to another location in the dom. Features:

  • plain JS - no dependencies
  • 14kB unzipped - even smaller when using multiple ceri components
  • use in your markup - easy to reason about

Demo

Install

npm install --save-dev ceri-portal

Usage

window.customElements.define("ceri-portal", require("ceri-portal"))
<ceri-portal>
  <span>Will be appended to body</span>
</ceri-portal>
<ceri-portal target="#somewhere">
  <span>Will be appended to element with ID somewhere</span>
</ceri-portal>

For examples see dev/.

Props

Nametypedefaultdescription
targetString-where the content will be appended. Defaults to document.body. Uses document.querySelector.

Development

Clone repository.

npm install
npm run dev

Browse to http://localhost:8080/.

License

Copyright (c) 2016 Paul Pflugradt Licensed under the MIT license.

Keywords

portal

FAQs

Package last updated on 16 Jul 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts