From f0485f6abd1dca2398e2399a3a52628123d42819 Mon Sep 17 00:00:00 2001
From: adrien <adrien@malingrey.fr>
Date: Thu, 6 Feb 2025 10:48:34 +0100
Subject: [PATCH] style

---
 index.php               | 11 ++++++++++-
 stylesheets/lanScan.xsl |  4 ++--
 stylesheets/nav.xsl     |  4 ++++
 3 files changed, 16 insertions(+), 3 deletions(-)

diff --git a/index.php b/index.php
index 3c95d95..ee836fc 100644
--- a/index.php
+++ b/index.php
@@ -15,10 +15,19 @@
         background-size: cover;
       }
 
-      body>.grid {
+      body > .grid {
         height: 100%;
       }
 
+      h2.logo {
+        filter: drop-shadow(0 0 2px);
+      }
+
+      .ui.inverted.segment {
+        background: #1b1c1dc0;
+        backdrop-filter: blur(7px);
+      }
+
       .logo {
         margin-right: 0 !important;
       }
diff --git a/stylesheets/lanScan.xsl b/stylesheets/lanScan.xsl
index cb81384..6205150 100644
--- a/stylesheets/lanScan.xsl
+++ b/stylesheets/lanScan.xsl
@@ -7,12 +7,12 @@
   <xsl:import href="services.xsl" />
   <xsl:import href="toast.xsl" />
 
-  <xsl:output method="html" encoding="UTF-8" indent="yes" escape-uri-attributes="no" />
+  <xsl:output method="html" encoding="UTF-8" indent="yes" />
   <xsl:strip-space elements='*' />
 
   <xsl:variable name="stylesheetURL" select="substring-before(substring-after(processing-instruction('xml-stylesheet'),'href=&quot;'), '?')" />
   <xsl:variable name="base" select="concat($stylesheetURL, '/../../')" />
-  <xsl:variable name="name" select="substring-before(substring-after(processing-instruction('xml-stylesheet'),'name='), '&quot;')" disable-output-escaping="no"/>
+  <xsl:variable name="name" select="substring-before(substring-after(processing-instruction('xml-stylesheet'),'name='), '&quot;')"/>
 
   <xsl:template match="nmaprun">
     <xsl:variable name="targets" select="substring-after(@args, '-oX - ')" />
diff --git a/stylesheets/nav.xsl b/stylesheets/nav.xsl
index 81fa988..48934ff 100644
--- a/stylesheets/nav.xsl
+++ b/stylesheets/nav.xsl
@@ -3,6 +3,8 @@
   xmlns:xs="http://www.w3.org/2001/XMLSchema" version="1.1">
 
   <xsl:template match="nmaprun" mode="nav">
+    <xsl:param name="name" />
+
     <nav class="ui inverted secondary menu">
       <a href="." class="ui header button item logo">lan<svg class="logo" version="1.1" id="Layer_1" x="0px" y="0px" viewBox="0 0 24 24" xml:space="preserve" width="40" height="40"
         xmlns="http://www.w3.org/2000/svg"
@@ -86,6 +88,7 @@ scanForm.onsubmit = function(event) {
     })
   }
 }
+<xsl:if test="$name">
 refreshLink.onclick = function(event) {
     refreshLink.getElementsByTagName('i')[0].className = 'loading spinner icon'
     $.toast({
@@ -98,6 +101,7 @@ refreshLink.onclick = function(event) {
         position   : 'bottom right',
     })
 }
+</xsl:if>
   </script>
 </xsl:template>
 </xsl:stylesheet>
\ No newline at end of file