export toast
This commit is contained in:
parent
d8bc7d99fb
commit
cadcd37408
@ -6,6 +6,7 @@
|
|||||||
|
|
||||||
<xsl:import href="lib/parseCommand.xsl"/>
|
<xsl:import href="lib/parseCommand.xsl"/>
|
||||||
<xsl:import href="lib/serviceLabel.xsl"/>
|
<xsl:import href="lib/serviceLabel.xsl"/>
|
||||||
|
<xsl:import href="lib/toast.xsl"/>
|
||||||
|
|
||||||
<xsl:output method="html" encoding="UTF-8"/>
|
<xsl:output method="html" encoding="UTF-8"/>
|
||||||
<xsl:output indent="yes"/>
|
<xsl:output indent="yes"/>
|
||||||
@ -130,37 +131,9 @@ Exemples: 192.168.1.0/24 scanme.nmap.org 10.0-255.0-255.1-254"/>
|
|||||||
<script>
|
<script>
|
||||||
$('.ui.dropdown').dropdown()
|
$('.ui.dropdown').dropdown()
|
||||||
|
|
||||||
<xsl:if test="runstats/finished/@summary">
|
<xsl:apply-templates select="runstats">
|
||||||
$.toast({
|
<xsl:with-param name="init" select="$init"/>
|
||||||
title : '<xsl:value-of select="runstats/finished/@exit"/>',
|
</xsl:apply-templates>
|
||||||
message : '<xsl:value-of select="runstats/finished/@summary"/>',
|
|
||||||
showIcon : 'satellite dish',
|
|
||||||
displayTime: 0,
|
|
||||||
closeIcon : true,
|
|
||||||
position : 'bottom right',
|
|
||||||
})
|
|
||||||
</xsl:if>
|
|
||||||
<xsl:if test="runstats/finished/@errormsg">
|
|
||||||
$.toast({
|
|
||||||
title : '<xsl:value-of select="runstats/finished/@exit"/>',
|
|
||||||
message : '<xsl:value-of select="runstats/finished/@errormsg"/>',
|
|
||||||
showIcon : 'exclamation triangle',
|
|
||||||
class : 'error',
|
|
||||||
displayTime: 0,
|
|
||||||
closeIcon : true,
|
|
||||||
position : 'bottom right',
|
|
||||||
})
|
|
||||||
</xsl:if>
|
|
||||||
<xsl:if test="$init">
|
|
||||||
$.toast({
|
|
||||||
message : 'Comparaison avec les résultats du <xsl:value-of select="$init/runstats/finished/@timestr"/>',
|
|
||||||
class : 'info',
|
|
||||||
showIcon : 'calendar',
|
|
||||||
displayTime: 0,
|
|
||||||
closeIcon : true,
|
|
||||||
position : 'bottom right',
|
|
||||||
})
|
|
||||||
</xsl:if>
|
|
||||||
|
|
||||||
hiddenButton.onclick = function(event) {
|
hiddenButton.onclick = function(event) {
|
||||||
if (lanScanForm.checkValidity()) {
|
if (lanScanForm.checkValidity()) {
|
||||||
|
@ -4,7 +4,8 @@
|
|||||||
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="lib/parseCommand.xsl"/>
|
<xsl:import href="lib/parseCommand.xsl"/>
|
||||||
|
<xsl:import href="lib/toast.xsl"/>
|
||||||
|
|
||||||
<xsl:output method="html" encoding="UTF-8"/>
|
<xsl:output method="html" encoding="UTF-8"/>
|
||||||
<xsl:output indent="yes"/>
|
<xsl:output indent="yes"/>
|
||||||
@ -163,37 +164,9 @@ table.order([1, 'asc']).draw()
|
|||||||
|
|
||||||
$('.ui.dropdown').dropdown()
|
$('.ui.dropdown').dropdown()
|
||||||
|
|
||||||
<xsl:if test="runstats/finished/@summary">
|
<xsl:apply-templates select="runstats">
|
||||||
$.toast({
|
<xsl:with-param name="init" select="$init"/>
|
||||||
title : '<xsl:value-of select="runstats/finished/@exit"/>',
|
</xsl:apply-templates>
|
||||||
message : '<xsl:value-of select="runstats/finished/@summary"/>',
|
|
||||||
showIcon : 'satellite dish',
|
|
||||||
displayTime: 0,
|
|
||||||
closeIcon : true,
|
|
||||||
position : 'bottom right',
|
|
||||||
})
|
|
||||||
</xsl:if>
|
|
||||||
<xsl:if test="runstats/finished/@errormsg">
|
|
||||||
$.toast({
|
|
||||||
title : '<xsl:value-of select="runstats/finished/@exit"/>',
|
|
||||||
message : '<xsl:value-of select="runstats/finished/@errormsg"/>',
|
|
||||||
showIcon : 'exclamation triangle',
|
|
||||||
class : 'error',
|
|
||||||
displayTime: 0,
|
|
||||||
closeIcon : true,
|
|
||||||
position : 'bottom right',
|
|
||||||
})
|
|
||||||
</xsl:if>
|
|
||||||
<xsl:if test="$init">
|
|
||||||
$.toast({
|
|
||||||
message : 'Comparaison avec les résultats du <xsl:value-of select="$init/runstats/finished/@timestr"/>',
|
|
||||||
class : 'info',
|
|
||||||
showIcon : 'calendar',
|
|
||||||
displayTime: 0,
|
|
||||||
closeIcon : true,
|
|
||||||
position : 'bottom right',
|
|
||||||
})
|
|
||||||
</xsl:if>
|
|
||||||
|
|
||||||
hiddenButton.onclick = function(event) {
|
hiddenButton.onclick = function(event) {
|
||||||
if (lanScanForm.checkValidity()) {
|
if (lanScanForm.checkValidity()) {
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
version="1.1">
|
version="1.1">
|
||||||
|
|
||||||
<xsl:import href="lib/parseCommand.xsl"/>
|
<xsl:import href="lib/parseCommand.xsl"/>
|
||||||
|
<xsl:import href="lib/toast.xsl"/>
|
||||||
|
|
||||||
<xsl:output method="html" encoding="UTF-8"/>
|
<xsl:output method="html" encoding="UTF-8"/>
|
||||||
<xsl:output indent="yes"/>
|
<xsl:output indent="yes"/>
|
||||||
@ -145,37 +146,9 @@ table.order([1, 'asc']).draw()
|
|||||||
|
|
||||||
$('.ui.dropdown').dropdown()
|
$('.ui.dropdown').dropdown()
|
||||||
|
|
||||||
<xsl:if test="runstats/finished/@summary">
|
<xsl:apply-templates select="runstats">
|
||||||
$.toast({
|
<xsl:with-param name="init" select="$init"/>
|
||||||
title : '<xsl:value-of select="runstats/finished/@exit"/>',
|
</xsl:apply-templates>
|
||||||
message : '<xsl:value-of select="runstats/finished/@summary"/>',
|
|
||||||
showIcon : 'satellite dish',
|
|
||||||
displayTime: 0,
|
|
||||||
closeIcon : true,
|
|
||||||
position : 'bottom right',
|
|
||||||
})
|
|
||||||
</xsl:if>
|
|
||||||
<xsl:if test="runstats/finished/@errormsg">
|
|
||||||
$.toast({
|
|
||||||
title : '<xsl:value-of select="runstats/finished/@exit"/>',
|
|
||||||
message : '<xsl:value-of select="runstats/finished/@errormsg"/>',
|
|
||||||
showIcon : 'exclamation triangle',
|
|
||||||
class : 'error',
|
|
||||||
displayTime: 0,
|
|
||||||
closeIcon : true,
|
|
||||||
position : 'bottom right',
|
|
||||||
})
|
|
||||||
</xsl:if>
|
|
||||||
<xsl:if test="$init">
|
|
||||||
$.toast({
|
|
||||||
message : 'Comparaison avec les résultats du <xsl:value-of select="$init/runstats/finished/@timestr"/>',
|
|
||||||
class : 'info',
|
|
||||||
showIcon : 'calendar',
|
|
||||||
displayTime: 0,
|
|
||||||
closeIcon : true,
|
|
||||||
position : 'bottom right',
|
|
||||||
})
|
|
||||||
</xsl:if>
|
|
||||||
|
|
||||||
hiddenButton.onclick = function(event) {
|
hiddenButton.onclick = function(event) {
|
||||||
if (lanScanForm.checkValidity()) {
|
if (lanScanForm.checkValidity()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user