УкраїнськаEnglishmRussian
Вход/Новый
В теме нет новых постов

Scaling html UI view on mobile browser


Автор Сообщение
Сообщение создано: 06. 02. 2024 [22:28]
jurdome
Jurgen Meyer
Создатель темы
Зарегистрирован(а) с: 27.10.2023
Сообщения: 4
Is there any way to inser HTML meta tag in to www mainframe of the VCA project page?
Faced a problem that on mobile phones the www view is loaded in 1:1 pixel scale which is way to small to view.
For the start and login page this was easily solved by adding HTML Templates in HTTP modules with inserted line
<meta name="viewport" content="width-device-width, initial-scale=1.0, maximum-scale=1, user-scale=0"/>
This worked ok there. Now login dialog fits to full phone screen width.

But is there any way to insert such line in to actual project view HTML generator?
Сообщение создано: 07. 02. 2024 [09:30]
roman
Roman Savochenko
Moderator
Contributor
Developer
Зарегистрирован(а) с: 12.12.2007
Сообщения: 3743
You can deeply customise main interface of the module overriding and adding the HTML and JavaScript code by placing to folder of your OpenSCADA project files WebVisionVCA.html and WebVisionVCA.js which initially you can obtain from the module source code — UI.WebVision.

Learn, learn and learn better than work, work and work.



7859