Mercurial > hg > webaudioevaluationtool
comparison interfaces/AB.js @ 3047:f83b364d3d4b
Close #126 Fixed for AB
author | Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk> |
---|---|
date | Wed, 27 Sep 2017 13:20:34 +0100 |
parents | 1620cbee9111 |
children | 20de79c56ad7 |
comparison
equal
deleted
inserted
replaced
3046:702a8d786e1a | 3047:f83b364d3d4b |
---|---|
73 | 73 |
74 // Construct the AB Boxes | 74 // Construct the AB Boxes |
75 var boxes = document.createElement('div'); | 75 var boxes = document.createElement('div'); |
76 boxes.id = "box-holders"; | 76 boxes.id = "box-holders"; |
77 | 77 |
78 var submitHolder = document.createElement("div"); | |
79 submitHolder.id = "submit-holder" | |
78 var submit = document.createElement('button'); | 80 var submit = document.createElement('button'); |
79 submit.id = "submit"; | 81 submit.id = "submit"; |
80 submit.onclick = buttonSubmitClick; | 82 submit.onclick = buttonSubmitClick; |
81 submit.className = "big-button"; | 83 submit.className = "big-button"; |
82 submit.textContent = "submit"; | 84 submit.textContent = "Submit"; |
83 submit.style.position = "relative"; | 85 submitHolder.appendChild(submit); |
84 submit.style.left = (window.innerWidth - 250) / 2 + 'px'; | |
85 | 86 |
86 feedbackHolder.appendChild(boxes); | 87 feedbackHolder.appendChild(boxes); |
87 | 88 |
88 // Create holder for comment boxes | 89 // Create holder for comment boxes |
89 var comments = document.createElement("div"); | 90 var comments = document.createElement("div"); |
93 testContent.appendChild(title); // Insert the title | 94 testContent.appendChild(title); // Insert the title |
94 testContent.appendChild(pagetitle); | 95 testContent.appendChild(pagetitle); |
95 testContent.appendChild(interfaceButtons); | 96 testContent.appendChild(interfaceButtons); |
96 testContent.appendChild(outsideRef); | 97 testContent.appendChild(outsideRef); |
97 testContent.appendChild(feedbackHolder); | 98 testContent.appendChild(feedbackHolder); |
98 testContent.appendChild(submit); | 99 testContent.appendChild(submitHolder); |
99 testContent.appendChild(comments); | 100 testContent.appendChild(comments); |
100 interfaceContext.insertPoint.appendChild(testContent); | 101 interfaceContext.insertPoint.appendChild(testContent); |
101 | 102 |
102 // Load the full interface | 103 // Load the full interface |
103 testState.initialise(); | 104 testState.initialise(); |