Apps Script公式リファレンス: Apps Script Reference |障害・課題追跡: IssueTracker |Google Workspace: Status Dashboard - Summary

2019年12月9日月曜日

Material iconsでボタンを作りたい


Material iconsをボタン要素の中に入れて
こういうボタンを作ってみる。





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




index.html
<!DOCTYPE html>
<html>
  <head>
    <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
    <style>
      .transparent {
        border: none;
        background-color: transparent;
        outline: none;
      }
  
      .material-icons {
        width: 48px;
        height: 48px;
     font-size: 48px;
        color: gray;
        border: solid 2px lightgray;
        vertical-align: middle;
        border-radius: 100px;
        cursor: pointer;
      }
      
      i:hover {
        color: silver;
      }
    </style>
  </head>
  <body>
    <button id="refresh" class="transparent"><i class="material-icons material_icon">refresh</i></button>
  </body>
</html>



Latest post

Google Apps Scriptの障害時はIssueTrackerを見てみる - Incidents for Apps Script are reported on Issue Tracker

IssueTracker > Apps Script issues https://issuetracker.google.com/savedsearches/566234 Google Apps Scriptの障害時は IssueTracker に課題が上がっていることが...