# HG changeset patch # User Nicholas Jillings # Date 1506514834 -3600 # Node ID f83b364d3d4b2d67d62b0f68c7acb7e7c70e835a # Parent 702a8d786e1afd31f68a143bfadb5fd33a0cf1ce Close #126 Fixed for AB diff -r 702a8d786e1a -r f83b364d3d4b interfaces/AB.css --- a/interfaces/AB.css Wed Sep 27 13:17:33 2017 +0100 +++ b/interfaces/AB.css Wed Sep 27 13:20:34 2017 +0100 @@ -24,6 +24,10 @@ height: 40px; font-size: 1.2em; } +div#submit-holder { + width: 100%; + text-align: center; +} div.interface-buttons { height: 40px; } diff -r 702a8d786e1a -r f83b364d3d4b interfaces/AB.js --- 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);