aboutsummaryrefslogtreecommitdiff
path: root/inst/app/www
diff options
context:
space:
mode:
authorNaeem Model <me@nmode.ca>2024-06-09 16:01:51 +0000
committerNaeem Model <me@nmode.ca>2024-06-09 16:01:51 +0000
commit9fd931aeeba4ab7bdede1a625f64e7024c2b55aa (patch)
treeb59967df497f898e9b8f7e1cd0e345ed0ff71e36 /inst/app/www
parent887c57c423ca8318d482a9f85514b3d6f281a696 (diff)
Update Shiny app
- Remove template/logic for single data entry - Change 'Add estimators' to 'About estimators'; adding estimators and viewing estimates are now done in the same tab - Swap rows and columns in estimates table (estimators as row names, datasets as column names) - Add a separate column for the serial interval to the estimates table - Add plots for daily and weekly data using the Plotly library - Remove italics from the subscript in all occurences of 'R_0' - Fix code/text formatting
Diffstat (limited to 'inst/app/www')
-rw-r--r--inst/app/www/script.js2
-rw-r--r--inst/app/www/styles.css17
2 files changed, 6 insertions, 13 deletions
diff --git a/inst/app/www/script.js b/inst/app/www/script.js
index c31584f..30066d1 100644
--- a/inst/app/www/script.js
+++ b/inst/app/www/script.js
@@ -3,7 +3,7 @@ $(document).ready(() => {
$('[data-bs-toggle="tooltip"]').tooltip();
// Toggle the text in the bulk data help button.
- $('#bulk-help-toggle').on('click', event => {
+ $('#data-format-toggle').on('click', event => {
btn = $(event.target);
show_format = 'Show required format';
btn.text(btn.text() === show_format ? 'Hide required format' : show_format);
diff --git a/inst/app/www/styles.css b/inst/app/www/styles.css
index d53a387..a6fc3cd 100644
--- a/inst/app/www/styles.css
+++ b/inst/app/www/styles.css
@@ -8,23 +8,16 @@ noscript {
text-align: center;
}
-.nav-pills .active {
- color: white !important;
+.shiny-notification {
+ background-color: black;
+ color: white;
}
-.action-button:hover, #bulk-help-toggle:hover, #data_export:hover {
+.plotly-notifier .notifier-note {
+ background-color: black !important;
color: white !important;
}
-#data_plot {
- margin-top: -0.5rem;
-}
-
-td.selected, .shiny-notification {
- background-color: black;
- color: white;
-}
-
#data_upload {
display: none;
}