wip copy and bg pic
This commit is contained in:
1 parent
3ec2c18fed
commit
44784e1dd8
3 files changed
+4
-9
No files matched your search
@@ -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}')");
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user