Change button ID, remove style attribute from html

This commit is contained in:
2023-04-19 08:47:04 +02:00
parent 48a740bafd
commit fdaec4e8e3

View File

@@ -25,7 +25,7 @@
<option value="libxml">libXML</option> <option value="libxml">libXML</option>
</select> </select>
<select name="versions" id="versions" style="display: none;"> <select name="versions" id="versions" style="display: none;">
<option class="hideable libxml xalan"value="1.0">1.0</option> <option class="hideable libxml xalan" value="1.0">1.0</option>
<option class="hideable saxon" value="2.0">2.0</option> <option class="hideable saxon" value="2.0">2.0</option>
<option class="hideable saxon" value="3.0">3.0</option> <option class="hideable saxon" value="3.0">3.0</option>
<option class="hideable saxon" value="3.1">3.1</option> <option class="hideable saxon" value="3.1">3.1</option>
@@ -51,10 +51,13 @@
onfocus="clearDefaultContent(this, 'Insert XML here');"></textarea> onfocus="clearDefaultContent(this, 'Insert XML here');"></textarea>
<br><br> <br><br>
<label for="transformArea"><b>Insert your XSLT:</b></label> <div class="display-space-between">
<div style="float:right"> <label for="transformArea"><b>Insert your XSLT:</b></label>
<button class="action-button active" id="defaultXMLButton" style="padding: 3px 10px;" <div>
onclick="fillDefaultXSLT()">Insert default XSLT</button> <button class="action-button active" id="defaultXSLTButton" style="padding: 3px 10px;"
onclick="fillDefaultXSLT()">Insert default XSLT
</button>
</div>
</div> </div>
<textarea id="transformArea" name="transformArea" rows="15" <textarea id="transformArea" name="transformArea" rows="15"
class="textarea-300 bordered-field vertically-resizeable max-width" class="textarea-300 bordered-field vertically-resizeable max-width"
@@ -1148,7 +1151,7 @@
<script> <script>
function processTooltip() { function processTooltip() {
if (getProcessor() == "xalan" || getProcessor() == "libxml") { if (getProcessor() == "xalan" || getProcessor() == "libxml") {
document.getElementById("tooltipFunctionInfo").innerText = "XSLT 1.0 functions"; document.getElementById("tooltipFunctionInfo").innerText = "XSLT 1.0 functions";
document.getElementById("processorTooltipInfo").innerText = "Supports XSLT 1.0"; document.getElementById("processorTooltipInfo").innerText = "Supports XSLT 1.0";
@@ -1162,9 +1165,9 @@
var triggerList = document.getElementsByClassName("collapseTrigger"); var triggerList = document.getElementsByClassName("collapseTrigger");
for (i = 0; i < triggerList.length; i++) { for (i = 0; i < triggerList.length; i++) {
triggerList[i].addEventListener("click", function () { triggerList[i].addEventListener("click", function () {
var collapsible = this.parentElement; var collapsible = this.parentElement;
var collapsibleData = this.nextElementSibling; var collapsibleData = this.nextElementSibling;
if (collapsibleData.style.maxHeight > "0px") { if (collapsibleData.style.maxHeight > "0px") {
@@ -1201,7 +1204,7 @@
//Handle clicks in whole form and set info in tooltip //Handle clicks in whole form and set info in tooltip
setDefaultContent(document.getElementById("xmlArea"), 'Insert XML here'); setDefaultContent(document.getElementById("xmlArea"), 'Insert XML here');
setDefaultContent(document.getElementById("transformArea"), 'Insert XSLT here'); setDefaultContent(document.getElementById("transformArea"), 'Insert XSLT here');
// refreshTooltip(); // refreshTooltip();
processTooltip(); processTooltip();
tool.addEventListener('click', event => { tool.addEventListener('click', event => {