Skip to content
A Javascript library to conveniently add distribution builders to your online and offline experiments.
JavaScript TypeScript CSS TeX
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
dependencies
docs
lib
public/fonts
src
.gitignore
LICENSE
QualtricsExample.qsf
README.md
distributionbuilder.css
distributionbuilder.min.js
distributionbuilder.zip
package.json
reference.bib
tsconfig.json
webpack.config.js

README.md

distBuilder

A Javascript library to conveniently add distribution builders to your online and offline experiments.

Changelog:

v1.3 (master)

  • Added method: DistributionBuilder.setDistribution(). This function is useful if you want the user to start from a pre-specified distribution. Thanks to Roy Hsieh for the suggestion!

v1.2

  • Minor changes to CSS to enhance compatibility with Qualtrics.
  • distBuilder has been rewritten in Typescript. This does not affect the behavior of the library in any way, but makes it easier for developers to build more complex apps on top of distBuilder.

v1.1

  • The width of the distribution builder is now automatically adjusted using CSS flexbox.
  • The argument resize of DistributionBuilder.render() will be deprecated in future versions. For compatibility reasons, using the resize argument does not raise an error, but it no longer affects the behavior of the distribution builder.
  • Changed the HTML structure: the inner <div class="cell"></div> now includes a <div class="ball"></div>. The appearance of the "balls" in the distribution builder can now be changed more easily.
  • The method getDistribution() now returns a copy of the current allocation. This is to avoid accidental side-effects.

v1.0

  • First release of the library.

DOI

You can’t perform that action at this time.