mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-11 16:18:11 +00:00
add auto_update_progress_bar property to jsPsych.init
This commit is contained in:
parent
bf816b317b
commit
38ab6c16d8
@ -72,6 +72,7 @@ window.jsPsych = (function() {
|
||||
'preload_audio': [],
|
||||
'exclusions': {},
|
||||
'show_progress_bar': false,
|
||||
'auto_update_progress_bar': true,
|
||||
'auto_preload': true,
|
||||
'show_preload_progress_bar': true,
|
||||
'max_load_time': 60000,
|
||||
@ -737,7 +738,7 @@ window.jsPsych = (function() {
|
||||
var complete = timeline.advance();
|
||||
|
||||
// update progress bar if shown
|
||||
if (opts.show_progress_bar === true) {
|
||||
if (opts.show_progress_bar === true && opts.auto_update_progress_bar == true) {
|
||||
updateProgressBar();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user