slit head
This commit is contained in:
parent
dd16294e8d
commit
c2d2a2455d
40
stylesheets/head.xsl
Normal file
40
stylesheets/head.xsl
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||||
|
xmlns:xs="http://www.w3.org/2001/XMLSchema" version="1.1">
|
||||||
|
|
||||||
|
<xsl:template match="nmaprun" mode="head">
|
||||||
|
<xsl:param name="base" />
|
||||||
|
<xsl:param name="targets" />
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8" />
|
||||||
|
<title>lanScan - <xsl:value-of select="$targets" />
|
||||||
|
</title>
|
||||||
|
<base href="{$base}" />
|
||||||
|
<link rel="icon" href="favicon.ico" />
|
||||||
|
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/fomantic-ui@2.9.3/dist/semantic.min.css" />
|
||||||
|
<link href="https://cdn.jsdelivr.net/npm/@yaireo/tagify/dist/tagify.css" rel="stylesheet" type="text/css" />
|
||||||
|
<link href="https://cdn.datatables.net/v/se/jszip-3.10.1/dt-2.1.8/b-3.1.2/b-html5-3.1.2/b-print-3.1.2/cr-2.0.4/fc-5.0.3/fh-4.0.1/r-3.0.3/datatables.min.css" rel="stylesheet" />
|
||||||
|
<link rel="stylesheet" type="text/css" href="style.css" />
|
||||||
|
<script src="https://code.jquery.com/jquery-3.7.1.js"></script>
|
||||||
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/fomantic-ui/2.9.2/semantic.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/@yaireo/tagify"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/@yaireo/tagify/dist/tagify.polyfills.min.js"></script>
|
||||||
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.2.7/pdfmake.min.js"></script>
|
||||||
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.2.7/vfs_fonts.js"></script>
|
||||||
|
<script src="https://cdn.datatables.net/v/se/jszip-3.10.1/dt-2.1.8/b-3.1.2/b-html5-3.1.2/b-print-3.1.2/cr-2.0.4/fc-5.0.3/fh-4.0.1/r-3.0.3/datatables.min.js"></script>
|
||||||
|
<script>
|
||||||
|
DataTable.ext.type.detect.unshift(function (d) {
|
||||||
|
return /[\d]+\.[\d]+\.[\d]+\.[\d]+/.test(d)
|
||||||
|
? 'ipv4-address'
|
||||||
|
: null;
|
||||||
|
});
|
||||||
|
|
||||||
|
DataTable.ext.type.order['ipv4-address-pre'] = function (ipAddress) {
|
||||||
|
[a, b, c, d] = ipAddress.split(".").map(Number)
|
||||||
|
return 16777216*a + 65536*b + 256*c + d;
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
</head>
|
||||||
|
</xsl:template>
|
||||||
|
</xsl:stylesheet>
|
@ -2,6 +2,7 @@
|
|||||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||||
xmlns:xs="http://www.w3.org/2001/XMLSchema" version="1.1">
|
xmlns:xs="http://www.w3.org/2001/XMLSchema" version="1.1">
|
||||||
|
|
||||||
|
<xsl:import href="head.xsl" />
|
||||||
<xsl:import href="services.xsl" />
|
<xsl:import href="services.xsl" />
|
||||||
<xsl:import href="toast.xsl" />
|
<xsl:import href="toast.xsl" />
|
||||||
|
|
||||||
@ -18,36 +19,10 @@
|
|||||||
<xsl:variable name="init" select="document(concat($base, 'scans/', translate($targets,'/', '!'), '.xml'))/nmaprun" />
|
<xsl:variable name="init" select="document(concat($base, 'scans/', translate($targets,'/', '!'), '.xml'))/nmaprun" />
|
||||||
|
|
||||||
<html lang="fr">
|
<html lang="fr">
|
||||||
<head>
|
<xsl:apply-templates select="." mode="head">
|
||||||
<meta charset="utf-8" />
|
<xsl:with-param name="base" select="$base"/>
|
||||||
<title>lanScan - <xsl:value-of select="$targets" />
|
<xsl:with-param name="targets" select="$targets"/>
|
||||||
</title>
|
</xsl:apply-templates>
|
||||||
<base href="{$base}" />
|
|
||||||
<link rel="icon" href="favicon.ico" />
|
|
||||||
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/fomantic-ui@2.9.3/dist/semantic.min.css" />
|
|
||||||
<link href="https://cdn.jsdelivr.net/npm/@yaireo/tagify/dist/tagify.css" rel="stylesheet" type="text/css" />
|
|
||||||
<link href="https://cdn.datatables.net/v/se/jszip-3.10.1/dt-2.1.8/b-3.1.2/b-html5-3.1.2/b-print-3.1.2/cr-2.0.4/fc-5.0.3/fh-4.0.1/r-3.0.3/datatables.min.css" rel="stylesheet" />
|
|
||||||
<link rel="stylesheet" type="text/css" href="style.css" />
|
|
||||||
<script src="https://code.jquery.com/jquery-3.7.1.js"></script>
|
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/fomantic-ui/2.9.2/semantic.min.js"></script>
|
|
||||||
<script src="https://cdn.jsdelivr.net/npm/@yaireo/tagify"></script>
|
|
||||||
<script src="https://cdn.jsdelivr.net/npm/@yaireo/tagify/dist/tagify.polyfills.min.js"></script>
|
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.2.7/pdfmake.min.js"></script>
|
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.2.7/vfs_fonts.js"></script>
|
|
||||||
<script src="https://cdn.datatables.net/v/se/jszip-3.10.1/dt-2.1.8/b-3.1.2/b-html5-3.1.2/b-print-3.1.2/cr-2.0.4/fc-5.0.3/fh-4.0.1/r-3.0.3/datatables.min.js"></script>
|
|
||||||
<script>
|
|
||||||
DataTable.ext.type.detect.unshift(function (d) {
|
|
||||||
return /[\d]+\.[\d]+\.[\d]+\.[\d]+/.test(d)
|
|
||||||
? 'ipv4-address'
|
|
||||||
: null;
|
|
||||||
});
|
|
||||||
|
|
||||||
DataTable.ext.type.order['ipv4-address-pre'] = function (ipAddress) {
|
|
||||||
[a, b, c, d] = ipAddress.split(".").map(Number)
|
|
||||||
return 16777216*a + 65536*b + 256*c + d;
|
|
||||||
};
|
|
||||||
</script>
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<nav class="ui inverted secondary menu">
|
<nav class="ui inverted secondary menu">
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
||||||
version="1.1">
|
version="1.1">
|
||||||
|
|
||||||
|
<xsl:import href="head.xsl" />
|
||||||
<xsl:import href="services.xsl" />
|
<xsl:import href="services.xsl" />
|
||||||
<xsl:import href="toast.xsl" />
|
<xsl:import href="toast.xsl" />
|
||||||
|
|
||||||
@ -23,41 +24,10 @@
|
|||||||
select="document(concat($base, 'scans/', translate($targets,'/', '!'), '.xml'))/nmaprun" />
|
select="document(concat($base, 'scans/', translate($targets,'/', '!'), '.xml'))/nmaprun" />
|
||||||
|
|
||||||
<html lang="fr">
|
<html lang="fr">
|
||||||
<head>
|
<xsl:apply-templates select="." mode="head">
|
||||||
<meta charset="utf-8" />
|
<xsl:with-param name="base" select="$base"/>
|
||||||
<title>lanScan - <xsl:value-of select="$targets" /></title>
|
<xsl:with-param name="targets" select="$targets"/>
|
||||||
<meta http-equiv="refresh" content="300">
|
</xsl:apply-templates>
|
||||||
<base href="{$base}" />
|
|
||||||
<link rel="icon" href="favicon.ico" />
|
|
||||||
<link rel="stylesheet" type="text/css"
|
|
||||||
href="https://cdn.jsdelivr.net/npm/fomantic-ui@2.9.3/dist/semantic.min.css" />
|
|
||||||
<link href="https://cdn.jsdelivr.net/npm/@yaireo/tagify/dist/tagify.css" rel="stylesheet"
|
|
||||||
type="text/css" />
|
|
||||||
<link
|
|
||||||
href="https://cdn.datatables.net/v/se/jszip-3.10.1/dt-2.1.8/b-3.1.2/b-html5-3.1.2/b-print-3.1.2/cr-2.0.4/fc-5.0.3/fh-4.0.1/r-3.0.3/datatables.min.css"
|
|
||||||
rel="stylesheet" />
|
|
||||||
<link rel="stylesheet" type="text/css" href="style.css" />
|
|
||||||
<script src="https://code.jquery.com/jquery-3.7.1.js"></script>
|
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/fomantic-ui/2.9.2/semantic.min.js"></script>
|
|
||||||
<script src="https://cdn.jsdelivr.net/npm/@yaireo/tagify"></script>
|
|
||||||
<script src="https://cdn.jsdelivr.net/npm/@yaireo/tagify/dist/tagify.polyfills.min.js"></script>
|
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.2.7/pdfmake.min.js"></script>
|
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.2.7/vfs_fonts.js"></script>
|
|
||||||
<script
|
|
||||||
src="https://cdn.datatables.net/v/se/jszip-3.10.1/dt-2.1.8/b-3.1.2/b-html5-3.1.2/b-print-3.1.2/cr-2.0.4/fc-5.0.3/fh-4.0.1/r-3.0.3/datatables.min.js"></script>
|
|
||||||
<script>
|
|
||||||
DataTable.ext.type.detect.unshift(function (d) {
|
|
||||||
return /[\d]+\.[\d]+\.[\d]+\.[\d]+/.test(d)
|
|
||||||
? 'ipv4-address'
|
|
||||||
: null;
|
|
||||||
});
|
|
||||||
|
|
||||||
DataTable.ext.type.order['ipv4-address-pre'] = function (ipAddress) {
|
|
||||||
[a, b, c, d] = ipAddress.split(".").map(Number)
|
|
||||||
return 16777216*a + 65536*b + 256*c + d;
|
|
||||||
};
|
|
||||||
</script>
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<nav class="ui inverted secondary menu">
|
<nav class="ui inverted secondary menu">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user