diff --git a/senpy/static/css/main.css b/senpy/static/css/main.css index 0ac1573..adeb4ed 100644 --- a/senpy/static/css/main.css +++ b/senpy/static/css/main.css @@ -60,6 +60,15 @@ body { border-radius: 20px; } +#jsonraw { + overflow: auto; + padding: 20px; + background: lightgray; + -moz-border-radius: 20px; + -webkit-border-radius: 20px; + -khtml-border-radius: 20px; + border-radius: 20px; +} #input_request { display:block; width:150px; diff --git a/senpy/static/js/main.js b/senpy/static/js/main.js index 04292d4..6edac71 100644 --- a/senpy/static/js/main.js +++ b/senpy/static/js/main.js @@ -102,22 +102,17 @@ function load_JSON(){ } } var response = JSON.parse($.ajax({type: "GET", url: url , async: false}).responseText); - var container = document.getElementById('results'); - var options = { mode: 'view' }; - try { container.removeChild(container.firstChild); } - catch(err) { - } var editor = new JSONEditor(container, options, response); - //document.getElementById("results").innerHTML = replaceURLWithHTMLLinks(JSON.stringify(response, undefined, 2)) + document.getElementById("jsonraw").innerHTML = replaceURLWithHTMLLinks(JSON.stringify(response, undefined, 2)) document.getElementById("input_request").innerHTML = "" diff --git a/senpy/templates/index.html b/senpy/templates/index.html index df2527c..9dcc077 100755 --- a/senpy/templates/index.html +++ b/senpy/templates/index.html @@ -77,10 +77,25 @@ I cannot believe it! Analyse! -
-

-            
+ +
+ +
+
+

+                    
+
+ +
+
+

+                    
+
+