blob: 495828f82cc60cee53a1d47b7cfb505b85a0ed2d (
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
|
<html id='t'>
<head>
<title></title>
<script type="text/javascript">
function hideAllPages() {
var pages = ['login', 'configure', 'passphrase',
'settingup', 'done', 'firstpassphrase'];
for (var i = 0; i < pages.length; ++i) {
document.getElementById(pages[i]).style.display = 'none';
document.getElementById(pages[i]).tabIndex = -1;
}
}
function showPage(page) {
hideAllPages();
document.getElementById(page).style.display = 'block';
document.getElementById(page).tabIndex = 0;
}
function showGaiaLoginIframe() { showPage('login'); }
function showConfigure() { showPage('configure'); }
function showPassphrase() { showPage('passphrase'); }
function showSettingUp() { showPage('settingup'); }
function showSetupDone() { showPage('done'); }
function showFirstPassphrase() { showPage('firstpassphrase'); }
// Called once, when this html/js is loaded.
function showTheRightIframe() {
var args = JSON.parse(chrome.dialogArguments);
showPage(args.iframeToShow);
}
</script>
</head>
<body style="margin:0; border:0;" onload="showTheRightIframe();">
<iframe id="login" frameborder="0" width="100%" scrolling="no" height="100%"
src="chrome://syncresources/gaialogin" style="display:none"
tabindex="-1"></iframe>
<iframe id="configure" frameborder="0" width="100%" scrolling="no"
height="100%" src="chrome://syncresources/configure"
style="display:none" tabindex="-1"></iframe>
<iframe id="passphrase" frameborder="0" width="100%" scrolling="no"
height="100%" src="chrome://syncresources/passphrase"
style="display:none" tabindex="-1"></iframe>
<iframe id="settingup" frameborder="0" width="100%" scrolling="no"
height="100%" src="chrome://syncresources/settingup"
style="display:none" tabindex="-1"></iframe>
<iframe id="done" frameborder="0" width="100%" scrolling="no" height="100%"
src="chrome://syncresources/setupdone" style="display:none"
tabindex="-1"></iframe>
<iframe id="firstpassphrase" frameborder="0" width="100%" scrolling="no"
height="100%" src="chrome://syncresources/firstpassphrase"
style="display:none" tabindex="-1"></iframe>
</body>
</html>
|