Proyectos de Subversion LeadersLinked - Backend

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
16825 efrain 1
<!DOCTYPE html>
2
<html>
3
  <head>
4
    <meta charset="utf-8">
5
    <title>Example: Multiple Instances</title>
6
    <link rel="stylesheet" href="../css/prism.css">
7
    <link rel="stylesheet" href="../../build/css/intlTelInput.css?1603274336113">
8
    <link rel="stylesheet" href="../../build/css/demo.css?1603274336113">
9
 
10
 
11
    <!-- GOOGLE ANALYTICS -->
12
    <script>
13
      (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
14
      (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
15
      m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
16
      })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
17
      ga('create', 'UA-85394876-1', 'auto');
18
      ga('send', 'pageview');
19
    </script>
20
    <!-- /GOOGLE ANALYTICS -->
21
  </head>
22
 
23
  <body>
24
    <a href="/">Back</a>
25
    <h1>Example: Multiple Instances</h1>
26
    <p>Here you can see multiple instances of the plugin working alongside each other. I've set the placeholderNumberType differently for each instance to highlight that the instances are completely independent of each other.</p>
27
 
28
    <h2>Markup</h2>
29
    <pre><code class="language-markup">Home: &lt;input id=&quot;home&quot; type=&quot;tel&quot;&gt;
30
&lt;br&gt;&lt;br&gt;
31
Mobile: &lt;input id=&quot;mobile&quot; type=&quot;tel&quot;&gt;
32
</code></pre>
33
 
34
    <h2>Code</h2>
35
    <pre><code class="language-javascript">var inputHome = document.querySelector(&quot;#home&quot;);
36
var inputMobile = document.querySelector(&quot;#mobile&quot;);
37
 
38
window.intlTelInput(inputHome, {
39
  initialCountry: &#39;gb&#39;,
40
  placeholderNumberType: &#39;FIXED_LINE&#39;,
41
  utilsScript: &quot;../../build/js/utils.js?1603274336113&quot; // just for formatting/placeholders etc
42
});
43
window.intlTelInput(inputMobile, {
44
  initialCountry: &#39;gb&#39;,
45
  placeholderNumberType: &#39;MOBILE&#39;,
46
  utilsScript: &quot;../../build/js/utils.js?1603274336113&quot;
47
});
48
</code></pre>
49
 
50
    <h2>Result</h2>
51
    <div id="result">
52
      Home: <input id="home" type="tel">
53
<br><br>
54
Mobile: <input id="mobile" type="tel">
55
 
56
    </div>
57
 
58
    <script src="../js/prism.js"></script>
59
    <script src="../../build/js/intlTelInput.js?1603274336113"></script>
60
    <script src="./js/multipleInstances.js?1603274336113"></script>
61
  </body>
62
</html>