Added clear button for XPath, XSD and XSLT
This commit is contained in:
@@ -11,6 +11,11 @@ function clearDefaultContent(element, text) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function clearDataField(){
|
||||||
|
document.getElementById("xmlArea").value = "";
|
||||||
|
document.getElementById("transformArea").value = "";
|
||||||
|
}
|
||||||
|
|
||||||
function fillDefaultXML(element) {
|
function fillDefaultXML(element) {
|
||||||
if(element.classList.contains("active")){
|
if(element.classList.contains("active")){
|
||||||
const serverAddress = window.location.protocol + "//" + window.location.hostname + ":8086";
|
const serverAddress = window.location.protocol + "//" + window.location.hostname + ":8086";
|
||||||
|
|||||||
@@ -36,8 +36,12 @@
|
|||||||
<option class="hideable saxon" value="3.1">3.1</option>
|
<option class="hideable saxon" value="3.1">3.1</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<button class="action-button active" id="defaultXMLButton" style="padding: 3px 10px;"
|
<div>
|
||||||
onclick="fillDefaultXML(this)">Insert default XML</button>
|
<button class="action-button active" id="defaultXMLButton" style="padding: 3px 10px;"
|
||||||
|
onclick="clearDataField()">Clear</button>
|
||||||
|
<button class="action-button active" id="defaultXMLButton" style="padding: 3px 10px;"
|
||||||
|
onclick="fillDefaultXML(this)">Insert default XML</button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- <br><br> -->
|
<!-- <br><br> -->
|
||||||
<label for="xmlArea"><b>Insert your XML:</b></label>
|
<label for="xmlArea"><b>Insert your XML:</b></label>
|
||||||
|
|||||||
@@ -25,8 +25,12 @@
|
|||||||
<option value="libxml">libXML</option>
|
<option value="libxml">libXML</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<button class="action-button active" id="defaultXMLButton" style="padding: 3px 10px; float: right;"
|
<div>
|
||||||
|
<button class="action-button active" id="defaultXMLButton" style="padding: 3px 10px;"
|
||||||
|
onclick="clearDataField()">Clear</button>
|
||||||
|
<button class="action-button active" id="defaultXMLButton" style="padding: 3px 10px;"
|
||||||
onclick="fillDefaultXML(this)">Insert default XML</button>
|
onclick="fillDefaultXML(this)">Insert default XML</button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- <span id="processorTooltipInfo">procInfo</span><br> -->
|
<!-- <span id="processorTooltipInfo">procInfo</span><br> -->
|
||||||
|
|||||||
@@ -25,8 +25,12 @@
|
|||||||
<option value="libxml">libXML</option>
|
<option value="libxml">libXML</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<button class="action-button active" id="defaultXMLButton" style="padding: 3px 10px; float: right;"
|
<div>
|
||||||
|
<button class="action-button active" id="defaultXMLButton" style="padding: 3px 10px;"
|
||||||
|
onclick="clearDataField()">Clear</button>
|
||||||
|
<button class="action-button active" id="defaultXMLButton" style="padding: 3px 10px;"
|
||||||
onclick="fillDefaultXML(this)">Insert default XML</button>
|
onclick="fillDefaultXML(this)">Insert default XML</button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<span id="processorTooltipInfo">procInfo</span><br>
|
<span id="processorTooltipInfo">procInfo</span><br>
|
||||||
|
|||||||
Reference in New Issue
Block a user