# HG changeset patch # User Nicholas Jillings # Date 1434471591 -3600 # Node ID 2c5fd23300556ac5599eaa93b8eb5748ecd6f1a1 # Parent c7c95761323d36c7d7612e0f3274b50ee361f1bd Implementing Features #1271 and #1272 diff -r c7c95761323d -r 2c5fd2330055 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 c7c95761323d -r 2c5fd2330055 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 - +