Little changes in json formatter. (#83)
Co-authored-by: Artur Kołecki <koleckiartur@icloud.com> Reviewed-on: R11/release11-tools-web#83
This commit is contained in:
		| @@ -11,6 +11,7 @@ | ||||
|   <script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/highlight.min.js"></script> | ||||
|   <script src="../assets/scripts/tools/scripts.js"></script> | ||||
|   <script src="../assets/scripts/tools/json.js"></script> | ||||
|   <script>hljs.highlightAll();</script> | ||||
| </head> | ||||
|  | ||||
| <body> | ||||
| @@ -21,7 +22,7 @@ | ||||
|           <h1>Online JSON Formatter</h1> | ||||
|         </div> | ||||
|  | ||||
|         <p style="color: red" id="error"></p> | ||||
|         <p style="margin-bottom: -30px" id="processInfo"></p> | ||||
|  | ||||
|         <pre> | ||||
|           <code class="hightlight-json json-block" id="jsonBlock" contenteditable="True">{"enter": "your", "json": "here"}</code> | ||||
| @@ -29,11 +30,11 @@ | ||||
|  | ||||
|         <button style="margin-top: 20px" | ||||
|                 class="max-width block-label action-button active" | ||||
|                 onclick="formatAndValidateJson('error')" | ||||
|                 onclick="formatAndValidateJson('processInfo')" | ||||
|         >Prettify JSON</button> | ||||
|  | ||||
|         <button class="max-width block-label action-button active" | ||||
|                 onclick="minimizeJson('error')" | ||||
|                 onclick="minimizeJson('processInfo')" | ||||
|         >Minimize JSON</button> | ||||
|       </div> | ||||
|     </div> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user