random-x

Web component that randomly displays only one of its child elements.

Usage no npm install needed!

<script type="module">
  import randomX from 'https://cdn.skypack.dev/random-x';
</script>

README

A simple web component for experimenting with DOMx-based web components, with a minimum of meaningful code. In this case, it merely displays a single child element and detaches the others. It was developed for the DOMx docs.

Bower: bower install random-x
NPM: npm install random-x
Build Status

Full Version:

Download: random-x.min.js or random-x.js

Release History

  • 2014-12-04 v0.1.0 (first public release)