skottie - Add a ToS page for the Drive app.

Bug: skia:
Change-Id: Id80354197ba393dd8992d65083f05eb13d1d5733
Reviewed-on: https://skia-review.googlesource.com/c/183244
Auto-Submit: Joe Gregorio <jcgregorio@google.com>
Reviewed-by: Kevin Lubick <kjlubick@google.com>
Commit-Queue: Kevin Lubick <kjlubick@google.com>
diff --git a/skottie/go/skottie/main.go b/skottie/go/skottie/main.go
index c3296b2..c75336a 100644
--- a/skottie/go/skottie/main.go
+++ b/skottie/go/skottie/main.go
@@ -96,6 +96,7 @@
 	srv.templates = template.Must(template.New("").Delims("{%", "%}").ParseFiles(
 		filepath.Join(*resourcesDir, "index.html"),
 		filepath.Join(*resourcesDir, "drive.html"),
+		filepath.Join(*resourcesDir, "tos.html"),
 		filepath.Join(*resourcesDir, "embed.html"),
 	))
 }
@@ -110,6 +111,16 @@
 	}
 }
 
+func (srv *Server) tosHandler(w http.ResponseWriter, r *http.Request) {
+	w.Header().Set("Content-Type", "text/html")
+	if *local {
+		srv.loadTemplates()
+	}
+	if err := srv.templates.ExecuteTemplate(w, "tos.html", nil); err != nil {
+		sklog.Errorf("Failed to expand template: %s", err)
+	}
+}
+
 func (srv *Server) driveHandler(w http.ResponseWriter, r *http.Request) {
 	w.Header().Set("Content-Type", "text/html")
 	if *local {
@@ -253,6 +264,7 @@
 
 	r := mux.NewRouter()
 	r.HandleFunc("/drive", srv.driveHandler)
+	r.HandleFunc("/tos", srv.tosHandler)
 	r.HandleFunc("/{hash:[0-9A-Za-z]*}", srv.mainHandler)
 	r.HandleFunc("/e/{hash:[0-9A-Za-z]*}", srv.embedHandler)
 
diff --git a/skottie/pages/tos.html b/skottie/pages/tos.html
new file mode 100644
index 0000000..b3b548a
--- /dev/null
+++ b/skottie/pages/tos.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<html>
+<head>
+    <title>Skottie Terms of Service</title>
+    <meta charset="utf-8" />
+    <meta http-equiv="X-UA-Compatible" content="IE=edge">
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
+</head>
+<body>
+  <h1>Terms of Service</h1>
+  <p>This site has no terms of service.</p>
+</body>
+</html>
diff --git a/skottie/pages/tos.js b/skottie/pages/tos.js
new file mode 100644
index 0000000..139597f
--- /dev/null
+++ b/skottie/pages/tos.js
@@ -0,0 +1,2 @@
+
+