Improve problem pdf (LDT)

This commit is contained in:
cuom1999 2021-10-10 17:51:26 -05:00
parent f174c921fb
commit 21431b4075

View file

@ -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));
}