Add tooltip to HTML table
This commit is contained in:
parent
5c595344db
commit
bae910aa87
1 changed files with 5 additions and 3 deletions
|
|
@ -32,8 +32,10 @@ $db->sort();
|
||||||
<link rel="stylesheet" type="text/css" href="assets/css/jquery.dataTables.min.css">
|
<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-3.5.1.slim.min.js"></script>
|
||||||
<script src="assets/js/jquery.dataTables.min.js"></script>
|
<script src="assets/js/jquery.dataTables.min.js"></script>
|
||||||
|
<script src="assets/js/bootstrap.bundle.min.js"></script>
|
||||||
<script>
|
<script>
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
$('[data-toggle="tooltip"]').tooltip();
|
||||||
$('#list').DataTable();
|
$('#list').DataTable();
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
@ -51,7 +53,7 @@ $db->sort();
|
||||||
<th>Product</th>
|
<th>Product</th>
|
||||||
<th>Branch</th>
|
<th>Branch</th>
|
||||||
<th>Version</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>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
|
@ -65,7 +67,7 @@ $db->sort();
|
||||||
echo '<td>' . htmlspecialchars($patch->getBranch()) . '</td>';
|
echo '<td>' . htmlspecialchars($patch->getBranch()) . '</td>';
|
||||||
echo '<td>' . htmlspecialchars($patch->getVersion()) . '</td>';
|
echo '<td>' . htmlspecialchars($patch->getVersion()) . '</td>';
|
||||||
echo '<td>' . date('Y-m-d', $patch->getTimestamp()) . '</td>';
|
echo '<td>' . date('Y-m-d', $patch->getTimestamp()) . '</td>';
|
||||||
echo '</tr>' . "\r\n";
|
echo '</tr>' . PHP_EOL;
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue