Created json formatter and validator. #82
@@ -11,6 +11,11 @@ function clearDefaultContent(element, text) {
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
function clearDataField(){
 | 
			
		||||
    document.getElementById("xmlArea").value = "";
 | 
			
		||||
    document.getElementById("transformArea").value = "";
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
function fillDefaultXML(element) {
 | 
			
		||||
    if(element.classList.contains("active")){
 | 
			
		||||
        const serverAddress = window.location.protocol + "//" + window.location.hostname + ":8086";
 | 
			
		||||
 
 | 
			
		||||
@@ -36,8 +36,12 @@
 | 
			
		||||
                            <option class="hideable saxon" value="3.1">3.1</option>
 | 
			
		||||
                        </select>
 | 
			
		||||
                    </div>
 | 
			
		||||
                    <button class="action-button active" id="defaultXMLButton" style="padding: 3px 10px;"
 | 
			
		||||
                        onclick="fillDefaultXML(this)">Insert default XML</button>
 | 
			
		||||
                    <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>
 | 
			
		||||
                    </div>
 | 
			
		||||
                </div>
 | 
			
		||||
                <!-- <br><br> -->
 | 
			
		||||
                <label for="xmlArea"><b>Insert your XML:</b></label>
 | 
			
		||||
 
 | 
			
		||||
@@ -25,8 +25,12 @@
 | 
			
		||||
                    <option value="libxml">libXML</option>
 | 
			
		||||
                </select>
 | 
			
		||||
                    </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>
 | 
			
		||||
                    </div>
 | 
			
		||||
                </div>
 | 
			
		||||
 | 
			
		||||
                <!-- <span id="processorTooltipInfo">procInfo</span><br> -->
 | 
			
		||||
 
 | 
			
		||||
@@ -25,8 +25,12 @@
 | 
			
		||||
                    <option value="libxml">libXML</option>
 | 
			
		||||
                </select>
 | 
			
		||||
                    </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>
 | 
			
		||||
                    </div>
 | 
			
		||||
                </div>
 | 
			
		||||
 | 
			
		||||
                <span id="processorTooltipInfo">procInfo</span><br>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user