From 41ba58f122d62fb2c75232fafdc1d7f854664a07 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Fri, 11 Apr 2025 07:09:58 +0800 Subject: [PATCH] Only display text box when corresponding radiobutton is selected --- static/index.html | 40 +++++++++++++++++++++++++++++++++++----- diff --git a/static/index.html b/static/index.html index f39f8ec42db96680787cbb9c11648945bcb25a7e..5f19804dca129c13e5043e7e7420f6c5f3cc8fd2 100644 --- a/static/index.html +++ b/static/index.html @@ -150,6 +150,22 @@ } footer a, footer a:link, footer a:visited { color: #4f5c5d; } + + .dialect-option .opyf { + display: none; + } + + #r_wuyu:checked ~ .opyf { + display: inline-block; + } + + #r_guanhua:checked ~ .opyf { + display: inline-block; + } + + #r_other:checked ~ .opyf { + display: inline-block; + }