PageSourceSearch

https://www.triglavinvestments.si/App_Plugins/Positiva.Umbraco.For…ur.umbraco.forms.intl-tel-input.js?v=13.5.0

js triglavinvestments.si collected 2026-10-09 21:48:09 UTC 1,608 bytes, 50 lines download raw bytes

1function ourUmbracoFormsIntlTelInput(fieldId, enableIPBasedCountry, initialCountry, autoPlaceholder, ipInfoKey, placeholderType, preferredCountries, onlyCountries) {
2
3  var input = document.querySelector("#phone_intl_" + fieldId);
4
5  var intlTelInputOptions = {};
6
7  intlTelInputOptions.initialCountry = initialCountry;
8  intlTelInputOptions.utilsScript = "/App_Plugins/Our.Umbraco.Forms.IntlTelInput/js/utils.js";
9
10  if (enableIPBasedCountry) {
11    intlTelInputOptions.geoIpLookup = function (success, failure) {
12      $.get("https://ipinfo.io/json?token=" + ipInfoKey, function () { }, "json").always(function (resp) {
13        var countryCode = (resp && resp.country) ? resp.country : "gb";
14        success(countryCode);
15      });
16    }
17  }
18
19  if (autoPlaceholder) {
20    intlTelInputOptions.autoPlaceholder = "aggressive";
21  }
22
23  if (placeholderType) {
24    intlTelInputOptions.placeholderNumberType = placeholderType;
25  }
26
27  if (preferredCountries) {
28    intlTelInputOptions.preferredCountries = preferredCountries;
29  }
30
31  if (onlyCountries) {
32    intlTelInputOptions.onlyCountries = onlyCountries;
33  }
34
35  var iti = intlTelInput(input,
36    intlTelInputOptions);
37
38  var output = document.querySelector("#" + fieldId);
39
40  var handleChange = function () {
41    var number = (iti.isValidNumber()) ? iti.getNumber() : "";
42    var cc = iti.getSelectedCountryData().iso2;
43    input.setAttribute('data-intl-input-cc', cc);
44    output?.value = number;
45  };
46
47  input.addEventListener('change', handleChange);
48  input.addEventListener('countrychange', handleChange);
49  input.addEventListener('keyup', handleChange);
50}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.