wip copy and bg pic

This commit is contained in:
salam committed 2026-09-06 13:10:11 +02:00
1 parent 3ec2c18fed
commit 44784e1dd8
3 files changed
+4 -9

No files matched your search

+3 -8
View File
@@ -79,15 +79,10 @@ class BoardDispatcher extends Component
public function copy()
{
$str = '<table>';
foreach ($this->results as $k => $result) {
$str .= '<tr>';
$str .= '<td>' . $result['name'] . '</td>';
$str .= '<td>' . $result['position'] . '</td>';
$str .= '<td>' . number_format(mt_rand(1, 100) / 100, 2) . '</td>';
$str .= '</tr>';
$str = '';
foreach ($this->results as $k => $row) {
$str .= implode("\t", $row) . "\n";
}
$str .= '</table>';
$this->js("navigator.clipboard.writeText('{$str}')");
}