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
|
<HTML>
<HEAD>
<TITLE></TITLE>
<style type="text/css">
body,td,div,p,a,font,span {font-family: arial,sans-serif;}
body { bgcolor:"#ffffff" }
.gaia.le.button { font-family: Arial, Helvetica, sans-serif; font-size: smaller; }
</style>
<script>
function advanceThrobber() {
var throbber = document.getElementById('throb');
throbber.style.backgroundPositionX =
((parseInt(throbber.style.backgroundPositionX) - 16) % 576) + 'px';
}
function acceptMergeAndSync() {
var throbber = document.getElementById('throbber_container');
throbber.style.display = "inline";
document.getElementById("acceptMerge").disabled = true;
chrome.send("SubmitMergeAndSync", [""]);
}
function Close() {
chrome.send("DialogClose", [""]);
}
function showMergeAndSyncDone() {
var throbber = document.getElementById('throbber_container');
throbber.style.display = "none";
document.getElementById("header").style.display = "none";
document.getElementById("header_done").style.display = "block";
var closebutton = document.getElementById("close");
closebutton.value = document.getElementById("close_txt").innerHTML;
setTimeout(Close, 1600);
}
</script>
</HEAD>
<BODY onload="setInterval(advanceThrobber, 30);">
<div id="header">
<p><font size="-1"><b><span i18n-content="titlewarning"></span></b>
</font></p>
</div>
<div id="header_done" style="display:none">
<p><font size="-1">
<b><span i18n-content="alldone"></span></b>
</font></p>
</div>
<br />
<img src="merge_and_sync.png" i18n-values="alt:mergeandsynclabel" />
<br />
<p><font size="-1"><span i18n-content="mergeandsyncwarning"></span></font></p>
<br />
<table align="right">
<tr>
<td>
<div id="throbber_container" style="display:none">
<div id="throb" style="background-image:url(throbber.png);
width:16px; height:16px; background-position:0px;">
</div>
</div>
</td>
<td>
<input id="acceptMerge" type="button" class="gaia le button" name="accept"
i18n-values="value:mergeandsynclabel"
onclick="acceptMergeAndSync();" />
</td>
<td>
<input id="close" type="button" i18n-values="value:abortlabel"
onclick="Close();"/>
<span id="close_txt" i18n-content="closelabel" style="display:none">
</span>
</td>
</tr>
</table>
</BODY>
</HTML>
|