Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
73 lines (63 sloc) 2.14 KB
<!doctype html>
<title>The Gopher Network</title>
<link type="text/css" rel="stylesheet" href="/static/style.css" />
<!-- See -->
<!-- *******************************************************************************************
* TODO(DEVELOPER): Paste the initialization snippet from:
* > Overview > Add Firebase to your web app.
***************************************************************************************** -->
if (typeof firebase === 'undefined') {
const msg = "Please paste the Firebase initialization snippet into index.html. See > Overview > Add Firebase to your web app.";
<script src=""></script>
<link type="text/css" rel="stylesheet" href="" />
<script src="/static/index.js"></script>
<h1>The Gopher Network</h1>
<img id="logo" src="/static/gcp-gopher.svg" width="100">
<div id="firebaseui-auth-container"></div>
<div id="sign-in"></div>
<span id="account-details"></span>
<button id="sign-out" hidden=true>Sign Out</button>
{{with .Notice}}<div id="notice">{{.}}</div>{{end}}
<!-- [START form] -->
<form id="post-form" enctype="multipart/form-data" action="/" method="post" hidden=true>
<div>Message: <input name="message" value="{{.Message}}"></div>
<input name="image" id="image" type="file" accept="image/*">
<input type="hidden" name="token" id="token">
<input type="submit">
<!-- [END form] -->
{{with .Posts}}
{{range .}}
<!-- [START image] -->
{{ if .ImageURL }}
<img src="{{.ImageURL}}">
{{ if .Labels }}
{{ range $i, $l := .Labels }}
{{- if $i }}, {{end}}
{{ printf "%s (%.3f)" $l.Description $l.Score -}}
<!-- [END image] -->
You can’t perform that action at this time.