Last active
November 6, 2019 07:03
-
-
Save jerinisready/fb760a635c4e657c45ca6668d60fae25 to your computer and use it in GitHub Desktop.
A quick Copy-Paste Example Of intlTelInput With Files from CDNJS. https://github.com/jackocnr/intl-tel-input#getting-started
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<body> | |
<style> | |
@import "//cdnjs.cloudflare.com/ajax/libs/intl-tel-input/16.0.4/css/intlTelInput.css"; | |
.iti__flag {background-image: url("//cdnjs.cloudflare.com/ajax/libs/intl-tel-input/16.0.4/img/flags.png");} | |
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) { | |
.iti__flag {background-image: url("//cdnjs.cloudflare.com/ajax/libs/intl-tel-input/16.0.4/img/[email protected]");} | |
} | |
</style> | |
<form> | |
<input type="tel" /> | |
</form> | |
<script> | |
(function(){ | |
const __intl_input__ = async () => { | |
var inputs = document.querySelectorAll("input[type='tel']"); | |
inputs.forEach(window.intlTelInput); | |
} | |
__intl_input__(); | |
})() | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment