diff --git a/bootstrap-v3.3.5.min.css b/demo/bootstrap-v3.3.5.min.css similarity index 100% rename from bootstrap-v3.3.5.min.css rename to demo/bootstrap-v3.3.5.min.css diff --git a/bower_components/botp/index.js b/demo/bower_components/botp/index.js similarity index 100% rename from bower_components/botp/index.js rename to demo/bower_components/botp/index.js diff --git a/bower_components/botp/sha1-hmac.js b/demo/bower_components/botp/sha1-hmac.js similarity index 100% rename from bower_components/botp/sha1-hmac.js rename to demo/bower_components/botp/sha1-hmac.js diff --git a/bower_components/forge/js/aes.js b/demo/bower_components/forge/js/aes.js similarity index 100% rename from bower_components/forge/js/aes.js rename to demo/bower_components/forge/js/aes.js diff --git a/bower_components/forge/js/cipher.js b/demo/bower_components/forge/js/cipher.js similarity index 100% rename from bower_components/forge/js/cipher.js rename to demo/bower_components/forge/js/cipher.js diff --git a/bower_components/forge/js/cipherModes.js b/demo/bower_components/forge/js/cipherModes.js similarity index 100% rename from bower_components/forge/js/cipherModes.js rename to demo/bower_components/forge/js/cipherModes.js diff --git a/bower_components/forge/js/hmac.js b/demo/bower_components/forge/js/hmac.js similarity index 100% rename from bower_components/forge/js/hmac.js rename to demo/bower_components/forge/js/hmac.js diff --git a/bower_components/forge/js/prng.js b/demo/bower_components/forge/js/prng.js similarity index 100% rename from bower_components/forge/js/prng.js rename to demo/bower_components/forge/js/prng.js diff --git a/bower_components/forge/js/random.js b/demo/bower_components/forge/js/random.js similarity index 100% rename from bower_components/forge/js/random.js rename to demo/bower_components/forge/js/random.js diff --git a/bower_components/forge/js/sha1.js b/demo/bower_components/forge/js/sha1.js similarity index 100% rename from bower_components/forge/js/sha1.js rename to demo/bower_components/forge/js/sha1.js diff --git a/bower_components/forge/js/sha256.js b/demo/bower_components/forge/js/sha256.js similarity index 100% rename from bower_components/forge/js/sha256.js rename to demo/bower_components/forge/js/sha256.js diff --git a/bower_components/forge/js/util.js b/demo/bower_components/forge/js/util.js similarity index 100% rename from bower_components/forge/js/util.js rename to demo/bower_components/forge/js/util.js diff --git a/bower_components/unibabel/index.js b/demo/bower_components/unibabel/index.js similarity index 100% rename from bower_components/unibabel/index.js rename to demo/bower_components/unibabel/index.js diff --git a/bower_components/unibabel/unibabel.base32.js b/demo/bower_components/unibabel/unibabel.base32.js similarity index 100% rename from bower_components/unibabel/unibabel.base32.js rename to demo/bower_components/unibabel/unibabel.base32.js diff --git a/bower_components/unibabel/unibabel.hex.js b/demo/bower_components/unibabel/unibabel.hex.js similarity index 100% rename from bower_components/unibabel/unibabel.hex.js rename to demo/bower_components/unibabel/unibabel.hex.js diff --git a/daplie-logo.png b/demo/daplie-logo.png similarity index 100% rename from daplie-logo.png rename to demo/daplie-logo.png diff --git a/test.js b/demo/demo.js similarity index 95% rename from test.js rename to demo/demo.js index 723db7c..c9aecde 100644 --- a/test.js +++ b/demo/demo.js @@ -1,4 +1,4 @@ -// forgive the suckiness, but whatever +// This is crap demo code. Forgive me. (function (exports) { 'use strict'; @@ -44,7 +44,7 @@ function generate(ke) { $('.js-otpauth').innerHTML = otpauth; // only safe to inject because I created it $('img.js-qrcode').src = src; - $('.js-otp-iframe').src = 'phone.html?otpuri=' + encodeURIComponent(otpauth); + $('.js-otp-iframe').src = 'demo/phone.html?otpuri=' + encodeURIComponent(otpauth); Authenticator.generateToken(key).then(function (token) { console.log('token', token); diff --git a/iPhoneMockup.png b/demo/iPhoneMockup.png similarity index 100% rename from iPhoneMockup.png rename to demo/iPhoneMockup.png diff --git a/jquery-2.0.0.min.js b/demo/jquery-2.0.0.min.js similarity index 100% rename from jquery-2.0.0.min.js rename to demo/jquery-2.0.0.min.js diff --git a/jquery.countdown.js b/demo/jquery.countdown.js similarity index 100% rename from jquery.countdown.js rename to demo/jquery.countdown.js diff --git a/phone.html b/demo/phone.html similarity index 97% rename from phone.html rename to demo/phone.html index 30a61ab..5c20a90 100644 --- a/phone.html +++ b/demo/phone.html @@ -41,7 +41,7 @@ - + diff --git a/phone.js b/demo/phone.js similarity index 100% rename from phone.js rename to demo/phone.js diff --git a/style.css b/demo/style.css similarity index 100% rename from style.css rename to demo/style.css diff --git a/examples/README.md b/examples/README.md index 285ecbc..e646bb2 100644 --- a/examples/README.md +++ b/examples/README.md @@ -1 +1 @@ -See test.html / test.js and phone.html / phone.js +See index.html / demo/demo.js and demo/phone.html / demo/phone.js diff --git a/index.html b/index.html index 44c4661..6eda2bd 100644 --- a/index.html +++ b/index.html @@ -1,8 +1,110 @@ + - + Authenticator - Daplie, Inc + + + + + - - Redirecting... + +
+
+
+

Authenticator Test

+ qrcode +
+ Scan with Authy App +
+
+ +
+ + +
+
+ +
+ +
+ +
+
+
+
+ +
+
+
+
+
+

Console

+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ +
+
+
+ +
+

otpauth://totp/company:user?secret=xxxx&issuer=company

+
+
+
+
+
+
+
+ + + Fork me on GitHub + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test.html b/test.html index fdce3eb..1751a08 100644 --- a/test.html +++ b/test.html @@ -1,110 +1,8 @@ - - Authenticator - Daplie, Inc - - - - - + - -
-
-
-

Authenticator Test

- qrcode -
- Scan with Authy App -
-
- -
- - -
-
- -
- -
- -
-
-
-
- -
-
-
-
-
-

Console

-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
-
- -
-
-
- -
-

otpauth://totp/company:user?secret=xxxx&issuer=company

-
-
-
-
-
-
-
- - - Fork me on GitHub - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + Redirecting...