diff --git a/src/pages/home.vue b/src/pages/home.vue
index a28c3c1..0ab6624 100644
--- a/src/pages/home.vue
+++ b/src/pages/home.vue
@@ -13,20 +13,41 @@
Veterinary Anatomy Edition
Select a region to begin
-
+
-
+
-
+
-
+
+
+
+ IMPORTANT
+
+
+
+ ALVINN is for educational purposes only. It may not be used for medical diagnosis, intervention, or treatment.
+
+
+
+ Don't show again
+
+
+
+
+
@@ -50,6 +71,7 @@
width: 100%;
background-color: var(--avn-button-bg-color);
padding: 5px;
+ max-width: 200px;
}
.region-image {
@@ -58,7 +80,7 @@
@media (min-width: 600px) {
.region-grid {
- grid-template-columns: auto [thorax] auto [abdomen] auto [limbs] auto [headneck] auto auto;
+ grid-template-columns: 1fr [thorax] auto [abdomen] auto [limbs] auto [headneck] auto 1fr;
grid-template-rows: minmax(0, 1fr);
}
@@ -91,6 +113,47 @@
export default {
components: {
RegionIcon
+ },
+ data () {
+ return {
+ siteSettings: {
+ siteAgreement: false,
+ rememberAgreement: false
+ },
+ showDisclaimer: true
+ }
+ },
+ created () {
+ var loadSiteSettings = localStorage.getItem('siteSettings')
+ if (loadSiteSettings) this.siteSettings = JSON.parse(loadSiteSettings)
+ this.showDisclaimer = !this.siteSettings.siteAgreement || !this.siteSettings.rememberAgreement
+ },
+ methods: {
+ setAgreement () {
+ this.siteSettings.siteAgreement = true
+ let saveSiteSettings = new Promise(
+ (saved,failed) => {
+ try {
+ localStorage.setItem('siteSettings',JSON.stringify(this.siteSettings))
+ saved()
+ } catch {
+ failed()
+ }
+ }
+ )
+ saveSiteSettings.then(
+ () => {
+ this.showDisclaimer = false
+ },
+ () => {
+ var toast = f7.toast.create({
+ text: 'ERROR: No settings saved',
+ closeTimeout: 2000
+ })
+ toast.open()
+ }
+ )
+ }
}
}