-
-
Notifications
You must be signed in to change notification settings - Fork 253
/
index.html
103 lines (95 loc) · 6.06 KB
/
index.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
<!DOCTYPE html public "Gerard Braad">
<html manifest="cache.manifest">
<head>
<title>GAuth</title>
<meta charset="utf-8">
<meta name="description" content="GAuth Authenticator">
<meta name="HandheldFriendly" content="True">
<meta http-equiv="cleartype" content="on">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1">
<link rel="stylesheet" href="css/jquery.mobile-1.4.5.min.css" />
<link rel="stylesheet" href="css/jquery.mobile-custom.min.css" />
<link rel="stylesheet" href="css/styling.css" />
<!-- purposely at the top -->
<script src="lib/jquery-2.1.3.min.js"></script>
<script src="js/init.js"></script>
<script src="lib/jquery.mobile-1.4.5.min.js"></script>
<script src="lib/jssha-1.31.min.js"></script>
<script src="lib/FileSaver.js"></script>
<script src="js/gauth.js"></script>
<script src="js/main.js"></script>
<link rel="shortcut icon" type="image/x-icon" href="./favicon.ico" />
<link rel="apple-touch-icon" href="img/icon_60.png" />
<link rel="apple-touch-icon" sizes="120x120" href="img/icon_120.png">
<link rel="apple-touch-icon" sizes="152x152" href="img/icon_152.png">
</head>
<body>
<section data-role="panel" id="panel" data-position="left" data-theme="a" data-display="overlay">
<ul data-role="listview">
<li><a id="panelheader" href="#main" data-rel="close"> </a></li>
<li data-l10n-id="menu-keys" data-icon="lock"><a href="#main" data-rel="close">Keys</a></li>
<li data-l10n-id="menu-settings" data-icon="gear"><a href="#settings" data-rel="close">Settings</a></li>
<li data-l10n-id="menu-about" data-icon="info"><a href="#about" data-rel="close">About</a></li>
</ul>
</section>
<section data-role="page" id="main" data-theme="a">
<header data-role="header">
<h1> </h1>
<a href="#panel" class="header-icon" data-l10n-id="header-menu" data-role="button" data-iconpos="notext" data-icon="bars" data-iconpos="notext">Menu</a>
<a id="edit" class="header-icon" data-l10n-id="header-edit" data-role="button" data-iconpos="notext" data-icon="edit" data-iconpos="notext">Edit</a>
</header>
<div data-role="content">
<ul data-role="listview" data-inset="true" data-theme="a" data-split-theme="a" data-split-icon="delete" id="accounts">
<li id="accountsHeader" data-l10n-id="title-keys" data-role="list-divider">One-time passwords<span class="ui-li-count" id='updatingIn'>..</span></li>
</ul>
<a id="addButton" data-l10n-id="keys-add" href="#add" data-role="button" class="ui-btn ui-icon-plus ui-btn-icon-left">Add</a>
</div>
</section>
<section data-role="page" id="add" data-theme="a">
<header data-role="header">
<h1 data-l10n-id="title-add">Add account</h1>
<a href="#panel" class="header-icon" data-l10n-id="header-menu" data-role="button" data-iconpos="notext" data-icon="bars" data-iconpos="notext">Menu</a>
</header>
<div data-role="content">
<div>
<form>
<label data-l10n-id="add-name" for="keyAccount">Account name:</label>
<input type="text" name="keyAccount" id="keyAccount" value="" autocorrect="off" autocapitalize="off" />
<label data-l10n-id="add-secret" for="keySecret">Secret key:</label>
<input type="text" name="keySecret" id="keySecret" value="" autocorrect="off" autocapitalize="off" />
</form>
</div>
<div data-role="controlgroup" data-type="horizontal">
<a id="addKeyButton" data-l10n-id="keys-add" data-role="button" class="ui-btn ui-icon-plus ui-btn-icon-left">Add</a>
<a id="addKeyCancel" data-l10n-id="add-cancel" href="#main" data-role="button" data-rel="back">Cancel</a>
</div>
</div>
</section>
<section data-role="page" id="settings" data-theme="a">
<header data-role="header">
<h1 data-l10n-id="title-settings">Settings</h1>
<a data-l10n-id="header-menu" href="#panel" class="header-icon" data-role="button" data-iconpos="notext" data-icon="bars" data-iconpos="notext">Menu</a>
</header>
<div data-role="content">
<p>
<a id="export" data-l10n-id="settings-export" data-role="button" data-theme="a">Export keys</a>
</p>
</div>
</section>
<section data-role="page" id="about" data-theme="a">
<header data-role="header">
<h1 data-l10n-id="title-about">About</h1>
<a href="#panel" class="header-icon" data-l10n-id="header-menu" data-role="button" data-iconpos="notext" data-icon="bars" data-iconpos="notext">Menu</a>
</header>
<div data-role="content">
<p>A simple application for multi-factor authentication, written in HTML using jQuery Mobile (and PhoneGap), jsSHA and LocalStorage</p>
<p><ul>
<li>Learn why<br/><a target=”_blank” href="http://lifehacker.com/5932700/please-turn-on-two+factor-authentication">Please, turn on two-factor authentication</a></li>
<li>Online<br/><a target=”_blank” href="http://gauth.apps.gbraad.nl/">http://gauth.apps.gbraad.nl/</a></li>
<li>Source code<br/><a target=”_blank” href="http://github.com/gbraadnl/gauth/">http://github.com/gbraadnl/gauth/</a></li>
<li>Thanks to Russell Sayers<br/><a target=”_blank” href="http://blog.tinisles.com/2011/10/google-authenticator-one-time-password-algorithm-in-javascript/">TOTP Algorithm</a></li>
</ul></p>
</div>
</section>
</body>
</html>