5 Copyright (C) 2010 The Libphonenumber Authors
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
11 http://www.apache.org/licenses/LICENSE-2.0
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.
20 Author: Nikolaos Trogkanis
23 <title>Phone Number Parser Demo</title>
24 <script src="../../../../closure-library/closure/goog/base.js"></script>
26 goog.require('goog.proto2.Message');
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>
37 <h2>Phone Number Parser Demo</h2>
41 Specify a Phone Number:
42 <input type="text" name="phoneNumber" id="phoneNumber" size="25" />
45 Specify a Default Country:
46 <input type="text" name="defaultCountry" id="defaultCountry" size="2" />
47 (ISO 3166-1 two-letter country code)
50 Specify a Carrier Code:
51 <input type="text" name="carrierCode" id="carrierCode" size="2" />
52 (optional, only valid for some countries)
54 <input type="submit" value="Submit" onclick="return phoneNumberParser();" />
55 <input type="reset" value="Reset" />
57 <textarea id="output" rows="30" cols="80"></textarea>