HTML Service in iframe

47 views
Skip to first unread message

Václav Petrák

unread,
Jan 26, 2021, 3:41:17 AM1/26/21
to google-apps-sc...@googlegroups.com
Hello everyone.
I came across a problem I can't solve.
I publish Apps Script using an iframe.
(I need my script address and I don't want a gray Google warning bar)
When using the application on a PC, everything is fine.
But if I open the application on the phone. The application does not respond to clicks in the correct positions.
Here is the application, after clicking on the table it will color the Cell.
However, it does not work properly on the phone.
Is there a solution?


The script is here

The application is published here (in iframe)
https://parsermat.cz/testy/position.html

I am sorry for my bad English
Václav Petrák
 
 
m .:  +420 724 604 367
e-mail:  waclav...@gmail.com

Michael O'Shaughnessy

unread,
Jan 26, 2021, 6:45:16 PM1/26/21
to google-apps-sc...@googlegroups.com
Interesting... I just took a real quick look and can confirm that on my Pixel phone using the "script" is fine but from the site it does not work right.

I will be watching what others say here...

In the meantime, I know what you mean about the "gray bar" at the top of the page for published web apps... it is annoying.  What I do however, is create a Google Site and insert the web app on a page.  No more gray bar!!

--
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/CAGyEmm64Z%2Bq9YZjqiwT%2BEiX%3D%3Df1WngSobUbbnJ3EMhbTcjdQgg%40mail.gmail.com.

Alex

unread,
Jan 26, 2021, 11:28:36 PM1/26/21
to Google Apps Script Community
Hello!

It works on Google DevTools device mode.

Did you try the responsive meta tag for the webapp?

  HtmlService.createHtmlOutput('Hello world')
    //Responsive
    .addMetaTag('viewport', 'width=device-width, initial-scale=1')

Václav Petrák

unread,
Jan 27, 2021, 3:37:33 AM1/27/21
to google-apps-sc...@googlegroups.com
Thanks, Alex's solution works fine!
It's great that people help in this community!
Thank you


Václav Petrák
 
 
m .:  +420 724 604 367
e-mail:  waclav...@gmail.com


st 27. 1. 2021 v 5:28 odesílatel Alex <oshli...@gmail.com> napsal:
Reply all
Reply to author
Forward
0 new messages