File tree 2 files changed +2
-9
lines changed
2 files changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ async function loadExampleResponses() {
8
8
. then ( ( resp ) => {
9
9
let ping_response = JSON . stringify ( resp , null , " " ) ;
10
10
pingResponseElement . innerHTML = new Option ( ping_response ) . innerHTML ;
11
+ hljs . highlightElement ( pingResponseElement ) ;
11
12
} ) ;
12
13
fetch ( "/api/services" , { } )
13
14
. then ( ( response ) => {
@@ -16,9 +17,6 @@ async function loadExampleResponses() {
16
17
. then ( ( resp ) => {
17
18
const services_string = JSON . stringify ( resp , null , " " ) ;
18
19
servicesElement . innerHTML = new Option ( services_string ) . innerHTML ;
20
+ hljs . highlightElement ( servicesElement ) ;
19
21
} ) ;
20
22
}
21
-
22
- loadExampleResponses ( ) . then ( ( ) => {
23
- hljs . highlightAll ( ) ;
24
- } ) ;
Original file line number Diff line number Diff line change 4
4
< meta charset ="UTF-8 " />
5
5
< link rel ="icon " type ="image/png " href ="/icon.png " />
6
6
< link rel ="stylesheet " href ="/index.css " />
7
- < link
8
- rel ="stylesheet "
9
- href ="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/default.min.css "
10
- />
11
7
< meta name ="viewport " content ="width=device-width " />
12
8
< meta property ="og:title " content ="mcping minecraft server tester " />
13
9
< meta property ="og:type " content ="website " />
@@ -84,7 +80,6 @@ <h1>Minecraft server tester</h1>
84
80
</ div >
85
81
</ div >
86
82
</ footer >
87
- < script src ="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/highlight.min.js "> </ script >
88
83
< script src ="/index.js "> </ script >
89
84
</ body >
90
85
</ html >
You can’t perform that action at this time.
0 commit comments