summaryrefslogtreecommitdiffstats
path: root/chrome/browser/resources/mobile_setup.html
blob: eba150e6500b958873a536e6fbe5e9f8c59f7203 (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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title i18n-content="title"></title>
<style>
body {
  font-size: 100%;
  -webkit-user-select: none;
}

iframe { 
  overflow-x: scroll; 
  overflow-y: scroll; 
}

.overlay {
  position: fixed;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, .2);
  top: 0;
  bottom: 0;
  z-index: 10;
  padding: 100px;
  -webkit-box-align: center;
  -webkit-box-pack: center;
}

.overlay > div {
  background: white;
  border-radius: 5px;
  padding: 15px;
  border: 1px solid #666;
  -webkit-box-shadow: 3px 3px 3px #666;
}

.startup {
  width: 500px;
  position: absolute;
  top: 50%;
  left: 50%;
  margin-left:-250px;
  margin-top:-250px;
  text-align: center;
}

#paymentForm {
  display: -webkit-box;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
}

.logo {
  background: url('file:///usr/share/chromeos-assets/mobile/carrier_logo.png') no-repeat;
  height: 58px;
}

#errorMessage {
  margin: 20px;
}

.box {
  display: -webkit-box;
}

#finalLogo {
  position: absolute;
  right: 130px;
  width: 150px;
}

#activationLogo {
  background-position: center;
  margin-bottom: 20px;
  margin-top: 20px;
}

#splitter {
  margin-top: 10px;
  left: 50%;
  margin-left: 150px;
  width: 200px;
  border-bottom: 1px solid #EEE;
  height: 1px;
}

.hidden {
  display: none;
}

.testing-only {
  position: absolute;
  left: 0;
  top: 0;
}

</style>
<script src="chrome://resources/js/cr.js"></script>
<script src="chrome://resources/js/local_strings.js"></script>
<script src="chrome://resources/js/util.js"></script>
<script src="mobile_setup.js"></script>
</head>
<body onload="mobile.MobileSetup.loadPage();"
  i18n-values=".style.fontFamily:fontfamily;.style.fontSize:fontsize">
  <iframe class="hidden" id="paymentForm" frameborder="0"></iframe>
  <div id="systemStatus" class="startup hidden">
    <div><h3 id="statusHeader"></h3></div>
    <div id="errorMessage"></div>
    <canvas id="canvas" width="56" height="56"></canvas>
    <div id="splitter"></div>
    <div id="activationLogo" class="logo"></div>
  </div>
  <div id="finalMessage" class="overlay hidden">
    <div class="box">
      <div>
        <div class="header"><h3 i18n-content="completed_header"></h3></div>
        <div id="action" i18n-content="completed_text"></div>
      </div>
      <div id="finalLogo" class="logo"></div>
    </div>
  </div>
  <div class="testing-only">
    <button id="cheat">Fake activation!</button>
  </div>
</body>
</html>