HTML <lang> attribute + zooming and scaling

Q&A about the latest versions
Post Reply
hromain
Posts: 42
Joined: Wed Apr 11, 2018 12:12 pm

I’m using aXe DevTools to scan my P2VR projects for accessibility failures, and the program has identified two issues I’m hoping someone can help me remedy:

1) HTML element must have a <lang> attribute – I feel like this is something simple, like a export setting I’m missing. Is there a way to set the language for the overall project?
Screenshot-2023-10-07-at-12.36.41-PM(2).jpg
Screenshot-2023-10-07-at-12.36.41-PM(2).jpg (97.31 KiB) Viewed 6893 times
2) Zooming & scaling must not be disabled – I am able to zoom in & out on the pano using my mouse, so I assume this referencing the inability to zoom/scale UI and skin elements, perhaps for people who use magnifying tools on webpages. Is there any way to remediate this?
Screenshot-2023-10-07-at-12.36.51-PM(2).jpg
Screenshot-2023-10-07-at-12.36.51-PM(2).jpg (108.33 KiB) Viewed 6893 times
Thanks!

(Apologies for the multiple posts today, but because they're in regards to different issues it felt correct to create separate threads).
User avatar
Tony
Posts: 1342
Joined: Mon Feb 15, 2010 6:54 am
Location: Adelaide, South Australia
Contact:

Hi,
1) HTML element must have a <lang> attribute – I feel like this is something simple, like a export setting I’m missing. Is there a way to set the language for the overall project?
You could modify the .ggt file to use a value that you add to the Master Node User Data or simply change the output HTML file.

lan.jpg
lan.jpg (216.01 KiB) Viewed 6881 times


Tony
Tony Redhead | Panoramic Photographer | mobile: +61438501002 | website: https://tonyredhead.com - https://redsquare.com | Pano2VR Tutorials: https://tonyredhead.com/pano2vr | instagram: https://www.instagram.com/tonyredhead/
User avatar
Tony
Posts: 1342
Joined: Mon Feb 15, 2010 6:54 am
Location: Adelaide, South Australia
Contact:

Hi,
2) Zooming & scaling must not be disabled – I am able to zoom in & out on the pano using my mouse, so I assume this referencing the inability to zoom/scale UI and skin elements, perhaps for people who use magnifying tools on webpages. Is there any way to remediate this?
You can try removing the

Code: Select all

 "minimum-scale=1.0, maximum-scale=1.0"
in the .ggt file and see how that affects the results.

Maximum-scale is designed to prevent the user from zooming too far in on a page, and is not intrinsically bad, however it is relatively easy to accidentally set up the viewport so that the maximum-scale disables using from zooming at all, so it is generally not recommended. For this reason, Apple decided to ignore the declarations of user-scalable, minimum-scale, and maximum-scale, as of iOS 10.

In the .ggt the line of code would look like;

Code: Select all

 <meta name="viewport" content="width=device-width, initial-scale=1.0<?ggs if (formvalue["fitcover"]=="true") document.write(", viewport-fit=cover"); ?>" />
Just make sure you keep a copy of the original .ggt file in case you need to go back to it.

Tony
Tony Redhead | Panoramic Photographer | mobile: +61438501002 | website: https://tonyredhead.com - https://redsquare.com | Pano2VR Tutorials: https://tonyredhead.com/pano2vr | instagram: https://www.instagram.com/tonyredhead/
User avatar
dePassage66
Posts: 86
Joined: Mon Mar 20, 2023 11:19 am

Hi to all,

Tony, when you write:
In the .ggt the line of code would look like
Where do you locate this file ?

Is it in the Output folder ?
Can we open it with a simple text editor without troubles ?

Regards,
pour Visites Guidées Panoramiques https://www.visitespanoramiques.com/index.html
(sorry, no translation available yet!)
User avatar
Tony
Posts: 1342
Joined: Mon Feb 15, 2010 6:54 am
Location: Adelaide, South Australia
Contact:

Hi,
Is it in the Output folder ?
You will find them here...

tamplate2.jpg
tamplate2.jpg (373.89 KiB) Viewed 6861 times
Can we open it with a simple text editor without troubles ?
I use BBEdit or Xcode but any text editor will do.

You can get more information on the files here https://ggnome.com/doc/output-template-normal/

Tony
Tony Redhead | Panoramic Photographer | mobile: +61438501002 | website: https://tonyredhead.com - https://redsquare.com | Pano2VR Tutorials: https://tonyredhead.com/pano2vr | instagram: https://www.instagram.com/tonyredhead/
User avatar
dePassage66
Posts: 86
Joined: Mon Mar 20, 2023 11:19 am

Ok, thanks Tony, I was wondering if I wasn't going blind from digging through this Output folder in vain!
pour Visites Guidées Panoramiques https://www.visitespanoramiques.com/index.html
(sorry, no translation available yet!)
hromain
Posts: 42
Joined: Wed Apr 11, 2018 12:12 pm

That's really helpful, Tony, thank you!
Post Reply