flask-soc-site/templates/lookup_options.html

98 lines
2.3 KiB
HTML
Raw Permalink Normal View History

2024-08-29 21:03:36 +02:00
{% extends "layout.html" %}
{% block content %}
<h1 class="text-center">URL or IP lookup</h1>
<div class="host_form">
<form host="/lookup" method="POST">
<input type="text" name="host">
<input type="SUBMIT" value="Type it in">
</form>
<p>OR</p>
<form action="/lookup" host="/lookup" method="POST" enctype="multipart/form-data">
<input type="file" name="file">
<input type="SUBMIT" value="Upload a csv">
</form>
</div>
{% if host_type == "domain" %}
{% include "domain.html" %}
{% elif host_type == "URL" %}
{% include "URL.html" %}
{% elif host_type == "IPv4" %}
{% include "IPv4.html" %}
{% elif host_type == "IPv6" %}
{% include "IPv6.html" %}
{% else %}
<p class="text-center">Copy paste your URLs or IPs and press submit!</p>
{% include "empty_form.html" %}
{% endif %}
{% endblock %}
{% block scripts %}
<script>
$(document).ready(function () {
$('#virustotal_all_vendors').DataTable({
scrollY: 300,
<!-- scrollX: 100, -->
paging: false,
searching: false,
info: false,
});
});
$(document).ready(function () {
$('#abuseipdb').DataTable({
paging: false,
searching: false,
info: false
});
});
$(document).ready(function () {
$('#data').DataTable({
paging: false,
searching: false,
info: false
});
});
$(document).ready(function () {
$('#virustotal_stats').DataTable({
paging: false,
searching: false,
info: false,
columnDefs: [ {
targets: '_all',
createdCell: function (td, cellData, rowData, row, col) {
if (cellData > 0 && col == 0) {
$(td).css({'background-color':'red','color':'white'});
}
if (cellData > 0 && col == 1) {
$(td).css({'background-color':'orange','color':'white'});
}
if (cellData > 0 && col == 2) {
$(td).css({'background-color':'grey','color':'white'});
}
if (cellData > 0 && col == 3) {
$(td).css({'background-color':'green','color':'white'});
}
},
}
]
})
});
/// Trying out some more cellData searching, this time adding some text
</script>
{% endblock %}