Removed unused code

This commit is contained in:
2023-06-05 15:05:31 +02:00
parent 559a21b1ec
commit 5e666c922c
2 changed files with 5 additions and 34 deletions

View File

@@ -1,26 +1,3 @@
/**
* The `processTooltip()` function is responsible for updating the display of the tooltip based on the selected version of the processor.
* It shows or hides different sections of the tooltip based on the selected version.
* It also handles the click event on the form and updates the tooltip accordingly.
*
* @function
* @name processTooltip
* @kind function
*/
function processTooltip() {
if (getProcessor() == "xalan" || getProcessor() == "libxml") {
document.getElementById("tooltipFunctionInfo").innerText = "XSLT 1.0 functions";
document.getElementById("processorTooltipInfo").innerText = "Supports XSLT 1.0";
hideList(document.getElementsByName("collapse30"));
} else {
document.getElementById("tooltipFunctionInfo").innerText = "XSLT 1.0, 2.0 & 3.0 functions";
document.getElementById("processorTooltipInfo").innerText = "Supports XSLT up to 3.0";
showList(document.getElementsByName("collapse30"));
}
}
/**
* This function is executed after the page is loaded.
*
@@ -45,8 +22,6 @@ function init() {
if (targetID !== "processors" && targetID !== "xmlArea" && targetID !== "transformArea" && targetID !== "versions") {
return;
}
processTooltip();
})
tool.addEventListener('change', event => {
@@ -56,8 +31,6 @@ function init() {
return;
}
processTooltip();
})
var triggerList = document.getElementsByClassName("collapseTrigger");

View File

@@ -28,11 +28,9 @@
<label for="processors">Select XQuery processor:</label>
<select name="processors" id="processors">
<option value="saxon">Saxon</option>
<option value="xalan">Xalan</option>
<option value="libxml">libXML</option>
</select>
<select name="versions" id="versions" style="display: none;">
<option class="hideable libxml xalan" value="1.0">1.0</option>
<label for="versions">XQuery version:</label>
<select name="versions" id="versions">
<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.1">3.1</option>
@@ -48,7 +46,7 @@
</div>
</div>
<span id="processorTooltipInfo">procInfo</span><br>
<span id="processorTooltipInfo">Supports XQuery up to 3.1</span><br>
<br>
<label for="xmlArea"><b>Insert your XML:</b></label>
@@ -67,13 +65,13 @@
onclick="performRequest('xquery', true, true)">Execute XQuery</button>
<br>
<label for="resultArea"><b>Transform result:<span id="procinfo"></span></b></label>
<label for="resultArea"><b>Query result:<span id="procinfo"></span></b></label>
<pre><code class="language-xml bordered-field textarea-300" id="resultArea"></code></pre>
</div>
</div>
<div class="tooltip tooltip-window rwd-hideable">
<h2>What is XSLT?</h2>
<h2>What is XQuery?</h2>
TBD
</div>