• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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="demo-compiled.js"></script>
26</head>
27<body>
28
29<h2>Phone Number Parser Demo</h2>
30
31<form>
32  <p>
33  Specify a Phone Number:
34  <input type="text" name="phoneNumber" id="phoneNumber" size="25" />
35  </p>
36  <p>
37  Specify a Default Country:
38  <input type="text" name="defaultCountry" id="defaultCountry" size="2" />
39  (CLDR two-letter region code)
40  </p>
41  <p>
42  Specify a Carrier Code:
43  <input type="text" name="carrierCode" id="carrierCode" size="2" />
44  (optional, only valid for some countries)
45  </p>
46  <input type="submit" value="Submit" onclick="return phoneNumberParser();" />
47  <input type="reset" value="Reset" />
48  <p>
49  <textarea id="output" rows="30" cols="80"></textarea>
50  </p>
51</form>
52
53</body>
54</html>
55