Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
zhblue authored Aug 14, 2022
1 parent 9773292 commit e0fa5e3
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions trunk/web/template/syzoj/problem.php
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,13 @@

function transform(){
let height=document.body.clientHeight;
let width=parseInt(document.body.clientWidth*0.618);
let width2=parseInt(document.body.clientWidth*0.382);
<?php if ( $row[ 'spj' ]==2 ) {?>
let width=parseInt(document.body.clientWidth*0.3);
let width2=parseInt(document.body.clientWidth*0.7);
<?php }else{ ?>
let width=parseInt(document.body.clientWidth*0.6);
let width2=parseInt(document.body.clientWidth*0.4);
<?php } ?>
let submitURL=$("#submit")[0].href;
console.log(width);
let main=$("#main");
Expand Down

0 comments on commit e0fa5e3

Please sign in to comment.