Skip to content

Commit 8a7220e

Browse files
authored
Update header.php
1 parent 9e70955 commit 8a7220e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

trunk/web/template/syzoj/header.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,8 @@ function get_menu_news() {
135135
echo '<a class="item" href="moodle"><i class="group icon"></i><span class="desktop-only">Moodle</span></a>';
136136
}
137137
if(file_exists("hello")){ // 如果存在hello目录,自动添加链接
138-
echo '<a class="item" href="/hello" target=_blank><i class="book icon"></i><span class="desktop-only">Hello算法</span></a>';
138+
echo '<a class="item" onclick=\'window.open("/hello", "_blank",
139+
"width=600,height=850,left=" + (window.screen.width-600) + ",top=0,toolbar=no,menubar=no,location=no,status=no,resizable=yes");\'><i class="book icon"></i><span class="desktop-only">Hello算法</span></a>';
139140
}
140141

141142

0 commit comments

Comments
 (0)