2017年12月30日土曜日

ボタンを作る

HTML Serviceでこういうボタンを作る





コード.gs
function doGet() {
  return HtmlService.createHtmlOutputFromFile("index");
}
意訳
この機能がやること
指定したHTMLファイルを表示する




index.html
<!DOCTYPE html>
<html>
  <body>
    <button type="button">ボタン</button>
  </body>
</html>
意訳
これはHTML5文書です


ボタンを置く