Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit d5db940

Browse files
Changed color and added a css element
class for template for error output identification
1 parent 67dbc15 commit d5db940

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

‎docs/static/html_format.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ window.onload = (function () {
1010
tags[i].classList.add("lang-py");
1111
tags[i].classList.remove("language-python");
1212
}
13-
letbr=document.createElement("br");
14-
while(tags[i].contains(br)){
15-
console.log(tags[i],"true");
16-
tags[i].removeChild(br);
13+
if(tags[i].classList.contains("language-err")){
14+
tags[i].parentElement.classList.add("err");
15+
tags[i].parentElement.classList.remove("prettyprint");
16+
1717
}
1818
}
1919
PR.prettyPrint();

‎docs/static/main.css

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ img {
109109

110110
pre {
111111
margin: 2%;
112+
padding-left: 1.5%;
112113
margin-left: 10%;
113114
align-content: flex-start;
114115
box-sizing: border-box;
@@ -123,8 +124,10 @@ code {
123124
font-weight: bold;
124125
}
125126

126-
code.language-err {
127-
color: red;
127+
pre.err {
128+
background-color: #e15344;
129+
color: black;
130+
padding-left: 2%;
128131
}
129132
mjx-container {
130133
margin-left: 5%;

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /