Skip to content

Commit

Permalink
Fixed race condition, glyphicons, padding
Browse files Browse the repository at this point in the history
As described in #8 (comment)
  • Loading branch information
honze-net committed Feb 11, 2020
1 parent 441e993 commit 5660eec
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions nmap-bootstrap.xsl
Expand Up @@ -39,6 +39,14 @@ Andreas Hontzia (@honze_net)
.clickable {
cursor: pointer;
}
.panel-heading > h3:before {
font-family: 'Glyphicons Halflings';
content: "\e114"; /* glyphicon-chevron-down */
padding-right: 1em;
}
.panel-heading.collapsed > h3:before {
content: "\e080"; /* glyphicon-chevron-right */
}
</style>
<title>Scan Report Nmap <xsl:value-of select="/nmaprun/@version"/></title>
</head>
Expand Down Expand Up @@ -129,17 +137,14 @@ Andreas Hontzia (@honze_net)
<script>
$(document).ready(function() {
$('#table-overview').DataTable();
$('h3.panel-title').click(function() {
$(this).find("i.glyphicon").toggleClass("glyphicon-chevron-down glyphicon-chevron-right");
});
});
</script>
<h2 id="onlinehosts" class="target">Online Hosts</h2>
<xsl:for-each select="/nmaprun/host[status/@state='up']">
<div class="panel panel-default">
<div class="panel-heading clickable" data-toggle="collapse">
<xsl:attribute name="data-target">#<xsl:value-of select="translate(address/@addr, '.', '-')"/></xsl:attribute>
<h3 class="panel-title"><i class="glyphicon glyphicon glyphicon-chevron-right"></i><xsl:value-of select="address/@addr"/><xsl:if test="count(hostnames/hostname) > 0"> - <xsl:value-of select="hostnames/hostname/@name"/></xsl:if></h3>
<h3 class="panel-title"><xsl:value-of select="address/@addr"/><xsl:if test="count(hostnames/hostname) > 0"> - <xsl:value-of select="hostnames/hostname/@name"/></xsl:if></h3>
</div>
<div class="panel-body collapse in">
<xsl:attribute name="id"><xsl:value-of select="translate(address/@addr, '.', '-')"/></xsl:attribute>
Expand Down

0 comments on commit 5660eec

Please sign in to comment.