Content deleted Content added
PleaseStand (talk | contribs) Eliminate browser sniffing |
PleaseStand (talk | contribs) merged in changes from master branch - untested 3-way merge |
||
Line 519:
refsH2 = window.document.createElement("h2");
refsH2.appendChild(window.document.createTextNode(messages.refsHeader));
refsH2.style.borderColor = "silver";
refsH2.style.borderStyle = "solid";
refsH2.style.borderWidth = "1px 0";
refsH2.style.fontSize = "100%";
refsH2.style.fontWeight = "100%";
refsH2.style.lineHeight = "normal";
refsH2.style.margin = "0";
refsH2.style.padding = "0.5em 0 0";
refsH2.style.textAlign = "center";
// Inline refs textbox
Line 532 ⟶ 542:
refsTextbox.cols = mainTextbox.cols;
refsTextbox.style.border = "none";
refsTextbox.style.lineHeight = "1.5em";
refsTextbox.style.margin = "0";
refsTextbox.style.resize = "vertical";
refsTextbox.style.width = "100%";
// Add to document
refsDiv.appendChild(refsH2);
Line 587 ⟶ 603:
refsH2 = window.document.createElement("h2");
refsH2.appendChild(window.document.createTextNode(messages.convertHeader));
refsH2.style.borderColor = "silver";
refsH2.style.borderStyle = "solid";
refsH2.style.borderWidth = "1px 0";
refsH2.style.fontSize = "100%";
refsH2.style.fontWeight = "100%";
refsH2.style.lineHeight = "normal";
refsH2.style.margin = "0";
refsH2.style.padding = "0.5em 0 0";
refsH2.style.textAlign = "center";
// Inline refs textbox
Line 597 ⟶ 623:
refsTextbox.rows = Math.floor(mainTextbox.rows / 2);
refsTextbox.cols = mainTextbox.cols;
refsTextbox.style.border = "none";
refsTextbox.style.lineHeight = "1.5em";
refsTextbox.style.margin = "0";
refsTextbox.style.resize = "vertical";
refsTextbox.style.width = "100%";
// Add to document
Line 681 ⟶ 713:
refsDiv.appendChild(refsButton);
refsDiv.appendChild(convertButton);
} catch(e) {
}
|