File tree Expand file tree Collapse file tree 1 file changed +16
-7
lines changed
Expand file tree Collapse file tree 1 file changed +16
-7
lines changed Original file line number Diff line number Diff line change @@ -532,7 +532,11 @@ function admin_mod(){
532532 if(htm.indexOf("```")!=-1){
533533 htm=$(this).text();
534534 }
535- marked.parse(htm).then(html => { cur.html(html); MathJax.typeset(); });
535+ marked.parse(htm).then(html => {
536+ cur.html(html);
537+ MathJax.typeset();
538+
539+ });
536540 //$(this).html(marked.parse($(this).html())); // html() make > to > text() keep >
537541<?php } ?>
538542 });
@@ -559,6 +563,16 @@ function admin_mod(){
559563 });
560564
561565 <?php } ?>
566+ <?php if ( ($ row ['spj ' ]>1 || isset ($ _GET ['sid ' ]) || (isset ($ OJ_AUTO_SHOW_OFF )&&$ OJ_AUTO_SHOW_OFF ) ) && !isset ($ _GET ['spa ' ]) ){?>
567+ transform();
568+ <?php }?>
569+ admin_mod();
570+ MathJax.typeset();
571+ window.setTimeout("generateAutoSelect();",1000);
572+
573+ });
574+ function generateAutoSelect(){
575+
562576 //单纯文本1. A. B. C. D. 自动变控件
563577 $('span[class=auto_select]').each(function(){
564578 let i=1;
@@ -644,13 +658,8 @@ function admin_mod(){
644658 });
645659 selectMulti(num,answer);
646660 }).css("width","24px").css("height","21px");
647- <?php if ( ($ row ['spj ' ]>1 || isset ($ _GET ['sid ' ]) || (isset ($ OJ_AUTO_SHOW_OFF )&&$ OJ_AUTO_SHOW_OFF ) ) && !isset ($ _GET ['spa ' ]) ){?>
648- transform();
649- <?php }?>
650- admin_mod();
651- MathJax.typeset();
652661
653- });
662+ }
654663 </script>
655664
656665
You can’t perform that action at this time.
0 commit comments