Fix problem pdf
This commit is contained in:
parent
c87566673a
commit
031e4f5f6b
2 changed files with 16 additions and 7 deletions
|
@ -66,10 +66,12 @@
|
|||
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));
|
||||
}
|
||||
frames['raw_problem'].print();
|
||||
// while(!$('.math-loaded', frames['raw_problem'].document).length){
|
||||
// await new Promise(r => setTimeout(r, 200));
|
||||
// }
|
||||
setTimeout(() => {
|
||||
frames['raw_problem'].print();
|
||||
}, 1000);
|
||||
});
|
||||
$('#clarification_header').on('click', function() {
|
||||
$('#clarification_header_container').hide();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue