Fix demo.html's closure base.js path to no longer use the now defunct googlecode...
[platform/upstream/libphonenumber.git] / javascript / i18n / phonenumbers / demo.html
1 <!DOCTYPE html>
2 <html>
3 <!--
4 @license
5 Copyright (C) 2010 The Libphonenumber Authors
6
7 Licensed under the Apache License, Version 2.0 (the "License");
8 you may not use this file except in compliance with the License.
9 You may obtain a copy of the License at
10
11      http://www.apache.org/licenses/LICENSE-2.0
12
13 Unless required by applicable law or agreed to in writing, software
14 distributed under the License is distributed on an "AS-IS" BASIS,
15 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 See the License for the specific language governing permissions and
17 limitations under the License.
18 -->
19 <!--
20   Author: Nikolaos Trogkanis
21 -->
22 <head>
23 <title>Phone Number Parser Demo</title>
24 <script src="../../../../closure-library/closure/goog/base.js"></script>
25 <script>
26   goog.require('goog.proto2.Message');
27 </script>
28 <script src="phonemetadata.pb.js"></script>
29 <script src="phonenumber.pb.js"></script>
30 <script src="metadata.js"></script>
31 <script src="phonenumberutil.js"></script>
32 <script src="asyoutypeformatter.js"></script>
33 <script src="demo.js"></script>
34 </head>
35 <body>
36
37 <h2>Phone Number Parser Demo</h2>
38
39 <form>
40   <p>
41   Specify a Phone Number:
42   <input type="text" name="phoneNumber" id="phoneNumber" size="25" />
43   </p>
44   <p>
45   Specify a Default Country:
46   <input type="text" name="defaultCountry" id="defaultCountry" size="2" />
47   (ISO 3166-1 two-letter country code)
48   </p>
49   <p>
50   Specify a Carrier Code:
51   <input type="text" name="carrierCode" id="carrierCode" size="2" />
52   (optional, only valid for some countries)
53   </p>
54   <input type="submit" value="Submit" onclick="return phoneNumberParser();" />
55   <input type="reset" value="Reset" />
56   <p>
57   <textarea id="output" rows="30" cols="80"></textarea>
58   </p>
59 </form>
60
61 </body>
62 </html>