-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
new: easy way to find other captures with same favicon
- Loading branch information
Showing
4 changed files
with
104 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<script type="text/javascript"> | ||
$('#faviconsTable') | ||
.on('order.dt', () => { | ||
$(function () { | ||
$('[data-bs-toggle="tooltip"]').tooltip() | ||
}) | ||
}) | ||
.on('search.dt', () => { | ||
$(function () { | ||
$('[data-bs-toggle="tooltip"]').tooltip() | ||
}) | ||
}) | ||
.on('page.dt', () => { | ||
$(function () { | ||
$('[data-bs-toggle="tooltip"]').tooltip() | ||
}) | ||
}) | ||
.DataTable( { | ||
"order": [[ 1, "desc" ]], | ||
"pageLength": 50 | ||
}); | ||
</script> | ||
|
||
{% if from_popup %} | ||
<script type="text/javascript"> | ||
function openTreeInNewTab(treeUUID) { | ||
window.opener.openTreeInNewTab(treeUUID); | ||
}; | ||
</script> | ||
{% endif %} | ||
|
||
<table id="faviconsTable" class="table w-auto"> | ||
<thead> | ||
<tr> | ||
<th>Favicon</th> | ||
<th>Frequency</th> | ||
<th>Number of captures</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{% for favicon_sha512, freq, number_captures, b64_favicon in favicons %} | ||
<tr> | ||
<td> | ||
<a href="{{ url_for('favicon_detail', favicon_sha512=favicon_sha512) }}"> | ||
<img src="data:image/ico;base64,{{ b64_favicon }}" style="width:32px;height:32px;"/> | ||
</a> | ||
</td> | ||
<td>{{ freq }}</td> | ||
<td>{{ number_captures }}</td> | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
</table> |