Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Programming for Versa and Versa Light

ANSWERED

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.

 

 

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

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"; } }

 

 

View best answer in original post

Best Answer
0 Votes
1 REPLY 1

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"; } }

 

 

Best Answer
0 Votes