Advertisement
OhMika

Untitled

Jul 16th, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8" />
  5. <meta name="viewport" content="width=device-width,initial-scale=1" />
  6. <script src="https://cdn.rawgit.com/caldwell/renderjson/master/renderjson.js"></script>
  7. <style>
  8. body {
  9. background: #303030;
  10. }
  11. #con {
  12. text-shadow: none;
  13. background: #303030;
  14. padding: 1em;
  15. }
  16. .renderjson a {
  17. text-decoration: none;
  18. color: #fff;
  19. }
  20.  
  21. .renderjson .disclosure {
  22. color: crimson;
  23. font-size: 125%;
  24. position: relative;
  25. top: 3px;
  26. }
  27.  
  28. .renderjson .syntax {
  29. color: grey;
  30. }
  31.  
  32. .renderjson .string {
  33. color: pink;
  34. }
  35.  
  36. .renderjson .number {
  37. color: cyan;
  38. }
  39.  
  40. .renderjson .boolean {
  41. color: plum;
  42. }
  43.  
  44. .renderjson .key {
  45. color: lightblue;
  46. }
  47.  
  48. .renderjson .keyword {
  49. color: lightgoldenrodyellow;
  50. }
  51.  
  52. .renderjson .object.syntax {
  53. color: lightseagreen;
  54. }
  55.  
  56. .renderjson .array.syntax {
  57. color: lightsalmon;
  58. }
  59. </style>
  60. </head>
  61. <body>
  62. <div id="con"></div>
  63. <script>
  64. var data = {JSON}
  65. document.getElementById("con").appendChild(renderjson(data))
  66. </script>
  67.  
  68. </body>
  69. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement