From 73d9aca970f67d865a5293011973d240cd482eac Mon Sep 17 00:00:00 2001 From: Benjamin Blundell Date: Tue, 14 Jul 2015 13:53:17 +0100 Subject: [PATCH] added support for a slider that records changes as it is moved --- web/_lib/js/trial.js | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/web/_lib/js/trial.js b/web/_lib/js/trial.js index b980af1..2d2ba2e 100644 --- a/web/_lib/js/trial.js +++ b/web/_lib/js/trial.js @@ -129,6 +129,27 @@ Experigen.make_into_trial = function (that) { } + that.makeScaleSlider = function(labelmin, labelmax, min, max, value, step) { + Experigen.screen().responses++; + var str = ""; + str += ''; + str += '' + labelmin + ''; + + str += ''; + str += ''; + + str += '\n\n'; + str += ''; + str += '' + labelmax + ''; + str += ''; + str += "\n"; + return str; + } + + + that.playSound = function (soundID, caller) { // play the sound soundManager.play(soundID);