File: /var/www/fintechfuel/node_modules/intl-tel-input/demo.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>International Telephone Input</title>
<link rel="stylesheet" href="build/css/intlTelInput.css" />
<link rel="stylesheet" href="build/css/demo.css" />
</head>
<body>
<h1>International Telephone Input</h1>
<form>
<input id="phone" name="phone" type="tel" value="" />
<button type="submit">Submit</button>
</form>
<script src="build/js/intlTelInput.js"></script>
<script>
var input = document.querySelector("#phone");
window.intlTelInput(input, {
// allowDropdown: false,
// autoInsertDialCode: true,
// autoPlaceholder: "off",
// containerClass: "test",
// countrySearch: true,
// customPlaceholder: function(selectedCountryPlaceholder, selectedCountryData) {
// return "e.g. " + selectedCountryPlaceholder;
// },
// dropdownContainer: document.querySelector('#custom-container'),
// excludeCountries: ["us"],
// fixDropdownWidth: true,
// formatAsYouType: false,
// formatOnDisplay: false,
// geoIpLookup: function(callback) {
// fetch("https://ipapi.co/json")
// .then(function(res) { return res.json(); })
// .then(function(data) { callback(data.country_code); })
// .catch(function() { callback("us"); });
// },
// hiddenInput: () => "phone_full",
// i18n: { 'de': 'Deutschland' },
initialCountry: "us",
// nationalMode: false,
// onlyCountries: ['us', 'gb', 'ch', 'ca', 'do'],
// placeholderNumberType: "MOBILE",
// preferredCountries: ['cn', 'jp'],
// showFlags: false,
// showSelectedDialCode: true,
// useFullscreenPopup: true,
utilsScript: "build/js/utils.js"
});
</script>
</body>
</html>