forked from jasonphanley/chrome-gv-call
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathoptions.html
More file actions
98 lines (81 loc) · 1.78 KB
/
options.html
File metadata and controls
98 lines (81 loc) · 1.78 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
92
93
94
95
96
97
98
<html>
<head>
<title>Click2Dial - Options</title>
<style>
body {
font-family:helvetica, arial, sans-serif;
font-size:80%;
margin:10px;
}
#header {
padding-bottom:1.5em;
padding-top:1.5em;
}
#header h1 {
font-size: 156%;
display:inline;
padding-bottom:43px;
padding-left:75px;
padding-top:40px;
background:url(icon128.png) no-repeat;
background-size:67px;
background-position:1px 18px;
}
.section-header {
background:#ebeff9;
border-top:1px solid #b5c7de;
font-size:99%;
padding:3px 0 2px 5px;
font-weight:bold;
margin-bottom:1em;
margin-top:4em;
}
.section-header.first {
margin-top:1em;
}
#custom-domain {
width:300px;
margin-left:2px;
}
#footer {
margin-top:4em;
}
</style>
</head>
<body>
<div id="header"><h1>Click2Dial Options</h1></div>
<div class="section-header first">URL</div>
<p>To use Click2Dial, please provide the base URL to be used.
<p> In your URL, <em>%s<em> will be replaced by the telephone number.
<p>
<input type="text" id="base-url" oninput="markDirty()">
<em>(eg http://mydomain.com/Click2Dial.php?call=%s&user=test)</em>
<div id="footer">
<button id="save-button" style="font-weight:bold" onclick="save()"
>Save</button>
<button onclick="init()">Cancel</button>
</div>
<script>
var customDomainsTextbox;
var saveButton;
init();
function init() {
baseURLTextbox = document.getElementById("base-url");
saveButton = document.getElementById("save-button");
baseURLTextbox.value = localStorage["baseURLClick2Dial"] || "";
markClean();
}
function save() {
localStorage["baseURLClick2Dial"] = baseURLTextbox.value;
markClean();
chrome.extension.getBackgroundPage().init();
}
function markDirty() {
saveButton.disabled = false;
}
function markClean() {
saveButton.disabled = true;
}
</script>
</body>
</html>