Skip to content

Commit 8eace60

Browse files
authored
Merge pull request #20 from snowom/develop
Hotfix Release 1.4.3
2 parents 94d23b0 + c9c9376 commit 8eace60

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/main/resources/templates/pagResolucaoLivro.html

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,16 @@
4747
"authorization": token
4848
}
4949
}).then((resp) => {
50-
console.log(resp);
5150

5251
if(!resp.data.hasOwnProperty("lightSolution")){
5352
throw new Error("Falha ao obter objeto \"lightSolution\"")
5453
}
5554
if(!resp.data.hasOwnProperty("lightAnswer")){
5655
throw new Error("Falha ao obter objeto \"lightAnswer\"")
5756
}
57+
if(!resp.data.hasOwnProperty("lightBody")){
58+
throw new Error("Falha ao obter objeto \"lightBody\"")
59+
}
5860

5961
const STYLE_H2 = 'color: rgb(54, 170, 173); font-size: 1.5em; font-family: "Droid Serif", serif; margin: 0; font-weight: inherit; outline: none; box-sizing: border-box; font-size: 1.2em;';
6062
const STYLE_DIV_RESPOSTA = 'border-left: 4px solid rgb(54, 170, 173); padding: 20px; font-size: 1.2em;';
@@ -64,6 +66,11 @@
6466
let htmlResponse = "<div style='flex: 1 1 0%; align-self: center; background-color: white; width: 100%'>";
6567
htmlResponse += "<div style='padding: 0px 30px;'>";
6668

69+
htmlResponse += `<div style="${STYLE_FONT_STEPS} margin: 60px 0px;">`;
70+
htmlResponse += `<h2 style="${STYLE_H2}">Enunciado</h2>`;
71+
htmlResponse += `<div style='margin: 30px 0px; 60px;'>${resp.data.lightBody}</div>`
72+
htmlResponse += `</div>`;
73+
6774
resp.data.lightSolution.forEach((step, index) => {
6875
let currentStep = index += 1;
6976
htmlResponse += `<div style="${STYLE_FONT_STEPS} margin: 60px 0px;">`;

0 commit comments

Comments
 (0)