From 1422ade597d720eee50a921bd71cfb5d587299ca Mon Sep 17 00:00:00 2001 From: Hugvey Central Command Date: Tue, 12 Nov 2019 09:54:55 +0100 Subject: [PATCH] Changes and fixes on the spot --- hugvey/.story.py.swp | Bin 0 -> 1024 bytes hugvey/central_command.py | 11 ++++++----- hugvey/story.py | 2 +- pd/loopaudio.pd | 26 +++++++++++++------------- requirements.txt | 2 ++ www/js/hugvey_timeline.js | 20 +++++++++++--------- 6 files changed, 33 insertions(+), 28 deletions(-) create mode 100644 hugvey/.story.py.swp diff --git a/hugvey/.story.py.swp b/hugvey/.story.py.swp new file mode 100644 index 0000000000000000000000000000000000000000..fe62581b9cc0cef488ad08626e649c530184fb93 GIT binary patch literal 1024 zcmYc?$V<%2S1{HyVn6}sIT;u-O4G|yD^Y~8av { - if (event.target.checked) { - playSoundOnError = true; - } else { - playSoundOnError = false; - } -}) +if(checkbox_sound != null) { + checkbox_sound.addEventListener('change', (event) => { + if (event.target.checked) { + playSoundOnError = true; + } else { + playSoundOnError = false; + } + }) +} //request close before unloading window.addEventListener('beforeunload', function(){ @@ -177,7 +179,7 @@ class Timeline{ case 'story': // 'info': 'start'/'finished' this.eventDataSet.add({ - content: msg['type'] +': ' + msg['info'] + (msg.hasOwnProperty('args')? ': '+msg['args'] : ""), + title: msg['type'] +': ' + msg['info'] + (msg.hasOwnProperty('args')? ': '+msg['args'] : ""), start: new Date(), type: 'point', group: hv_id, 'className': 'story'}); break; @@ -187,7 +189,7 @@ class Timeline{ break; default: this.eventDataSet.add({ - content: msg['type'] +': ' + msg['info'] + (msg.hasOwnProperty('args')? ': '+msg['args'] : ""), + title: msg['type'] +': ' + msg['info'] + (msg.hasOwnProperty('args')? ': '+msg['args'] : ""), start: new Date(), type: 'point', group: hv_id, 'className': msg['lvlname']}); if (msg['lvlname'] == 'CRITICAL' && playSoundOnError) { // error_audio.play();