Add tooltip to HTML table

This commit is contained in:
Steffen Lange 2021-02-02 23:57:43 +01:00
parent 5c595344db
commit bae910aa87

View file

@ -32,8 +32,10 @@ $db->sort();
<link rel="stylesheet" type="text/css" href="assets/css/jquery.dataTables.min.css">
<script src="assets/js/jquery-3.5.1.slim.min.js"></script>
<script src="assets/js/jquery.dataTables.min.js"></script>
<script src="assets/js/bootstrap.bundle.min.js"></script>
<script>
$(document).ready(function() {
$('[data-toggle="tooltip"]').tooltip();
$('#list').DataTable();
});
</script>
@ -51,7 +53,7 @@ $db->sort();
<th>Product</th>
<th>Branch</th>
<th>Version</th>
<th title="*) or first discovery time">Release Date*</th>
<th data-toggle="tooltip" data-placement="top" title="*) or first discovery time">Release Date<sup>*</sup></th>
</tr>
</thead>
<tbody>
@ -65,7 +67,7 @@ $db->sort();
echo '<td>' . htmlspecialchars($patch->getBranch()) . '</td>';
echo '<td>' . htmlspecialchars($patch->getVersion()) . '</td>';
echo '<td>' . date('Y-m-d', $patch->getTimestamp()) . '</td>';
echo '</tr>' . "\r\n";
echo '</tr>' . PHP_EOL;
}
?>