Phil Dubach | e58f212 | 2009-07-30 14:33:23 -0700 | [diff] [blame] | 1 | <!-- Copyright (C) 2009 The Android Open Source Project |
| 2 | |
| 3 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | you may not use this file except in compliance with the License. |
| 5 | You may obtain a copy of the License at |
| 6 | |
| 7 | http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | |
| 9 | Unless required by applicable law or agreed to in writing, software |
| 10 | distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | See the License for the specific language governing permissions and |
| 13 | limitations under the License. |
Phil Dubach | 529794c | 2009-07-21 14:58:37 -0700 | [diff] [blame] | 14 | --> |
Phil Dubach | e58f212 | 2009-07-30 14:33:23 -0700 | [diff] [blame] | 15 | |
| 16 | <html> |
| 17 | <head> |
| 18 | <title>uninitialized</title> |
| 19 | <script type="text/javascript"> |
| 20 | function getNetworkState() { |
| 21 | if (navigator.onLine) { |
| 22 | document.title = "ONLINE"; |
| 23 | } else { |
| 24 | document.title = "OFFLINE"; |
| 25 | } |
| 26 | } |
| 27 | </script> |
| 28 | </head> |
Ben Murdoch | 6f42948 | 2013-03-01 14:51:23 +0000 | [diff] [blame] | 29 | <body onload="getNetworkState()" ononline="getNetworkState()" onoffline="getNetworkState()"> |
Phil Dubach | e58f212 | 2009-07-30 14:33:23 -0700 | [diff] [blame] | 30 | </body> |
| 31 | </html> |