'),this.container.insertAfter(this.file_element),this.container.find(".drop").prepend(this.file_element),this.container.find("label")[0].setAttribute("for",$(this.file_element)[0].getAttribute("id"));this.container;this.container.closest("form").on("reset",$.proxy(function(){this.container.find("ul.files").find(".remove").trigger("click")},this)),this.file_element.on("change",$.proxy(this.FileSelected,this)),this.isAdvancedUpload&&(this.container.addClass("has-advanced-upload"),this.container.find(".drop").on("drag dragstart dragend dragover dragenter dragleave drop",function(t){t.preventDefault(),t.stopPropagation()}).on("dragover dragenter",$.proxy(function(){this.container.addClass("is-dragover")},this)).on("dragleave dragend drop",$.proxy(function(){this.container.removeClass("is-dragover")},this)).on("drop",$.proxy(function(t){var e;e=(void 0!==t.originalEvent?t.originalEvent:t).dataTransfer.files,this.ShowFiles(t.target,e),$(this.file_element).trigger("change")},this))),this.file_element.on("focus",$.proxy(function(){this.container.addClass("has-focus")},this)).on("blur",$.proxy(function(){this.container.removeClass("has-focus")},this)),this.file_element.on("file.added",$.proxy(this.FileAdded,this)),this.file_element.on("file.removed",$.proxy(this.FileRemoved,this))};FormFileAdvanced.prototype={FileSelected:function(t){var e,i=t.target.files;void 0!==(i=void 0===i?[{name:e=this.file_element.val().split("/").pop().split("\\").pop(),type:"image/"+e.split(".").pop(),size:0}]:i)[0]&&this.ShowFiles(t.target,i)},ShowFiles:function(t,e){$(t).closest(".c-form__row").removeClass("invalid"),$(t).closest(".c-form__row").find(".errors").remove(),$(t).closest(".c-form__row").addClass("has-file");var i=[];if(this.file_element[0].getAttribute("multiple"))for(var s=0;s"+i[s].name+'Remove';this.container.find("ul.files")[0].innerHTML=r,this.container.find("ul.files").find(".remove").on("click",$.proxy(this.RemoveFile,this)),this.file_element.trigger("file.added")},ClearFiles:function(){$(this.container.find("ul.files .remove").trigger("click"))},FileAdded:function(t){var e,i=$(t.target);i.closest(".c-form__row").hasClass("file-upload-image")&&(e=i.data("files")[0],"undefined"!=typeof FileReader&&((t=new FileReader).onload=$.proxy(function(t){this.FileSetImage(i,t.target.result)},this),t.readAsDataURL(e)))},FileSetImage:function(t,e){t.closest(".c-form__row").find("ul.files")[0].style.backgroundImage="url("+e+")"},FileRemoved:function(t){var e=$(t.target).closest(".c-form__row");e.find(".drop").removeClass("has-file"),e.find("ul.files")[0].style.backgroundImage="none",$(t.target).closest(".c-form__row").removeClass("invalid"),$(t.target).closest(".c-form__row").find(".errors").remove()},RemoveFile:function(t){$(t.target).closest(".c-form__row").removeClass("has-file");var e=$(t.target).closest(".c-form__row");e.find("ul.files")[0].innerHTML="";var i=$(""),s=e.find("input[type=file]"),t=s[0].parentNode;i.prepend(s),s.closest("form")[0].reset(),$(t).append(s),e.find("input[type=file]").data("files",[]),e.find("input[type=file]").trigger("file.removed")}},"undefined"!=typeof ioFormFieldFile&&(ioFormFieldFile.prototype.GetValue=function(t){return input=this.element,$(input).data("files")});var CustomForms={Init:function(){for(var t=$("form"),e=0;e')).insertAfter(e));var i=1;null!=e.getAttribute("data-range-step")&&(i=parseInt(e.getAttribute("data-range-step"))),noUiSlider.create(t[0],{start:e.getAttribute("data-range-sliders"),connect:"lower",range:{min:parseInt(e.getAttribute("data-range-min")),max:parseInt(e.getAttribute("data-range-max"))},step:i}),t[0].noUiSlider.on("update",function(t){e.value=parseInt(t[0].toString()),$(e).trigger("update")}),i=null!==e.getAttribute("data-range-default")?parseInt(e.getAttribute("data-range-default")):(parseInt(e.getAttribute("data-range-max"))-parseInt(e.getAttribute("data-range-min")))/2,t[0].noUiSlider.set(i),$(e).trigger("update"),e.slider=t[0]},InitFormSelect:function(e){var t=new ioselect(e,{search_min:20,search_in_text:!0,mobile_breakpoint_vertical:500});$(e).closest("form").hasClass("c-form--on-white")&&$(t.GetDropdown()).addClass("ioselect-dropdown--on-white"),$(e).closest("form").hasClass("c-form--default")&&$(t.GetDropdown()).addClass("ioselect-dropdown--default"),$(e).closest(".c-form-vacancy-search")&&(t.on("show-dropdown",this.FormElementFocus.bind(this)),t.on("hide-dropdown",this.FormElementBlur.bind(this)),$(e).find("option").each(function(){0===this.innerText.indexOf("*")&&(this.innerText=this.innerText.substring(1),this.is_parent=!0)}),t.on("show-dropdown",function(){$(t.GetDropdown()).find(".ioselect-option").each(function(){var t=$(this).data("value");""!==t&&$(e).find('option[value="'+t+'"]')[0].is_parent&&$(this).addClass("parent")})}.bind(this))),""!=e.value&&$(e).closest(".c-form-vacancy-search__form-row").addClass("focus")},InitFormFile:function(t){new FormFileAdvanced(t)},FormRenderErrors:function(t,e){var i=$($(t)[0]).closest(".c-form__row");i.addClass("c-form__row--invalid"),i.find(".c-form__errors").append(e).addClass("c-form__errors--show");var s=$(t).closest("form")[0];s.error_timeout||(s.error_timeout=setTimeout(function(){var t=$(s).find(".c-form__row--invalid")[0];scrollToOffset(t),s.error_timeout=!1},10))},onFormRenderErrors:function(t,e){$(t).find(".c-form__row").removeClass("c-form__row--invalid");$(t).find(".c-form__errors").removeClass("c-form__errors--show")},FormElementFocus:function(t){$(t.target).closest(".c-form__row").addClass("--has-value")},FormElementBlur:function(t){this.FormElementChange(t)},FormElementChange:function(t){this.FormElementCheckValue(t.target)},FormElementCheckValue(t){""==new ioForm($(t).closest("form")).GetValue(t.getAttribute("name"))?$(t).closest(".c-form__row").removeClass("--has-value"):$(t).closest(".c-form__row").addClass("--has-value")},onSubmit:function(t,e){e.preventDefault(),new ioValidate(t).DoFormValidation(t)&&(void 0!==t.recaptcha?t.recaptcha.Validate():e.target.submit())},RecaptchaValidated:function(t){t.target.submit()}},LogosLists={Init:function(){$("[data-logos-list]").each(function(){new LogosList(this)})}},LogosList=function(t){this.element=t};Loader.onReady(function(){LogosLists.Init()});var sCMS_CookieCreate,LeadMagnets={Init:function(){$("form#form-lead-magnet").each(function(){this.form_initialised||new LeadMagnetForm(this)})}},LeadMagnetForm=function(t){t.form_initialised=!0,this.form=new ioForm(t),this.form_element=t,this.recaptcha=new Recaptcha(this.form_element,!0),$(this.form_element).on("submit",this.Submit.bind(this)),$(this.form_element).on("recaptcha:validated",this.RecaptchaValidated.bind(this)),$(this.form_element).on("recaptcha:expired",this.RecaptchaError.bind(this)),$(this.form_element).on("recaptcha:error",this.RecaptchaError.bind(this)),this.validator=new ioValidate(t),this.smart_button=new sCMS_SmartButton($(this.form_element).find("[type=submit]")),this.form.on("submit",this.Submit.bind(this))};LeadMagnetForm.prototype={RecaptchaValidated:function(){this.DoSubmit()},RecaptchaError:function(){this.smart_button.Set({text:"Unable to process form",class:"c-smart-button--error",duration:4}),alert("We were unable to verify your submission. Please try again.")},Submit:function(t){t.preventDefault(),this.smart_button.Set({text:"Please wait...",class:"c-smart-button--saving",attributes:{disabled:null}});this.validator.DoFormValidation(this.form_element)?this.recaptcha.Validate():this.smart_button.Set({text:"Unable to process form",class:"c-smart-button--error",duration:4})},DoSubmit:function(){var t=this.form.GetValues();$.ajax("/api/1/LeadMagnets/Subscription",{method:"post",data:t,success:this.SaveSuccess.bind(this),error:this.SaveError.bind(this)})},SaveSuccess:function(t){this.smart_button.Set({text:"Please wait",class:"c-smart-button--success",attributes:{disabled:!0}}),sCMS_CookieCreate("scms_lm_form_values",JSON.stringify({name:this.form.GetValue("name"),email:this.form.GetValue("email")})),document.location.href=t.redirect},SaveError:function(t){if(this.smart_button.Set({text:"Unable to submit your message",class:"c-smart-button--error",duration:4}),t.errors&&0u-1&&r?u:0)*L(-i));var s=e-l,e=L(s),s=s+a;r&&(-1===e&&ci?t[t.length-1]:i),t.push(i),(!s||s
WIN AN OVERNIGHT SPA BREAK FOR TWO!
The 2023 Yorkshire Financial Awards
Fill out the form with your name & contact information
Who Needs Another Free Pen or Branded Notebook?
Here at BWD we pride ourselves in doing things differently so when we became a sponsor, we wanted to offer the attendees something a little different…
We’re delighted to be offering you the chance to win an overnight stay at the famous Champneys Spa & Hotel for two!
Your stay will include:
Full use of spa and relaxation experiences | Full access to Champneys range of fitness classes | Three course dinner | Breakfast | Nutritious lunch | Option to add on treatments | A fluffy robe for the duration of your stay | Branded Champneys goodies to take home!
How to enter?
Simply fill out the form with your name and contact information
Click submit and that’s it, YOU’RE IN!
We will send you an email to confirm we have received your details and that you are officially in the running to win this incredible prize.
The winner will be selected at random and contacted directly on Tuesday 16th May 2023.