08-07-2019 08:49
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

08-07-2019 08:49
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
I apologize in advance if this seems obvious.
I am doing a clock face for Ionic, Versa, and Versa light. I submitted the clock for review and it was rejected because Versa Light does not support floors.
In the code, I already separated the Ionic and Versa using
index~300X300.gui (for Versa) and index~348X250.gui (for Ionic)
how would I then add a third index for just the Versa light? Naturally, I can not add a second index~300X300.gui
any advice help appreciated.
Answered! Go to the Best Answer.

Accepted Solutions
08-07-2019 09:07 - edited 08-07-2019 09:07
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


08-07-2019 09:07 - edited 08-07-2019 09:07
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
If you're showing a Floors value in your index.gui, then you can hide it by default (display=none), and show it (if available) using Javascript.
import { me as appbit } from "appbit"; import { today } from "user-activity"; if (appbit.permissions.granted("access_activity")) { if (today.local.elevationGain !== undefined) { // We have floors, show it here
// myFloorsThing.style.display = "visible"; } }

08-07-2019 09:07 - edited 08-07-2019 09:07
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


08-07-2019 09:07 - edited 08-07-2019 09:07
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
If you're showing a Floors value in your index.gui, then you can hide it by default (display=none), and show it (if available) using Javascript.
import { me as appbit } from "appbit"; import { today } from "user-activity"; if (appbit.permissions.granted("access_activity")) { if (today.local.elevationGain !== undefined) { // We have floors, show it here
// myFloorsThing.style.display = "visible"; } }

