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.4
  • latest
  • npm
  • Socket score

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

npm version

Description

The identityfusion module turns an HTML input into an interactive widget that administers the Dynamic Identity Fusion Index (DIFI) [1], which assesses the degree to which the user's 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.

demo

Two values are recorded:

  1. Distance
  2. Overlap

[1] Jimenez, J., Gomez, A., Buhrmester, M. D., Vázquez, A., Whitehouse, H., & Swann, W. B. (2016). The dynamic identity fusion index: A new continuous measure of identity fusion for web-based questionnaires. Social Science Computer Review, 34(2), 215-228.

Usage

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

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

Then include the library and create a new DIFIInput instance:

<script src="identityfusion.js"></script>
<script>
  var el = document.getElementById('DIFI');
  new identityfusion.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)

Disclaimer

This project is sponsored by the Defense Advanced Research Projects Agency through the NGS2 program. The contents of this directory does not necessarily reflect the position or the policy of the Government and no official endorsement should be inferred.

FAQs

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