Commit 2d99f1a3 authored by Peiling Jiang's avatar Peiling Jiang

update for psychojs

parent f4f6ca76
import { sound } from "./lib/psychojs-2021.2.3.js";
import { sound } from "../psychojs/out/psychojs-2021.3.0.js";
const { TonePlayer } = sound;
const default_env = {
......
......@@ -9,7 +9,7 @@
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/jquery-ui-dist@1.12.1/jquery-ui.min.css"
/>
<link rel="stylesheet" href="./lib/psychojs-2021.2.3.css" />
<link rel="stylesheet" href="./psychojs/out/psychojs-2021.3.0.css" />
<link rel="stylesheet" href="./css/utils.css" />
<link rel="stylesheet" href="./css/custom.css" />
<link rel="stylesheet" href="./css/instructions.css" />
......
......@@ -4,12 +4,9 @@
"private": "true",
"description": "Threshold Participant.",
"main": "threshold.js",
"directories": {
"lib": "lib"
},
"scripts": {
"setup": "npm run setup:preprocessor && npm run setup:psychojs",
"setup:preprocessor": "pip install -r lib/legacy/requirements.txt && python lib/legacy/preprocessor.py experiment.csv",
"setup:preprocessor": "pip install -r addons/legacy/requirements.txt && python addons/legacy/preprocessor.py experiment.csv",
"setup:psychojs": "cd psychojs && git checkout threshold-prod && npm i && npm run build:css && npm run build:js",
"format": "prettier --write \"**/*.{js,css,html,md}\"",
"prepare": "husky install"
......
......@@ -4,7 +4,7 @@
const debug = false;
import { core, data, util, visual } from "./lib/psychojs-2021.2.3.js";
import { core, data, util, visual } from "./psychojs/out/psychojs-2021.3.0.js";
const { PsychoJS } = core;
const { TrialHandler, MultiStairHandler } = data;
const { Scheduler } = util;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment