INTRO TO WEB APPS (GOOGLE APPS SCRIPT)

 

 

 

 

 

 

  

 

 

 CODES:

Code.gs


 

 Index.html


 

 Text:

<!DOCTYPE html>
<html>
  <head>
    <base target="_top">
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" >

    <script>
      function buttonClicked(){
        google.script.run.withSuccessHandler(function(response){
          var msgDiv = document.getElementById("messageDiv");
          msgDiv.innerText = response;
        }).getGreetings();
      }
    </script>

  </head>
  <body>
    <h1>HELLO GOOGLE APPS SCRIPT WEB APPS!</h1>
    <h1>Please be good to me...</h1>
    <h2>Hello World!</h2>
    <button class="btn btn-primary" onclick="buttonClicked()">Click Me</button>
    <div id="messageDiv"></div>
  </body>
</html>

 

 

 

 

 

 

 

No comments:

Post a Comment

UNITY: USING FIREBALL TO ELIMINATE ENEMIES

 Code user in the video: Fireball Controller using System . Collections ; using System . Collections . Generic ; using UnityEngine ; publ...