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