GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - MCWillemsen/mouselabWEB20: Development version of MouselabWEB 2.0

BranchesTags
Open more actions menu

Latest commit

 

History

59 Commits
59 Commits

Folders and files

NameName
Last commit message
Last commit date
json_files
json_files
 
 
tmp
tmp
 
 
3star.png
3star.png
 
 
5star.png
5star.png
 
 
README.md
README.md
 
 
create_table.php
create_table.php
 
 
datalyser.php
datalyser.php
 
 
download.php
download.php
 
 
flextest.php
flextest.php
 
 
gamble.php
gamble.php
 
 
gamble2.php
gamble2.php
 
 
gamble3.php
gamble3.php
 
 
import.html
import.html
 
 
import.js
import.js
 
 
import_v1.html
import_v1.html
 
 
jquery-3.1.1.min.js
jquery-3.1.1.min.js
 
 
jquery.foggy.min.js
jquery.foggy.min.js
 
 
json structure and properties.docx
json structure and properties.docx
 
 
main.js
main.js
 
 
mlweb.css
mlweb.css
 
 
mlweb20.js
mlweb20.js
 
 
mlwebdb.inc.php
mlwebdb.inc.php
 
 
mouselabEditor.css
mouselabEditor.css
 
 
mouselabEditor.html
mouselabEditor.html
 
 
mouselabEditor.js
mouselabEditor.js
 
 
mouselabEditor.php
mouselabEditor.php
 
 
pb_control.html
pb_control.html
 
 
playback.html
playback.html
 
 
playback.php
playback.php
 
 
save.php
save.php
 
 
survey.php
survey.php
 
 
thanks.html
thanks.html
 
 
tv.php
tv.php
 
 
tva.jpg
tva.jpg
 
 
tvb.jpg
tvb.jpg
 
 
tvc.jpg
tvc.jpg
 
 
w3.css
w3.css
 
 

Repository files navigation

mouselabWEB20

Development version of MouselabWEB 2.0

This github contains a beta version of mouselabWEB 2.0. What are the important new features?

  • based on jQuery and w3.css (easy and responsive layout)
  • uses a json definition file for the mouselab table
  • works with a touch screen
  • can use blurring on boxes rather than a box covering the information
  • new mysqli code compatible with newer php versions in the php scripts
  • new very flexible layout with cells containing subcells
  • beta version of an editor
  • updated datalyser with playback function and delay compensation in processing scripts (June 2021) many todo's such as:
  • better documentation
  • better tools / explanation for running multiple pages

Demo

Go the the following link to test a demo version (enter your own identifier in the "subject=" part if you want to later review your own data)

https://mlweb2.mouselabweb.org/demo/tv.php?subject=test&condnum=0 Use condnum to see different versions of the orders or use condnum=-1 to determine this randomly

The demo covers 5 pages:

  • page 1: tv example with a lot of w3.css based formatting, looking like an actual web shop. using Blur and using a new feature that has cells within cells (for example, 5 reviews in one cell).
  • page 2: flextest example with more flexible box layouts (not that the beta editor does not support to create such cells in cells approach yet)
  • page 3: survey page with example of typical survey style questions (radio, open, checkbox, scale)using w3.css formatting and jquery type of validation.
  • page 4 and 5: two gambles with options that have several outcomes and probabilities, again using subcells to hold an probability outcome pair. Two versions using two different sets defined in the same json file, that have a transposed order (using attributeCol or optionCol formatting). So both gamble pages use the same json-definition file! The file also has many delays between some comparisons.

Check for the data:

https://mlweb2.mouselabweb.org/demo/datalyser.php


Editor

MouselabWEB comes with a new editor (beta) that allows you to edit the JSON structure by point and click, or load files ad adjust them. The files allow for creating and adjusting the boxes. https://mlweb2.mouselabweb.org/demo/mouselabEditor.php note that the php version works better than the .html version


Importer

MouselabWEB 2.0 can import a table structure from mouselabWEB 1.0 and create a version 2 json and php file that is as close as possible It also has a preview function to directly whether it worked. https://mlweb2.mouselabweb.org/demo/import_v1.html It allows to directly send the new file to the editor for further adjustments


Installation

(similar to mouselabWEB 1.0, check the old manual here: https://mouselabweb.org/downloads/mlwebdoc_100b.pdf)

  • Download all files
  • Edit the mlwebdb.inc.php with your database connection
  • Upload all files to a webserver (local via xampp or online)
  • run create_table.php to create the table into the database

test

Start with flextest.php or any other of the files as shown in the demo if you add subject and condnum, you have more control over presentation order (e.g. gamble.php?subject=martijn&condnum=2)

The demo files show the possibilities of using the JSON description files (more documentation is still in the making)


how does it work

check the document with the JSON properties, and pick an existing JSON file to edit it. The JSON editor currently being developed (mouselabEditor.php) can help with this. Note that if the json code breaks, you can use an online JSON validator to see where the errors are. Take an existing php page (like gamble.php) and edit that for your own purposes. You only need to edit nextURL, expname and the json file that is loaded in the comment generateTrial to create a new page. The basic idea is that a study is a set of pages that link to eachother via the nextURL. See the original MouselabWEB documentation for the basic idea.


Some other differences compared to earlier versions and original MouselabWEB

  • Uses post in stead of get variables to pass subject and condnum to the next page. Get variables override post variables though. If you start a page with get variables, it wil transfer them to post an get rid of the get variables in the header of the next page.
  • some small changes in default settings of saving data (CSV) and mlwebform name now included in the javascript so no need anymore for setting these in every page
  • checkForm script can still be used but has bugs: The preferred way is to use the jQuery required feature to set form elements to be required (see the survey.php for a demonstration of all possibilities).
  • delay matrix does not have to be defined between all cells, just define it for the cells you want delays with (see tv.php example). Delays will be compensated for in the processed output of the datalyser

About

Development version of MouselabWEB 2.0

Topics

mouselab

Resources

Readme
Activity

Stars

9 stars

Watchers

4 watching

Forks

11 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.