New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

identityfusion

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

identityfusion

Turns an HTML input into a Dynamic Identity Fusion Index (DIFI) widget

  • 1.0.2
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-91.3%
Maintainers
1
Weekly downloads
 
Created
Source

Description

The identityfusion module turns an HTML input into an interactive widget for the user to indicate the degree to which their own identity fuses with a group identity. The widget consists of a circle labeled "Me" which can be dragged or moved using buttons to overlap a circle which represents the group. Two values are recorded:

  1. Distance
  2. Overlap

Usage

To use the widget, create an HTML input with a name:

<input name="DIFI" id="DIFI" />

Then create a new DIFIInput instance:

<script>
  var el = document.getElementById('DIFI');
  new dynamicidentity.DIFIInput(el, {
    groupLabel: 'USA'
  });
</script>

Instantiating the DIFIInput will replace the original input with two hidden inputs named DIFI_distance and DIFI_overlap (with the original name as the prefix).

See dist/demo.html for an example.

Options

Several options can be specified in the second parameter when constructing a DIFIInput:

  • meLabel: The label for the circle representing the user. (Default: Me)
  • groupLabel: The label for the circle representing the group. (Default: Group)
  • groupImage: URL for an image to be shown as the background of the group circle. (Default: none)

FAQs

Package last updated on 02 Jun 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc