Improve problem pdf (LDT)
This commit is contained in:
parent
f174c921fb
commit
21431b4075
1 changed files with 3 additions and 0 deletions
|
@ -81,6 +81,9 @@
|
|||
$(function() {
|
||||
$('#pdf_button').click(async function(e) {
|
||||
e.preventDefault();
|
||||
if (!$('#raw_problem').attr('src')) {
|
||||
$('#raw_problem').attr('src', '{{problem.code}}/raw')
|
||||
}
|
||||
while(!$('.math-loaded', frames['raw_problem'].document).length){
|
||||
await new Promise(r => setTimeout(r, 200));
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue