src/tizen/main.html

Wed, 31 Jul 2013 19:48:00 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Jul 2013 19:48:00 +0200
changeset 14
d1b294812560
permissions
-rw-r--r--

Introduce port to the Tizen OS.

michael@14 1 <!DOCTYPE html>
michael@14 2 <!--
michael@14 3 OTPWCalc - One time password challenge response calculator client
michael@14 4 Copyright © 2013 Michael Schloh von Bennewitz <michael@schloh.com>
michael@14 5
michael@14 6 OTPWCalc is free software: you can redistribute it and/or modify
michael@14 7 it under the terms of the European Union Public Licence, either
michael@14 8 version 1.1 of the license, or (at your option) any later version.
michael@14 9
michael@14 10 OTPWCalc is distributed in the hope that it will be useful,
michael@14 11 but WITHOUT ANY WARRANTY; without even the implied warranty
michael@14 12 of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
michael@14 13 the European Union Public License for more details.
michael@14 14
michael@14 15 You should have received a copy of the European Union Public
michael@14 16 Licence along with OTPWCalc. If not, please refer to
michael@14 17 <http://joinup.ec.europa.eu/software/page/eupl/>.
michael@14 18
michael@14 19 This file is part of project OTWPCalc, a one time password challenge
michael@14 20 response calculator client and is found at http://otpwcalc.europalab.com/
michael@14 21
michael@14 22 main.html: W3C HTML implementation
michael@14 23 -->
michael@14 24
michael@14 25 <html>
michael@14 26 <head>
michael@14 27 <meta charset="utf-8">
michael@14 28 <!--<meta http-equiv="Content-Type" content="text/html;charset=utf-8">-->
michael@14 29 <meta name="viewport" content="width=device-width, initial-scale=1">
michael@14 30 <title>OTPWCalc</title>
michael@14 31 <link rel="stylesheet" type="text/css" href="css/jquery.mobile-1.3.2.min.css" />
michael@14 32 <link rel="stylesheet" type="text/css" href="main.css" />
michael@14 33 <!--<script src="sjcl-0.0/sjcl.js"></script>-->
michael@14 34 <script src="hashes/md5.js"></script>
michael@14 35 <script src="hashes/sha1.js"></script>
michael@14 36 <script src="hashes/rmd160.js"></script>
michael@14 37 <script src="otpalg/dict.js"></script>
michael@14 38 <script src="otpalg/otpalg.js"></script>
michael@14 39 <script src="js/jquery-2.0.0.min.js"></script>
michael@14 40 <script src="main.js"></script>
michael@14 41 <script src="js/jquery.mobile-1.3.2.min.js"></script>
michael@14 42 </head>
michael@14 43 <body>
michael@14 44 <!-- Data attributes reserved by JQuery Mobile:
michael@14 45 data-theme, data-ajax, data-filter, data-icon, data-grid,
michael@14 46 data-rel, data-icon, data-url, data-role, and data-type -->
michael@14 47 <!-- http://api.jquerymobile.com/data-attribute/ -->
michael@14 48 <!--<div data-role="page" data-fullscreen="true" class="type-interior">-->
michael@14 49 <div data-role="page" class="type-interior oc-swipage" id="mainhaupt">
michael@14 50 <!-- H1 header data-role good for Search Engine Optimization -->
michael@14 51 <!--<div data-role="header" data-position="inline">-->
michael@14 52 <div data-role="header" data-position="fixed" data-id="headmain">
michael@14 53 <a href="about.html" data-prefetch="true" data-transition="turn" data-rel="dialog" style="margin-left: 8px; width: 5em">About</a>
michael@14 54 <h1>OTPWCalc</h1>
michael@14 55 <a href="help/help.html" data-prefetch="true" data-transition="slide" style="margin-right: 8px; width: 5em">Help</a>
michael@14 56 </div><!-- /header -->
michael@14 57 <div data-role="content">
michael@14 58 <div class="content-primary">
michael@14 59
michael@14 60 <!-- This describes how to use AJAX without a server side script -->
michael@14 61 <!-- http://www.terminally-incoherent.com/blog/2011/12/05/making-ajax-driven-websites-without-server-side-scripting/ -->
michael@14 62
michael@14 63 <form method="post" onsubmit="return dosubmit();" onreset="return doreset();" data-ajax="false">
michael@14 64 <ul data-role="listview">
michael@14 65 <!--<h2>OTPWCalc</h2>-->
michael@14 66
michael@14 67 <!-- Implement embedded help system later
michael@14 68 <p>Type the given hash value and sequence number, your
michael@14 69 secret passphrase, and choose the encryption algorythm
michael@14 70 to receive a one time password (OTPW) for login.</p>
michael@14 71 -->
michael@14 72
michael@14 73 <li>
michael@14 74 <div data-role="collapsible" data-collapsed="false" data-theme="e" data-content-theme="c">
michael@14 75 <h3>Input Values</h3>
michael@14 76 <fieldset class="ui-grid-a">
michael@14 77 <div class="ui-block-a" style="padding-right: 1em;">
michael@14 78 <input type="text" name="seedid" id="seedid" value="" placeholder="Seed ID" pattern="[0-9A-Za-z]*" required />
michael@14 79 </div>
michael@14 80 <div class="ui-block-b">
michael@14 81 <input type="number" name="crement" id="crement" pattern="[0-9]*" value="" placeholder="Sequence #" min="1" required />
michael@14 82 </div>
michael@14 83 </fieldset>
michael@14 84
michael@14 85 <div data-role="fieldcontain" style="text-align: right; border: none;">
michael@14 86 <label for="selectdecr" style="float: left; width: 40%;">Automatic<br />Decrement</label>
michael@14 87 <select name="selectdecr" id="selectdecr" data-iconpos="left" data-inline="true">
michael@14 88 <option value="0">Disabled</option>
michael@14 89 <option value="1">Offset 1</option>
michael@14 90 <option value="2">Offset 2</option>
michael@14 91 <option value="3">Offset 3</option>
michael@14 92 <option value="4">Offset 4</option>
michael@14 93 </select>
michael@14 94 </div>
michael@14 95
michael@14 96 <input type="password" data-clear-btn="true" name="paswrd" id="paswrd" value="" placeholder="Secret" />
michael@14 97
michael@14 98 <!-- JQM miscalculated spacing -->
michael@14 99 <div style="height: 0.25em;"></div>
michael@14 100
michael@14 101 <a type=button name="viewpass" id="viewpass" data-theme="b" data-icon="otpwcalc-seepass" onmousedown="$('#paswrd').get(0).type='text'; return false;" ontouchstart="$('#paswrd').get(0).type='text'; return false;" onmouseup="$('#paswrd').get(0).type='password'; return false;" ontouchend="$('#paswrd').get(0).type='password'; return false;">Press to Reveal Secret</a>
michael@14 102 </div>
michael@14 103 </li>
michael@14 104
michael@14 105 <li>
michael@14 106 <div data-role="collapsible" data-collapsed="true" data-theme="e" data-content-theme="c">
michael@14 107 <h3>Output Format</h3>
michael@14 108 <fieldset data-role="controlgroup" data-type="horizontal" style="width: 100%;">
michael@14 109 <!--<input type="radio" name="radio-choice-b" id="radio-choice-a" value="off" />
michael@14 110 <label for="radio-choice-a">MD4</label>-->
michael@14 111 <input type="radio" name="radiohash" id="hashmd5" value="on" checked="checked" style="width: 33%;" />
michael@14 112 <label for="hashmd5">MD5</label>
michael@14 113 <input type="radio" name="radiohash" id="hashsha1" value="off" style="width: 33%;" />
michael@14 114 <label for="hashsha1">SHA1</label>
michael@14 115 <input type="radio" name="radiohash" id="hashr160" value="off" style="width: 33%;" />
michael@14 116 <label for="hashr160">R160</label>
michael@14 117 </fieldset>
michael@14 118
michael@14 119 <!-- JQM miscalculated spacing -->
michael@14 120 <div style="height: 0.25em;"></div>
michael@14 121
michael@14 122 <fieldset data-role="controlgroup">
michael@14 123 <input type="radio" name="radiodisplay" id="displaysix" class="custom" value="on" checked="checked" />
michael@14 124 <label for="displaysix">Display six words</label>
michael@14 125 <input type="radio" name="radiodisplay" id="displayhex" class="custom" value="off" />
michael@14 126 <label for="displayhex">Display hexadecimal</label>
michael@14 127 </fieldset>
michael@14 128 </div>
michael@14 129 </li>
michael@14 130
michael@14 131 <li>
michael@14 132 <div class="ui-body" style="text-align: center; height: 2em; padding-left: 0; padding-right: 0; padding-top: 0.5em; padding-bottom: 0.5em;">
michael@14 133 <label><div id="outext" style="color: rgb(192,0,0); font-size: 1.125em;">Please Click Submit For A OTP</div></label>
michael@14 134 </div>
michael@14 135
michael@14 136 <fieldset class="ui-grid-a">
michael@14 137 <div class="ui-block-a"><button type="reset" data-theme="c" data-icon="delete">Reset</button></div>
michael@14 138 <div class="ui-block-b"><button type="submit" data-theme="b" data-icon="check">Submit</button></div>
michael@14 139 </fieldset>
michael@14 140 </li>
michael@14 141 </ul>
michael@14 142 </form>
michael@14 143 </div><!-- /content-primary -->
michael@14 144 </div><!-- /content -->
michael@14 145 </div><!-- /page -->
michael@14 146 </body>
michael@14 147 </html>

mercurial