Showing screen splash with Google App Script

Falken

Does anyone know how to show a screen splash in Google App Script?. I want to show a screen splash while I check the rows of a spreadsheet. Thank you.

Karl_S

Create the Splash Screen as an HTML file in the script editor. Under File->New select Html file. Call the file test_HTML and place this inside the file:

<!DOCTYPE html>
<html>
  <head>
    <base target="_top">
  </head>
  <body>
    Splash
  </body>
  <script>

  setTimeout(myFunction, 3000)

  function myFunction() {
    google.script.host.close();
  }
  </script>
</html>

In Code.gs place the following:

function onEdit(e){

  var splashScreen = HtmlService.createHtmlOutputFromFile('test_HTML')
        .setHeight(600)
        .setWidth(600);

  SpreadsheetApp.getUi()
      .showModalDialog(splashScreen, 'Dialog title');

}

In this case on and Edit of the document, the Splash Screen HTML will pop up and display for 3 seconds. You will have to modify this to work with your code, but should give you the basic principal of using the HTML Service as a splash screen.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

showing splash screen on cold start of app links

PhoneGap Splash Screen Not Showing

Flutter splash screen not showing

App stops at Splash screen

Ubuntu splash screen not showing at boot

My app is unble to start another activity after showing splash screen and it is showing this error

adding splash screen in flutter with custom color and img but it is still showing blank white screen on app startup

How to directly boot your android app straight from splash screen, without showing the home screen?

splash screen is not showing on whole screen on mobile

Running UWP app from Command Line is "ONLY" showing the splash screen of the app

ionic app splash screen are not shown

Ionic - app hangs on splash screen

Splash screen when starting the app

App crashes after splash screen

why is there no picture on the app splash screen

Ionic App - Cordova build - Intel XDK - Showing white screen after splash

after showing splash screen my app shows only blank white page not my webpage

Is iOS app Launch Screen (splash screen) a must?

White screen after splash screen in IONIC app

Image not showing with full width in splash screen

Splash screen showing on the background of main activity

Why my manufacturer splash screen is not showing?

Splash screen showing more than once

ionic android white screen after showing the splash screen

Google OAuth consent screen not showing app Logo and Name

Splash-screen approach in single Activity app

splash screen activity appears when exiting app

Issue found: Missing app icon in splash screen

Error while implementing a Kivy App with Splash Screen