# HG changeset patch # User Nicholas Jillings # Date 1434471591 -3600 # Node ID a17a380e246951407ffede204b6746bbcbce99fc # Parent 13e79bef8b019b5ec04d961756fa3bfc60689829 Implementing Features #1271 and #1272 diff -r 13e79bef8b01 -r a17a380e2469 core.js --- a/core.js Tue Jun 16 16:59:08 2015 +0100 +++ b/core.js Tue Jun 16 17:19:51 2015 +0100 @@ -1358,6 +1358,21 @@ this.url = xml.getAttribute('url'); this.id = xml.id; this.parent = parent; + this.anchor = xml.getAttribute('anchor'); + if (this.anchor == 'true') {this.anchor = true;} + else {this.anchor = false;} + + this.reference = xml.getAttribute('reference'); + if (this.reference == 'true') {this.anchor = true;} + else {this.reference = false;} + + if (this.anchor == true && this.reference == true) { + console.log('ERROR - Cannot have one audioElement be both the reference and anchor!') + console.log(this); + console.log('Neither will be enabled'); + this.anchor = false; + this.reference = false; + } }; this.commentQuestionNode = function(xml) { diff -r 13e79bef8b01 -r a17a380e2469 example_eval/project.xml --- a/example_eval/project.xml Tue Jun 16 16:59:08 2015 +0100 +++ b/example_eval/project.xml Tue Jun 16 17:19:51 2015 +0100 @@ -39,6 +39,8 @@ + 20 + 80 @@ -50,7 +52,7 @@ 20 Comment on fragment - +