From 2ff3c846e970bd12042cbe867d3b54441f0cf154 Mon Sep 17 00:00:00 2001 From: hael Date: Tue, 29 Jul 2025 08:49:11 +0000 Subject: [PATCH] small changes --- manage.html | 2 +- scan.php | 22 ++++++++++++++-------- 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/manage.html b/manage.html index 8bb7a5d..80de069 100644 --- a/manage.html +++ b/manage.html @@ -380,7 +380,7 @@ } .subtitle { - font-size: 20px; + font-size: 18px; margin: 4px 0; color: #999; } diff --git a/scan.php b/scan.php index 2bc7ff6..2c687ca 100644 --- a/scan.php +++ b/scan.php @@ -214,9 +214,11 @@ switch ($_GET["op"]) { } echo ''; } + $more = 0; echo "
name}_form\">"; echo "
"; foreach ($template->fields as $field) { + if ($field->advanced) $more = 1; echo "
advanced ? "advanced" : "")."\">"; if (!empty($field->title)) echo "

".$field->title."

"; if (isset($field->generated)) { @@ -241,27 +243,29 @@ switch ($_GET["op"]) { echo "
"; echo "
"; - echo " -
- -
"; + if ($more) { + echo " +
+ +
"; + } if ($reinstall) { echo " -
+
"; } echo " -
+
"; if ($reinstall) { echo " -
+
"; } - echo "
+ echo "
"; // buttons echo " @@ -273,6 +277,8 @@ switch ($_GET["op"]) { jQuery(this).hide(); }); jQuery('#more_{$template->name}_btn').click(function() { + currentText = jQuery(this).text(); + jQuery(this).text(currentText === 'More' ? 'Less' : 'More'); jQuery('.advanced').each(function() { jQuery(this).toggle(); });