Home | History | Annotate | Download | only in test-scripts
      1 <!DOCTYPE HTML>
      2 <html>
      3 <head>
      4 <meta charset="utf-8">
      5 <title>Mobile activation testing page</title>
      6 
      7 <style>
      8 body {
      9   background: -webkit-gradient(linear, left top, left bottom,
     10               from(#EBEBEB), to(#CFCFCF));
     11   font-family: 'Lucida Grande', Helvetica, sans-serif;
     12   font-size: 10px;
     13   height: 300px;
     14   overflow: hidden;
     15 }
     16 </style>
     17 
     18 <script src="connection_manager.js"></script>
     19 <script>
     20 function $(id) {
     21   return document.getElementById(id);
     22 }
     23 
     24 chromeos.connectionManager.getDeviceInfo(function(device) {
     25   $('device-info').innerHTML =
     26     'carrier = ' + device.carrier + '<br>' +
     27     'MEID = ' + device.MEID + '<br>' +
     28     'IMEI = ' + device.IMEI + '<br>' +
     29     'IMSI = ' + device.IMSI + '<br>' +
     30     'ESN = ' + device.ESN + '<br>' +
     31     'MDN = ' + device.MDN;
     32 });
     33 
     34 function sendStatus(status) {
     35   chromeos.connectionManager.setTransactionStatus(status,
     36       function() {});
     37 }
     38 
     39 </script>
     40 
     41 </head>
     42 <body>
     43 <h2>Plan Payment Page<h2>
     44 <div>Press a button below to signal transaction status back to the browser</div>
     45 <div id='buttons'>
     46 <button id='ok-btn' onclick="document.location='payment_succeeded.html'">OK</button>
     47 <button id='fail-btn' onclick="document.location='payment_failed.html'">Failed</button>
     48 </div>
     49 <div>
     50 Device Information:
     51 <div id="device-info"></div>
     52 </div>
     53 </body>
     54 </html>
     55