Mercurial > hg > webaudioevaluationtool
diff 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 |
line wrap: on
line diff
--- a/interfaces/AB.js Wed Sep 27 13:17:33 2017 +0100 +++ b/interfaces/AB.js Wed Sep 27 13:20:34 2017 +0100 @@ -75,13 +75,14 @@ var boxes = document.createElement('div'); boxes.id = "box-holders"; + var submitHolder = document.createElement("div"); + submitHolder.id = "submit-holder" var submit = document.createElement('button'); submit.id = "submit"; submit.onclick = buttonSubmitClick; submit.className = "big-button"; - submit.textContent = "submit"; - submit.style.position = "relative"; - submit.style.left = (window.innerWidth - 250) / 2 + 'px'; + submit.textContent = "Submit"; + submitHolder.appendChild(submit); feedbackHolder.appendChild(boxes); @@ -95,7 +96,7 @@ testContent.appendChild(interfaceButtons); testContent.appendChild(outsideRef); testContent.appendChild(feedbackHolder); - testContent.appendChild(submit); + testContent.appendChild(submitHolder); testContent.appendChild(comments); interfaceContext.insertPoint.appendChild(testContent);