save theme
This commit is contained in:
@ -39,6 +39,7 @@
|
||||
</xsl:apply-templates>
|
||||
</main>
|
||||
|
||||
<script src="script.js"></script>
|
||||
<script>
|
||||
$('.ui.tree.accordion').accordion()
|
||||
$('.ui.dropdown').dropdown()
|
||||
@ -132,7 +133,7 @@ $('.ui.dropdown').dropdown()
|
||||
</xsl:if>
|
||||
<xsl:if test="os/osmatch/@name">
|
||||
<td>
|
||||
<xsl:value-of select="os/osmatch/@name" />
|
||||
<abbr title="Confiance : {os/osmatch/@accuracy}%"><xsl:value-of select="os/osmatch/@name" /></abbr>
|
||||
</td>
|
||||
</xsl:if>
|
||||
<xsl:if test="distance/@value">
|
||||
|
@ -49,7 +49,7 @@
|
||||
<table id="scanResultsTable" style="width:100%" role="grid" class="ui sortable small compact stuck striped table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width: min-width">Etat</th>
|
||||
<th style="width: min-width">État</th>
|
||||
<th>Adresse IP</th>
|
||||
<th>Nom</th>
|
||||
<th>Constructeur</th>
|
||||
@ -68,6 +68,7 @@
|
||||
</table>
|
||||
</main>
|
||||
|
||||
<script src="script.js"></script>
|
||||
<script>
|
||||
var table = $('#scanResultsTable').DataTable({
|
||||
responsive: true,
|
||||
|
@ -71,7 +71,7 @@ Exemples: 192.168.1.0/24 scanme.nmap.org 10.0-255.0-255.1-254" />
|
||||
<i class='sync icon'></i>
|
||||
</a>
|
||||
</xsl:if>
|
||||
<button id="toggleThemeButton" type="button" class="ui icon link item" title="Thème clair/sombre">
|
||||
<button id="toggleThemeButton" type="button" class="ui icon link item" title="Thème clair/sombre" onclick="toggleTheme()">
|
||||
<i class="sun icon"></i>
|
||||
</button>
|
||||
</div>
|
||||
@ -79,15 +79,6 @@ Exemples: 192.168.1.0/24 scanme.nmap.org 10.0-255.0-255.1-254" />
|
||||
</nav>
|
||||
|
||||
<script>
|
||||
toggleThemeButton.onclick = function(event) {
|
||||
if (document.body.classList.contains('inverted')) {
|
||||
$(".inverted").addClass("light").removeClass("inverted")
|
||||
$("#toggleThemeButton i").addClass("moon").removeClass("sun")
|
||||
} else {
|
||||
$(".light").addClass("inverted").removeClass("light")
|
||||
$("#toggleThemeButton i").addClass("sun").removeClass("moon")
|
||||
}
|
||||
}
|
||||
scanForm.onsubmit = function(event) {
|
||||
if (scanForm.checkValidity()) {
|
||||
targetsInputDiv.classList.add('loading')
|
||||
|
Reference in New Issue
Block a user