Mercurial > hg > webaudioevaluationtool
changeset 1381:320724a2389b
Test create from existing file, <page> node interfaces are now built and displayed. jQuery included.
author | Nicholas Jillings <nickjillings@users.noreply.github.com> |
---|---|
date | Fri, 12 Feb 2016 08:42:15 +0000 |
parents | 5dcad8eb2a02 |
children | 4f8d8ce55462 |
files | index.html test_create/style.css test_create/test_core.js test_create/test_create.html |
diffstat | 4 files changed, 22 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/index.html Thu Feb 11 17:28:27 2016 +0000 +++ b/index.html Fri Feb 12 08:42:15 2016 +0000 @@ -49,8 +49,9 @@ <!-- Load up the default page interface allowing for project setting loads, even if hard-coded--> <!-- Actual test interface design should be contained in the .js for ease of dynamic content--> <div id='topLevelBody'> + <span>Web Audio Evaluation Toolbox</span> </div> - <div id="popupHolder" class="popupHolder"> + <div id="popupHolder" class="popupHolder" style="visibility: hidden; z-index: -1"> <div id="popupContent"> <div id="popupTitleHolder" align="center"> <span id="popupTitle"></span>
--- a/test_create/style.css Thu Feb 11 17:28:27 2016 +0000 +++ b/test_create/style.css Fri Feb 12 08:42:15 2016 +0000 @@ -77,6 +77,7 @@ border-radius: 10px; margin: 10px; min-width: 92%; + background-color: rgba(255,255,255,0.5); } div.node-title { float: left;
--- a/test_create/test_core.js Thu Feb 11 17:28:27 2016 +0000 +++ b/test_create/test_core.js Fri Feb 12 08:42:15 2016 +0000 @@ -1266,9 +1266,11 @@ } if (parent.id != "setup") { var node = convert.interfaceDOM.children[0].attributes.find(obj.findNode,obj); - if (node.input.checked) { - obj.input.checked = false; - obj.input.disable = true; + if (node != undefined) { + if (node.input.checked) { + obj.input.checked = false; + obj.input.disabled = true; + } } } var text = document.createElement('span'); @@ -1299,9 +1301,11 @@ } if (parent.id != "setup") { var node = convert.interfaceDOM.children[0].attributes.find(obj.findNode,obj); - if (node.input.checked) { - obj.input.checked = false; - obj.input.disable = true; + if (node != undefined) { + if (node.input.checked) { + obj.input.checked = false; + obj.input.disabled = true; + } } } var text = document.createElement('span'); @@ -1714,6 +1718,14 @@ } // Build the components + for (var interfaceObj of this.specification.interfaces) + { + var newInterface = new this.parent.interfaceNode(this.parent,interfaceObj); + newInterface.build("Interface",""+this.specification.id+"-interface",this.childrenDOM); + this.children.push(newInterface); + this.interfaces.push(newInterface); + } + for (var elements of this.specification.audioElements) { var audioElementDOM = new this.audioElementNode(this,elements);