summaryrefslogtreecommitdiffstats
path: root/chrome/test/data/chromeos/mobile_activation.html
blob: 8d44f4ec36574969993156640e0cc940102649f8 (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
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>Mobile activation testing page</title>

<style>
body {
  background: -webkit-gradient(linear, left top, left bottom,
              from(#EBEBEB), to(#CFCFCF));
  font-family: 'Lucida Grande', Helvetica, sans-serif;
  font-size: 10px;
  height: 300px;
  overflow: hidden;
}
</style>

<script src="connection_manager.js"></script>
<script>
function $(id) {
  return document.getElementById(id);
}

chromeos.connectionManager.getDeviceInfo(function(device) {
  $('device-info').innerHTML =
    'carrier = ' + device.carrier + '<br>' +
    'MEID = ' + device.MEID + '<br>' +
    'IMEI = ' + device.IMEI + '<br>' +
    'IMSI = ' + device.IMSI + '<br>' +
    'ESN = ' + device.ESN + '<br>' +
    'MDN = ' + device.MDN;
});

function sendStatus(status) {
  chromeos.connectionManager.setTransactionStatus(status,
      function() {});
}

</script>

</head>
<body>
<h2>Plan Payment Page<h2>
<div>Press a button below to signal transaction status back to the browser</div>
<div id='buttons'>
<button id='ok-btn' onclick="sendStatus('OK')">OK</button>
<button id='fail-btn' onclick="sendStatus('FAILED')">Failed</button>
</div>
<div>
Device Information:
<div id="device-info"></div>
</div>
</body>
</html>