From ba3fe68490709d7cf8ee0b8f2fc8ce6da728588c Mon Sep 17 00:00:00 2001 From: b Date: Wed, 3 Jan 2024 09:34:28 +0000 Subject: [PATCH] add frame size to viewer, update css --- bsta.css | 14 +++++++------- bsta_lib.1.pm | 5 ++++- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/bsta.css b/bsta.css index 652f9fc..48d481d 100644 --- a/bsta.css +++ b/bsta.css @@ -129,6 +129,11 @@ img#frame margin: 0px; } +img#frame:hover +{ + border-color: #bb6622; +} + img.intf { border-width: 0px; @@ -156,16 +161,11 @@ table#intftable border-width:27px 38px; padding: 0px; margin: 0px; - background-color: #00ff00; + background-color: #ffffff; border-collapse: collapse; border-spacing: 0px; } -img#frame:hover -{ - border-color: #bb6622; -} - div#undertext { text-align: left; @@ -343,4 +343,4 @@ div.le div.pr { float: right; -} \ No newline at end of file +} diff --git a/bsta_lib.1.pm b/bsta_lib.1.pm index 6207b6a..c6b244b 100644 --- a/bsta_lib.1.pm +++ b/bsta_lib.1.pm @@ -1008,6 +1008,9 @@ sub print_viewer_page { my $last_frame = int($state->{'last'}); my $ong_state = int($state->{'state'}); + my $width = int($frame_data->{'width'}); + my $height = int($frame_data->{'height'}); + my $timer_color_h = (($timer_unlocked >= 1) || ($ong_state >= STATE->{'ready'})) ? 'br' : 'ni'; my $timer_color_m = (($timer_unlocked >= 2) || ($ong_state >= STATE->{'ready'})) ? 'br' : 'ni'; my $timer_color_s = (($timer_unlocked >= 3) || ($ong_state >= STATE->{'ready'})) ? 'br' : 'ni'; @@ -1268,7 +1271,7 @@ sub print_viewer_page { print $fh ' '."\n"; print $fh '
'."\n"; - print $fh ' '.$frame.''."\n"; + print $fh ' '.$frame.''."\n"; print $fh '
'."\n"; print $fh '
'."\n"; -- 2.30.2