툴팁 준비
This commit is contained in:
@@ -64,6 +64,17 @@ function CoreTurnTable() {
|
|||||||
";
|
";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function displaySpecialInfo(?int $type):string{
|
||||||
|
$info = getSpecialInfo($type);
|
||||||
|
$text = getGenSpecial($type);
|
||||||
|
|
||||||
|
$templates = new \League\Plates\Engine(__dir__.'/templates');
|
||||||
|
|
||||||
|
return $templates->render('tooltip', [
|
||||||
|
'text'=>$text,
|
||||||
|
'info'=>$info,
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
|
||||||
function allButton() {
|
function allButton() {
|
||||||
$db = DB::db();
|
$db = DB::db();
|
||||||
|
|||||||
@@ -0,0 +1,7 @@
|
|||||||
|
<div class="tooltip"><?=$text?>
|
||||||
|
<?php if(isset($info)):?>
|
||||||
|
<span class="tooltiptext">
|
||||||
|
<?=$info?>
|
||||||
|
</span>
|
||||||
|
<?php endif;?>
|
||||||
|
</div>
|
||||||
Reference in New Issue
Block a user