Mercurial > hg > webaudioevaluationtool
comparison test_create/test_create.html @ 325:d8fd1699f6de Dev_main
stash. test_create question now shows box size options.
author | Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk> |
---|---|
date | Tue, 13 Oct 2015 10:20:04 +0100 |
parents | f73d9333ab0d |
children | 4ec19035710e |
comparison
equal
deleted
inserted
replaced
324:25c16110d0fa | 325:d8fd1699f6de |
---|---|
27 var AudioContext = window.AudioContext || window.webkitAudioContext; | 27 var AudioContext = window.AudioContext || window.webkitAudioContext; |
28 audioContext = new AudioContext; | 28 audioContext = new AudioContext; |
29 popupInstance = new popup(); | 29 popupInstance = new popup(); |
30 popupInstance.advanceState(); | 30 popupInstance.advanceState(); |
31 specificationNode = new Specification(); | 31 specificationNode = new Specification(); |
32 specificationNode.projectReturn = "null"; | |
32 }; | 33 }; |
33 | 34 |
34 function popup() | 35 function popup() |
35 { | 36 { |
36 var x = window.innerWidth; | 37 var x = window.innerWidth; |
1488 this.title = "New Pre Test Node"; | 1489 this.title = "New Pre Test Node"; |
1489 this.parent = specificationNode.postTest; | 1490 this.parent = specificationNode.postTest; |
1490 this.node = null; | 1491 this.node = null; |
1491 this.previousState = 7; | 1492 this.previousState = 7; |
1492 }; | 1493 }; |
1493 popupInstace.state = 6; | 1494 popupInstance.state = 6; |
1494 popupInstance.advanceState(); | 1495 popupInstance.advanceState(); |
1495 }; | 1496 }; |
1496 entry.appendChild(addPost); | 1497 entry.appendChild(addPost); |
1497 postHolder.appendChild(entry); | 1498 postHolder.appendChild(entry); |
1498 | 1499 |
2190 attributes.appendChild(input); | 2191 attributes.appendChild(input); |
2191 text = document.createElement("span"); | 2192 text = document.createElement("span"); |
2192 text.textContent = "Question"; | 2193 text.textContent = "Question"; |
2193 input = document.createElement("input"); | 2194 input = document.createElement("input"); |
2194 input.name = "question"; | 2195 input.name = "question"; |
2196 input.style.width = "400px"; | |
2195 input.value = node.question; | 2197 input.value = node.question; |
2196 text.style.margin = "5px"; | 2198 text.style.margin = "5px"; |
2197 input.style.margin = "5px"; | 2199 input.style.margin = "5px"; |
2198 attributes.appendChild(text); | 2200 attributes.appendChild(text); |
2199 attributes.appendChild(input); | 2201 attributes.appendChild(input); |
2205 input.checked = node.mandatory; | 2207 input.checked = node.mandatory; |
2206 text.style.margin = "5px"; | 2208 text.style.margin = "5px"; |
2207 input.style.margin = "5px"; | 2209 input.style.margin = "5px"; |
2208 attributes.appendChild(text); | 2210 attributes.appendChild(text); |
2209 attributes.appendChild(input); | 2211 attributes.appendChild(input); |
2212 text = document.createElement("span"); | |
2213 text.textContent = "Reply box size"; | |
2214 input = document.createElement("select"); | |
2215 input.name = "boxsize"; | |
2216 var option = document.createElement("option"); | |
2217 option.textContent = "Normal"; | |
2218 option.value = "normal"; | |
2219 input.appendChild(option); | |
2220 option = document.createElement("option"); | |
2221 option.textContent = "Large"; | |
2222 option.value = "large"; | |
2223 input.appendChild(option); | |
2224 option = document.createElement("option"); | |
2225 option.textContent = "Small"; | |
2226 option.value = "small"; | |
2227 input.appendChild(option); | |
2228 option = document.createElement("option"); | |
2229 option.textContent = "Huge"; | |
2230 option.value = "huge"; | |
2231 input.appendChild(option); | |
2232 text.style.margin = "5px"; | |
2233 input.style.margin = "5px"; | |
2234 attributes.appendChild(text); | |
2235 attributes.appendChild(input); | |
2236 input.value = node.boxsize; | |
2210 break; | 2237 break; |
2211 } | 2238 } |
2212 return holder; | 2239 return holder; |
2213 } | 2240 } |
2214 } | 2241 } |