Let's hope everything works as before or better. Co-authored-by: Adam Bem <adam.bem@zoho.eu> Reviewed-on: #191 Reviewed-by: Mikolaj Widla <widlam@noreply.example.com>
		
			
				
	
	
		
			69 lines
		
	
	
		
			2.9 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			69 lines
		
	
	
		
			2.9 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <!DOCTYPE html>
 | |
| <html>
 | |
| 
 | |
|     <head>
 | |
|         <!-- <link rel="stylesheet" href="styles.css"> -->
 | |
|         <link rel="stylesheet" href="../assets/css/tools/r11form.css">
 | |
|         <link rel="stylesheet" href="../assets/css/highlight.css">
 | |
|         <script src="../assets/scripts/common/hljs.min.js"></script>
 | |
|         <script src="../assets/scripts/tools/scripts.js"></script>
 | |
|         <script src="../assets/scripts/tools/xmlFormatter.js"></script>
 | |
|         <script src="../assets/scripts/tools/highlight.js"></script>
 | |
|         <script>hljs.highlightAll();</script>
 | |
| 
 | |
|         <meta name="viewport" content="width=device-width, initial-scale=1.0">
 | |
|         <meta charset="utf-8" />
 | |
|     </head>
 | |
| 
 | |
|     <body onload="init();">
 | |
|         <div class="container">
 | |
|             <div id="tool" class="tool rwd-expandable">
 | |
|                 <div class="tool-context">
 | |
|                     <div class="headline">
 | |
|                         <h1>Online XML Formatter</h1>
 | |
|                     </div>
 | |
|                     <select name="processors" id="processors" class="hidden">
 | |
|                         <option value="libxml">libXML</option>
 | |
|                     </select>
 | |
| 
 | |
|                     <div class="display-space-between">
 | |
|                         <div>
 | |
|                             <b><span id="formatinfo"></span></b><br>
 | |
|                             <label for="xmlArea"><b>Insert your XML:</b></label>
 | |
|                         </div>
 | |
|                         <div>
 | |
|                             <button class="action-button active" id="clearXMLButton" 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>
 | |
| 
 | |
|                     <pre><code class="language-xml bordered-field textarea-700" id="xmlArea" contenteditable="True"></code></pre>
 | |
|                     <br><br>
 | |
|                     <button id="prettifyButton" class="max-width block-label action-button active"
 | |
|                         onclick="performFormatRequest('prettify', true, 'xmlArea', 'xmlArea')">Prettify XML</button>
 | |
|                     <button id="minimizeButton" class="max-width block-label action-button active"
 | |
|                         onclick="performFormatRequest('minimize', true, 'xmlArea', 'xmlArea')">Minimize XML</button>
 | |
| 
 | |
|                 </div>
 | |
|             </div>
 | |
|             <div class="tooltip-window rwd-hideable">
 | |
|                 <h2>What is this?</h2>
 | |
|                 <p>This tool has 2 main functions:
 | |
|                     <ul>
 | |
|                         <li><strong>Prettify XML</strong> to make it human-readable (add indentation etc.)</li>
 | |
|                         <li><strong>Minimize XML</strong> to make it more compact (exactly opposite to above)</li>
 | |
|                     </ul>
 | |
|                 </p>
 | |
|             </div>
 | |
| 
 | |
| 
 | |
| 
 | |
|         </div>
 | |
| 
 | |
|     </body>
 | |
| 
 | |
| </html>
 |