]> bicyclesonthemoon.info Git - ott/bsta/commitdiff
possibility of other frame types v1.1.0
authorb <rowerynaksiezycu@gmail.com>
Thu, 4 Jan 2024 21:11:05 +0000 (21:11 +0000)
committerb <rowerynaksiezycu@gmail.com>
Thu, 4 Jan 2024 21:11:05 +0000 (21:11 +0000)
bsta.css
bsta_lib.1.pm

index 48d481d962fc978dc6147fa64a45d28727eb6833..f6d6a327e71b4690b5fab0c4d95dee3411511c46 100644 (file)
--- a/bsta.css
+++ b/bsta.css
@@ -124,11 +124,30 @@ div#framespace
 img#frame
 {
        border: solid #0057af;
-       border-width:27px 38px;
+       border-width: 27px 38px;
        padding: 0px;
        margin: 0px;
 }
 
+img#frame.double
+{
+       border-width: 54px 38px;
+}
+
+img#frame.full
+{
+       border-width: 0px;
+}
+
+img#frame.bftf
+{
+       padding-top: 60px;
+       padding-bottom: 60px;
+       padding-left: 85px;
+       padding-right: 85px;
+       background-color: #d9ecff;
+}
+
 img#frame:hover
 {
        border-color: #bb6622;
index 9d559764d18eb7a6b0433ec4a5642db90e26f8aa..005cde80bef3181a4b06b06089e8c902bb9ed8ca 100644 (file)
@@ -870,6 +870,7 @@ sub print_viewer_page {
        
        my $width  = int($frame_data->{'width'});
        my $height = int($frame_data->{'height'});
+       my $frame_type = $frame_data->{'frametype'};
        
        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';
@@ -1066,9 +1067,10 @@ sub print_viewer_page {
        my $_frame_next_url  = html_entity_encode_dec($frame_next_url , 1);
        my $_frame_full_url  = html_entity_encode_dec($frame_full_url , 1);
        
-       my $_story   = html_entity_encode_dec($story,   1);
-       my $_title   = html_entity_encode_dec($title,   1);
-       my $_command = html_entity_encode_dec($command, 1);
+       my $_story      = html_entity_encode_dec($story     , 1);
+       my $_title      = html_entity_encode_dec($title     , 1);
+       my $_command    = html_entity_encode_dec($command   , 1);
+       my $_frame_type = html_entity_encode_dec($frame_type, 1);
        
        my $_website_name = html_entity_encode_dec(WEBSITE_NAME(), 1);
        
@@ -1131,7 +1133,7 @@ sub print_viewer_page {
        print $fh '   </div>'."\n";
        print $fh '   <div id="framespace">'."\n";
        
-       print $fh '    <img src="'.$_frame_url.'" id="frame" alt="'.$frame.'" title="'.$_title.'" width="'.$width.'" height="'.$height.'">'."\n";
+       print $fh '    <img src="'.$_frame_url.'" id="frame" class="'.$_frame_type.'" alt="'.$frame.'" title="'.$_title.'" width="'.$width.'" height="'.$height.'">'."\n";
        
        print $fh '   </div>'."\n";
        print $fh '   <div id="insb" class="ins">'."\n";