-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmain.html
More file actions
91 lines (83 loc) · 3.35 KB
/
main.html
File metadata and controls
91 lines (83 loc) · 3.35 KB
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
<html>
<head>
<title>Remindify - Quick reminder scheduler</title>
<link href="/static/apple-touch-icon.png" rel="apple-touch-icon" />
<link href="/static/style.css" type="text/css" rel="stylesheet" />
</head>
<body>
<div id="content">
<h1>Remindify</h1>
{% if user %}
<div id="list_body">
<form action="/" method="post">
<div id="nav">
<p class="account">Welcome, {{ user.nickname }}. <a href="{{ logout_url }}">Logout</a></p>
<p class="timezone">You're in <select name="tz">
<option>PST</option>
<option selected="selected">PDT</option>
<option>MST</option>
<option>MDT</option>
<option>CST</option>
<option>CDT</option>
<option>EST</option>
<option>EDT</option>
</select></p>
</div>
<h2>New Reminder:</h2>
<input type="text" class="reminder" name="raw"/>
<input type="submit" class="submit" value=""/>
</form>
{% if reminders %}
<h3>Current Reminders:</h3>
<ul class="reminders_list">
{% for reminder in reminders %}
<li>{{ reminder.text }} <span class="time">{{ reminder.scheduled|timeuntil }}</span> <form style="display:inline;" action="/" method="post">
<input type="hidden" name="id" value="{{ reminder.key.id }}" />
<input type="submit" value="Delete" /></form></li>
{% endfor %}
{% else %}
<p class="note">Your reminders will be sent to you via <a href="http://notify.io">notify.io</a>, so be sure to have an account!</p>
{% endif %}
</div>
<div id="footer"></div>
{% else %}
<div id="homepage_body">
<p>Remindify lets you quickly schedule reminders using your <a href="">notify.io</a> account using a common natural language format, like "<span>move car in 2 hours</span>" or "<span>get some sleep at 4am</span>".</p>
<a href="{{ login_url }}" class="login">Login with your Google Account</a>
</div>
{% endif %}
</div>
<script type="text/javascript">
var uservoiceOptions = {
/* required */
key: 'remindify',
host: 'remindify.uservoice.com',
forum: '33739',
showTab: true,
/* optional */
alignment: 'left',
background_color:'#4A9ED6',
text_color: 'white',
hover_color: '#75B17D',
lang: 'en'
};
function _loadUserVoice() {
var s = document.createElement('script');
s.setAttribute('type', 'text/javascript');
s.setAttribute('src', ("https:" == document.location.protocol ? "https://" : "http://") + "cdn.uservoice.com/javascripts/widgets/tab.js");
document.getElementsByTagName('head')[0].appendChild(s);
}
_loadSuper = window.onload;
window.onload = (typeof window.onload != 'function') ? _loadUserVoice : function() { _loadSuper(); _loadUserVoice(); };
</script>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-6824126-10");
pageTracker._trackPageview();
} catch(err) {}</script>
</body>
</html>