Advertisement
Guest User

Untitled

a guest
Mar 2nd, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.30 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <base target="_top">
  5. </head>
  6. <body>
  7. <div style="background:#f2f2f2;margin: 20px auto;width:996px;font-family:Verdana;line-height:1.5em;border:2px solid #eee;padding:20px;box-shadow:1px 2px 3px #eee;color:#333">
  8. <h1>Welcome Developer</h1>
  9. <h4>Instructions</h4>
  10. <p class="alert alert-success" style="border: 1px solid green">
  11. You have 2 hours to complete this test. Make a copy of this Script and Name it "Internal JS Quiz email@gmail.com".
  12. Use the 'Publish' option from the script editor menu to deploy the app. Once deployed the app can be tested from the same menu.
  13. </p>
  14. <p>
  15. In order to complete this test successfully, you need to create 2 input fields (Username and Password) and a button to submit the data.
  16. Then everytime a user enters username and password and clicks the button, the data has to be logged into a spreadsheet. A timestamp must also be logged and the user email address.
  17. </p>
  18. <p style="color:red;font-weight:bolder">Once you have finished part 2, share it with <a href="https://gmail.com" target="_blank">innovation.arvato@gmail.com</a> so we can review it. Thanks and good luck!</p>
  19. <p>
  20. <strong>Hint 1:</strong> <a href ="https://developers.google.com/apps-script/guides/html/reference/run#withSuccessHandler(Function)" target="_blank"> google.script.run.withSuccessHandler()</a> is your friend.<br>
  21. <strong>Hint 2:</strong> Session.getActiveUser().getEmail() returns the email of current user (.gs code).<br>
  22. <strong>Hint 3:</strong> HTMLService has native ways to talk to backend function in the .gs file.<br>
  23. <strong>Hint 4:</strong> The app should be deployed or updated when a new service is called within the app to enable access to that service.
  24. </p>
  25. </div>
  26. <hr>
  27. <h3>Start Here:</h3>
  28. <!--ENTER YOUR CODE BELOW THIS POINT-->
  29. <label>Username: </label>
  30. <input type="text" name="username"><br>
  31. <label>Password: </label>
  32. <input type="password" name="password"><br>
  33. <button id="main_button" onClick="google.script.run(test)">Alert</button>
  34. <label>Hello</label>
  35. <!--THIS IS THE END OF YOUR CODE-->
  36. </body>
  37. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement