OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <title>Free Shipping Test</title> | 4 <title>Free Shipping Test</title> |
5 <meta charset="utf-8"> | 5 <meta charset="utf-8"> |
6 <meta name="viewport" content="width=device-width, initial-scale=1"> | 6 <meta name="viewport" content="width=device-width, initial-scale=1"> |
7 <style> | 7 <style> |
8 button { | 8 button { |
9 width: 100%; | 9 width: 100%; |
10 height: 5em; | 10 height: 5em; |
11 font-size: 3em; | 11 font-size: 3em; |
12 } | 12 } |
13 </style> | 13 </style> |
14 </head> | 14 </head> |
15 <body> | 15 <body> |
16 <button onclick="buy()" id="buy">Buy</button> | 16 <button onclick="buy()" id="buy">Free Shipping Test</button> |
17 <script> | 17 <script> |
18 function print(msg) { | 18 function print(msg) { |
19 document.open(); | 19 document.open(); |
20 document.write('<pre id="result" style="font-size: 2em;">' + msg + '</pre>'); | 20 document.write('<pre id="result" style="font-size: 2em;">' + msg + '</pre>'); |
21 document.close(); | 21 document.close(); |
22 } | 22 } |
23 function toDictionary(addr) { | 23 function toDictionary(addr) { |
24 var dict = {}; | 24 var dict = {}; |
25 dict.regionCode = addr.regionCode; | 25 dict.regionCode = addr.regionCode; |
26 dict.administrativeArea = addr.administrativeArea; | 26 dict.administrativeArea = addr.administrativeArea; |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 .catch(function(error) { print(error.message); }); | 62 .catch(function(error) { print(error.message); }); |
63 }) | 63 }) |
64 .catch(function(error) { print(error.message); }); | 64 .catch(function(error) { print(error.message); }); |
65 } catch (error) { | 65 } catch (error) { |
66 print(error.message); | 66 print(error.message); |
67 } | 67 } |
68 } | 68 } |
69 </script> | 69 </script> |
70 </body> | 70 </body> |
71 </html> | 71 </html> |
OLD | NEW |