-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoptions.html
75 lines (73 loc) · 1.89 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
74
75
<!DOCTYPE>
<!--
* Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this
* source code is governed by a BSD-style license that can be found in the
* LICENSE file.
-->
<html>
<head>
<title>Options for Send from Gmail</title>
<style>
.input_option
{
font-family: Helvetica, Arial, sans-serif;
font-size: 10pt;
}
</style>
<script>
function loadSavedOptions() {
if (window.localStorage == null) {
alert("LocalStorage must be enabled for managing options.");
return;
}
var domainName = localStorage["domainName"];
if (typeof domainName != "undefined") {
document.getElementById('domain_info').value = domainName;
}
}
function saveOptions() {
var domainVal = document.getElementById('domain_info').value;
console.log("Domain - " + domainVal);
if ((domainVal != "") && (domainVal.indexOf('.') == -1)) {
alert("Does not look like a valid domain - " + domainVal + "\nPlease re-enter");
} else {
window.localStorage["domainName"] = domainVal;
}
}
</script>
</head>
<body onload="loadSavedOptions()">
<br />
<table>
<tr><td width="20%">
<img src="images/gmail/gmail-extension-64.png" width="64" height="64" />
</td>
<td>
<h3>Options for Send from Gmail</h3>
</td>
</tr>
</table>
<br />
<form action="javascript:saveOptions()">
<div id="apps_for_domain_option" class="input_option">
<strong>Enter the domain name of your <a href="http://www.google.com/apps/">
Google Apps for your domain</a> account:</strong>
<br />
(Enter just the base domain your_domain.com instead of www.your_domain.com.<br />
For the consumer gmail, leave the field empty.)
<br />
<input id="domain_info" type="text" name="domain_info" value="" style="width:400px">
</div>
<br />
<input type="submit" value="Save" />
</form>
<br/>
<form>
<table>
<tr>
<th>Service</th><th>Login Name</th>
</tr>
</table>
</form>
</body>
</html>