Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

babe-project

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babe-project - npm Package Compare versions

Comparing version 0.0.6 to 0.0.7

_babe-styles.css

2

package.json
{
"name": "babe-project",
"version": "0.0.6",
"version": "0.0.7",
"description": "Basic Architecture for Browser-based experiments (https://github.com/babe-project)",

@@ -5,0 +5,0 @@ "main": "babe-main.js",

@@ -20,3 +20,3 @@ # \_babe project

To initialise the experiment import the babe `babeInit` function in `your_js_file.js`
To initialise the experiment import the babe `babeInit` function in `your_js_file.js`.

@@ -78,3 +78,44 @@ ```

Sample `index.html`
```
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>browser-based experiments</title>
<!-- fonts from Google fonts -->
<link href="https://fonts.googleapis.com/css?family=Noto+Sans:400,700|Noto+Serif:400,700|Playfair+Display:700" rel="stylesheet">
<!-- css -->
<link rel="stylesheet" type="text/css" href="node_modules/babe-project/babe-styles.css">
<!-- js dependencies -->
<script src="node_modules/mustache/mustache.min.js"></script>
<script src="node_modules/jquery/dist/jquery.min.js"></script>
<script src="node_modules/csv-js/csv.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.5/lodash.js"></script>
<!-- load the trials -->
<script type="module" src="index.js"></script>
</head>
<body>
<-- ask the participants to enable JavaScript in their browser -->
<noscript>This task requires JavaScript. Please enable JavaScript in your browser and reload the page. For more information on how to do that, please refer to
<a href='https://enable-javascript.com' target='_blank'>enable-javascript.com</a>
</noscript>
<!-- views are inserted in here -->
<main id='main'>
Loading...
</main>
</body>
</html>
```
#### \_babe's ready-made views

@@ -85,10 +126,10 @@

* trial type views:
* `forcedChoice` - [binary forced-choice task](docs/views.md)
* `textboxInput` [textbox input task](docs/views.md)
* `sliderRating` - [slider rating task](docs/views.md)
* `dropdownMenu` - [dropdown menu task](docs/views.md)
* `ratingScale` - [Likert-scale rating task](docs/views.md)
* `sentenceSelection` - [text selection task](docs/views.md)
* `imageSelection` - [click-on-a-picture task](docs/views.md)
* `keyPress`- press a [button task](docs/views.md)
* `forcedChoice` - [binary forced-choice task](https://github.com/babe-project/babe-base/blob/master/docs/views.md#forced-choice-binary-choice-task)
* `sliderRating` - [slider rating task](https://github.com/babe-project/babe-base/blob/master/docs/views.md#slider-rating-task)
* `textboxInput` [textbox input task](https://github.com/babe-project/babe-base/blob/master/docs/views.md#textbox-input-task)
* `dropdownMenu` - [dropdown menu task](https://github.com/babe-project/babe-base/blob/master/docs/views.md#dropdown-choice-task)
* `ratingScale` - [Likert-scale rating task](https://github.com/babe-project/babe-base/blob/master/docs/views.md#rating-scale-task)
* `sentenceSelection` - [text selection task](https://github.com/babe-project/babe-base/blob/master/docs/views.md#sentence-selection-task)
* `imageSelection` - [click-on-a-picture task](https://github.com/babe-project/babe-base/blob/master/docs/views.md#image-selection-task)
* `keyPress`- press a [button task](https://github.com/babe-project/babe-base/blob/master/docs/views.md#key-press-task)

@@ -95,0 +136,0 @@ * other views:

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