Page after assignment working again.

This commit is contained in:
Benedikt - Desktop 2018-12-09 14:50:59 +01:00 committed by Nanne Baars
parent 74961c5632
commit 1d9abef80f
2 changed files with 7 additions and 11 deletions

View File

@ -32,10 +32,10 @@
<div class="attack-feedback" style="margin-top: 50px;"></div> <div class="attack-feedback" style="margin-top: 50px;"></div>
<div class="attack-output"></div> <div class="attack-output"></div>
</div> </div>
</div>
<div class="lesson-page-wrapper"> <div class="lesson-page-wrapper">
<div class="adoc-content" th:replace="doc:CrossSiteScripting_content9.adoc"></div> <div class="adoc-content" th:replace="doc:CrossSiteScripting_content9.adoc"></div>
</div> </div>
</div>
</html> </html>

View File

@ -10,7 +10,8 @@ $(document).ready( () => {
}, 20); }, 20);
}); });
editor.setValue("<html>\n" + editor.setValue(
"<html>\n" +
"<head>\n" + "<head>\n" +
" <title>Using GET and POST Method to Read Form Data</title>\n" + " <title>Using GET and POST Method to Read Form Data</title>\n" +
"</head>\n" + "</head>\n" +
@ -31,18 +32,13 @@ $(document).ready( () => {
"</body>\n" + "</body>\n" +
"</html>\n" + "</html>\n" +
"\n" + "\n" +
"\n"); "\n"
);
}); });
function ace_collect() { function ace_collect() {
let code = ""; var editor = ace.edit("editor");
var code = editor.getValue();
$(".ace_xml").each(function(i, el) {
var to_add = el.innerHTML;
code += to_add;
});
return code; return code;
} }