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

@backlineint/results-tracker

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@backlineint/results-tracker

An election results tracker based on the New York Times election results tracker.

latest
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

Results Tracker

An election results tracker, created as an exploration of web components. Based on the New York Times election results tracker.

Installing

npm i @backlineint/results-tracker

Importing

In a JavaScript module:

import 'some-package-name';

In an HTML page:

<script type="module" src="./path-to/results-tracker/results-tracker.js"></script>

Using:

The custom element can be used with the following attributes:

<results-tracker
  headline="Race Between Old Men Too Close To Call"
  race="President"
  total="538"
  candidates='[
      {"name": "Joseph R. Biden Jr.", "primary": 253, "secondary": 73879622, "color": "#1375b7"},
      {"name": "Donald J. Trump", "primary": 214, "secondary": 69772905, "color": "#c93135"}
    ]'
>
  <p>Nation tired of hitting reload in their web browsers.</p>
</results-tracker>

Keywords

web-components

FAQs

Package last updated on 01 Dec 2020

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