-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathoptions.html
73 lines (71 loc) · 2.43 KB
/
options.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="css/option.css" type="text/css" />
<script src="js/Base64.js" type="text/javascript"></script>
<script src="js/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
if (typeof(localStorage) == 'undefined' ) {
alert('Your browser does not support HTML5 localStorage. Try upgrading.');
} else {
$("#login").submit(function(){
localStorage.clear();
var username = $("input[name='conf_doit_username']").val();
var password = $("input[name='conf_doit_password']").val();
if (username != "" && password != "") {
try {
localStorage.setItem("username", username);
localStorage.setItem("password", password);
} catch (e) {
if (e == QUOTA_EXCEEDED_ERR) {
alert('Quota exceeded!');
}
}
} else {
alert("Username and Password needed.");
}
});
}
});
</script>
<script src="js/options.js" type="text/javascript"></script>
<script src="js/a.js" type="text/javascript"></script>
</head>
<body>
<section id="wrapper">
<header id="upper"><img src="img/icon128.png" alt="icon" align="left"/><h1>Easy2Do Options</h1></header>
<article id="page">
<section id="intro">
<p>Easy2Do is an Google chrome browser extension. It can display your tasks due to today and tomorrow.<br>
You have to login your <a href="https://www.doit.im">Doit.im</a> account before you using it. Haven't got an account yet? Here to <a href="https://i.doit.im/register">register</a> one.</p>
</section>
<section id="content">
<form method="post" id="login">
<h3>Login</h3>
<ul>
<li><label for="username">Username: </label><input type="text" name="conf_doit_username" value="">
</li>
<span>Your Doit.im username</span><br><br>
<li><label for="password">Password: </label><input type="password" name="conf_doit_password" value="">
</li>
<span>Your Doit.im password</span><br>
</ul>
<br>
<p><input type="submit" value="Continue →"></p>
</form>
</section>
<section id="userinfo"></section>
<section id="changelog">
<p>
<li>
<h5>2010-11-30</h5>
First public release. Very limited function, user can view tasks which due date is today or tomorrow.
</li>
</p>
</section>
</article>
</section>
</body>
</html>