summaryrefslogtreecommitdiffstats
path: root/chrome/browser/sync/resources/merge_and_sync.html
blob: 38dd2cd3b3b98efd9bef6cb5d9df8c5b1061c812 (plain)
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
<html i18n-values="dir:textdirection;">
<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; }
.endaligned {
  text-align: right;
}
html[dir='rtl'] .endaligned {
  text-align: left;
}
.textaligned {
  text-align: left;
}
html[dir='rtl'] .textaligned {
  text-align: right;
}
</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").innerHTML =
         "<p><font size='-1'><b>" + templateData['alldone']
         + "</b></font></p>";
     document.getElementById("close").value = templateData['closelabel'];
     setTimeout(Close, 1600);
    }

    function showMergeAndSyncError() {
     var throbber = document.getElementById('throbber_container');
     throbber.style.display = "none";
     document.getElementById("header").innerHTML =
         "<p><font size='-1'><b>" + templateData['setuperror']
         + "</b></font></p>";
    }

    function onPageShown() {     
     document.getElementById("acceptMerge").focus();
    }

</script>
</head>
<body onload="setInterval(advanceThrobber, 30);">
<table height="100%">
  <tr valign="top">
    <td align="center">
      <div id="header" align="left">
        <p class="textaligned"><font size="-1"><b>
          <span i18n-content="introduction"></span>
        </b></font></p>
      </div>
      <br />
      <img src="merge_and_sync.png" i18n-values="alt:mergeandsynclabel" />
      <br />
      <p class="textaligned"><font size="-1"><span i18n-content="mergeandsyncwarning"></span></font></p>
      <br />
      <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>
  </tr>
  <tr class="endaligned" valign="bottom">
    <td class="endaligned">
      <input id="acceptMerge" type="button" class="gaia le button" name="accept"
             i18n-values="value:mergeandsynclabel"
             onclick="acceptMergeAndSync();" />
      <input id="close" type="button" i18n-values="value:abortlabel"
             onclick="Close();"/>
    </td>
  </tr>
</table>
</body>
</html>