Skip to content
Browse files

Added an about dialog

  • Loading branch information...
1 parent a08fe38 commit 5a9fa3f7281af9276616eecddb9082ee87f6eeb0 @gbraad gbraad committed Sep 10, 2012
Showing with 37 additions and 13 deletions.
  1. +3 −2 README
  2. +3 −3 code.js
  3. BIN images/flattr-badge-large.png
  4. +31 −8 index.html
View
5 README
@@ -2,9 +2,10 @@ A simple application for use with Google Authenticator writtin in HTML using jQu
Deployed test version is available at
- http://gauth.gbraad.nl
- http://gauth.gbraad.5apps.com
+ http://gauth.apps.gbraad.nl
PhoneGap builds for WebOS and Android can be found at
http://build.phonegap.com/apps/135419/share
+
+More information can be found in the about dialog
View
6 code.js
@@ -15,7 +15,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
-StorageService = {}
+var StorageService = {}
StorageService.setObject = function(key, value) {
localStorage.setItem(key, JSON.stringify(value));
@@ -33,7 +33,7 @@ StorageService.isSupported = function() {
// Originally based on the JavaScript implementation as provided by Tin Isles:
// http://blog.tinisles.com/2011/10/google-authenticator-one-time-password-algorithm-in-javascript/
-KeyUtilities = {}
+var KeyUtilities = {}
KeyUtilities.dec2hex = function(s) {
return (s < 15.5 ? '0' : '') + Math.round(s).toString(16);
@@ -92,7 +92,7 @@ KeyUtilities.generate = function(secret) {
}
-KeysController = {}
+var KeysController = {}
KeysController.init = function() {
// Check if local storage is supported
View
BIN images/flattr-badge-large.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
39 index.html
@@ -1,16 +1,18 @@
-<!DOCTYPE HTML>
+<!DOCTYPE html public "Gerard Braad">
<html>
<head>
- <title>GAuth Authenticator</title>
+ <title>GAuth Authenticator</title>
+ <meta charset="utf-8">
+ <meta name="description" content="GAuth Authenticator">
<meta name="HandheldFriendly" content="True">
<meta http-equiv="cleartype" content="on">
- <script src="jquery-1.7.2.min.js"></script>
+ <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
+ <script src="jquery-1.7.2.min.js"></script>
<script src="init.js"></script>
<script src="jquery.mobile-1.1.0.min.js"></script>
<script src="sha.js"></script>
<script src="code.js"></script>
<link rel="stylesheet" href="jquery.mobile-1.1.0.min.css" />
- <link rel="stylesheet" href="themes/getro.css" />
<link rel="stylesheet" href="styling.css" />
<link rel="shortcut icon" href="./favicon.ico" />
<link rel="apple-touch-icon" href="./images/icon-48.png" />
@@ -20,14 +22,16 @@
<div data-role="header">
<h1>GAuth Authenticator</h1>
- </div>
+ <a href="#settings" data-role="button" data-rel="dialog">Settings</a>
+ <a href="#about" data-role="button" data-rel="dialog">About</a>
+ </div>
<div data-role="content">
<ul data-role="listview" data-inset="true" data-theme="a" data-split-theme="b" data-split-icon="delete" id="accounts">
<li id="accountsHeader" data-role="list-divider">One-time passwords<span class="ui-li-count" id='updatingIn'>..</span></li>
</ul>
- <a href="#settings" data-role="button" data-rel="dialog">Settings</a>
+
</div>
<div data-role="footer">
@@ -36,7 +40,7 @@
</div>
- <div data-role="page" id="settings" data-theme="a">
+ <div data-role="dialog" id="settings" data-theme="a">
<div data-role="header">
<h1>Settings</h1>
</div>
@@ -55,5 +59,24 @@
</p>
</div>
</div>
- </body>
+
+ <div data-role="dialog" id="about" data-theme="a">
+ <div data-role="header">
+ <h1>About</h1>
+ </div>
+ <div data-role="content">
+ <p>A simple application for use with Google Authenticator writtin in HTML using jQuery Mobile, jsSHA and LocalStorage.</p>
+ <p><ul>
+ <li>Online<br/><a href="http://gauth.apps.gbraad.nl/">http://gauth.apps.gbraad.nl/</a></li>
+ <li>Application<br/><a href="https://build.phonegap.com/apps/135419/">for Android</a></li>
+ <li>Extension<br/><a href="https://chrome.google.com/webstore/detail/ilgcnhelpchnceeipipijaljkblbcobl?utm_source=chrome-ntp-icon">for Chrome</a></li>
+ <li>Webapp<br/><a href="https://marketplace.mozilla.org/app/gauth-authenticator/">Mozilla Marketplace</a></li>
+ <li>Source code<br/><a href="http://github.com/gbraad/html5-google-authenticator">http://github.com/gbraad/html5-google-authenticator</a></li>
+ </ul></p>
+ <p>For more details or if you have suggestions, please do not hesitate to contact me at <a href="mailto:me@gbraad.nl?subject=gauth+authenticator">me@gbraad.nl</a>.<br/><br/>
+ <a href="https://flattr.com/thing/717982/GAuth-Authenticator" target="_blank"><img src="images/flattr-badge-large.png" alt="Flattr this" title="Flattr this" border="0" /></a>
+ </p>
+ </div>
+ </div>
+</body>
</html>

0 comments on commit 5a9fa3f

Please sign in to comment.
Something went wrong with that request. Please try again.