babe-project
Advanced tools
Comparing version 0.0.6 to 0.0.7
{ | ||
"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: |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
366465
1861
344
1