chrome is still horrible

This commit is contained in:
Jacob Levine 2019-03-22 00:49:19 -05:00
parent 0124d9db97
commit 1989ec5ad4

View File

@ -136,7 +136,7 @@ function cseries(seriesName) {
if (seriesName == "quantitative") { if (seriesName == "quantitative") {
document.getElementById('FormData').innerHTML += "<h3>" + 'Sandstorm' + "</h3>"; document.getElementById('FormData').innerHTML += "<h3>" + 'Sandstorm' + "</h3>";
document.getElementById('FormData').innerHTML += "<div id='repsec1'>""</div>"; document.getElementById('FormData').innerHTML += "<div id='repsec1'>"+"</div>";
var ss = firebase.firestore().collection('appBuilding').doc('team-' + teamNum).collection('competitions').doc(currentComp).collection('appElements').doc('quantitativeSandstorm'); var ss = firebase.firestore().collection('appBuilding').doc('team-' + teamNum).collection('competitions').doc(currentComp).collection('appElements').doc('quantitativeSandstorm');
ss.get().then(function(doc) { ss.get().then(function(doc) {
if (doc.exists) { if (doc.exists) {
@ -144,54 +144,49 @@ function cseries(seriesName) {
} }
}).then(function() { }).then(function() {
document.getElementById('FormData').innerHTML += "<h3>" + 'TeleOp' + "</h3>"; document.getElementById('FormData').innerHTML += "<h3>" + 'TeleOp' + "</h3>";
document.getElementById('FormData').innerHTML += "<div id='repsec2'>"; document.getElementById('FormData').innerHTML += "<div id='repsec2'></div>";
var to = firebase.firestore().collection('appBuilding').doc('team-' + teamNum).collection('competitions').doc(currentComp).collection('appElements').doc('quantitativeTeleop'); var to = firebase.firestore().collection('appBuilding').doc('team-' + teamNum).collection('competitions').doc(currentComp).collection('appElements').doc('quantitativeTeleop');
to.get().then(function(doc) { to.get().then(function(doc) {
if (doc.exists) { if (doc.exists) {
processAndAppendReturn(doc.data()) processAndAppendReturn(doc.data(),'repsec2')
} }
document.getElementById('FormData').innerHTML += "</div>";
}).then(function() { }).then(function() {
document.getElementById('FormData').innerHTML += "<h3>" + 'Cycle Times' + "</h3>"; document.getElementById('FormData').innerHTML += "<h3>" + 'Cycle Times' + "</h3>";
document.getElementById('FormData').innerHTML += "<div id='repsec3'>"; document.getElementById('FormData').innerHTML += "<div id='repsec3'></div>";
var cyc = firebase.firestore().collection('appBuilding').doc('team-' + teamNum).collection('competitions').doc(currentComp).collection('appElements').doc('quantitativeCycleTimes'); var cyc = firebase.firestore().collection('appBuilding').doc('team-' + teamNum).collection('competitions').doc(currentComp).collection('appElements').doc('quantitativeCycleTimes');
cyc.get().then(function(doc) { cyc.get().then(function(doc) {
if (doc.exists) { if (doc.exists) {
processAndAppendReturn(doc.data()) processAndAppendReturn(doc.data(),'repsec3')
} }
document.getElementById('FormData').innerHTML += "</div>";
}).then(function() { }).then(function() {
document.getElementById('FormData').innerHTML += "<input type='button' onclick=subReport() value='Submit'>"; document.getElementById('FormData').innerHTML += "<br><input type='button' onclick=subReport() value='Submit'>";
}); });
}); });
}); });
} else if (seriesName = "qualitative") { } else if (seriesName = "qualitative") {
document.getElementById('FormData').innerHTML += "<h3>" + 'Sandstorm' + "</h3>"; document.getElementById('FormData').innerHTML += "<h3>" + 'Sandstorm' + "</h3>";
document.getElementById('FormData').innerHTML += "<div id='repsec1'>"; document.getElementById('FormData').innerHTML += "<div id='repsec1'></div>";
var ss = firebase.firestore().collection('appBuilding').doc('team-' + teamNum).collection('competitions').doc(currentComp).collection('appElements').doc('qualitativeSandstorm'); var ss = firebase.firestore().collection('appBuilding').doc('team-' + teamNum).collection('competitions').doc(currentComp).collection('appElements').doc('qualitativeSandstorm');
ss.get().then(function(doc) { ss.get().then(function(doc) {
if (doc.exists) { if (doc.exists) {
processAndAppendReturn(doc.data()) processAndAppendReturn(doc.data(),'repsec1')
} }
document.getElementById('FormData').innerHTML += "</div>";
}).then(function() { }).then(function() {
document.getElementById('FormData').innerHTML += "<h3>" + 'TeleOp' + "</h3>"; document.getElementById('FormData').innerHTML += "<h3>" + 'TeleOp' + "</h3>";
document.getElementById('FormData').innerHTML += "<div id='repsec2'>"; document.getElementById('FormData').innerHTML += "<div id='repsec2'></div>";
var to = firebase.firestore().collection('appBuilding').doc('team-' + teamNum).collection('competitions').doc(currentComp).collection('appElements').doc('qualitativeTeleop'); var to = firebase.firestore().collection('appBuilding').doc('team-' + teamNum).collection('competitions').doc(currentComp).collection('appElements').doc('qualitativeTeleop');
to.get().then(function(doc) { to.get().then(function(doc) {
if (doc.exists) { if (doc.exists) {
processAndAppendReturn(doc.data()) processAndAppendReturn(doc.data(),'repsec2')
} }
document.getElementById('FormData').innerHTML += "</div>";
}).then(function() { }).then(function() {
document.getElementById('FormData').innerHTML += "<h3>" + 'Strategy' + "</h3>"; document.getElementById('FormData').innerHTML += "<h3>" + 'Strategy' + "</h3>";
document.getElementById('FormData').innerHTML += "<div id='repsec3'>"; document.getElementById('FormData').innerHTML += "<div id='repsec3'></div>";
var strat = firebase.firestore().collection('appBuilding').doc('team-' + teamNum).collection('competitions').doc(currentComp).collection('appElements').doc('qualitativeStrategy'); var strat = firebase.firestore().collection('appBuilding').doc('team-' + teamNum).collection('competitions').doc(currentComp).collection('appElements').doc('qualitativeStrategy');
strat.get().then(function(doc) { strat.get().then(function(doc) {
if (doc.exists) { if (doc.exists) {
processAndAppendReturn(doc.data()) processAndAppendReturn(doc.data(),'repsec3')
} }
document.getElementById('FormData').innerHTML += "</div>";
}).then(function() { }).then(function() {
document.getElementById('FormData').innerHTML += "<input type='button' onclick=subReport() value='Submit'>"; document.getElementById('FormData').innerHTML += "<input type='button' onclick=subReport() value='Submit'>";
}); });