-
Notifications
You must be signed in to change notification settings - Fork 21
/
public.html
138 lines (119 loc) · 7.02 KB
/
public.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset=utf-8 />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!-- Mobile viewing enhancement -->
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
<!-- Description should be roughly 155 characters, no double quotes, use keywords -->
<meta name="description" content="Firebase v3 Web Auth Full Functionality Example Code" />
<!-- Format as Primary Keyword - Secondary Keyword | Brand Name, keep under 55 characters -->
<title>Firebase v3 Web Auth Sandbox</title>
<!-- Minimize the number of CSS files for performance -->
<link rel="shortcut icon" href="favicon.png">
<link href='https://fonts.googleapis.com/css?family=Roboto:400,700,100,300,700italic,500,500italic,400italic,300italic,100italic|Roboto+Condensed:300' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<link rel="stylesheet" href="https://code.getmdl.io/1.1.3/material.orange-amber.min.css" />
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="demo-layout-transparent mdl-layout mdl-js-layout">
<!-- Header -->
<header class="mdl-layout__header mdl-layout__header--transparent ">
<div class="mdl-layout__header-row mdl-color-text--grey-700">
<span class="mdl-layout-title">
<a href="/"><img src="../images/firebase-logo.png" alt="logo" height="48"></a>
</span>
<!-- Add spacer, to align navigation to the right -->
<div class="mdl-layout-spacer"></div>
<!-- Navigation -->
<nav class="mdl-navigation">
<a class="mdl-navigation__link" href="javascript:void(0)" id="sign-in-button">
<i class="material-icons">account_circle</i> <span id="account">Sign In</span>
</a>
<a class="mdl-navigation__link" href="javascript:void(0)" id="account-menu-button">
</a>
<a class="mdl-navigation__link" href="javascript:void(0)" id="help-button">
<i class="material-icons">help</i> <span id="help">Help</span>
</a>
</nav>
</div>
</header>
<!-- Side Drawer -->
<div class="mdl-layout__drawer">
<span class="mdl-layout-title"><img src="../images/firebase-logo.png" alt="logo" height="48"></span>
<div class="drawer-separator"></div>
<nav class="mdl-navigation">
<a class="mdl-navigation__link" href="/public"><i class="material-icons">lock_open</i> Public</a>
<a class="mdl-navigation__link" href="/help"><i class="material-icons">help_outline</i> Help</a>
</nav>
</div>
<!--Main Page -->
<main class="mdl-layout__content page-content">
<!--Card Section -->
<section class="mdl-grid">
<!-- Center Card -->
<div class="mdl-layout-spacer"></div>
<div class="mdl-card mdl-shadow--2dp mdl-cell" id="public-card">
<div class="mdl-card__title">
<h1 class="mdl-card__title-text mdl-color-text--white">Public</h1>
</div>
<div class="mdl-card__supporting-text mdl-typography--headline">
<p>This is a public page and is viewable by anyone. It is served from the
<a class="mdl-color-text--grey-600" href="#" onclick="window.open('https://firebase.google.com/docs/hosting/', 'newwindow', 'width=800, height=400'); return false;">
Firebase Hosting Global CDN<i class="material-icons oin">open_in_new</i></a>. The contents of this page are replicated all over the world for a fast viewing experience.
</p>
<p>This working demo give you a head start with Firebase user authentication. After getting this code working with your Firebase account you can begin building your secure app.
</p>
</div>
<div class="mdl-card__actions mdl-card--border intro-card-actions">
<a class="mdl-button mdl-button--colored mdl-js-button mdl-js-ripple-effect" href="/">
Home
</a>
<div class="mdl-layout-spacer"></div>
<button class="mdl-button mdl-js-button mdl-js-ripple-effect" id="private-page-button" disabled>
Private Page
</button>
</div>
</div>
<!-- Center Card -->
<div class="mdl-layout-spacer"></div>
<!--/Card Section -->
</section>
<p class="text-center license">Copyright © 2016 <a class="mdl-color-text--grey-600" href="javascript:void(0)" onclick="window.open('https://rack.pub', 'newwindow', 'width=800, height=400'); return false;">Ron Royston</a>, MIT License</p>
</main>
<!--Main Page Footer Section -->
<footer class="mdl-mini-footer">
<div class="mdl-mini-footer__left-section">
<div class="mdl-logo">
More Information
</div>
<ul class="mdl-mini-footer__link-list">
<li><a href="https://firebase.google.com/docs/auth/">Firebase Authentication</a></li>
<li><a href="https://firebase.google.com/docs/reference/js/index-all">Firebase Web Reference Index</a></li>
</ul>
</div>
</footer>
</div>
<!--Toast Messages Markup -->
<div id="toast" class="mdl-js-snackbar mdl-snackbar">
<div class="mdl-snackbar__text"></div>
<button class="mdl-snackbar__action" type="button"></button>
</div>
<!-- IE Compatibility shims -->
<!--[if lt IE 9]>
<script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.2/html5shiv.min.js""></script>
<![endif]-->
<!--[if IE]>
<script src="//cdnjs.cloudflare.com/ajax/libs/es5-shim/4.1.7/es5-shim.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/classlist/2014.01.31/classList.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/selectivizr/1.0.2/selectivizr-min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/flexie/1.0.3/flexie.min.js"></script>
<link href="../assets/ie.css" rel="stylesheet">
<![endif]-->
<!-- end shims -->
<script src="https://www.gstatic.com/firebasejs/3.2.1/firebase.js"></script>
<script defer src="https://code.getmdl.io/1.1.3/material.min.js"></script>
<script src="script.js"></script>
</body>
</html>