PageSourceSearch

https://www.ixsystems.com/wp-content/plugins/ix-hubspot-forms/js/ix-hubspot-forms.min.js?ver=0.0.26

js ixsystems.com collected 2026-10-02 04:10:27 UTC 8,912 bytes, 70 lines download raw bytes

1/*
2 *	Plugin Name: iX HubSpot Forms
3 *	Version: 0.0.26
4 *	Build date: 2023-06-07T21:37:52.746Z
5 *	Plugin URI: https://ixsystems.com
6 *	Plugin Source: https://bitbucket.org/aidik/ix-hubspot-forms.git
7 *
8 *	Author: Václav Navrátil
9 *	License: MIT (https://opensource.org/licenses/MIT)
10 *	Please report any issues to https://bitbucket.org/aidik/ix-hubspot-forms/issues/
11*/
12function ixtegrateFormOnReady(a,b){
13//console.log(form);
14//console.log(options);
15b=b||{},b.popUpElementClass=b.popUpElementClass||".ixhs-pop-up-box",b.popUpCloseElementClass=b.popUpCloseElementClass||".ixhs-pop-up-close",jQuery(a).append(customHSstyle),b.includeExtras===!0&&"undefined"!=typeof b.extras&&(0===jQuery.grep(b.extras,function(a){return"form_exact_url"===a.name}).length&&b.extras.push({enabled:!0,name:"form_exact_url",value:window.location.href}),populateExtras(b.extras,a)),b.popUp===!0&&(jQuery(document).on("click",b.popUpTriggerClass,function(){if(ixhsData=jQuery(this).data(),b.includeExtras===!0&&"undefined"!=typeof b.extras&&populateExtras(b.extras,a,jQuery(this).data()),jQuery(".et_builder_inner_content").css("position","initial"),jQuery(b.popUpElementClass).show(),b.reportToAnalytics!==!1){var c=/(?:hs-form-)([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})(?:\s|$)/,d=c.exec(a[0].className);d=null===d?"Error getting form ID":d[1]||"Error getting form ID";var e;b.extras.forEach(function(a){// iterate over all the extras and find form_location
16"form_location"===a.name&&(// ignore enabled!
17e=a.valeue)}),window.dataLayer=window.dataLayer||[],dataLayer.push({event:"eventTracking",category:"HubSpot Form PopedUp",action:d,label:ixhsData.form_location||e||"unknown"})}}),jQuery(document).on("click",b.popUpElementClass,function(a){a.target===this&&(jQuery(".et_builder_inner_content").css("position","relative"),jQuery(this).hide())}),jQuery(document).on("click",b.popUpCloseElementClass,function(){jQuery(".et_builder_inner_content").css("position","relative"),jQuery(b.popUpElementClass).hide()})),b.toggleGDPR!==!1&&(jQuery(a).find("div.hs_form_toggle_gdpr").hide(),// hide the toggle
18// uncheck the toggle to guarantee the same starting state
19jQuery(a).find("input[name='form_toggle_gdpr']").prop("checked",!1).val("false").change(),
20// use ajaxed geo data
21jQuery.when(geo).then(function(b){
22//console.log(response);
23//console.log(response.show_gdpr);
24//console.log(status);
25//console.log(geoAjaxObj);
26b.show_gdpr===!0?jQuery(a).find("input[name='form_toggle_gdpr']").prop("checked",!0).val("true").change():jQuery(a).find("select[name='country__c']").on("change",function(){
27//console.log(jQuery( this ).val());
28//console.log(GDPRcountries.indexOf( jQuery( this ).val() ));
29GDPRcountries.indexOf(jQuery(this).val())>=0?jQuery(a).find("input[name='form_toggle_gdpr']").prop("checked",!0).val("true").change():
30// only if response.show_gdpr is false we can uncheck the toggle.
31jQuery(a).find("input[name='form_toggle_gdpr']").prop("checked",!1).val("false").change()})}).fail(function(){
32//console.log(geoAjaxObj);
33//console.log(status);
34// on error let's show all the forms
35jQuery(a).find("input[name='form_toggle_gdpr']").prop("checked",!0).val("true").change()})),b.toggleCCPA!==!1&&(jQuery(a).find("div.hs_form_toggle_ccpa").hide(),// hide the toggle
36// uncheck the toggle to guarantee the same starting state
37jQuery(a).find("input[name='form_toggle_ccpa']").prop("checked",!1).val("false").change(),
38// use ajaxed geo data
39jQuery.when(geo).then(function(b){
40//console.log(response);
41//console.log(status);
42//console.log(geoAjaxObj);
43// show forms only if
44b.show_ccpa===!0&&jQuery(a).find("input[name='form_toggle_ccpa']").prop("checked",!0).val("true").change()}).fail(function(){
45//console.log(geoAjaxObj);
46//console.log(status);
47// on error let's show all the forms
48jQuery(a).find("input[name='form_toggle_ccpa']").prop("checked",!0).val("true").change()})),b.formCompleteID&&addFormComplete(a,b.formCompleteID),"function"==typeof b.formReady&&b.formReady()}function ixtegrateFormOnSubmit(a,b){if(b=b||{},b.includeUTM!==!1&&"undefined"!=typeof utmCookie&&utmCookie.utmParam
48s.forEach(function(b){
49//console.log(utmParam);
50jQuery("<input>").attr({type:"hidden",name:b,value:utmCookie.readCookie(b)}).appendTo(a)}),b.reportToAnalytics!==!1){var c=/(?:hs-form-)([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})(?:\s|$)/,d=c.exec(a[0].className);d=null===d?"Error getting form ID":d[1]||"Error getting form ID";var e;b.extras.forEach(function(a){// iterate over all the extras and find form_location
51"form_location"===a.name&&(// ignore enabled!
52e=a.valeue)}),window.dataLayer=window.dataLayer||[],dataLayer.push({event:"eventTracking",category:"HubSpot Form OnSubmit",action:d,label:ixhsData.form_location||e||"unknown"})}"function"==typeof b.formSubmit&&b.formSubmit()}function ixtegrateFormOnSubmitted(a,b){if(b=b||{},b.reportToAnalytics!==!1){var c=/(?:hs-form-)([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})(?:\s|$)/,d=c.exec(a[0].className);d=null===d?"Error getting form ID":d[1]||"Error getting form ID";var e;b.extras.forEach(function(a){// iterate over all the extras and find form_location
53"form_location"===a.name&&(// ignore enabled!
54e=a.valeue)}),window.dataLayer=window.dataLayer||[],dataLayer.push({event:"eventTracking",category:"HubSpot Form Submitted",action:d,label:ixhsData.form_location||e||"unknown"})}"undefined"!=typeof b.showAfterSubmit&&jQuery(b.showAfterSubmit).show(),"undefined"!=typeof b.hideAfterSubmit&&jQuery(b.hideAfterSubmit).hide(),"function"==typeof b.formSubmitted&&b.formSubmitted(),b.redirect===!0&&"undefined"!=typeof b.redirectURL&&(window.location.href=b.redirectURL)}
55//
56//*****************************************************************************************
57//
58function populateExtras(a,b,c){c=c||{},b.find(".ixhs-extra-field").remove(),//first remove all the extra fields of the form.
59a.forEach(function(a){// populate all the fields
60a.enabled===!0&&(void 0!==c[a.name]?//either use event data dynamically or use static values from options.extra
61jQuery("<input>").attr({type:"hidden",name:a.name,value:c[a.name]}).addClass("ixhs-extra-field").appendTo(b):jQuery("<input>").attr({type:"hidden",name:a.name,value:a.value}).addClass("ixhs-extra-field").appendTo(b))})}function addFormComplete(a,b){formArray.push(a),window._zi={formId:b,development:!1};var c=document.createElement("script");c.type="text/javascript",c.async=!0,c.src="https://ws-assets.zoominfo.com/formcomplete.js";//?tag=" + Math.floor(Math.random() * Math.floor(999));
62var d=document.getElementsByTagName("script")[0];d.parentNode.insertBefore(c,d)}var formArray=[];jQuery(window).load(function(){
63//Check if HubSpot is blocked
64if(jQuery("script[src='//js.hsforms.net/forms/v2.js']").length>0&&"undefined"==typeof hbspt){console.log("HubSpot Blocked");var a={action:"ix_hubspot_forms_plugin_hbspt_blocked",currentURL:window.location.pathname+window.location.search};jQuery.post(ix_ajax_object.ajax_url,a),
65//alert("Uh-oh! The form you requested could not be displayed. Please make sure to disable any ad blocking software and then refresh the page.\n\nIf using the Brave browser, please configure Shields Down for this site.");
66jQuery("script[src='//js.hsforms.net/forms/v2.js']").after("Your ad-blocker or web browser security is blocking this form. Please disable your ad-blocker to view the form, or contact us at <a href='mailto:[email protected]?Form Blocked'>[email protected]</a>."),Object.keys(window).find(function(a){if("object"==typeof window[a])try{if(void 0!==window[a].popUpTriggerClass){
67//console.log(window[section].popUpTriggerClass);
68jQuery(document).on("click",window[a].popUpTriggerClass,function(){jQuery(".et_builder_inner_content").css("position","initial"),jQuery(window[a].popUpElementClass).show()});var b=window[a].popUpElementClass||".ixhs-pop-up-box";jQuery(document).on("click",b,function(a){a.target===this&&(jQuery(".et_builder_inner_content").css("position","relative"),jQuery(this).hide())});var c=window[a].popUpCloseElementClass||".ixhs-pop-up-close";jQuery(document).on("click",c,function(){jQuery(".et_builder_inner_content").css("position","relative"),jQuery(b).hide()})}}catch(d){}})}});
69// let's prefetch Geo info
70var geo=jQuery.ajax({url:"https://www.ixsystems.com/custom/geo/",dataType:"json",cache:!0}),GDPRcountries=["Austria","Belgium","Bulgaria","Croatia","Cyprus","Czech Republic","Czechia","Denmark","Estonia","Finland","France","Germany","Greece","Hungary","Ireland","Italy","Latvia","Lithuania","Luxembourg","Malta","the Netherlands","Poland","Portugal","Romania","Slovakia","Slovenia","Spain","Sweden","Iceland","Lichtenstein","Norway","United Kingdom","Channel Isles","England","Northern Ireland","Scotland","Wales"],ixhsData=[],customHSstyle="
70<style>.hs_if_use_case_is_other__please_specify.hs-form-field {width:100%!important;}</style>";

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.