PageSourceSearch

https://www.smallbusinesseveryday.ca/hubfs/hub_generated/module_as…/1750959499978/module_SBED_Form.min.js

js smallbusinesseveryday.ca collected 2026-09-29 10:58:31 UTC 3,604 bytes, 2 lines download raw bytes

1var module_134301493004=function(){function set_wrap(){$("#main-form .custom-thankyou-msg").hide(),$(".form-sec .title, .form-sec .sub-title").show();let stepOne_label=$("span#stepOne_label").text(),stepTwo_label=$("span#stepTwo_label").text();$(".hs_firstname, .hs_lastname, .hs_email, .hs_phone").wrapAll('<div class="step-1"></div>'),$(".step-1").prepend('<div class="wrap-step-title"><span class="step-title">— '+stepOne_label+" —</span></div>"),$(".hs_name_of_the_small_business_you_want_to_thank_, .hs_write_a_thank_you_message_to_the_business_you_re_nominating_, .hs_the_business__email_address_, .hs_city_where_the_business_operates_, .hs_please_provide_a_website__social_link_or_phone_number_for_this_business_, .hs_i_give_my_consent_to_cfib_to_share_my_name__name_of_the_business_i_m_thanking_and_my_thank_you_mess").wrapAll('<div class="step-2"></div>'),$(".step-2").prepend('<div class="wrap-step-title"><span class="step-title">— '+stepTwo_label+" —</span></div>");var icon="<svg xmlns='http://www.w3.org/2000/svg' width='16' height='12' viewBox='0 0 16 12' fill='none'><path d='M10.9684 3.52096H0.419254C0.187721 3.52096 0 3.79081 0 4.12364V6.93614C0 7.26897 0.187721 7.53882 0.419254 7.53882H10.9684V9.85204C10.9684 10.9259 11.8716 11.4637 12.3999 10.7044L15.4066 6.38223C15.734 5.91149 15.734 5.14829 15.4066 4.6776L12.3999 0.355451C11.8716 -0.403873 10.9684 0.133917 10.9684 1.20779V3.52096Z' fill='#333333'/></svg>";let next_button=$("span#next_button").text(),back_button=$("span#back_button").text(),submit_button=$("span#submit_button").text();$(".step-1").append("<div class='navigation'><a class='next' href='javascript:void(0);'> "+next_button+icon+" </a></div>"),$(".step-1").append($("#step-1-desc").html()),$(".step-2").append("<div class='navigation'><a class='back' href='javascript:void(0);'>  "+icon+back_button+" </a></div>"),$(".step-2").append("<div class='submit-wrap'><a class='submit' href='javascript:void(0);'> "+submit_button+" </a></div>")}var form_id=$("#main-form").attr("form-id");window.addEventListener("message",(event=>{"hsFormCallback"===event.data.type&&"onFormReady"===event.data.eventName&&event.data.id===form_id&&set_wrap()})),$(document).on("click","#main-form .navigation .next",(function(){console.log("next...."),$(".step-1").find("input,textarea").change(),0==$(".step-1").find("input.invalid").length&&($("#main-form .step-1").hide(),$("#main-form .step-2 input,#main-form .step-2 textarea").val(""),$('#main-form .step-2 input[type="checkbox"]').prop("checked",!1),$("#main-form .step-2").show())})),$(document).on("click","#main-form .navigation .back",(function(){console.log("back...."),0==$(".step-1").find("input.invalid").length&&($("#main-form .step-2").hide(),$("#main-form .step-1").show())})),$(document).on("click","#main-form .submit-wrap .submit",(function(){$(".step-2").find("input,textarea").change(),0==$(".step-2").find(".hs-error-msg").length?($("#main-form form").trigger("submit"),setTimeout((function(){$(".form-sec .title, .form-sec .sub-title").hide(),$("#main-form .custom-thankyou-msg").show(),$("html, body").animate({scrollTop:$(".form-sec").offset().top-50},100)}),1e3)):console.log("error.")})),$(document).on("click","#main-form .custom-thankyou-msg a.reset",(function(){hbspt.forms.create({region:"na1",portalId:"20336445",formId:form_id,target:"#main-form"}),set_wrap(),$("html, body").animate({scrollTop:$(".form-sec").offset().top-50},100)}))}();
2//# sourceURL=https://20336445.fs1.hubspotusercontent-na1.net/hubfs/20336445/hub_generated/module_assets/1/134301493004/1750959499978/module_SBED_Form.js

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.