Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .idea/deploymentTargetSelector.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 7 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ android {
applicationId "org.apphatchery.gatbreferenceguide"
minSdk 24
targetSdk 36
versionCode 34
versionName "1.13"
versionCode 54
versionName "2.0"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"

Expand All @@ -33,8 +33,13 @@ android {
}

buildTypes {
debug {
buildConfigField "String", "DYNAMIC_LINK_DOMAIN", '"https://gatbreferenceguide.page.link"'
}

release {
minifyEnabled false
buildConfigField "String", "DYNAMIC_LINK_DOMAIN", '"https://apphatcherygatbreferenceguide.page.link"'
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.debug
ndk {
Expand Down
101 changes: 74 additions & 27 deletions app/src/main/assets/assets/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
--background-color-secondary: var(--white-color);
--body-color: #747474;
--body-color-secondary: #000;
--body-color-alt: #343434;
--link-color: var(--primary-color);
--table-title-color: var(--primary-color);
--titles-color: #333;
Expand All @@ -34,6 +35,7 @@
--background-color-secondary: #343434;
--body-color: #d5d5d5;
--body-color-secondary: #f9f9f9;
--body-color-alt: #cbcbcb;
--link-color: var(--primary-color);
--table-title-color: var(--primary-color);
--titles-color: var(--white-color);
Expand Down Expand Up @@ -132,9 +134,10 @@

html {
/* 1 */
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
"Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji",
"Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
font-family:
-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
"Segoe UI Symbol", "Noto Color Emoji";
font-size: 1rem;
font-weight: normal;
line-height: 1.5;
Expand Down Expand Up @@ -239,6 +242,10 @@ img {
margin-bottom: 16px;
}

.header-title > div {
flex: 0 0 auto;
}

.last-updated {
color: var(--last-updated-color);
font-size: 15px;
Expand Down Expand Up @@ -437,7 +444,7 @@ td.uk-text-truncate {
max-width: 0;
}
.uk-text-wrap {
white-space: wrap;
white-space: wrap !important;
}

/* End of import from UIkit.css file */
Expand Down Expand Up @@ -499,6 +506,15 @@ a {
color: var(--body-color-secondary);
}

.tab-content .uk-table {
table-layout: fixed;
width: 100%;
}

/* .tab-content .uk-table th.uk-text-wrap {
width: 32%;
} */

/* Tabs */

.uk-tabs-container .tabs {
Expand Down Expand Up @@ -571,17 +587,13 @@ a {
opacity: 1;
}

.highlight {
color: var(--primary-color);
}

th,
td {
vertical-align: middle !important;
}

td {
animation: slideInBottom var(--transition-duration) ease-in-out forwards;
animation: slideInBottom var(--transition-duration) ease-in-out;
}

td ul {
Expand Down Expand Up @@ -669,6 +681,25 @@ h3.highlight {
background-color: var(--green-color);
}

.highlight {
color: var(--primary-color);
}

th.alt-color,
td.alt-color,
.alt-color {
color: var(--body-color-alt);
font-weight: 600;
}

.no-margin {
margin: 0;
}

.semibold {
font-weight: 600;
}

/* Togglers */
.toggle-title {
cursor: pointer;
Expand Down Expand Up @@ -716,13 +747,13 @@ h3.highlight {
justify-content: center;
align-items: center;
font-family: serif;
font-size: 0.7rem;
font-size: 0.8rem;
background-color: var(--primary-color);
color: white;
border-radius: 50%;
cursor: pointer;
width: 18px;
height: 18px;
width: 16px;
height: 16px;
line-height: 16px;
margin: 0 0rem;
position: relative;
Expand All @@ -742,13 +773,25 @@ h3.highlight {
bottom: 100%;
margin-bottom: 10px;
opacity: 0;
transition: opacity 0.3s, visibility 0.3s;
transition:
opacity 0.3s,
visibility 0.3s;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
pointer-events: none;
white-space: normal;
word-wrap: break-word;
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
font-family:
system-ui,
-apple-system,
BlinkMacSystemFont,
"Segoe UI",
Roboto,
Oxygen,
Ubuntu,
Cantarell,
"Open Sans",
"Helvetica Neue",
sans-serif;
width: max-content;
max-width: calc(100% + 200px);
z-index: 5000 !important;
Expand All @@ -757,16 +800,19 @@ h3.highlight {
/* Tooltip positioning variants */
.tooltip-right {
left: 0px;
z-index: 5000 !important;
}

.tooltip-center {
left: 50%;
transform: translateX(-50%);
z-index: 5000 !important;
}

.tooltip-left {
right: 0px;
left: auto;
z-index: 5000 !important;
}

.tooltip-bottom-center {
Expand All @@ -776,13 +822,25 @@ h3.highlight {
transform: translateX(-50%);
margin-bottom: 0;
margin-top: 10px;
z-index: 5000 !important;
}

.tooltip-bottom-center-center {
top: 100%;
bottom: auto;
left: auto;
transform: translateX(20%);
margin-bottom: 0;
margin-top: 10px;
z-index: 5000 !important;
}

.tooltip-center-center {
bottom: -500px;
left: 30%;
margin-bottom: 0;
margin-top: 10px;
z-index: 5000 !important;
}

/* Tooltip arrow */
Expand All @@ -802,6 +860,7 @@ h3.highlight {
visibility: visible;
opacity: 1;
overflow: scroll;
z-index: 5000 !important;
}

/* Responsive table
Expand Down Expand Up @@ -867,15 +926,3 @@ h3.highlight {
grid-template-columns: repeat(2, 1fr);
}
}

/* Shift the long AAP isoniazid tooltip in the LTBI table slightly right
so its content is not clipped. Targets only this tooltip on table_5
and does not affect other tooltips.
This was done to solve the problem on the tooltip that was causing the text to be blurred by the background.
so the possitioning of the tooltip was changed to the left and the css below was added so that the pop up doesnt get clipped by the margin
*/
#table_5_dosages_for_recommended_lbti_treatment_regimens
.info-icon[data-tooltip*="American Academy of Pediatrics recommends an isoniazid dosage of 10 - 15 mg/kg"]
.tooltip {
right: -30px; /* move popup 30px to the right */
}
4 changes: 2 additions & 2 deletions app/src/main/assets/json/chapter.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
},
{
"chapterId": 10,
"chapterTitle": "TB Infection Control: Hospital Isolation Procedures",
"chapterTitle": "TB Infection Prevention and Control in Healthcare Facilities",
"chapterHomePosition": 0
},
{
Expand All @@ -56,7 +56,7 @@
},
{
"chapterId": 12,
"chapterTitle": "Alternative Housing Program for Homeless TB Patients in Georgia",
"chapterTitle": "Alternative Housing Program for Persons with TB Experiencing Homelessness in Georgia ",
"chapterHomePosition": 0
},
{
Expand Down
9 changes: 8 additions & 1 deletion app/src/main/assets/json/chart.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"id": "table_9_pediatric_dosage_isoniazid_in_children_(birth_to_15_years)",
"subChapterTitle": "Special Clinical Situations",
"subChapterId": 24,
"chartTitle": "Table 9: Pediatric dosage - isoniazid in children (birth to 15 years)",
"chartTitle": "Table 9: Pediatric Dosage in Children ( birth to 15 years)",
"chartHomePosition": 0
},
{
Expand Down Expand Up @@ -124,5 +124,12 @@
"subChapterId": 32,
"chartTitle": "Table 18: Grady Hospital TB Isolation Policy",
"chartHomePosition": 0
},
{
"id": "fig1_factors_to_be_considered",
"subChapterTitle": "Considerations",
"subChapterId": 22,
"chartTitle": "Figure 1: Factors to be considered in deciding to initiate treatment empirically for active tuberculosis (TB) (prior to microbiologic confirmation)",
"chartHomePosition": 0
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@
<div>
<img src="../assets/ic_chapter.svg" width="16" height="16" class="ic_chapter_icon">
</div>
<p class="chapter-title">X. TB Infection Control: Hospital Isolation Procedures</p>
<p class="chapter-title">X. TB Infection Prevention and Control in Healthcare Facilities</p>
</div>
<p class="last-updated"><i>Last Updated October 2025</i></p>
</div>
<hr>
</div>

<p class="uk-paragraph">
Effective infection control efforts are essential in preventing nosocomial transmission of
Effective infection prevention and control efforts are essential in preventing nosocomial transmission of
TB. A hierarchy of
control measures is recommended to prevent TB transmission in health care facilities.</p>
<ul class="uk-list uk-list-disc">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<div>
<img src="../assets/ic_chapter.svg" width="16" height="16" class="ic_chapter_icon">
</div>
<p class="chapter-title">X. TB Infection Control: Hospital Isolation Procedures</p>
<p class="chapter-title">X. TB Infection Prevention and Control in Healthcare Facilities</p>
</div>
<p class="last-updated"><i>Last Updated October 2025</i></p>
</div>
Expand All @@ -39,7 +39,7 @@
<p class="uk-paragraph">
Grady Memorial Hospital in Atlanta has prevented nosocomial transmission in large part by the effective use of
administrative controls. Careful screening of patients and isolation of those at risk for TB have been
accomplished by the introduction of an expanded respiratory isolation policy.</p>
accomplished by the introduction of an expanded respiratory isolation policy (Airborne Infection Isolation Precautions).</p>
</div>
</body>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<div>
<img src="../assets/ic_chapter.svg" width="16" height="16" class="ic_chapter_icon">
</div>
<p class="chapter-title">X. TB Infection Control: Hospital Isolation Procedures</p>
<p class="chapter-title">X. TB Infection Prevention and Control in Healthcare Facilities</p>
</div>
<p class="last-updated"><i>Last Updated October 2025</i></p>
</div>
Expand All @@ -29,7 +29,7 @@

<p class="uk-paragraph">
In general, the risk of occupational acquisition of TB is low among the large majority of US health care workers
(HCWs) given the changing epidemiology of the disease in the U.S. </p>
(HCWs) given the current epidemiology of the disease in the U.S. </p>
<p class="uk-paragraph">
The risk of TB exposure among most US-based health care workers (HCWs) is similar to the general population given the decreased TB incidence and improved hospital infection prevention and control measures in the U.S.
</p>
Expand All @@ -51,7 +51,7 @@
<p class="uk-paragraph">
Any worker who develops symptoms of active TB disease or whose test for LTBI (TST or IGRA) converts to positive
should be evaluated promptly. Health care workers with recent TB infection on the basis of a conversion to a
positive test for LTBI (regardless of age) and no evidence of active disease should be encouraged to take
positive test for LTBI (regardless of age) and no evidence of active TB disease should be encouraged to take
treatment for LTBI (see <a href="3_treatment_of_latent_tb_infection_(ltbi).html"> Treatment for LTBI</a>).</p>

<div id="table_19_grady_hospital_tb_isolation_policy" class="uk-overflow-auto">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<div>
<img src="../assets/ic_chapter.svg" width="16" height="16" class="ic_chapter_icon">
</div>
<p class="chapter-title">X. TB Infection Control: Hospital Isolation Procedures</p>
<p class="chapter-title">X. TB Infection Prevention and Control in Healthcare Facilities</p>
</div>
<p class="last-updated"><i>Last Updated October 2025</i></p>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<div>
<img src="../assets/ic_chapter.svg" width="16" height="16" class="ic_chapter_icon">
</div>
<p class="chapter-title">X. TB Infection Control: Hospital Isolation Procedures</p>
<p class="chapter-title">X. TB Infection Prevention and Control in Healthcare Facilities</p>
</div>
<p class="last-updated"><i>Last Updated October 2025</i></p>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<div>
<img src="../assets/ic_chapter.svg" width="16" height="16" class="ic_chapter_icon">
</div>
<p class="chapter-title">XI. Community Tuberculosis Control</p>
<p class="chapter-title">XI. Community Tuberculosis Prevention Control </p>
</div>
<p class="last-updated"><i>Last Updated October 2025</i></p>
</div>
Expand Down
Loading