widlam/refactoring/issue#120 (#128)
Co-authored-by: mikolaj widla <mikolaj.widla@gmail.com> Co-authored-by: widlam <mikolaj.widla@gmail.com> Co-authored-by: Adam Bem <adam.bem@zoho.eu> Reviewed-on: #128 Co-authored-by: Mikolaj Widla <widlam@noreply.example.com> Co-committed-by: Mikolaj Widla <widlam@noreply.example.com>
This commit is contained in:
@@ -4,9 +4,8 @@
|
||||
<head>
|
||||
<!-- <link rel="stylesheet" href="../common.css"> -->
|
||||
<!-- <link rel="stylesheet" href="styles.css"> -->
|
||||
<script src="../assets/scripts/tools/jquery-3.6.0.slim.min.js"></script>
|
||||
<link rel="stylesheet" href="../assets/css/tools/r11form.css">
|
||||
<script src="../assets/scripts/tools/scripts.js"></script>
|
||||
<script src="../assets/scripts/tools/scripts.js"> </script>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta charset="utf-8" />
|
||||
</head>
|
||||
@@ -131,7 +130,6 @@
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
[1.0] <a href="#" onClick="return false;"
|
||||
class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:position()</code></a>
|
||||
<div class="content">
|
||||
@@ -3384,16 +3382,12 @@
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<script>
|
||||
function processVersionSelector() {
|
||||
var processor = getProcessor();
|
||||
var hideableOptions = document.getElementsByClassName("hideable");
|
||||
for (let i = 0; i < hideableOptions.length; i++) {
|
||||
hideableOptions[i].style = "display: none;";
|
||||
hideableOptions[i].style = "display: none;";
|
||||
}
|
||||
if (processor == "xalan" || processor == "libxml") {
|
||||
var xalanOptions = document.getElementsByClassName("xalan");
|
||||
@@ -3408,7 +3402,7 @@
|
||||
saxonOptions[i].style = "";
|
||||
}
|
||||
document.getElementById("versions").selectedIndex = 3;
|
||||
|
||||
|
||||
}
|
||||
processTooltip();
|
||||
|
||||
@@ -3432,7 +3426,7 @@
|
||||
showList(document.getElementsByName("collapse30"));
|
||||
showList(document.getElementsByName("collapse31"));
|
||||
console.log("collapsed 3.1");
|
||||
} else if (filter == "collapse2.0"){
|
||||
} else if (filter == "collapse2.0") {
|
||||
document.getElementById("tooltipFunctionInfo").innerText = "XPath 1.0 & 2.0 functions";
|
||||
showList(document.getElementsByName("collapse20"));
|
||||
hideList(document.getElementsByName("collapse30"));
|
||||
@@ -3444,39 +3438,8 @@
|
||||
hideList(document.getElementsByName("collapse31"));
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
// if (checkDefault(document.getElementById("xmlArea").value.trim()) || document.getElementById("xmlArea").value.trim() == "") {
|
||||
// document.getElementById("defaultXMLButton").classList.toggle("active", true);
|
||||
// } else {
|
||||
// document.getElementById("defaultXMLButton").classList.toggle("active", false);
|
||||
// }
|
||||
}
|
||||
</script>
|
||||
|
||||
<script>
|
||||
function getVersion() {
|
||||
return document.getElementById("versions").value;
|
||||
}
|
||||
</script>
|
||||
|
||||
<script>
|
||||
function getProcessor() {
|
||||
return document.getElementById("processors").value;
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
<script>
|
||||
function getProcInfo() {
|
||||
var processVariables = document.getElementById("processors").value + "&version=" + getVersion();
|
||||
return processVariables;
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
<script>
|
||||
var triggerList = document.getElementsByClassName("collapseTrigger");
|
||||
for (i = 0; i < triggerList.length; i++) {
|
||||
console.log("trigger connected");
|
||||
@@ -3486,7 +3449,7 @@
|
||||
var collapsibleData = this.nextElementSibling;
|
||||
} else {
|
||||
var collapsibleData = this.parentElement.nextElementSibling;
|
||||
|
||||
|
||||
}
|
||||
|
||||
console.log(collapsibleData);
|
||||
@@ -3519,13 +3482,7 @@
|
||||
}
|
||||
});
|
||||
}
|
||||
</script>
|
||||
|
||||
<script>
|
||||
|
||||
</script>
|
||||
|
||||
<script>
|
||||
function init() {
|
||||
//Handle clicks in whole form and set info in tooltip
|
||||
setDefaultContent(document.getElementById("xmlArea"), 'Insert XML here');
|
||||
@@ -3543,8 +3500,8 @@
|
||||
else if (targetID == "versions") {
|
||||
processTooltip();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
})
|
||||
tool.addEventListener('click', event => {
|
||||
//Check if script was called from textarea or selector
|
||||
@@ -3564,8 +3521,8 @@
|
||||
processTooltip();
|
||||
})
|
||||
}
|
||||
</script>
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user