# HG changeset patch # User Nicholas Jillings # Date 1434471591 -3600 # Node ID 3cc4088aa6d58bc5ac5ad8a793731e79fad97910 # Parent 7c93a516b7487525c80132ee43953d0f2d4d1c5b Implementing Features #1271 and #1272 diff -r 7c93a516b748 -r 3cc4088aa6d5 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 7c93a516b748 -r 3cc4088aa6d5 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 - +