Lead #2257
Best Contact
—
Email
info@thomasemlyn.co.uk (generic)
Override
Captured Pages
https://thomasemlyn.co.uk/contact
Status: 200
Emails: info@thomasemlyn.co.uk, emailinfo@thomasemlyn.co.uk
View text
About Our process Partner network Careers Services Accounts Bookkeeping Business consultancy CIS Cloud accounting & Xero Company formation Secretarial Helping your business grow Payroll & P11D R&D tax relief Personal tax VAT Packages Virtual Finance Office (VFO) Elevate – For Ambitious Construction Business Owners Sectors Construction Property Growing businesses Resources Blogs Dates and deadlines Business news Calculators Contact About Our process Partner network Careers Services Accounts Bookkeeping Business consultancy CIS Cloud accounting & Xero Company formation Secretarial Helping your business grow Payroll & P11D R&D tax relief Personal tax VAT Packages Virtual Finance Office (VFO) Elevate – For Ambitious Construction Business Owners Sectors Construction Property Growing businesses Resources Blogs Dates and deadlines Business news Calculators Contact Book a call Contact Home • Contact Thomas Emlyn Ltd 7 Bellefield House104 New London RoadChelmsfordEssexCM2 0DG Phone01245 801611 Emailinfo@thomasemlyn.co.uk Book a call Don’t face a problem by yourself – contact us today Notice: JavaScript is required for this content. /* PLUGIN WIDE STYLES */ .nf-form-content .nf-field-label label { font-size:16px; } .nf-form-content .nf-field-element .ninja-forms-field:not(select) { background-color:#ffffff; border-width:1px; border-style:solid; border-color:#757575; color:#424242; font-size:14px; padding:6px; } .nf-form-content .nf-field-container.listcheckbox-container li { color:#424242; font-size:14px; } .nf-form-content .nf-field-container.submit-container .nf-field-element .ninja-forms-field { background-color:#ffc700; border-width:0px; color:#08376b; font-size:16px; border-radius: 10px; padding-right: 60px; padding-left: 60px; padding-top: 10px; padding-bottom: 10px; font-weight:700; letter-spacing: 0.5px; } .nf-form-content .nf-field-container.submit-container .nf-field-element .ninja-forms-field:hover { background-color:#d61632; color:#ffffff; } .nf-form-content .nf-field-container.save-container .nf-field-element .ninja-forms-field { background-color:#212121; color:#ffffff; } .nf-form-content .nf-field-container.listcountry-container .nf-field-element .ninja-forms-field { background-color:#ffffff; border-width:1px; border-style:solid; border-color:#757575; color:#424242; height:45px; font-size:14px; } .nf-form-content .nf-field-container.listselect-container .nf-field-element .ninja-forms-field { background-color:#ffffff; border-width:1px; border-style:solid; border-color:#757575; color:#424242; height:45px; font-size:14px; } .nf-form-content .nf-field-container.listmultiselect-container .nf-field-element .ninja-forms-field { background-color:#ffffff; border-width:1px; border-style:solid; border-color:#757575; color:#424242; font-size:14px; } .nf-form-content .nf-field-container.listradio-container li { color:#424242; font-size:14px; } .nf-form-content .nf-field-container.firstname-container .nf-field-element .ninja-forms-field { height:45px; } .nf-form-content .nf-field-container.lastname-container .nf-field-element .ninja-forms-field { height:45px; } .nf-form-content .nf-field-container.date-container .nf-field-element .ninja-forms-field { height:45px; } .nf-form-content .nf-field-container.user-analytics-country-container .nf-field-element .ninja-forms-field { height:45px; } .nf-form-content .nf-field-container.textbox-container .nf-field-element .ninja-forms-field { height:45px; } .nf-form-content .nf-field-container.city-container .nf-field-element .ninja-forms-field { height:45px; } .nf-form-content .nf-field-container.address-container .nf-field-element .ninja-forms-field { height:45px; } .nf-form-content .nf-field-container.address2-container .nf-field-element .ninja-forms-field { height:45px; } .nf-form-content .nf-field-container.email-container .nf-field-element .ninja-forms-field { height:45px; } .nf-form-content .nf-field-container.phone-container .nf-field-element .ninja-forms-field { height:45px; } .nf-form-content .nf-field-container.zip-container .nf-field-element .ninja-forms-field { height:45px; } .nf-form-content .nf-field-container.confirm-container .nf-field-element .ninja-forms-field { height:45px; } .nf-form-content .nf-field-container.number-container .nf-field-element .ninja-forms-field { height:45px; } .nf-form-content .nf-field-container.spam-container .nf-field-element .ninja-forms-field { height:45px; } .nf-form-content .nf-field-container.hr-container .nf-field-element .ninja-forms-field { padding:0px; } var formDisplay=1;var nfForms=nfForms||[];var form=[];form.id='1';form.settings={"objectType":"Form Setting","editActive":true,"title":"Get in touch form","key":"","created_at":"2019-02-05 10:57:14","default_label_pos":"above","conditions":[],"show_title":0,"clear_complete":"1","hide_complete":"1","wrapper_class":"","element_class":"","add_submit":"1","logged_in":"","not_logged_in_msg":"","sub_limit_number":"","sub_limit_msg":"","calculations":[],"formContentData":[{"formContentData":[{"order":1,"cells":[{"order":0,"fields":["first_name_1615802028192"],"width":50},{"order":1,"fields":["last_name_1615802032447"],"width":50}]},{"order":2,"cells":[{"order":0,"fields":["email"],"width":"100"}]},{"order":3,"cells":[{"order":0,"fields":["message"],"width":"100"}]},{"order":4,"cells":[{"order":0,"fields":["tick_the_box_below_to_confirm_you_re_not_a_robot_1631003981783"],"width":"100"}]},{"order":5,"cells":[{"order":0,"fields":["submit"],"width":"100"}]}],"order":0,"type":"part","clean":true,"title":"Part Title","key":"ynihzog"}],"container_styles_background-color":"","container_styles_border":"","container_styles_border-style":"","container_styles_border-color":"","container_styles_color":"","container_styles_height":"","container_styles_width":"","container_styles_font-size":"","container_styles_margin":"","container_styles_padding":"","container_styles_display":"","container_styles_float":"","container_styles_show_advanced_css":"0","container_styles_advanced":"","title_styles_background-color":"","title_styles_border":"","title_styles_border-style":"","title_styles_border-color":"","title_styles_color":"","title_styles_height":"","title_styles_width":"","title_styles_font-size":"","title_styles_margin":"","title_styles_padding":"","title_styles_display":"","title_styles_float":"","title_styles_show_advanced_css":"0","title_styles_advanced":"","row_styles_background-color":"","row_styles_border":"","row_styles_border-style":"","row_styles_border-color":"","row_styles_color":"","row_styles_height":"","row_styles_width":"","row_styles_font-size":"","row_styles_margin":"","row_styles_padding":"","row_styles_display":"","row_styles_show_advanced_css":"0","row_styles_advanced":"","row-odd_styles_background-color":"","row-odd_styles_border":"","row-odd_styles_border-style":"","row-odd_styles_border-color":"","row-odd_styles_color":"","row-odd_styles_height":"","row-odd_styles_width":"","row-odd_styles_font-size":"","row-odd_styles_margin":"","row-odd_styles_padding":"","row-odd_styles_display":"","row-odd_styles_show_advanced_css":"0","row-odd_styles_advanced":"","success-msg_styles_background-color":"","success-msg_styles_border":"","success-msg_styles_border-style":"","success-msg_styles_border-color":"","success-msg_styles_color":"","success-msg_styles_height":"","success-msg_styles_width":"","success-msg_styles_font-size":"","success-msg_styles_margin":"","success-msg_styles_padding":"","success-msg_styles_display":"","success-msg_styles_show_advanced_css":"0","success-msg_styles_advanced":"","error_msg_styles_background-color":"","error_msg_styles_border":"","error_msg_styles_border-style":"","error_msg_styles_border-color":"","error_msg_styles_color":"","error_msg_styles_height":"","error_msg_styles_width":"","error_msg_styles_font-size":"","error_msg_styles_margin":"","error_msg_styles_padding":"","error_msg_styles_display":"","error_msg_styles_show_advanced_css":"0","error_msg_styles_advanced":"","allow_public_link":0,"embed_form":"","currency":"","unique_field_error":"A form with this value has already been submitted.","save_progress_allow_multiple":false,"save_progress_table_legend":"Load saved progress","save_progress_table_columns":[{"errors":[],"max_options":0,"label":"Column Title","field":"{field}","order":0,"settingModel":{"settings":false,"hide_merge_tags":false,"error":false,"name":"save_progress_table_columns","type":"option-repeater","label":"Save Table Columns <a href=\"#\" class=\"nf-add-new\">Add New<\/a>","width":"full","group":"primary","columns":{"field":{"header":"Field Key","default":""}},"value":[{"label":"Column Title","field":"{field}","order":0}],"tmpl_row":"tmpl-nf-save-progress-table-columns-repeater-row"}}],"mp_breadcrumb":1,"mp_progress_bar":1,"mp_display_titles":0,"breadcrumb_container_styles_show_advanced_css":0,"breadcrumb_buttons_styles_show_advanced_css":0,"breadcrumb_button_hover_styles_show_advanced_css":0,"breadcrumb_active_button_styles_show_advanced_css":0,"progress_bar_container_styles_show_advanced_css":0,"progress_bar_fill_styles_show_advanced_css":0,"part_titles_styles_show_advanced_css":0,"navigation_container_styles_show_advanced_css":0,"previous_button_styles_show_advanced_css":0,"next_button_styles_show_advanced_css":0,"navigation_hover_styles_show_advanced_css":0,"repeatable_fieldsets":"","changeEmailErrorMsg":"Please enter a valid email address!","changeDateErrorMsg":"Please enter a valid date!","confirmFieldErrorMsg":"These fields must match!","fieldNumberNumMinError":"Number Min Error","fieldNumberNumMaxError":"Number Max Error","fieldNumberIncrementBy":"Please increment by ","formErrorsCorrectErrors":"Please correct errors before submitting this form.","validateRequiredField":"This is a required field.","honeypotHoneypotError":"Honeypot Error","fieldsMarkedRequired":" ","drawerDisabled":false,"form_title_heading_level":"3","header_position":"left","footer_position":"left","ninjaForms":"Ninja Forms","fieldTextareaRTEInsertLink":"Insert Link","fieldTextareaRTEInsertMedia":"Insert Media","fieldTextareaRTESelectAFile":"Select a file","formHoneypot":"If you are a human seeing this field, please leave it empty.","fileUploadOldCodeFileUploadInProgress":"File Upload in Progress.","fileUploadOldCodeFileUpload":"FILE UPLOAD","currencySymbol":"$","thousands_sep":",","decimal_point":".","siteLocale":"en_GB","dateFormat":"m\/d\/Y","startOfWeek":"1","of":"of","previousMonth":"Previous Month","nextMonth":"Next Month","months":["January","February","March","April","May","June","July","August","September","October","November","December"],"monthsShort":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"weekdays":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],"weekdaysShort":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"weekdaysMin":["Su","Mo","Tu","We","Th","Fr","Sa"],"recaptchaConsentMissing":"reCaptcha validation couldn't load.","recaptchaMissingCookie":"reCaptcha v3 validation couldn't load the cookie needed to submit the form.","recaptchaConsentEvent":"Accept reCaptcha cookies before sending the form.","currency_symbol":"","beforeForm":"","beforeFields":"","afterFields":"","afterForm":""};form.fields=[{"objectType":"Field","objectDomain":"fields","editActive":false,"order":1,"idAttribute":"id","label":"First name","key":"first_name_1615802028192","type":"textbox","created_at":"2019-02-05 10:57:14","label_pos":"above","required":1,"placeholder":"","default":"","wrapper_class":"","element_class":"","container_class":"","input_limit":"","input_limit_type":"characters","input_limit_msg":"Character(s) left","manual_key":"","disable_input":"","admin_label":"","help_text":"","desc_text":"","disable_browser_autocomplete":"","mask":"","custom_mask":"","wrap_styles_background-color":"","wrap_styles_border":"","wrap_styles_border-style":"","wrap_styles_border-color":"","wrap_styles_color":"","wrap_styles_height":"","wrap_styles_width":"","wrap_styles_font-size":"","wrap_styles_margin":"","wrap_styles_padding":"","wrap_styles_display":"","wrap_styles_float":"","wrap_styles_show_advanced_css":0,"wrap_styles_advanced":"","label_styles_background-color":"","label_styles_border":"","label_styles_border-style":"","label_styles_border-color":"","label_styles_color":"","label_styles_height":"","label_styles_width":"","label_styles_font-size":"","label_styles_margin":"","label_styles_padding":"","label_styles_display":"","label_styles_float":"","label_styles_show_advanced_css":0,"label_styles_advanced":"","element_styles_background-color":"","element_styles_border":"","element_styles_border-style":"","element_styles_border-color":"","element_styles_color":"","element_styles_height":"","element_styles_width":"","element_styles_font-size":"","element_styles_margin":"","element_styles_padding":"","element_styles_display":"","element_styles_float":"","element_styles_show_advanced_css":0,"element_styles_advanced":"","cellcid":"c4791","custom_name_attribute":"","personally_identifiable":"","value":"","drawerDisabled":false,"id":1,"beforeField":"","afterField":"","parentType":"textbox","element_templates":["textbox","input"],"old_classname":"","wrap_template":"wrap"},{"objectType":"Field","objectDomain":"fields","editActive":false,"order":2,"idAttribute":"id","type":"lastname","label":"Last name","key":"last_name_1615802032447","label_pos":"above","required":1,"default":"","placeholder":"","container_class":"","element_class":"","admin_label":"","help_text":"","custom_name_attribute":"lname","personally_identifiable":1,"wrap_styles_border":"","wrap_styles_width":"","wrap_styles_margin":"","wrap_styles_padding":"","wrap_styles_float":"","wrap_styles_show_advanced_css":0,"label_styles_border":"","label_styles_width":"","label_styles_font-size":"","label_styles_margin":"","label_styles_padding":"","label_styles_float":"","label_styles_show_advanced_css":0,"element_styles_border":"","element_styles_width":"","element_styles_font-size":"","element_styles_margin":"","element_styles_padding":"","element_styles_float":"","element_styles_show_advanced_css":0,"cellcid":"c4794","value":"","drawerDisabled":false,"id":11,"beforeField":"","afterField":"","parentType":"lastname","element_templates":["lastname","input"],"old_classname":"","wrap_template":"wrap"},{"objectType":"Field","objectDomain":"fields","editActive":false,"order":3,"idAttribute":"id","label":"Email","key":"email","type":"email","created_at":"2019-02-05 10:57:14","label_pos":"above","required":1,"placeholder":"","default":"","wrapper_class":"","element_class":"","container_class":"","admin_label":"","help_text":"","desc_text":"","wrap_styles_background-color":"","wrap_styles_border":"","wrap_styles_border-style":"","wrap_styles_border-color":"","wrap_styles_color":"","wrap_styles_height":"","wrap_styles_width":"","wrap_styles_font-size":"","wrap_styles_margin":"","wrap_styles_padding":"","wrap_styles_display":"","wrap_styles_float":"","wrap_styles_show_advanced_css":0,"wrap_styles_advanced":"","label_styles_background-color":"","label_styles_border":"","label_styles_border-style":"","label_styles_border-color":"","label_styles_color":"","label_styles_height":"","label_styles_width":"","label_styles_font-size":"","label_styles_margin":"","label_styles_padding":"","label_styles_display":"","label_styles_float":"","label_styles_show_advanced_css":0,"label_styles_advanced":"","element_styles_background-color":"","element_styles_border":"","element_styles_border-style":"","element_styles_border-color":"","element_styles_color":"","element_styles_height":"","element_styles_width":"","element_styles_font-size":"","element_styles_margin":"","element_styles_padding":"","element_styles_display":"","element_styles_float":"","element_styles_show_advanced_css":0,"element_styles_advanced":"","cellcid":"c4797","custom_name_attribute":"email","personally_identifiable":1,"value":"","id":2,"beforeField":"","afterField":"","parentType":"email","element_templates":["email","input"],"old_classname":"","wrap_template":"wrap"},{"objectType":"Field","objectDomain":"fields","editActive":false,"order":4,"idAttribute":"id","label":"Message","key":"message","type":"textarea","created_at":"2019-02-05 10:57:14","label_pos":"above","required":1,"placeholder":"","default":"","wrapper_class":"","element_class":"","container_class":"","input_limit":"","input_limit_type":"characters","input_limit_msg":"Character(s) left","manual_key":"","disable_input":"","admin_label":"","help_text":"","desc_text":"","disable_browser_autocomplete":"","textarea_rte":"","disable_rte_mobile":"","textarea_media":"","wrap_styles_background-color":"","wrap_styles_border":"","wrap_styles_border-style":"","wrap_styles_border-color":"","wrap_styles_color":"","wrap_styles_height":"","wrap_styles_width":"","wrap_styles_font-size":"","wrap_styles_margin":"","wrap_styles_padding":"","wrap_styles_display":"","wrap_styles_float":"","wrap_styles_show_advanced_css":0,"wrap_styles_advanced":"","label_styles_background-color":"","label_styles_border":"","label_styles_border-style":"","label_styles_border-color":"","label_styles_color":"","label_styles_height":"","label_styles_width":"","label_styles_font-size":"","label_styles_margin":"","label_styles_padding":"","label_styles_display":"","label_styles_float":"","label_styles_show_advanced_css":0,"label_styles_advanced":"","element_styles_background-color":"","element_styles_border":"","element_styles_border-style":"","element_styles_border-color":"","element_styles_color":"","element_styles_height":"","element_styles_width":"","element_styles_font-size":"","element_styles_margin":"","element_styles_padding":"","element_styles_display":"","element_styles_float":"","element_styles_show_advanced_css":0,"element_styles_advanced":"","cellcid":"c4800","value":"","id":3,"beforeField":"","afterField":"","parentType":"textarea","element_templates":["textarea","input"],"old_classname":"","wrap_template":"wrap"},{"objectType":"Field","objectDomain":"fields","editActive":false,"order":5,"idAttribute":"id","label":"Tick the box below to confirm you're not a robot","type":"recaptcha","container_class":"","element_class":"","wrap_styles_border":"","wrap_styles_width":"","wrap_styles_margin":"","wrap_styles_padding":"","wrap_styles_float":"","wrap_styles_show_advanced_css":0,"label_styles_border":"","label_styles_width":"","label_styles_font-size":"","label_styles_margin":"","label_styles_padding":"","label_styles_float":"","label_styles_show_advanced_css":0,"size":"visible","key":"tick_the_box_below_to_confirm_you_re_not_a_robot_1631003981783","cellcid":"c4803","drawerDisabled":false,"id":37,"beforeField":"","afterField":"","value":"","label_pos":"above","parentType":"textbox","element_templates":["recaptcha","input"],"old_classname":"","wrap_template":"wrap","site_key":"6LcsB94UAAAAAHpUq4GS1aA2W50yVhX011JEzCm3","theme":"light","lang":"en-GB"},{"objectType":"Field","objectDomain":"fields","editActive":false,"order":6,"idAttribute":"id","label":"Submit","key":"submit","type":"submit","created_at":"2019-02-05 10:57:14","processing_label":"Processing","container_class":"","element_class":"","wrap_styles_background-color":"","wrap_styles_border":"","wrap_styles_border-style":"","wrap_styles_border-color":"","wrap_styles_color":"","wrap_styles_height":"","wrap_styles_width":"","wrap_styles_font-size":"","wrap_styles_margin":"","wrap_styles_padding":"","wrap_styles_display":"","wrap_styles_float":"","wrap_styles_show_advanced_css":0,"wrap_styles_advanced":"","label_styles_background-color":"","label_styles_border":"","label_styles_border-style":"","label_styles_border-color":"","label_styles_color":"","label_styles_height":"","label_styles_width":"","label_styles_font-size":"","label_styles_margin":"","label_styles_padding":"","label_styles_display":"","label_styles_float":"","label_styles_show_advanced_css":0,"label_styles_advanced":"","element_styles_background-color":"","element_styles_border":"","element_styles_border-style":"","element_styles_border-color":"","element_styles_color":"","element_styles_height":"","element_styles_width":"","element_styles_font-size":"","element_styles_margin":"","element_styles_padding":"","element_styles_display":"","element_styles_float":"","element_styles_show_advanced_css":0,"element_styles_advanced":"","submit_element_hover_styles_background-color":"","submit_element_hover_styles_border":"","submit_element_hover_styles_border-style":"","submit_element_hover_styles_border-color":"","submit_element_hover_styles_color":"","submit_element_hover_styles_height":"","submit_element_hover_styles_width":"","submit_element_hover_styles_font-size":"","submit_element_hover_styles_margin":"","submit_element_hover_styles_padding":"","submit_element_hover_styles_display":"","submit_element_hover_styles_float":"","submit_element_hover_styles_show_advanced_css":0,"submit_element_hover_styles_advanced":"","cellcid":"c4806","id":4,"beforeField":"","afterField":"","value":"","label_pos":"above","parentType":"textbox","element_templates":["submit","button","input"],"old_classname":"","wrap_template":"wrap-no-label"}];nfForms.push(form); <div class="nf-mp-header"></div> <div class="nf-mp-body"></div> <div class="nf-mp-footer"></div> {{{ data.renderProgressBar() }}} {{{ data.renderBreadcrumbs() }}} {{{ data.renderPartTitle() }}} <h3> {{{ data.title }}} </h3> {{{ data.renderNextPrevious() }}} <ul class="nf-next-previous"> <# if ( data.showPrevious ) { #> <li class="nf-previous-item"> <input type="button" class="nf-previous" value="{{{ data.prevLabel }}}" /> </li> <# } #> <# if ( data.showNext ) { #> <li class="nf-next-item"> <input type="button" class="nf-next" value="{{{ data.nextLabel }}}" /> </li> <# } #> </ul> <ul class="nf-breadcrumbs"> <# _.each( data.parts, function( part, index ) { #> <li class="{{{ ( data.currentIndex == index ) ? 'active' : '' }}} {{{ ( part.errors ) ? 'errors' : '' }}}"> <a href="#" class="nf-breadcrumb" data-index="{{{ index }}}">{{{ ( part.errors ) ? '' : '' }}} {{{ part.title }}}</a> </li> <# } ); #> </ul> <div class="nf-progress-container"> <div class="nf-progress" style="width: {{{ data.percent }}}%;"></div> </div> <nf-fields></nf-fields> <nf-cells></nf-cells> Opportunities & vacancies We’re always on the lookout for the future talent of accountancy. If you believe in a sustainable way of providing the best support possible for a client, look through our vacancies page. See vacancies Growth on your mind? Let’s talk We’ll chat about your business, your future, and your aspirations. And then we’ll help you get there. Contact us Book a call Contact us 01245 801611 info@thomasemlyn.co.uk 7 Bellefield House 104 New London Road Chelmsford Essex CM2 0DG Useful linksTerms & Conditions Privacy Statement & Cookie Policy Cookie Information Accessibility Statement Copyright Legal information Thomas Emlyn is registered in England & Wales. Company Registration Number: 13498885 Facebook Twitter LinkedIn {"prefetch":[{"source":"document","where":{"and":[{"href_matches":"\/*"},{"not":{"href_matches":["\/wp-*.php","\/wp-admin\/*","\/wp-content\/uploads\/*","\/wp-content\/*","\/wp-content\/plugins\/*","\/wp-content\/themes\/sift\/*","\/wp-content\/themes\/Divi\/*","\/*\\?(.+)"]}},{"not":{"selector_matches":"a[rel~=\"nofollow\"]"}},{"not":{"selector_matches":".no-prefetch, .no-prefetch a"}}]},"eagerness":"conservative"}]} jQuery(document).ready(function($) { if($('.menu-item-has-children').find('a') ) { $('.menu-item-has-children').find('a').addClass('da11y-submenu'); $('.menu-item-has-children').find('a').not('.sub-menu a').attr('aria-expanded', 'false'); } $('.da11y-submenu').on('focus', function() { $(this).not('.sub-menu a').attr('aria-expanded', 'true'); $(this).siblings('.sub-menu').addClass('da11y-submenu-show'); $(this).trigger('mouseenter'); }); $('.menu-item-has-children a').on('focusout', function() { if($(this).parent().not('.menu-item-has-children').is(':last-child')) { $(this).parents('.menu-item-has-children').children('.da11y-submenu').attr('aria-expanded', 'false').trigger('mouseleave').siblings('.sub-menu').removeClass('da11y-submenu-show'); } }); /** * Generate search form styles. * * @since Divi v3.0.23 */ function et_set_search_form_css() { const search_container = $('.et_search_form_container'); const body = $('body'); if (search_container.hasClass('et_pb_search_visible')) { const header_height = $('#main-header').innerHeight(); const menu_width = $('#top-menu').width(); const font_size = $('#top-menu li a').css('font-size'); search_container.css({ height: header_height + 'px' }); search_container.find('input').css('font-size', font_size); if (!body.hasClass('et_header_style_left')) { search_container.css('max-width', menu_width + 60); } else { search_container.find('form').css('max-width', menu_width + 60); } } } /** * Show the search. * * @since Divi v3.0.23 */ function show_search() { const search_container = $('.et_search_form_container'); if (search_container.hasClass('et_pb_is_animating')) { return; } $('.et_menu_container').removeClass('et_pb_menu_visible et_pb_no_animation').addClass('et_pb_menu_hidden'); search_container.removeClass('et_pb_search_form_hidden et_pb_no_animation').addClass('et_pb_search_visible et_pb_is_animating'); setTimeout(function () { $('.et_menu_container').addClass('et_pb_no_animation'); search_container.addClass('et_pb_no_animation').removeClass('et_pb_is_animating'); }, 1000); search_container.find('input').focus(); et_set_search_form_css(); } /** * Hide the search. * * @since Divi v3.0.23 */ function hide_search() { if ($('.et_search_form_container').hasClass('et_pb_is_animating')) { return; } $('.et_menu_container').removeClass('et_pb_menu_hidden et_pb_no_animation').addClass('et_pb_menu_visible'); $('.et_search_form_container').removeClass('et_pb_search_visible et_pb_no_animation').addClass('et_pb_search_form_hidden et_pb_is_animating'); setTimeout(function () { $('.et_menu_container').addClass('et_pb_no_animation'); $('.et_search_form_container').addClass('et_pb_no_animation').removeClass('et_pb_is_animating'); }, 1000); } $(this).keyup(function () { $('.et-search-field').focus(function () { show_search(); }).blur(function () { hide_search(); }); }); }); jQuery(document).ready(function($) { /** * Add skiplink to page. */ function skipTo(target) { const skiplink = '<a href="' + target + '" class="skip-link da11y-screen-reader-text">Skip to content</a>'; $(target).attr('tabindex', -1); $('body').prepend(skiplink); } skipTo('#main-content'); /** * Use js to focus for internal links. */ $('a[href^="#"]').click(function () { const content = $('#' + $(this).attr('href').slice(1)); content.focus(); }); }); jQuery(document).ready(function($) { let lastKey = new Date(); let lastClick = new Date(); /** * Only apply focus styles for keyboard usage. */ $(this).on('focusin', function (e) { $('.keyboard-outline').removeClass('keyboard-outline'); const wasByKeyboard = lastClick < lastKey; if (wasByKeyboard) { $(e.target).addClass('keyboard-outline'); } }); $(this).on('mousedown', function () { lastClick = new Date(); }); $(this).on('keydown', function () { lastKey = new Date(); }); }); jQuery(document).ready(function($) { /** * Allow Accordion & Toggle Divi modules to be focusable. * * @divi-module Accordion, Toggle */ $('.et_pb_toggle').each(function () { $(this).attr('tabindex', 0); }); /** * Prevent spacebar from scolling page when toggle & accordion have focus. * * @divi-module Accordion, Toggle */ $('.et_pb_toggle').on('keydown', function(e) { // Spacebar. if (e.which === 32){ e.preventDefault(); } }); /** * Expand Accordion & Toggle modules when enter or spacebar are pressed while focused. * * @divi-module Accordion, Toggle */ $(document).on('keyup', function(e) { // Spacebar & Enter. if (e.which === 13 || e.which === 32) { $('.et_pb_toggle:focus .et_pb_toggle_title').trigger('click'); } }); }); jQuery(document).ready(function($) { /** * Add unique ID to search module input with matching label. * * @divi-module Search */ $('.et-search-field').each(function (e) { $(this).attr('id', 'et_pb_search_module_input_' + e); $('#et_pb_search_module_input_' + e).before('<label class="da11y-screen-reader-text" for="et_pb_search_module_input_' + e + '">Search for...</label>'); $('#et_pb_search_module_input_' + e).after('<button type="submit" class="da11y-screen-reader-text">Search</button>'); }); /** * Add unique ID to contact module input with matching label. * * @divi-module Contact */ $('.et_pb_contact_form').each(function (e) { $(this).find('.et_pb_contact_captcha_question').parent().wrap('<label></label>'); }); /** * Correct labels on social media icons */ $('.et-social-facebook a.icon span').text('Facebook'); $('.et-social-twitter a.icon span').text('Twitter'); $('.et-social-google-plus a.icon span').text('Google Plus'); $('.et-social-pinterest a.icon span').text('Pinterest'); $('.et-social-linkedin a.icon span').text('LinkedIn'); $('.et-social-tumblr a.icon span').text('Tumblr'); $('.et-social-instagram a.icon span').text('Instagram'); $('.et-social-skype a.icon span').text('Skype'); $('.et-social-flikr a.icon span').text('Flickr'); $('.et-social-myspace a.icon span').text('Myspace'); $('.et-social-dribbble a.icon span').text('Dribble'); $('.et-social-youtube a.icon span').text('YouTube'); $('.et-social-vimeo a.icon span').text('Vimeo'); $('.et-social-rss a.icon span').text('RSS'); }); jQuery(document).ready(function($) { /** * Add role="tabList". * * @divi-module Tab */ $('.et_pb_tabs_controls').each(function () { $(this).attr('role', 'tabList'); }); /** * Add role="presentation". * * @divi-module Tab */ $('.et_pb_tabs_controls li').each(function () { $(this).attr('role', 'presentation'); }); /** * Add role="tab". * * @divi-module Tab */ $('.et_pb_tabs_controls a').each(function () { $(this).attr('role', 'tab'); }); /** * Add role="tabpanel". * * @divi-module Tab */ $('.et_pb_tab').each(function () { $(this).attr('role', 'tabpanel'); }); /** * Add initial state: * * aria-selected="false" * aria-expanded="false" * tabindex=-1 * * @divi-module Tab */ $('.et_pb_tabs_controls li:not(.et_pb_tab_active) a').each(function () { $(this).attr({ 'aria-selected': 'false', 'aria-expanded': 'false', tabindex: -1 }); }); /** * Add initial state: * * aria-selected="true" * aria-expanded="true" * tabindex=-1 * * @divi-module Tab */ $('.et_pb_tabs_controls li.et_pb_tab_active a').each(function () { $(this).attr({ 'aria-selected': 'true', 'aria-expanded': 'true', tabindex: 0 }); }); /** * Add unique ID to tab controls. * Add aria-controls="x". * * @divi-module Tab */ $('.et_pb_tabs_controls a').each(function (e) { $(this).attr({ id: 'et_pb_tab_control_' + e, 'aria-controls': 'et_pb_tab_panel_' + e }); }); /** * Add unique ID to tab panels. * Add aria-labelledby="x". * * @divi-module Tab */ $('.et_pb_tab').each(function (e) { $(this).attr({ id: 'et_pb_tab_panel_' + e, 'aria-labelledby': 'et_pb_tab_control_' + e }); }); /** * Set initial inactive tab panels to aria-hidden="false". * * @divi-module Tab */ $('.et_pb_tab.et_pb_active_content').each(function () { $(this).attr('aria-hidden', 'false'); }); /** * Set initial inactive tab panels to aria-hidden="true". * * @divi-module Tab */ $('.et_pb_tab:not(.et_pb_active_content)').each(function () { $(this).attr('aria-hidden', 'true'); }); /** * Add unique ID to tab module. * Need to use data attribute because a regular ID somehow interferes with Divi. * * @divi-module Tab */ $('.et_pb_tabs').each(function (e) { $(this).attr('data-da11y-id', 'et_pb_tab_module_' + e); }); /** * Update aria-selected attribute when tab is clicked or when hitting enter while focused. * * @divi-module Tab */ $('.et_pb_tabs_controls a').on('click', function () { const id = $(this).attr('id'); const namespace = $(this).closest('.et_pb_tabs').attr('data-da11y-id'); // Used as a selector to scope changes to current module. // Reset all tab controls to be aria-selected="false" & aria-expanded="false". $('[data-da11y-id="' + namespace + '"] .et_pb_tabs_controls a').attr({ 'aria-selected': 'false', 'aria-expanded': 'false', tabindex: -1 }); // Make active tab control aria-selected="true" & aria-expanded="true". $(this).attr({ 'aria-selected': 'true', 'aria-expanded': 'true', tabindex: 0 }); // Reset all tabs to be aria-hidden="true". $('#' + namespace + ' .et_pb_tab').attr('aria-hidden', 'true'); // Label active tab panel as aria-hidden="false". $('[aria-labelledby="' + id + '"]').attr('aria-hidden', 'false'); }); // Arrow navigation for tab modules $('.et_pb_tabs_controls a').keyup(function (e) { const namespace = $(this).closest('.et_pb_tabs').attr('data-da11y-id'); const module = $('[data-da11y-id="' + namespace + '"]'); if (e.which === 39) { // Right. const next = module.find('li.et_pb_tab_active').next(); if (next.length > 0) { next.find('a').trigger('click'); } else { module.find('li:first a').trigger('click'); } } else if (e.which === 37) { // Left. const next = module.find('li.et_pb_tab_active').prev(); if (next.length > 0) { next.find('a').trigger('click'); } else { module.find('li:last a').trigger('click'); } } $('.et_pb_tabs_controls a').removeClass('keyboard-outline'); module.find('li.et_pb_tab_active a').addClass('keyboard-outline'); }); /** * Add unique ID to search module. * Need to use data attribute because a regular ID somehow interferes with Divi. * * @divi-module Search */ $('.et_pb_search').each(function (e) { $(this).attr('data-da11y-id', 'et_pb_search_module_' + e); }); /** * Add aria-required="true" to inputs. * * @divi-module Contact Form */ $('[data-required_mark="required"]').each(function () { $(this).attr('aria-required', 'true'); }); /** * Hide hidden error field on contact form. * * @divi-module Contact Form */ $('.et_pb_contactform_validate_field').attr('type', 'hidden'); /** * Add alert role to error or success contact form message * * @divi-module Contact Form */ $('.et-pb-contact-message').attr('role', 'alert'); /** * Add main role to main-content */ $('#main-content').attr('role', 'main'); /** * Add aria-label="x". * * @divi-module Fullwidth header, comment-wrap */ $('.et_pb_fullwidth_header').each(function (e) { $(this).attr('aria-label', 'Wide Header' + e); }); $('#comment-wrap').attr('aria-label', 'Comments'); }); jQuery(document).ready(function($) { /** * Add aria-hidden="true" to all icons */ $('#et_top_search, .et_close_search_field, .et_pb_main_blurb_image').attr('aria-hidden', 'true'); }); jQuery(document).ready(function($) { /** * Mobile menu Aria support. */ $('.mobile_menu_bar_toggle').attr({'role': 'button', 'aria-expanded': 'false', 'tabindex': 0}); $('.mobile_menu_bar_toggle').on('click', function() { if($(this).hasClass('a11y-mobile-menu-open') ) { $(this).removeClass('a11y-mobile-menu-open').attr('aria-expanded', 'false'); } else { $(this).addClass('a11y-mobile-menu-open').attr('aria-expanded', 'true'); } }); }); jQuery(function($){$(".divi-mobile-stop-stacking").each(function(){$(this).parents(".et_pb_row").addClass("divi-mobile-stop-stacking-row")})}); var et_animation_data = [{"class":"et_pb_button_0_tb_header","style":"slideRight","repeat":"once","duration":"1000ms","delay":"0ms","intensity":"10%","starting_opacity":"0%","speed_curve":"ease-in-out"},{"class":"et_pb_sift_breadcrumbs_module_0","style":"fade","repeat":"once","duration":"1000ms","delay":"0ms","intensity":"50%","starting_opacity":"0%","speed_curve":"ease-in-out"},{"class":"et_pb_image_0","style":"slideBottom","repeat":"once","duration":"1000ms","delay":"0ms","intensity":"10%","starting_opacity":"0%","speed_curve":"ease-in-out"},{"class":"et_pb_image_1","style":"slideBottom","repeat":"once","duration":"1000ms","delay":"0ms","intensity":"10%","starting_opacity":"0%","speed_curve":"ease-in-out"},{"class":"et_pb_image_2","style":"slideBottom","repeat":"once","duration":"1000ms","delay":"200ms","intensity":"10%","starting_opacity":"0%","speed_curve":"ease-in-out"},{"class":"et_pb_image_3","style":"slideBottom","repeat":"once","duration":"1000ms","delay":"200ms","intensity":"10%","starting_opacity":"0%","speed_curve":"ease-in-out"},{"class":"et_pb_image_4","style":"slideBottom","repeat":"once","duration":"1000ms","delay":"400ms","intensity":"10%","starting_opacity":"0%","speed_curve":"ease-in-out"},{"class":"et_pb_image_5","style":"fade","repeat":"once","duration":"2000ms","delay":"0ms","intensity":"50%","starting_opacity":"0%","speed_curve":"ease-in-out"},{"class":"et_pb_button_2","style":"slideBottom","repeat":"once","duration":"1000ms","delay":"0ms","intensity":"10%","starting_opacity":"0%","speed_curve":"ease-in-out"},{"class":"et_pb_button_3","style":"slideBottom","repeat":"once","duration":"1000ms","delay":"300ms","intensity":"10%","starting_opacity":"0%","speed_curve":"ease-in-out"}]; jQuery(document).ready(function( $ ) { if ( $('#main-header').length > 0 && $('.et-l--header').length == 0 ) { } else if ( $('.et-l--header').length > 0 && $('#main-header').length == 0 ) { } else { $('.divi-mobile-menu').remove(); $('body').addClass("no-mobile-menu"); } // if .dm-above-layout is on the page, get the height of this element // add it as margin-top to #open-button var dm_above_layout = $(".dm-above-layout"); if (dm_above_layout.length > 0) { var dm_above_layout_height = dm_above_layout.outerHeight(); $("#open-button").css("margin-top", dm_above_layout_height); // add padding to the top of #main-content $("#main-content").css("padding-top", dm_above_layout_height); } $("body").addClass("dm-custom-header"); function check_from_top(){ var scroll = $(window).scrollTop(); if (scroll >= 300) { $("#dm-header").addClass("fixed-header"); $("body").addClass("dm-fixed-header"); } else { $("#dm-header").removeClass("fixed-header"); $("body").removeClass("dm-fixed-header"); } if (scroll >= 50) { $(".dm-not-fixed-scroll #dm-header #et_top_search_mob").removeClass("active"); $("body.dm-not-fixed-scroll").removeClass("search-active"); } } check_from_top(); $(window).scroll(function() { check_from_top(); }); $("body").addClass("dm-bm-pos-right"); $("body").addClass("dm-expand-shape"); $("body").addClass("dm-divi-engine"); $("body").addClass("dm-circle-expand"); $("body").addClass("dm-menuside-right"); var get_one_click = false; jQuery(document).on('touchstart click', ".anchorpoint", function(e){ var _this = jQuery(e.target); if (jQuery("body").hasClass("show-menu")) { jQuery('#open-button').trigger('click'); } var getLink = _this.find('a').attr('href'); var currentUrl = window.location.href; var linkUrlPart = ''; var linkAnchorPart = ''; var currentUrlPart = currentUrl; e.preventDefault(); if(currentUrl.indexOf("#") != -1){ currentUrlPart = getLink.substring(0, getLink.indexOf("#") ); } if(getLink.indexOf("#") == 0){ linkUrlPart = currentUrlPart; linkAnchorPart = getLink.substring(1); }else if (getLink.indexOf("#") != -1 ){ linkUrlPart = getLink.substring(0, getLink.indexOf("#") ); linkAnchorPart = getLink.substring(getLink.indexOf("#")+1); } if ( linkUrlPart == currentUrlPart ){ // Same Url if (jQuery('#' + linkAnchorPart).length) { if ( linkAnchorPart != '' ){ var target_offset = jQuery('#' + linkAnchorPart).offset(); var top = target_offset.top; var header_fixed = "notfixed"; if ( header_fixed == 'fixed' ) { var header_height_scroll = 80; var header_height = 78; var scroll_distance = 300; if ( target_offset.top < scroll_distance ) { if ( target_offset.top < header_height ) { top = 0; } else { top = top - header_height; } } else { top = top - header_height_scroll; } } window.scrollTo({top: top, behavior: "smooth"}); //document.getElementById(linkAnchorPart).scrollIntoView({ behavior: "smooth" }); } } else { window.location.href = getLink; } } else { window.location.href = getLink; } }); }); // check if menu-wrap__inner exists (function () { const menuWrapInner = document.getElementsByClassName("menu-wrap__inner")[0]; if (menuWrapInner && menuWrapInner.children.length > 0) { menuWrapInner.children[0].onscroll = function () { if (this.scrollTop >= 80) { jQuery('body').addClass('menu-wrap-scroll'); } else { jQuery('body').removeClass('menu-wrap-scroll'); } } } })(); jQuery(document).ready(function($){ var isOpen = false; var bodyEl = document.body; $(document).on('click', '#open-button', function(ev){ toggleMenu(ev); }); $(document).on('click', '#close-button', function(ev){ toggleMenu(ev); }) // close the menu element if the target it´s not the menu element or one of its descendants.. $(document).on( 'click', '#et-main-area', function(ev) { var target = $(ev.target); if( isOpen && target !== $('#open-button') ) { toggleMenu(ev); } } ); function toggleMenu(event) { event.stopPropagation(); event.preventDefault(); if( isOpen ) { $(bodyEl).removeClass( 'show-menu' ); $('#open-button').removeClass( 'is-active' ); $( '#dm_nav' ).removeClass( 'active' ); $('#dm-menu').find('.menu-item-has-children').each(function() { $(this).removeClass('visible'); }); setTimeout(function (){ $('#dm_nav').addClass( 'menuclosed' ); }, 800); }else { $(bodyEl).addClass( 'show-menu' ); $('#open-button').addClass( 'is-active' ); $( '#dm_nav' ).addClass( 'active' ); $( '#dm_nav' ).removeClass( 'menuclosed' ); } isOpen = !isOpen; } }); jQuery(document).ready(function( $ ) { $("body").addClass("dm-ch-logo-pos-left"); $("body").addClass("dm-ch-cart-icon-pos-none"); $("body").addClass("dm-ch-search-icon-pos-right"); $("body").addClass("dm-ch-account-icon-pos-none"); $("body").addClass("dm-search-icon-header"); $("#dm-header #et_top_search_mob #et_search_icon").on('touchstart click', function(event) { $("#dm-header #et_top_search_mob").addClass("active"); setTimeout( function() { $("body").addClass("search-active"); }, 500); }); $(document).on('touchstart click', ".search-active #et_top_search_mob #et_search_icon" , function(event){ console.log("added"); $( ".et-search-form" ).submit(); }); $("#dm-header #et_top_search_mob .close").on('touchstart click', function(event) { $("#dm-header #et_top_search_mob").removeClass("active"); $("body").removeClass("search-active"); }); $("body").addClass("dm-not-fixed-scroll"); }); jQuery(document).ready(function($){ $("body").addClass("bc-expand-circle"); var overlayNav = $('.cd-overlay-nav'), overlayContent = $('.cd-overlay-content'), navigation = $('#dm_nav .menu-wrap__inner'), toggleNav = $('#open-button'), burger_bg = $('.menu-wrap'); // Initialize navigation and content layers layerInit(); // Commented this out as when resizing, the animation to open the menu woudld be delayed sometimes even up to 5s - SUP-7777 // $(window).on('resize', function(){ // window.requestAnimationFrame(layerInit); // }); // Open/close the menu and cover layers toggleNav.on('click', function(event) { if (!burger_bg.hasClass('close-nav')) { // It means navigation is not visible yet - open it and animate navigation layer burger_bg.addClass('close-nav'); overlayNav.children('span').velocity({ translateZ: 0, scaleX: 1, scaleY: 1, }, 500, 'easeInCubic', function(){ navigation.addClass('fade-in'); }); } else { // Navigation is open - close it and remove navigation layer burger_bg.removeClass('close-nav'); overlayContent.children('span').velocity({ translateZ: 0, scaleX: 1, scaleY: 1, }, 0, 'easeInCubic', function(){ navigation.removeClass('fade-in'); overlayNav.children('span').velocity({ translateZ: 0, scaleX: 0, scaleY: 0, }, 500); overlayContent.addClass('is-hidden').one('webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend', function(){ overlayContent.children('span').velocity({ translateZ: 0, scaleX: 0, scaleY: 0, }, 500, function(){overlayContent.removeClass('is-hidden')}); }); if ($('html').hasClass('no-csstransitions')) { overlayContent.children('span').velocity({ translateZ: 0, scaleX: 0, scaleY: 0, }, 500, function(){overlayContent.removeClass('is-hidden')}); } }); } }); function layerInit(){ var diameterValue = (Math.sqrt( Math.pow($(window).height(), 2) + Math.pow($(window).width(), 2))*2); overlayNav.children('span').velocity({ scaleX: 0, scaleY: 0, translateZ: 0, }, 50).velocity({ height : diameterValue+'px', width : diameterValue+'px', top : -(diameterValue/2)+'px', left : -(diameterValue/2)+'px', }, 0); overlayContent.children('span').velocity({ scaleX: 0, scaleY: 0, translateZ: 0, }, 50).velocity({ height : diameterValue+'px', width : diameterValue+'px', top : -(diameterValue/2)+'px', left : -(diameterValue/2)+'px', }, 0); } }); jQuery(document).ready(function( $ ) { $("body").addClass("collapse-submenu"); function dm_setup_collapsible_submenus() { var $menu = $('#dm_nav'), top_level_link = '.menu-wrap__inner .menu-item-has-children > a'; $menu.find('a').each(function() { $(this).closest('.menu-item-has-children a').append('<span class="clickthrough"></span>'); var click_through = $(".clickthrough"); if ( $(this).closest('.menu-item').length > 0 && !$(this).siblings('.sub-menu').length ) { $(this).off('touchstart click').on('touchstart click', function(event) { // $("#dm-menu.nav li").removeClass('visible'); $(this).parents('.mobile_nav').trigger('click'); }); } else { } }); } setTimeout(function() { dm_setup_collapsible_submenus(); }, 1200); var click_through = '.clickthrough'; if ($(window).width() < 1200) { var touchmoved; $('.menu-item-has-children').on('touchend click', click_through, function(e) { if(touchmoved != true){ e.preventDefault(); e.stopPropagation(); $(this).closest('.menu-item').siblings().removeClass('visible'); $(this).closest('.menu-item').toggleClass('visible'); setTimeout(function() { jQuery('.menu-item').removeClass('et-hover'); jQuery('.menu-item').removeClass('et-touch-hover'); }, 800); } }).on('touchmove', click_through, function(e) { touchmoved = true; }).on('touchstart', click_through, function(e) { touchmoved = false; }); } else { $('body').on('touchstart click', click_through, function(e) { e.preventDefault(); e.stopPropagation(); $(this).closest('.menu-item').siblings().removeClass('visible'); $(this).closest('.menu-item').toggleClass('visible'); setTimeout(function() { jQuery('.menu-item').removeClass('et-hover'); jQuery('.menu-item').removeClass('et-touch-hover'); }, 800); }); } $("#dm_nav .menu-item").on("touchstart", 'a',function(e) { touchmoved = false; //var addressValue = $(this).attr("href"); //window.location.href = addressValue; }).on("touchmove", 'a', function(e){ touchmoved = true; }).on("touchend click", 'a', function(e){ if ( touchmoved != true ){ e.preventDefault(); e.stopPropagation(); var addressValue = $(this).attr("href"); var addresstarget = $(this).attr('target'); if (addresstarget == "_blank") { window.open(addressValue, '_blank'); } else { window.location.href = addressValue; } } }); }); /* <![CDATA[ */ jQuery(".divi-mobile-stop-stacking").closest(".et_pb_row").addClass("divi-mobile-stop-stacking-row"); /* ]]> */ /* <![CDATA[ */ var monarchSettings = {"ajaxurl":"https:\/\/www.thomasemlyn.co.uk\/wp-admin\/admin-ajax.php","pageurl":"https:\/\/www.thomasemlyn.co.uk\/contact\/","stats_nonce":"f90a649ebc","share_counts":"414b2649ae","follow_counts":"87e76b0f87","total_counts":"e148e40113","media_single":"6108dda42d","media_total":"3f24340e91","generate_all_window_nonce":"10b69e249e","no_img_message":"No images available for sharing on this page"}; /* ]]> */ /* <![CDATA[ */ "use strict";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){return protoProps&&defineProperties(Constructor.prototype,protoProps),staticProps&&defineProperties(Constructor,staticProps),Constructor}}();function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}var RocketBrowserCompatibilityChecker=function(){function RocketBrowserCompatibilityChecker(options){_classCallCheck(this,RocketBrowserCompatibilityChecker),this.passiveSupported=!1,this._checkPassiveOption(this),this.options=!!this.passiveSupported&&options}return _createClass(RocketBrowserCompatibilityChecker,[{key:"_checkPassiveOption",value:function(self){try{var options={get passive(){return!(self.passiveSupported=!0)}};window.addEventListener("test",null,options),window.removeEventListener("test",null,options)}catch(err){self.passiveSupported=!1}}},{key:"initRequestIdleCallback",value:function(){!1 in window&&(window.requestIdleCallback=function(cb){var start=Date.now();return setTimeout(function(){cb({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-start))}})},1)}),!1 in window&&(window.cancelIdleCallback=function(id){return clearTimeout(id)})}},{key:"isDataSaverModeOn",value:function(){return"connection"in navigator&&!0===navigator.connection.saveData}},{key:"supportsLinkPrefetch",value:function(){var elem=document.createElement("link");return elem.relList&&elem.relList.supports&&elem.relList.supports("prefetch")&&window.IntersectionObserver&&"isIntersecting"in IntersectionObserverEntry.prototype}},{key:"isSlowConnection",value:function(){return"connection"in navigator&&"effectiveType"in navigator.connection&&("2g"===navigator.connection.effectiveType||"slow-2g"===navigator.connection.effectiveType)}}]),RocketBrowserCompatibilityChecker}(); /* ]]> */ /* <![CDATA[ */ var RocketPreloadLinksConfig = {"excludeUris":"\/(?:.+\/)?feed(?:\/(?:.+\/?)?)?$|\/(?:.+\/)?embed\/|\/(index.php\/)?(.*)wp-json(\/.*|$)|\/refer\/|\/go\/|\/recommend\/|\/recommends\/","usesTrailingSlash":"1","imageExt":"jpg|jpeg|gif|png|tiff|bmp|webp|avif|pdf|doc|docx|xls|xlsx|php","fileExt":"jpg|jpeg|gif|png|tiff|bmp|webp|avif|pdf|doc|docx|xls|xlsx|php|html|htm","siteUrl":"https:\/\/www.thomasemlyn.co.uk","onHoverDelay":"100","rateThrottle":"3"}; /* ]]> */ /* <![CDATA[ */ (function() { "use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e=function(){function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}}();function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var t=function(){function n(e,t){i(this,n),this.browser=e,this.config=t,this.options=this.browser.options,this.prefetched=new Set,this.eventTime=null,this.threshold=1111,this.numOnHover=0}return e(n,[{key:"init",value:function(){!this.browser.supportsLinkPrefetch()||this.browser.isDataSaverModeOn()||this.browser.isSlowConnection()||(this.regex={excludeUris:RegExp(this.config.excludeUris,"i"),images:RegExp(".("+this.config.imageExt+")$","i"),fileExt:RegExp(".("+this.config.fileExt+")$","i")},this._initListeners(this))}},{key:"_initListeners",value:function(e){-1<this.config.onHoverDelay&&document.addEventListener("mouseover",e.listener.bind(e),e.listenerOptions),document.addEventListener("mousedown",e.listener.bind(e),e.listenerOptions),document.addEventListener("touchstart",e.listener.bind(e),e.listenerOptions)}},{key:"listener",value:function(e){var t=e.target.closest("a"),n=this._prepareUrl(t);if(null!==n)switch(e.type){case"mousedown":case"touchstart":this._addPrefetchLink(n);break;case"mouseover":this._earlyPrefetch(t,n,"mouseout")}}},{key:"_earlyPrefetch",value:function(t,e,n){var i=this,r=setTimeout(function(){if(r=null,0===i.numOnHover)setTimeout(function(){return i.numOnHover=0},1e3);else if(i.numOnHover>i.config.rateThrottle)return;i.numOnHover++,i._addPrefetchLink(e)},this.config.onHoverDelay);t.addEventListener(n,function e(){t.removeEventListener(n,e,{passive:!0}),null!==r&&(clearTimeout(r),r=null)},{passive:!0})}},{key:"_addPrefetchLink",value:function(i){return this.prefetched.add(i.href),new Promise(function(e,t){var n=document.createElement("link");n.rel="prefetch",n.href=i.href,n.onload=e,n.onerror=t,document.head.appendChild(n)}).catch(function(){})}},{key:"_prepareUrl",value:function(e){if(null===e||"object"!==(void 0===e?"undefined":r(e))||!1 in e||-1===["http:","https:"].indexOf(e.protocol))return null;var t=e.href.substring(0,this.config.siteUrl.length),n=this._getPathname(e.href,t),i={original:e.href,protocol:e.protocol,origin:t,pathname:n,href:t+n};return this._isLinkOk(i)?i:null}},{key:"_getPathname",value:function(e,t){var n=t?e.substring(this.config.siteUrl.length):e;return n.startsWith("/")||(n="/"+n),this._shouldAddTrailingSlash(n)?n+"/":n}},{key:"_shouldAddTrailingSlash",value:function(e){return this.config.usesTrailingSlash&&!e.endsWith("/")&&!this.regex.fileExt.test(e)}},{key:"_isLinkOk",value:function(e){return null!==e&&"object"===(void 0===e?"undefined":r(e))&&(!this.prefetched.has(e.href)&&e.origin===this.config.siteUrl&&-1===e.href.indexOf("?")&&-1===e.href.indexOf("#")&&!this.regex.excludeUris.test(e.href)&&!this.regex.images.test(e.href))}}],[{key:"run",value:function(){"undefined"!=typeof RocketPreloadLinksConfig&&new n(new RocketBrowserCompatibilityChecker({capture:!0,passive:!0}),RocketPreloadLinksConfig).init()}}]),n}();t.run(); }()); /* ]]> */ /* <![CDATA[ */ var DIVI = {"item_count":"%d Item","items_count":"%d Items"}; var et_builder_utils_params = {"condition":{"diviTheme":true,"extraTheme":false},"scrollLocations":["app","top"],"builderScrollLocations":{"desktop":"app","tablet":"app","phone":"app"},"onloadScrollLocation":"app","builderType":"fe"}; var et_frontend_scripts = {"builderCssContainerPrefix":"#et-boc","builderCssLayoutPrefix":"#et-boc .et-l"}; var et_pb_custom = {"ajaxurl":"https:\/\/www.thomasemlyn.co.uk\/wp-admin\/admin-ajax.php","images_uri":"https:\/\/www.thomasemlyn.co.uk\/wp-content\/themes\/Divi\/images","builder_images_uri":"https:\/\/www.thomasemlyn.co.uk\/wp-content\/themes\/Divi\/includes\/builder\/images","et_frontend_nonce":"d6b6c10182","subscription_failed":"Please, check the fields below to make sure you entered the correct information.","et_ab_log_nonce":"746f6e0fa9","fill_message":"Please, fill in the following fields:","contact_error_message":"Please, fix the following errors:","invalid":"Invalid email","captcha":"Captcha","prev":"Prev","previous":"Previous","next":"Next","wrong_captcha":"You entered the wrong number in captcha.","wrong_checkbox":"Checkbox","ignore_waypoints":"no","is_divi_theme_used":"1","widget_search_selector":".widget_search","ab_tests":[],"is_ab_testing_active":"","page_id":"485","unique_test_id":"","ab_bounce_rate":"5","is_cache_plugin_active":"yes","is_shortcode_tracking":"","tinymce_uri":"https:\/\/www.thomasemlyn.co.uk\/wp-content\/themes\/Divi\/includes\/builder\/frontend-builder\/assets\/vendors","accent_color":"#1e73be","waypoints_options":[]}; var et_pb_box_shadow_elements = []; /* ]]> */ /* <![CDATA[ */ var nfi18n = {"ninjaForms":"Ninja Forms","changeEmailErrorMsg":"Please enter a valid email address!","changeDateErrorMsg":"Please enter a valid date!","confirmFieldErrorMsg":"These fields must match!","fieldNumberNumMinError":"Number Min Error","fieldNumberNumMaxError":"Number Max Error","fieldNumberIncrementBy":"Please increment by ","fieldTextareaRTEInsertLink":"Insert Link","fieldTextareaRTEInsertMedia":"Insert Media","fieldTextareaRTESelectAFile":"Select a file","formErrorsCorrectErrors":"Please correct errors before submitting this form.","formHoneypot":"If you are a human seeing this field, please leave it empty.","validateRequiredField":"This is a required field.","honeypotHoneypotError":"Honeypot Error","fileUploadOldCodeFileUploadInProgress":"File Upload in Progress.","fileUploadOldCodeFileUpload":"FILE UPLOAD","currencySymbol":"$","fieldsMarkedRequired":"Fields marked with an <span class=\"ninja-forms-req-symbol\">*<\/span> are required","thousands_sep":",","decimal_point":".","siteLocale":"en_GB","dateFormat":"m\/d\/Y","startOfWeek":"1","of":"of","previousMonth":"Previous Month","nextMonth":"Next Month","months":["January","February","March","April","May","June","July","August","September","October","November","December"],"monthsShort":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"weekdays":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],"weekdaysShort":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"weekdaysMin":["Su","Mo","Tu","We","Th","Fr","Sa"],"recaptchaConsentMissing":"reCaptcha validation couldn't load.","recaptchaMissingCookie":"reCaptcha v3 validation couldn't load the cookie needed to submit the form.","recaptchaConsentEvent":"Accept reCaptcha cookies before sending the form."}; var nfFrontEnd = {"adminAjax":"https:\/\/www.thomasemlyn.co.uk\/wp-admin\/admin-ajax.php","ajaxNonce":"f8db795796","requireBaseUrl":"https:\/\/www.thomasemlyn.co.uk\/wp-content\/plugins\/ninja-forms\/assets\/js\/","use_merge_tags":{"user":{"address":"address","textbox":"textbox","button":"button","checkbox":"checkbox","city":"city","confirm":"confirm","date":"date","email":"email","firstname":"firstname","html":"html","hcaptcha":"hcaptcha","hidden":"hidden","lastname":"lastname","listcheckbox":"listcheckbox","listcountry":"listcountry","listimage":"listimage","listmultiselect":"listmultiselect","listradio":"listradio","listselect":"listselect","liststate":"liststate","note":"note","number":"number","password":"password","passwordconfirm":"passwordconfirm","product":"product","quantity":"quantity","recaptcha":"recaptcha","recaptcha_v3":"recaptcha_v3","repeater":"repeater","shipping":"shipping","signature":"signature","spam":"spam","starrating":"starrating","submit":"submit","terms":"terms","textarea":"textarea","total":"total","turnstile":"turnstile","unknown":"unknown","zip":"zip","hr":"hr","file_upload":"file_upload","user-analytics-browser":"user-analytics-browser","user-analytics-browser-version":"user-analytics-browser-version","user-analytics-ip-address":"user-analytics-ip-address","user-analytics-os":"user-analytics-os","user-analytics-referer":"user-analytics-referer","user-analytics-utm-campaign":"user-analytics-utm-campaign","user-analytics-utm-content":"user-analytics-utm-content","user-analytics-utm-medium":"user-analytics-utm-medium","user-analytics-utm-source":"user-analytics-utm-source","user-analytics-utm-term":"user-analytics-utm-term"},"post":{"address":"address","textbox":"textbox","button":"button","checkbox":"checkbox","city":"city","confirm":"confirm","date":"date","email":"email","firstname":"firstname","html":"html","hcaptcha":"hcaptcha","hidden":"hidden","lastname":"lastname","listcheckbox":"listcheckbox","listcountry":"listcountry","listimage":"listimage","listmultiselect":"listmultiselect","listradio":"listradio","listselect":"listselect","liststate":"liststate","note":"note","number":"number","password":"password","passwordconfirm":"passwordconfirm","product":"product","quantity":"quantity","recaptcha":"recaptcha","recaptcha_v3":"recaptcha_v3","repeater":"repeater","shipping":"shipping","signature":"signature","spam":"spam","starrating":"starrating","submit":"submit","terms":"terms","textarea":"textarea","total":"total","turnstile":"turnstile","unknown":"unknown","zip":"zip","hr":"hr","file_upload":"file_upload","user-analytics-browser":"user-analytics-browser","user-analytics-browser-version":"user-analytics-browser-version","user-analytics-ip-address":"user-analytics-ip-address","user-analytics-os":"user-analytics-os","user-analytics-referer":"user-analytics-referer","user-analytics-utm-campaign":"user-analytics-utm-campaign","user-analytics-utm-content":"user-analytics-utm-content","user-analytics-utm-medium":"user-analytics-utm-medium","user-analytics-utm-source":"user-analytics-utm-source","user-analytics-utm-term":"user-analytics-utm-term"},"system":{"address":"address","textbox":"textbox","button":"button","checkbox":"checkbox","city":"city","confirm":"confirm","date":"date","email":"email","firstname":"firstname","html":"html","hcaptcha":"hcaptcha","hidden":"hidden","lastname":"lastname","listcheckbox":"listcheckbox","listcountry":"listcountry","listimage":"listimage","listmultiselect":"listmultiselect","listradio":"listradio","listselect":"listselect","liststate":"liststate","note":"note","number":"number","password":"password","passwordconfirm":"passwordconfirm","product":"product","quantity":"quantity","recaptcha":"recaptcha","recaptcha_v3":"recaptcha_v3","repeater":"repeater","shipping":"shipping","signature":"signature","spam":"spam","starrating":"starrating","submit":"submit","terms":"terms","textarea":"textarea","total":"total","turnstile":"turnstile","unknown":"unknown","zip":"zip","hr":"hr","file_upload":"file_upload","user-analytics-browser":"user-analytics-browser","user-analytics-browser-version":"user-analytics-browser-version","user-analytics-ip-address":"user-analytics-ip-address","user-analytics-os":"user-analytics-os","user-analytics-referer":"user-analytics-referer","user-analytics-utm-campaign":"user-analytics-utm-campaign","user-analytics-utm-content":"user-analytics-utm-content","user-analytics-utm-medium":"user-analytics-utm-medium","user-analytics-utm-source":"user-analytics-utm-source","user-analytics-utm-term":"user-analytics-utm-term"},"fields":{"address":"address","textbox":"textbox","button":"button","checkbox":"checkbox","city":"city","confirm":"confirm","date":"date","email":"email","firstname":"firstname","html":"html","hcaptcha":"hcaptcha","hidden":"hidden","lastname":"lastname","listcheckbox":"listcheckbox","listcountry":"listcountry","listimage":"listimage","listmultiselect":"listmultiselect","listradio":"listradio","listselect":"listselect","liststate":"liststate","note":"note","number":"number","password":"password","passwordconfirm":"passwordconfirm","product":"product","quantity":"quantity","recaptcha":"recaptcha","recaptcha_v3":"recaptcha_v3","repeater":"repeater","shipping":"shipping","signature":"signature","spam":"spam","starrating":"starrating","submit":"submit","terms":"terms","textarea":"textarea","total":"total","turnstile":"turnstile","unknown":"unknown","zip":"zip","hr":"hr","file_upload":"file_upload","user-analytics-browser":"user-analytics-browser","user-analytics-browser-version":"user-analytics-browser-version","user-analytics-ip-address":"user-analytics-ip-address","user-analytics-os":"user-analytics-os","user-analytics-referer":"user-analytics-referer","user-analytics-utm-campaign":"user-analytics-utm-campaign","user-analytics-utm-content":"user-analytics-utm-content","user-analytics-utm-medium":"user-analytics-utm-medium","user-analytics-utm-source":"user-analytics-utm-source","user-analytics-utm-term":"user-analytics-utm-term"},"calculations":{"html":"html","hidden":"hidden","note":"note","unknown":"unknown","user-analytics-browser":"user-analytics-browser","user-analytics-browser-version":"user-analytics-browser-version","user-analytics-ip-address":"user-analytics-ip-address","user-analytics-os":"user-analytics-os","user-analytics-referer":"user-analytics-referer","user-analytics-utm-campaign":"user-analytics-utm-campaign","user-analytics-utm-content":"user-analytics-utm-content","user-analytics-utm-medium":"user-analytics-utm-medium","user-analytics-utm-source":"user-analytics-utm-source","user-analytics-utm-term":"user-analytics-utm-term"}},"opinionated_styles":"","filter_esc_status":"false","nf_consent_status_response":[]}; var nfInlineVars = []; /* ]]> */ /* <![CDATA[ */ var nfMPSettings = {"prevLabel":"Previous","nextLabel":"Next"}; /* ]]> */ /* <![CDATA[ */ var et_pb_motion_elements = {"desktop":[],"tablet":[],"phone":[]}; /* ]]> */ /* <![CDATA[ */ var et_pb_sticky_elements = []; /* ]]> */ <span id="nf-form-title-{{{ data.id }}}" class="nf-form-title"> {{{ ( 1 == data.settings.show_title ) ? '<h' + data.settings.form_title_heading_level + '>' + data.settings.title + '</h' + data.settings.form_title_heading_level + '>' : '' }}} </span> <div class="nf-form-wrap ninja-forms-form-wrap"> <div class="nf-response-msg"></div> <div class="nf-debug-msg"></div> <div class="nf-before-form"></div> <div class="nf-form-layout"></div> <div class="nf-after-form"></div> </div> {{{ data.beforeForm }}} {{{ data.afterForm }}} <div class="nf-form-fields-required">{{{ data.renderFieldsMarkedRequired() }}}</div> {{{ data.beforeFields }}} {{{ data.afterFields }}} <div id="nf-form-errors-{{{ data.id }}}" class="nf-form-errors" role="alert"></div> <div class="nf-form-hp"></div> {{{ data.beforeField }}} {{{ data.afterField }}} <form> <div> <div class="nf-before-form-content"></div> <div class="nf-form-content {{{ data.element_class }}}"></div> <div class="nf-after-form-content"></div> </div> </form> <label id="nf-label-field-hp-{{{ data.id }}}" for="nf-field-hp-{{{ data.id }}}" aria-hidden="true"> {{{ nfi18n.formHoneypot }}} <input id="nf-field-hp-{{{ data.id }}}" name="nf-field-hp" class="nf-element nf-field-hp" type="text" value="" aria-labelledby="nf-label-field-hp-{{{ data.id }}}" /> </label> <div id="nf-field-{{{ data.id }}}-container" class="nf-field-container {{{ data.type }}}-container {{{ data.renderContainerClass() }}}"> <div class="nf-before-field"></div> <div class="nf-field"></div> <div class="nf-after-field"></div> </div> {{{ data.beforeField }}} <# /* * Render our input limit section if that setting exists. */ #> <div class="nf-input-limit"></div> <# /* * Render our error section if we have an error. */ #> <div id="nf-error-{{{ data.id }}}" class="nf-error-wrap nf-error" role="alert" aria-live="assertive"></div> <# /* * Render any custom HTML after our field. */ #> {{{ data.afterField }}} <div id="nf-field-{{{ data.id }}}-wrap" class="{{{ data.renderWrapClass() }}}" data-field-id="{{{ data.id }}}"> <# /* * This is our main field template. It's called for every field type. * Note that must have ONE top-level, wrapping element. i.e. a div/span/etc that wraps all of the template. */ #> <# /* * Render our label. */ #> {{{ data.renderLabel() }}} <# /* * Render our field element. Uses the template for the field being rendered. */ #> <div class="nf-field-element">{{{ data.renderElement() }}}</div> <# /* * Render our Description Text. */ #> {{{ data.renderDescText() }}} </div> <div id="nf-field-{{{ data.id }}}-wrap" class="{{{ data.renderWrapClass() }}}" data-field-id="{{{ data.id }}}"> <div class="nf-field-label"></div> <div class="nf-field-element">{{{ data.renderElement() }}}</div> <div class="nf-error-wrap"></div> </div> {{{ data.renderElement() }}} <div class="nf-error-wrap"></div> <div class="nf-field-label"> <# if ( data.type === "listcheckbox" || data.type === "listradio" || data.type === "listimage" || data.type === "date" || data.type === "starrating" || data.type === "signature" || data.type === "html" || data.type === "hr" ) { #> <span id="nf-label-field-{{{ data.id }}}" class="nf-label-span {{{ data.renderLabelClasses() }}}"> {{{ ( data.maybeFilterHTML() === 'true' ) ? _.escape( data.label ) : data.label }}} {{{ ( 'undefined' != typeof data.required && 1 == data.required ) ? '<span class="ninja-forms-req-symbol">*</span>' : '' }}} {{{ data.maybeRenderHelp() }}} </span> <# } else { #> <label for="nf-field-{{{ data.id }}}" id="nf-label-field-{{{ data.id }}}" class="{{{ data.renderLabelClasses() }}}"> {{{ ( data.maybeFilterHTML() === 'true' ) ? _.escape( data.label ) : data.label }}} {{{ ( 'undefined' != typeof data.required && 1 == data.required ) ? '<span class="ninja-forms-req-symbol">*</span>' : '' }}} {{{ data.maybeRenderHelp() }}} </label> <# } #> </div> <div class="nf-error-msg nf-error-{{{ data.id }}}" aria-live="assertive">{{{ data.msg }}}</div> <div class="nf-error-msg nf-error-{{{ data.id }}}">{{{ data.msg }}}</div> {{{ data.currentCount() }}} {{{ nfi18n.of }}} {{{ data.input_limit }}} {{{ data.input_limit_msg }}} <input type="text" value="{{{ _.escape( data.value ) }}}" class="{{{ data.renderClasses() }}} nf-element" {{{ data.renderPlaceholder() }}} {{{ data.maybeDisabled() }}} {{{ data.maybeInputLimit() }}} id="nf-field-{{{ data.id }}}" name="{{ data.custom_name_attribute || 'nf-field-' + data.id + '-' + data.type }}" {{{ data.maybeDisableAutocomplete() }}} aria-invalid="false" aria-describedby="<# if( data.desc_text ) { #>nf-description-{{{ data.id }}} <# } #>nf-error-{{{ data.id }}}" aria-labelledby="nf-label-field-{{{ data.id }}}" {{{ data.maybeRequired() }}} > <input id="nf-field-{{{ data.id }}}" name="nf-field-{{{ data.id }}}" aria-invalid="false" aria-describedby="<# if( data.desc_text ) { #>nf-description-{{{ data.id }}} <# } #>nf-error-{{{ data.id }}}" class="{{{ data.renderClasses() }}} nf-element" type="text" value="{{{ _.escape( data.value ) }}}" {{{ data.renderPlaceholder() }}} {{{ data.maybeDisabled() }}} aria-labelledby="nf-label-field-{{{ data.id }}}" {{{ data.maybeRequired() }}} > <input type="text" value="{{{ _.escape( data.value ) }}}" class="{{{ data.renderClasses() }}} nf-element" id="nf-field-{{{ data.id }}}" name="{{ data.custom_name_attribute || 'nf-field-' + data.id + '-' + data.type }}" {{{ data.maybeDisableAutocomplete() }}} {{{ data.renderPlaceholder() }}} aria-invalid="false" aria-describedby="<# if( data.desc_text ) { #>nf-description-{{{ data.id }}} <# } #>nf-error-{{{ data.id }}}" aria-labelledby="nf-label-field-{{{ data.id }}}" {{{ data.maybeRequired() }}} > <input type="email" value="{{{ _.escape( data.value ) }}}" class="{{{ data.renderClasses() }}} nf-element" id="nf-field-{{{ data.id }}}" name="{{ data.custom_name_attribute || 'nf-field-' + data.id + '-' + data.type }}" {{{data.maybeDisableAutocomplete()}}} {{{ data.renderPlaceholder() }}} {{{ data.maybeDisabled() }}} aria-invalid="false" aria-describedby="<# if( data.desc_text ) { #>nf-description-{{{ data.id }}} <# } #>nf-error-{{{ data.id }}}" aria-labelledby="nf-label-field-{{{ data.id }}}" {{{ data.maybeRequired() }}} > <textarea id="nf-field-{{{ data.id }}}" name="nf-field-{{{ data.id }}}" aria-invalid="false" aria-describedby="<# if( data.desc_text ) { #>nf-description-{{{ data.id }}} <# } #>nf-error-{{{ data.id }}}" class="{{{ data.renderClasses() }}} nf-element" {{{ data.renderPlaceholder() }}} {{{ data.maybeDisabled() }}} {{{ data.maybeDisableAutocomplete() }}} {{{ data.maybeInputLimit() }}} aria-labelledby="nf-label-field-{{{ data.id }}}" {{{ data.maybeRequired() }}} >{{{ _.escape( data.value ) }}}</textarea> <span class="dashicons dashicons-admin-media"></span> <span class="dashicons dashicons-admin-links"></span> <span class="dashicons dashicons-editor-unlink"></span> <div class="summernote-link"> URL <input type="url" class="widefat code link-url"> <br /> Text <input type="url" class="widefat code link-text"> <br /> <label> <input type="checkbox" class="link-new-window"> {{{ nfi18n.fieldsTextareaOpenNewWindow }}} </label> <input type="button" class="cancel-link extra" value="Cancel"> <input type="button" class="insert-link extra" value="Insert"> </div> <input id="nf-field-{{{ data.id }}}" name="nf-field-{{{ data.id }}}" class="{{{ data.renderClasses() }}} nf-element" type="hidden" value="{{{ data.value }}}" /> <div class="g-recaptcha" data-callback="nf_recaptcha_response_{{{ data.id }}}" data-theme="{{{ data.theme }}}" data-sitekey="{{{ data.site_key }}}" data-fieldid="{{{ data.id }}}" {{{ ( "invisible" == data.size ) ? 'data-size="invisible"' : '' }}}></div> <# let myType = data.type if('save'== data.type){ myType = 'button' } #> <input id="nf-field-{{{ data.id }}}" class="{{{ data.renderClasses() }}} nf-element " type="{{{myType}}}" value="{{{ ( data.maybeFilterHTML() === 'true' ) ? _.escape( data.label ) : data.label }}}" {{{ ( data.disabled ) ? 'aria-disabled="true" disabled="true"' : '' }}}> <button id="nf-field-{{{ data.id }}}" name="nf-field-{{{ data.id }}}" class="{{{ data.classes }}} nf-element"> {{{ ( data.maybeFilterHTML() === 'true' ) ? _.escape( data.label ) : data.label }}} </button> window.lazyLoadOptions=[{elements_selector:"img[data-lazy-src],.rocket-lazyload,iframe[data-lazy-src]",data_src:"lazy-src",data_srcset:"lazy-srcset",data_sizes:"lazy-sizes",class_loading:"lazyloading",class_loaded:"lazyloaded",threshold:300,callback_loaded:function(element){if(element.tagName==="IFRAME"&&element.dataset.rocketLazyload=="fitvidscompatible"){if(element.classList.contains("lazyloaded")){if(typeof window.jQuery!="undefined"){if(jQuery.fn.fitVids){jQuery(element).parent().fitVids()}}}}}},{elements_selector:".rocket-lazyload",data_src:"lazy-src",data_srcset:"lazy-srcset",data_sizes:"lazy-sizes",class_loading:"lazyloading",class_loaded:"lazyloaded",threshold:300,}];window.addEventListener('LazyLoad::Initialized',function(e){var lazyLoadInstance=e.detail.instance;if(window.MutationObserver){var observer=new MutationObserver(function(mutations){var image_count=0;var iframe_count=0;var rocketlazy_count=0;mutations.forEach(function(mutation){for(var i=0;i<mutation.addedNodes.length;i++){if(typeof mutation.addedNodes[i].getElementsByTagName!=='function'){continue} if(typeof mutation.addedNodes[i].getElementsByClassName!=='function'){continue} images=mutation.addedNodes[i].getElementsByTagName('img');is_image=mutation.addedNodes[i].tagName=="IMG";iframes=mutation.addedNodes[i].getElementsByTagName('iframe');is_iframe=mutation.addedNodes[i].tagName=="IFRAME";rocket_lazy=mutation.addedNodes[i].getElementsByClassName('rocket-lazyload');image_count+=images.length;iframe_count+=iframes.length;rocketlazy_count+=rocket_lazy.length;if(is_image){image_count+=1} if(is_iframe){iframe_count+=1}}});if(image_count>0||iframe_count>0||rocketlazy_count>0){lazyLoadInstance.update()}});var b=document.getElementsByTagName("body")[0];var config={childList:!0,subtree:!0};observer.observe(b,config)}},!1)
https://thomasemlyn.co.uk/about/careers
Status: 200
Emails: info@thomasemlyn.co.uk
View text
About Our process Partner network Careers Services Accounts Bookkeeping Business consultancy CIS Cloud accounting & Xero Company formation Secretarial Helping your business grow Payroll & P11D R&D tax relief Personal tax VAT Packages Virtual Finance Office (VFO) Elevate – For Ambitious Construction Business Owners Sectors Construction Property Growing businesses Resources Blogs Dates and deadlines Business news Calculators Contact About Our process Partner network Careers Services Accounts Bookkeeping Business consultancy CIS Cloud accounting & Xero Company formation Secretarial Helping your business grow Payroll & P11D R&D tax relief Personal tax VAT Packages Virtual Finance Office (VFO) Elevate – For Ambitious Construction Business Owners Sectors Construction Property Growing businesses Resources Blogs Dates and deadlines Business news Calculators Contact Book a call Careers Home • About • Careers Aim for excellence We pride ourselves on the hard work and dedication our team shows on a daily basis. But that doesn’t mean we’re not looking for some bright new talent to join the ranks. If you have the same drive and passion for delivering the best support possible for a client, look through our vacancies. Let’s grow together. Send us your CV Apr 28, 2023We are always looking to hear from talented and driven individuals. Send us your CV to be considered for any upcoming opportunities. read more Growth on your mind? Let’s talk We’ll chat about your business, your future, and your aspirations. And then we’ll help you get there. Contact us Book a call Contact us 01245 801611 info@thomasemlyn.co.uk 7 Bellefield House 104 New London Road Chelmsford Essex CM2 0DG Useful linksTerms & Conditions Privacy Statement & Cookie Policy Cookie Information Accessibility Statement Copyright Legal information Thomas Emlyn is registered in England & Wales. Company Registration Number: 13498885 Facebook Twitter LinkedIn {"prefetch":[{"source":"document","where":{"and":[{"href_matches":"\/*"},{"not":{"href_matches":["\/wp-*.php","\/wp-admin\/*","\/wp-content\/uploads\/*","\/wp-content\/*","\/wp-content\/plugins\/*","\/wp-content\/themes\/sift\/*","\/wp-content\/themes\/Divi\/*","\/*\\?(.+)"]}},{"not":{"selector_matches":"a[rel~=\"nofollow\"]"}},{"not":{"selector_matches":".no-prefetch, .no-prefetch a"}}]},"eagerness":"conservative"}]} jQuery(document).ready(function($) { if($('.menu-item-has-children').find('a') ) { $('.menu-item-has-children').find('a').addClass('da11y-submenu'); $('.menu-item-has-children').find('a').not('.sub-menu a').attr('aria-expanded', 'false'); } $('.da11y-submenu').on('focus', function() { $(this).not('.sub-menu a').attr('aria-expanded', 'true'); $(this).siblings('.sub-menu').addClass('da11y-submenu-show'); $(this).trigger('mouseenter'); }); $('.menu-item-has-children a').on('focusout', function() { if($(this).parent().not('.menu-item-has-children').is(':last-child')) { $(this).parents('.menu-item-has-children').children('.da11y-submenu').attr('aria-expanded', 'false').trigger('mouseleave').siblings('.sub-menu').removeClass('da11y-submenu-show'); } }); /** * Generate search form styles. * * @since Divi v3.0.23 */ function et_set_search_form_css() { const search_container = $('.et_search_form_container'); const body = $('body'); if (search_container.hasClass('et_pb_search_visible')) { const header_height = $('#main-header').innerHeight(); const menu_width = $('#top-menu').width(); const font_size = $('#top-menu li a').css('font-size'); search_container.css({ height: header_height + 'px' }); search_container.find('input').css('font-size', font_size); if (!body.hasClass('et_header_style_left')) { search_container.css('max-width', menu_width + 60); } else { search_container.find('form').css('max-width', menu_width + 60); } } } /** * Show the search. * * @since Divi v3.0.23 */ function show_search() { const search_container = $('.et_search_form_container'); if (search_container.hasClass('et_pb_is_animating')) { return; } $('.et_menu_container').removeClass('et_pb_menu_visible et_pb_no_animation').addClass('et_pb_menu_hidden'); search_container.removeClass('et_pb_search_form_hidden et_pb_no_animation').addClass('et_pb_search_visible et_pb_is_animating'); setTimeout(function () { $('.et_menu_container').addClass('et_pb_no_animation'); search_container.addClass('et_pb_no_animation').removeClass('et_pb_is_animating'); }, 1000); search_container.find('input').focus(); et_set_search_form_css(); } /** * Hide the search. * * @since Divi v3.0.23 */ function hide_search() { if ($('.et_search_form_container').hasClass('et_pb_is_animating')) { return; } $('.et_menu_container').removeClass('et_pb_menu_hidden et_pb_no_animation').addClass('et_pb_menu_visible'); $('.et_search_form_container').removeClass('et_pb_search_visible et_pb_no_animation').addClass('et_pb_search_form_hidden et_pb_is_animating'); setTimeout(function () { $('.et_menu_container').addClass('et_pb_no_animation'); $('.et_search_form_container').addClass('et_pb_no_animation').removeClass('et_pb_is_animating'); }, 1000); } $(this).keyup(function () { $('.et-search-field').focus(function () { show_search(); }).blur(function () { hide_search(); }); }); }); jQuery(document).ready(function($) { /** * Add skiplink to page. */ function skipTo(target) { const skiplink = '<a href="' + target + '" class="skip-link da11y-screen-reader-text">Skip to content</a>'; $(target).attr('tabindex', -1); $('body').prepend(skiplink); } skipTo('#main-content'); /** * Use js to focus for internal links. */ $('a[href^="#"]').click(function () { const content = $('#' + $(this).attr('href').slice(1)); content.focus(); }); }); jQuery(document).ready(function($) { let lastKey = new Date(); let lastClick = new Date(); /** * Only apply focus styles for keyboard usage. */ $(this).on('focusin', function (e) { $('.keyboard-outline').removeClass('keyboard-outline'); const wasByKeyboard = lastClick < lastKey; if (wasByKeyboard) { $(e.target).addClass('keyboard-outline'); } }); $(this).on('mousedown', function () { lastClick = new Date(); }); $(this).on('keydown', function () { lastKey = new Date(); }); }); jQuery(document).ready(function($) { /** * Allow Accordion & Toggle Divi modules to be focusable. * * @divi-module Accordion, Toggle */ $('.et_pb_toggle').each(function () { $(this).attr('tabindex', 0); }); /** * Prevent spacebar from scolling page when toggle & accordion have focus. * * @divi-module Accordion, Toggle */ $('.et_pb_toggle').on('keydown', function(e) { // Spacebar. if (e.which === 32){ e.preventDefault(); } }); /** * Expand Accordion & Toggle modules when enter or spacebar are pressed while focused. * * @divi-module Accordion, Toggle */ $(document).on('keyup', function(e) { // Spacebar & Enter. if (e.which === 13 || e.which === 32) { $('.et_pb_toggle:focus .et_pb_toggle_title').trigger('click'); } }); }); jQuery(document).ready(function($) { /** * Add unique ID to search module input with matching label. * * @divi-module Search */ $('.et-search-field').each(function (e) { $(this).attr('id', 'et_pb_search_module_input_' + e); $('#et_pb_search_module_input_' + e).before('<label class="da11y-screen-reader-text" for="et_pb_search_module_input_' + e + '">Search for...</label>'); $('#et_pb_search_module_input_' + e).after('<button type="submit" class="da11y-screen-reader-text">Search</button>'); }); /** * Add unique ID to contact module input with matching label. * * @divi-module Contact */ $('.et_pb_contact_form').each(function (e) { $(this).find('.et_pb_contact_captcha_question').parent().wrap('<label></label>'); }); /** * Correct labels on social media icons */ $('.et-social-facebook a.icon span').text('Facebook'); $('.et-social-twitter a.icon span').text('Twitter'); $('.et-social-google-plus a.icon span').text('Google Plus'); $('.et-social-pinterest a.icon span').text('Pinterest'); $('.et-social-linkedin a.icon span').text('LinkedIn'); $('.et-social-tumblr a.icon span').text('Tumblr'); $('.et-social-instagram a.icon span').text('Instagram'); $('.et-social-skype a.icon span').text('Skype'); $('.et-social-flikr a.icon span').text('Flickr'); $('.et-social-myspace a.icon span').text('Myspace'); $('.et-social-dribbble a.icon span').text('Dribble'); $('.et-social-youtube a.icon span').text('YouTube'); $('.et-social-vimeo a.icon span').text('Vimeo'); $('.et-social-rss a.icon span').text('RSS'); }); jQuery(document).ready(function($) { /** * Add role="tabList". * * @divi-module Tab */ $('.et_pb_tabs_controls').each(function () { $(this).attr('role', 'tabList'); }); /** * Add role="presentation". * * @divi-module Tab */ $('.et_pb_tabs_controls li').each(function () { $(this).attr('role', 'presentation'); }); /** * Add role="tab". * * @divi-module Tab */ $('.et_pb_tabs_controls a').each(function () { $(this).attr('role', 'tab'); }); /** * Add role="tabpanel". * * @divi-module Tab */ $('.et_pb_tab').each(function () { $(this).attr('role', 'tabpanel'); }); /** * Add initial state: * * aria-selected="false" * aria-expanded="false" * tabindex=-1 * * @divi-module Tab */ $('.et_pb_tabs_controls li:not(.et_pb_tab_active) a').each(function () { $(this).attr({ 'aria-selected': 'false', 'aria-expanded': 'false', tabindex: -1 }); }); /** * Add initial state: * * aria-selected="true" * aria-expanded="true" * tabindex=-1 * * @divi-module Tab */ $('.et_pb_tabs_controls li.et_pb_tab_active a').each(function () { $(this).attr({ 'aria-selected': 'true', 'aria-expanded': 'true', tabindex: 0 }); }); /** * Add unique ID to tab controls. * Add aria-controls="x". * * @divi-module Tab */ $('.et_pb_tabs_controls a').each(function (e) { $(this).attr({ id: 'et_pb_tab_control_' + e, 'aria-controls': 'et_pb_tab_panel_' + e }); }); /** * Add unique ID to tab panels. * Add aria-labelledby="x". * * @divi-module Tab */ $('.et_pb_tab').each(function (e) { $(this).attr({ id: 'et_pb_tab_panel_' + e, 'aria-labelledby': 'et_pb_tab_control_' + e }); }); /** * Set initial inactive tab panels to aria-hidden="false". * * @divi-module Tab */ $('.et_pb_tab.et_pb_active_content').each(function () { $(this).attr('aria-hidden', 'false'); }); /** * Set initial inactive tab panels to aria-hidden="true". * * @divi-module Tab */ $('.et_pb_tab:not(.et_pb_active_content)').each(function () { $(this).attr('aria-hidden', 'true'); }); /** * Add unique ID to tab module. * Need to use data attribute because a regular ID somehow interferes with Divi. * * @divi-module Tab */ $('.et_pb_tabs').each(function (e) { $(this).attr('data-da11y-id', 'et_pb_tab_module_' + e); }); /** * Update aria-selected attribute when tab is clicked or when hitting enter while focused. * * @divi-module Tab */ $('.et_pb_tabs_controls a').on('click', function () { const id = $(this).attr('id'); const namespace = $(this).closest('.et_pb_tabs').attr('data-da11y-id'); // Used as a selector to scope changes to current module. // Reset all tab controls to be aria-selected="false" & aria-expanded="false". $('[data-da11y-id="' + namespace + '"] .et_pb_tabs_controls a').attr({ 'aria-selected': 'false', 'aria-expanded': 'false', tabindex: -1 }); // Make active tab control aria-selected="true" & aria-expanded="true". $(this).attr({ 'aria-selected': 'true', 'aria-expanded': 'true', tabindex: 0 }); // Reset all tabs to be aria-hidden="true". $('#' + namespace + ' .et_pb_tab').attr('aria-hidden', 'true'); // Label active tab panel as aria-hidden="false". $('[aria-labelledby="' + id + '"]').attr('aria-hidden', 'false'); }); // Arrow navigation for tab modules $('.et_pb_tabs_controls a').keyup(function (e) { const namespace = $(this).closest('.et_pb_tabs').attr('data-da11y-id'); const module = $('[data-da11y-id="' + namespace + '"]'); if (e.which === 39) { // Right. const next = module.find('li.et_pb_tab_active').next(); if (next.length > 0) { next.find('a').trigger('click'); } else { module.find('li:first a').trigger('click'); } } else if (e.which === 37) { // Left. const next = module.find('li.et_pb_tab_active').prev(); if (next.length > 0) { next.find('a').trigger('click'); } else { module.find('li:last a').trigger('click'); } } $('.et_pb_tabs_controls a').removeClass('keyboard-outline'); module.find('li.et_pb_tab_active a').addClass('keyboard-outline'); }); /** * Add unique ID to search module. * Need to use data attribute because a regular ID somehow interferes with Divi. * * @divi-module Search */ $('.et_pb_search').each(function (e) { $(this).attr('data-da11y-id', 'et_pb_search_module_' + e); }); /** * Add aria-required="true" to inputs. * * @divi-module Contact Form */ $('[data-required_mark="required"]').each(function () { $(this).attr('aria-required', 'true'); }); /** * Hide hidden error field on contact form. * * @divi-module Contact Form */ $('.et_pb_contactform_validate_field').attr('type', 'hidden'); /** * Add alert role to error or success contact form message * * @divi-module Contact Form */ $('.et-pb-contact-message').attr('role', 'alert'); /** * Add main role to main-content */ $('#main-content').attr('role', 'main'); /** * Add aria-label="x". * * @divi-module Fullwidth header, comment-wrap */ $('.et_pb_fullwidth_header').each(function (e) { $(this).attr('aria-label', 'Wide Header' + e); }); $('#comment-wrap').attr('aria-label', 'Comments'); }); jQuery(document).ready(function($) { /** * Add aria-hidden="true" to all icons */ $('#et_top_search, .et_close_search_field, .et_pb_main_blurb_image').attr('aria-hidden', 'true'); }); jQuery(document).ready(function($) { /** * Mobile menu Aria support. */ $('.mobile_menu_bar_toggle').attr({'role': 'button', 'aria-expanded': 'false', 'tabindex': 0}); $('.mobile_menu_bar_toggle').on('click', function() { if($(this).hasClass('a11y-mobile-menu-open') ) { $(this).removeClass('a11y-mobile-menu-open').attr('aria-expanded', 'false'); } else { $(this).addClass('a11y-mobile-menu-open').attr('aria-expanded', 'true'); } }); }); jQuery(function($){$(".divi-mobile-stop-stacking").each(function(){$(this).parents(".et_pb_row").addClass("divi-mobile-stop-stacking-row")})}); var et_animation_data = [{"class":"et_pb_button_0_tb_header","style":"slideRight","repeat":"once","duration":"1000ms","delay":"0ms","intensity":"10%","starting_opacity":"0%","speed_curve":"ease-in-out"},{"class":"et_pb_sift_breadcrumbs_module_0","style":"fade","repeat":"once","duration":"1000ms","delay":"0ms","intensity":"50%","starting_opacity":"0%","speed_curve":"ease-in-out"},{"class":"et_pb_image_0","style":"slideBottom","repeat":"once","duration":"1000ms","delay":"0ms","intensity":"10%","starting_opacity":"0%","speed_curve":"ease-in-out"},{"class":"et_pb_image_1","style":"slideBottom","repeat":"once","duration":"1000ms","delay":"200ms","intensity":"10%","starting_opacity":"0%","speed_curve":"ease-in-out"},{"class":"et_pb_image_2","style":"slideBottom","repeat":"once","duration":"1000ms","delay":"200ms","intensity":"10%","starting_opacity":"0%","speed_curve":"ease-in-out"},{"class":"et_pb_image_3","style":"slideBottom","repeat":"once","duration":"1000ms","delay":"400ms","intensity":"10%","starting_opacity":"0%","speed_curve":"ease-in-out"},{"class":"et_pb_image_4","style":"fade","repeat":"once","duration":"2000ms","delay":"0ms","intensity":"50%","starting_opacity":"0%","speed_curve":"ease-in-out"},{"class":"et_pb_button_0","style":"slideBottom","repeat":"once","duration":"1000ms","delay":"0ms","intensity":"10%","starting_opacity":"0%","speed_curve":"ease-in-out"},{"class":"et_pb_button_1","style":"slideBottom","repeat":"once","duration":"1000ms","delay":"300ms","intensity":"10%","starting_opacity":"0%","speed_curve":"ease-in-out"}]; jQuery(document).ready(function( $ ) { if ( $('#main-header').length > 0 && $('.et-l--header').length == 0 ) { } else if ( $('.et-l--header').length > 0 && $('#main-header').length == 0 ) { } else { $('.divi-mobile-menu').remove(); $('body').addClass("no-mobile-menu"); } // if .dm-above-layout is on the page, get the height of this element // add it as margin-top to #open-button var dm_above_layout = $(".dm-above-layout"); if (dm_above_layout.length > 0) { var dm_above_layout_height = dm_above_layout.outerHeight(); $("#open-button").css("margin-top", dm_above_layout_height); // add padding to the top of #main-content $("#main-content").css("padding-top", dm_above_layout_height); } $("body").addClass("dm-custom-header"); function check_from_top(){ var scroll = $(window).scrollTop(); if (scroll >= 300) { $("#dm-header").addClass("fixed-header"); $("body").addClass("dm-fixed-header"); } else { $("#dm-header").removeClass("fixed-header"); $("body").removeClass("dm-fixed-header"); } if (scroll >= 50) { $(".dm-not-fixed-scroll #dm-header #et_top_search_mob").removeClass("active"); $("body.dm-not-fixed-scroll").removeClass("search-active"); } } check_from_top(); $(window).scroll(function() { check_from_top(); }); $("body").addClass("dm-bm-pos-right"); $("body").addClass("dm-expand-shape"); $("body").addClass("dm-divi-engine"); $("body").addClass("dm-circle-expand"); $("body").addClass("dm-menuside-right"); var get_one_click = false; jQuery(document).on('touchstart click', ".anchorpoint", function(e){ var _this = jQuery(e.target); if (jQuery("body").hasClass("show-menu")) { jQuery('#open-button').trigger('click'); } var getLink = _this.find('a').attr('href'); var currentUrl = window.location.href; var linkUrlPart = ''; var linkAnchorPart = ''; var currentUrlPart = currentUrl; e.preventDefault(); if(currentUrl.indexOf("#") != -1){ currentUrlPart = getLink.substring(0, getLink.indexOf("#") ); } if(getLink.indexOf("#") == 0){ linkUrlPart = currentUrlPart; linkAnchorPart = getLink.substring(1); }else if (getLink.indexOf("#") != -1 ){ linkUrlPart = getLink.substring(0, getLink.indexOf("#") ); linkAnchorPart = getLink.substring(getLink.indexOf("#")+1); } if ( linkUrlPart == currentUrlPart ){ // Same Url if (jQuery('#' + linkAnchorPart).length) { if ( linkAnchorPart != '' ){ var target_offset = jQuery('#' + linkAnchorPart).offset(); var top = target_offset.top; var header_fixed = "notfixed"; if ( header_fixed == 'fixed' ) { var header_height_scroll = 80; var header_height = 78; var scroll_distance = 300; if ( target_offset.top < scroll_distance ) { if ( target_offset.top < header_height ) { top = 0; } else { top = top - header_height; } } else { top = top - header_height_scroll; } } window.scrollTo({top: top, behavior: "smooth"}); //document.getElementById(linkAnchorPart).scrollIntoView({ behavior: "smooth" }); } } else { window.location.href = getLink; } } else { window.location.href = getLink; } }); }); // check if menu-wrap__inner exists (function () { const menuWrapInner = document.getElementsByClassName("menu-wrap__inner")[0]; if (menuWrapInner && menuWrapInner.children.length > 0) { menuWrapInner.children[0].onscroll = function () { if (this.scrollTop >= 80) { jQuery('body').addClass('menu-wrap-scroll'); } else { jQuery('body').removeClass('menu-wrap-scroll'); } } } })(); jQuery(document).ready(function($){ var isOpen = false; var bodyEl = document.body; $(document).on('click', '#open-button', function(ev){ toggleMenu(ev); }); $(document).on('click', '#close-button', function(ev){ toggleMenu(ev); }) // close the menu element if the target it´s not the menu element or one of its descendants.. $(document).on( 'click', '#et-main-area', function(ev) { var target = $(ev.target); if( isOpen && target !== $('#open-button') ) { toggleMenu(ev); } } ); function toggleMenu(event) { event.stopPropagation(); event.preventDefault(); if( isOpen ) { $(bodyEl).removeClass( 'show-menu' ); $('#open-button').removeClass( 'is-active' ); $( '#dm_nav' ).removeClass( 'active' ); $('#dm-menu').find('.menu-item-has-children').each(function() { $(this).removeClass('visible'); }); setTimeout(function (){ $('#dm_nav').addClass( 'menuclosed' ); }, 800); }else { $(bodyEl).addClass( 'show-menu' ); $('#open-button').addClass( 'is-active' ); $( '#dm_nav' ).addClass( 'active' ); $( '#dm_nav' ).removeClass( 'menuclosed' ); } isOpen = !isOpen; } }); jQuery(document).ready(function( $ ) { $("body").addClass("dm-ch-logo-pos-left"); $("body").addClass("dm-ch-cart-icon-pos-none"); $("body").addClass("dm-ch-search-icon-pos-right"); $("body").addClass("dm-ch-account-icon-pos-none"); $("body").addClass("dm-search-icon-header"); $("#dm-header #et_top_search_mob #et_search_icon").on('touchstart click', function(event) { $("#dm-header #et_top_search_mob").addClass("active"); setTimeout( function() { $("body").addClass("search-active"); }, 500); }); $(document).on('touchstart click', ".search-active #et_top_search_mob #et_search_icon" , function(event){ console.log("added"); $( ".et-search-form" ).submit(); }); $("#dm-header #et_top_search_mob .close").on('touchstart click', function(event) { $("#dm-header #et_top_search_mob").removeClass("active"); $("body").removeClass("search-active"); }); $("body").addClass("dm-not-fixed-scroll"); }); jQuery(document).ready(function($){ $("body").addClass("bc-expand-circle"); var overlayNav = $('.cd-overlay-nav'), overlayContent = $('.cd-overlay-content'), navigation = $('#dm_nav .menu-wrap__inner'), toggleNav = $('#open-button'), burger_bg = $('.menu-wrap'); // Initialize navigation and content layers layerInit(); // Commented this out as when resizing, the animation to open the menu woudld be delayed sometimes even up to 5s - SUP-7777 // $(window).on('resize', function(){ // window.requestAnimationFrame(layerInit); // }); // Open/close the menu and cover layers toggleNav.on('click', function(event) { if (!burger_bg.hasClass('close-nav')) { // It means navigation is not visible yet - open it and animate navigation layer burger_bg.addClass('close-nav'); overlayNav.children('span').velocity({ translateZ: 0, scaleX: 1, scaleY: 1, }, 500, 'easeInCubic', function(){ navigation.addClass('fade-in'); }); } else { // Navigation is open - close it and remove navigation layer burger_bg.removeClass('close-nav'); overlayContent.children('span').velocity({ translateZ: 0, scaleX: 1, scaleY: 1, }, 0, 'easeInCubic', function(){ navigation.removeClass('fade-in'); overlayNav.children('span').velocity({ translateZ: 0, scaleX: 0, scaleY: 0, }, 500); overlayContent.addClass('is-hidden').one('webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend', function(){ overlayContent.children('span').velocity({ translateZ: 0, scaleX: 0, scaleY: 0, }, 500, function(){overlayContent.removeClass('is-hidden')}); }); if ($('html').hasClass('no-csstransitions')) { overlayContent.children('span').velocity({ translateZ: 0, scaleX: 0, scaleY: 0, }, 500, function(){overlayContent.removeClass('is-hidden')}); } }); } }); function layerInit(){ var diameterValue = (Math.sqrt( Math.pow($(window).height(), 2) + Math.pow($(window).width(), 2))*2); overlayNav.children('span').velocity({ scaleX: 0, scaleY: 0, translateZ: 0, }, 50).velocity({ height : diameterValue+'px', width : diameterValue+'px', top : -(diameterValue/2)+'px', left : -(diameterValue/2)+'px', }, 0); overlayContent.children('span').velocity({ scaleX: 0, scaleY: 0, translateZ: 0, }, 50).velocity({ height : diameterValue+'px', width : diameterValue+'px', top : -(diameterValue/2)+'px', left : -(diameterValue/2)+'px', }, 0); } }); jQuery(document).ready(function( $ ) { $("body").addClass("collapse-submenu"); function dm_setup_collapsible_submenus() { var $menu = $('#dm_nav'), top_level_link = '.menu-wrap__inner .menu-item-has-children > a'; $menu.find('a').each(function() { $(this).closest('.menu-item-has-children a').append('<span class="clickthrough"></span>'); var click_through = $(".clickthrough"); if ( $(this).closest('.menu-item').length > 0 && !$(this).siblings('.sub-menu').length ) { $(this).off('touchstart click').on('touchstart click', function(event) { // $("#dm-menu.nav li").removeClass('visible'); $(this).parents('.mobile_nav').trigger('click'); }); } else { } }); } setTimeout(function() { dm_setup_collapsible_submenus(); }, 1200); var click_through = '.clickthrough'; if ($(window).width() < 1200) { var touchmoved; $('.menu-item-has-children').on('touchend click', click_through, function(e) { if(touchmoved != true){ e.preventDefault(); e.stopPropagation(); $(this).closest('.menu-item').siblings().removeClass('visible'); $(this).closest('.menu-item').toggleClass('visible'); setTimeout(function() { jQuery('.menu-item').removeClass('et-hover'); jQuery('.menu-item').removeClass('et-touch-hover'); }, 800); } }).on('touchmove', click_through, function(e) { touchmoved = true; }).on('touchstart', click_through, function(e) { touchmoved = false; }); } else { $('body').on('touchstart click', click_through, function(e) { e.preventDefault(); e.stopPropagation(); $(this).closest('.menu-item').siblings().removeClass('visible'); $(this).closest('.menu-item').toggleClass('visible'); setTimeout(function() { jQuery('.menu-item').removeClass('et-hover'); jQuery('.menu-item').removeClass('et-touch-hover'); }, 800); }); } $("#dm_nav .menu-item").on("touchstart", 'a',function(e) { touchmoved = false; //var addressValue = $(this).attr("href"); //window.location.href = addressValue; }).on("touchmove", 'a', function(e){ touchmoved = true; }).on("touchend click", 'a', function(e){ if ( touchmoved != true ){ e.preventDefault(); e.stopPropagation(); var addressValue = $(this).attr("href"); var addresstarget = $(this).attr('target'); if (addresstarget == "_blank") { window.open(addressValue, '_blank'); } else { window.location.href = addressValue; } } }); }); /* <![CDATA[ */ jQuery(".divi-mobile-stop-stacking").closest(".et_pb_row").addClass("divi-mobile-stop-stacking-row"); /* ]]> */ /* <![CDATA[ */ var monarchSettings = {"ajaxurl":"https:\/\/www.thomasemlyn.co.uk\/wp-admin\/admin-ajax.php","pageurl":"https:\/\/www.thomasemlyn.co.uk\/about\/careers\/","stats_nonce":"f03e6c9b72","share_counts":"42be9e9abc","follow_counts":"b2a345a6b4","total_counts":"d00229e335","media_single":"4ad0c84544","media_total":"2ffcf804c6","generate_all_window_nonce":"0ef1a4756e","no_img_message":"No images available for sharing on this page"}; /* ]]> */ /* <![CDATA[ */ "use strict";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){return protoProps&&defineProperties(Constructor.prototype,protoProps),staticProps&&defineProperties(Constructor,staticProps),Constructor}}();function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}var RocketBrowserCompatibilityChecker=function(){function RocketBrowserCompatibilityChecker(options){_classCallCheck(this,RocketBrowserCompatibilityChecker),this.passiveSupported=!1,this._checkPassiveOption(this),this.options=!!this.passiveSupported&&options}return _createClass(RocketBrowserCompatibilityChecker,[{key:"_checkPassiveOption",value:function(self){try{var options={get passive(){return!(self.passiveSupported=!0)}};window.addEventListener("test",null,options),window.removeEventListener("test",null,options)}catch(err){self.passiveSupported=!1}}},{key:"initRequestIdleCallback",value:function(){!1 in window&&(window.requestIdleCallback=function(cb){var start=Date.now();return setTimeout(function(){cb({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-start))}})},1)}),!1 in window&&(window.cancelIdleCallback=function(id){return clearTimeout(id)})}},{key:"isDataSaverModeOn",value:function(){return"connection"in navigator&&!0===navigator.connection.saveData}},{key:"supportsLinkPrefetch",value:function(){var elem=document.createElement("link");return elem.relList&&elem.relList.supports&&elem.relList.supports("prefetch")&&window.IntersectionObserver&&"isIntersecting"in IntersectionObserverEntry.prototype}},{key:"isSlowConnection",value:function(){return"connection"in navigator&&"effectiveType"in navigator.connection&&("2g"===navigator.connection.effectiveType||"slow-2g"===navigator.connection.effectiveType)}}]),RocketBrowserCompatibilityChecker}(); /* ]]> */ /* <![CDATA[ */ var RocketPreloadLinksConfig = {"excludeUris":"\/(?:.+\/)?feed(?:\/(?:.+\/?)?)?$|\/(?:.+\/)?embed\/|\/(index.php\/)?(.*)wp-json(\/.*|$)|\/refer\/|\/go\/|\/recommend\/|\/recommends\/","usesTrailingSlash":"1","imageExt":"jpg|jpeg|gif|png|tiff|bmp|webp|avif|pdf|doc|docx|xls|xlsx|php","fileExt":"jpg|jpeg|gif|png|tiff|bmp|webp|avif|pdf|doc|docx|xls|xlsx|php|html|htm","siteUrl":"https:\/\/www.thomasemlyn.co.uk","onHoverDelay":"100","rateThrottle":"3"}; /* ]]> */ /* <![CDATA[ */ (function() { "use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e=function(){function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}}();function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var t=function(){function n(e,t){i(this,n),this.browser=e,this.config=t,this.options=this.browser.options,this.prefetched=new Set,this.eventTime=null,this.threshold=1111,this.numOnHover=0}return e(n,[{key:"init",value:function(){!this.browser.supportsLinkPrefetch()||this.browser.isDataSaverModeOn()||this.browser.isSlowConnection()||(this.regex={excludeUris:RegExp(this.config.excludeUris,"i"),images:RegExp(".("+this.config.imageExt+")$","i"),fileExt:RegExp(".("+this.config.fileExt+")$","i")},this._initListeners(this))}},{key:"_initListeners",value:function(e){-1<this.config.onHoverDelay&&document.addEventListener("mouseover",e.listener.bind(e),e.listenerOptions),document.addEventListener("mousedown",e.listener.bind(e),e.listenerOptions),document.addEventListener("touchstart",e.listener.bind(e),e.listenerOptions)}},{key:"listener",value:function(e){var t=e.target.closest("a"),n=this._prepareUrl(t);if(null!==n)switch(e.type){case"mousedown":case"touchstart":this._addPrefetchLink(n);break;case"mouseover":this._earlyPrefetch(t,n,"mouseout")}}},{key:"_earlyPrefetch",value:function(t,e,n){var i=this,r=setTimeout(function(){if(r=null,0===i.numOnHover)setTimeout(function(){return i.numOnHover=0},1e3);else if(i.numOnHover>i.config.rateThrottle)return;i.numOnHover++,i._addPrefetchLink(e)},this.config.onHoverDelay);t.addEventListener(n,function e(){t.removeEventListener(n,e,{passive:!0}),null!==r&&(clearTimeout(r),r=null)},{passive:!0})}},{key:"_addPrefetchLink",value:function(i){return this.prefetched.add(i.href),new Promise(function(e,t){var n=document.createElement("link");n.rel="prefetch",n.href=i.href,n.onload=e,n.onerror=t,document.head.appendChild(n)}).catch(function(){})}},{key:"_prepareUrl",value:function(e){if(null===e||"object"!==(void 0===e?"undefined":r(e))||!1 in e||-1===["http:","https:"].indexOf(e.protocol))return null;var t=e.href.substring(0,this.config.siteUrl.length),n=this._getPathname(e.href,t),i={original:e.href,protocol:e.protocol,origin:t,pathname:n,href:t+n};return this._isLinkOk(i)?i:null}},{key:"_getPathname",value:function(e,t){var n=t?e.substring(this.config.siteUrl.length):e;return n.startsWith("/")||(n="/"+n),this._shouldAddTrailingSlash(n)?n+"/":n}},{key:"_shouldAddTrailingSlash",value:function(e){return this.config.usesTrailingSlash&&!e.endsWith("/")&&!this.regex.fileExt.test(e)}},{key:"_isLinkOk",value:function(e){return null!==e&&"object"===(void 0===e?"undefined":r(e))&&(!this.prefetched.has(e.href)&&e.origin===this.config.siteUrl&&-1===e.href.indexOf("?")&&-1===e.href.indexOf("#")&&!this.regex.excludeUris.test(e.href)&&!this.regex.images.test(e.href))}}],[{key:"run",value:function(){"undefined"!=typeof RocketPreloadLinksConfig&&new n(new RocketBrowserCompatibilityChecker({capture:!0,passive:!0}),RocketPreloadLinksConfig).init()}}]),n}();t.run(); }()); /* ]]> */ /* <![CDATA[ */ var DIVI = {"item_count":"%d Item","items_count":"%d Items"}; var et_builder_utils_params = {"condition":{"diviTheme":true,"extraTheme":false},"scrollLocations":["app","top"],"builderScrollLocations":{"desktop":"app","tablet":"app","phone":"app"},"onloadScrollLocation":"app","builderType":"fe"}; var et_frontend_scripts = {"builderCssContainerPrefix":"#et-boc","builderCssLayoutPrefix":"#et-boc .et-l"}; var et_pb_custom = {"ajaxurl":"https:\/\/www.thomasemlyn.co.uk\/wp-admin\/admin-ajax.php","images_uri":"https:\/\/www.thomasemlyn.co.uk\/wp-content\/themes\/Divi\/images","builder_images_uri":"https:\/\/www.thomasemlyn.co.uk\/wp-content\/themes\/Divi\/includes\/builder\/images","et_frontend_nonce":"1cabd21673","subscription_failed":"Please, check the fields below to make sure you entered the correct information.","et_ab_log_nonce":"eddc5417e2","fill_message":"Please, fill in the following fields:","contact_error_message":"Please, fix the following errors:","invalid":"Invalid email","captcha":"Captcha","prev":"Prev","previous":"Previous","next":"Next","wrong_captcha":"You entered the wrong number in captcha.","wrong_checkbox":"Checkbox","ignore_waypoints":"no","is_divi_theme_used":"1","widget_search_selector":".widget_search","ab_tests":[],"is_ab_testing_active":"","page_id":"53632","unique_test_id":"","ab_bounce_rate":"5","is_cache_plugin_active":"yes","is_shortcode_tracking":"","tinymce_uri":"https:\/\/www.thomasemlyn.co.uk\/wp-content\/themes\/Divi\/includes\/builder\/frontend-builder\/assets\/vendors","accent_color":"#1e73be","waypoints_options":[]}; var et_pb_box_shadow_elements = []; /* ]]> */ /* <![CDATA[ */ var mejsL10n = {"language":"en","strings":{"mejs.download-file":"Download File","mejs.install-flash":"You are using a browser that does not have Flash player enabled or installed. Please turn on your Flash player plugin or download the latest version from https:\/\/get.adobe.com\/flashplayer\/","mejs.fullscreen":"Fullscreen","mejs.play":"Play","mejs.pause":"Pause","mejs.time-slider":"Time Slider","mejs.time-help-text":"Use Left\/Right Arrow keys to advance one second, Up\/Down arrows to advance ten seconds.","mejs.live-broadcast":"Live Broadcast","mejs.volume-help-text":"Use Up\/Down Arrow keys to increase or decrease volume.","mejs.unmute":"Unmute","mejs.mute":"Mute","mejs.volume-slider":"Volume Slider","mejs.video-player":"Video Player","mejs.audio-player":"Audio Player","mejs.captions-subtitles":"Captions\/Subtitles","mejs.captions-chapters":"Chapters","mejs.none":"None","mejs.afrikaans":"Afrikaans","mejs.albanian":"Albanian","mejs.arabic":"Arabic","mejs.belarusian":"Belarusian","mejs.bulgarian":"Bulgarian","mejs.catalan":"Catalan","mejs.chinese":"Chinese","mejs.chinese-simplified":"Chinese (Simplified)","mejs.chinese-traditional":"Chinese (Traditional)","mejs.croatian":"Croatian","mejs.czech":"Czech","mejs.danish":"Danish","mejs.dutch":"Dutch","mejs.english":"English","mejs.estonian":"Estonian","mejs.filipino":"Filipino","mejs.finnish":"Finnish","mejs.french":"French","mejs.galician":"Galician","mejs.german":"German","mejs.greek":"Greek","mejs.haitian-creole":"Haitian Creole","mejs.hebrew":"Hebrew","mejs.hindi":"Hindi","mejs.hungarian":"Hungarian","mejs.icelandic":"Icelandic","mejs.indonesian":"Indonesian","mejs.irish":"Irish","mejs.italian":"Italian","mejs.japanese":"Japanese","mejs.korean":"Korean","mejs.latvian":"Latvian","mejs.lithuanian":"Lithuanian","mejs.macedonian":"Macedonian","mejs.malay":"Malay","mejs.maltese":"Maltese","mejs.norwegian":"Norwegian","mejs.persian":"Persian","mejs.polish":"Polish","mejs.portuguese":"Portuguese","mejs.romanian":"Romanian","mejs.russian":"Russian","mejs.serbian":"Serbian","mejs.slovak":"Slovak","mejs.slovenian":"Slovenian","mejs.spanish":"Spanish","mejs.swahili":"Swahili","mejs.swedish":"Swedish","mejs.tagalog":"Tagalog","mejs.thai":"Thai","mejs.turkish":"Turkish","mejs.ukrainian":"Ukrainian","mejs.vietnamese":"Vietnamese","mejs.welsh":"Welsh","mejs.yiddish":"Yiddish"}}; /* ]]> */ /* <![CDATA[ */ var _wpmejsSettings = {"pluginPath":"\/wp-includes\/js\/mediaelement\/","classPrefix":"mejs-","stretching":"responsive","audioShortcodeLibrary":"mediaelement","videoShortcodeLibrary":"mediaelement"}; /* ]]> */ /* <![CDATA[ */ var et_pb_motion_elements = {"desktop":[],"tablet":[],"phone":[]}; /* ]]> */ /* <![CDATA[ */ var et_pb_sticky_elements = []; /* ]]> */ window.lazyLoadOptions=[{elements_selector:"img[data-lazy-src],.rocket-lazyload,iframe[data-lazy-src]",data_src:"lazy-src",data_srcset:"lazy-srcset",data_sizes:"lazy-sizes",class_loading:"lazyloading",class_loaded:"lazyloaded",threshold:300,callback_loaded:function(element){if(element.tagName==="IFRAME"&&element.dataset.rocketLazyload=="fitvidscompatible"){if(element.classList.contains("lazyloaded")){if(typeof window.jQuery!="undefined"){if(jQuery.fn.fitVids){jQuery(element).parent().fitVids()}}}}}},{elements_selector:".rocket-lazyload",data_src:"lazy-src",data_srcset:"lazy-srcset",data_sizes:"lazy-sizes",class_loading:"lazyloading",class_loaded:"lazyloaded",threshold:300,}];window.addEventListener('LazyLoad::Initialized',function(e){var lazyLoadInstance=e.detail.instance;if(window.MutationObserver){var observer=new MutationObserver(function(mutations){var image_count=0;var iframe_count=0;var rocketlazy_count=0;mutations.forEach(function(mutation){for(var i=0;i<mutation.addedNodes.length;i++){if(typeof mutation.addedNodes[i].getElementsByTagName!=='function'){continue} if(typeof mutation.addedNodes[i].getElementsByClassName!=='function'){continue} images=mutation.addedNodes[i].getElementsByTagName('img');is_image=mutation.addedNodes[i].tagName=="IMG";iframes=mutation.addedNodes[i].getElementsByTagName('iframe');is_iframe=mutation.addedNodes[i].tagName=="IFRAME";rocket_lazy=mutation.addedNodes[i].getElementsByClassName('rocket-lazyload');image_count+=images.length;iframe_count+=iframes.length;rocketlazy_count+=rocket_lazy.length;if(is_image){image_count+=1} if(is_iframe){iframe_count+=1}}});if(image_count>0||iframe_count>0||rocketlazy_count>0){lazyLoadInstance.update()}});var b=document.getElementsByTagName("body")[0];var config={childList:!0,subtree:!0};observer.observe(b,config)}},!1)
https://thomasemlyn.co.uk/about/partnernetwork
Status: 200
Emails: info@thomasemlyn.co.uk
View text
About Our process Partner network Careers Services Accounts Bookkeeping Business consultancy CIS Cloud accounting & Xero Company formation Secretarial Helping your business grow Payroll & P11D R&D tax relief Personal tax VAT Packages Virtual Finance Office (VFO) Elevate – For Ambitious Construction Business Owners Sectors Construction Property Growing businesses Resources Blogs Dates and deadlines Business news Calculators Contact About Our process Partner network Careers Services Accounts Bookkeeping Business consultancy CIS Cloud accounting & Xero Company formation Secretarial Helping your business grow Payroll & P11D R&D tax relief Personal tax VAT Packages Virtual Finance Office (VFO) Elevate – For Ambitious Construction Business Owners Sectors Construction Property Growing businesses Resources Blogs Dates and deadlines Business news Calculators Contact Book a call Partner network Home • About • Partner network Keeping you connected We’re not like most. We won’t promise to do something we know we can’t. With years of experience and presence in the industry, we’ve assembled a tight-knit community of experts in their fields — mortgage brokers, financial advisors, business loan agents, pension advisors etc. — who we work closely with. So, if you come to us with a problem we can’t solve, we’ll put you in touch with someone who can. We’re here to get you the results you want. Get in touch Accounts Routine number crunching made simple and effective. Bookkeeping Having a great set of books makes running your business easier. Cloud accounting & Xero We’ll help you keep all your financial records in the cloud. See all services A special thanks to Hue & Helix for helping us with our marketing and visuals. See our packages Opportunities & vacancies We’re always on the lookout for the future talent of accountancy. If you believe in a sustainable way of providing the best support possible for a client, look through our vacancies page. See vacancies Growth on your mind? Let’s talk We’ll chat about your business, your future, and your aspirations. And then we’ll help you get there. Contact us Book a call Contact us 01245 801611 info@thomasemlyn.co.uk 7 Bellefield House 104 New London Road Chelmsford Essex CM2 0DG Useful linksTerms & Conditions Privacy Statement & Cookie Policy Cookie Information Accessibility Statement Copyright Legal information Thomas Emlyn is registered in England & Wales. Company Registration Number: 13498885 Facebook Twitter LinkedIn {"prefetch":[{"source":"document","where":{"and":[{"href_matches":"\/*"},{"not":{"href_matches":["\/wp-*.php","\/wp-admin\/*","\/wp-content\/uploads\/*","\/wp-content\/*","\/wp-content\/plugins\/*","\/wp-content\/themes\/sift\/*","\/wp-content\/themes\/Divi\/*","\/*\\?(.+)"]}},{"not":{"selector_matches":"a[rel~=\"nofollow\"]"}},{"not":{"selector_matches":".no-prefetch, .no-prefetch a"}}]},"eagerness":"conservative"}]} jQuery(document).ready(function($) { if($('.menu-item-has-children').find('a') ) { $('.menu-item-has-children').find('a').addClass('da11y-submenu'); $('.menu-item-has-children').find('a').not('.sub-menu a').attr('aria-expanded', 'false'); } $('.da11y-submenu').on('focus', function() { $(this).not('.sub-menu a').attr('aria-expanded', 'true'); $(this).siblings('.sub-menu').addClass('da11y-submenu-show'); $(this).trigger('mouseenter'); }); $('.menu-item-has-children a').on('focusout', function() { if($(this).parent().not('.menu-item-has-children').is(':last-child')) { $(this).parents('.menu-item-has-children').children('.da11y-submenu').attr('aria-expanded', 'false').trigger('mouseleave').siblings('.sub-menu').removeClass('da11y-submenu-show'); } }); /** * Generate search form styles. * * @since Divi v3.0.23 */ function et_set_search_form_css() { const search_container = $('.et_search_form_container'); const body = $('body'); if (search_container.hasClass('et_pb_search_visible')) { const header_height = $('#main-header').innerHeight(); const menu_width = $('#top-menu').width(); const font_size = $('#top-menu li a').css('font-size'); search_container.css({ height: header_height + 'px' }); search_container.find('input').css('font-size', font_size); if (!body.hasClass('et_header_style_left')) { search_container.css('max-width', menu_width + 60); } else { search_container.find('form').css('max-width', menu_width + 60); } } } /** * Show the search. * * @since Divi v3.0.23 */ function show_search() { const search_container = $('.et_search_form_container'); if (search_container.hasClass('et_pb_is_animating')) { return; } $('.et_menu_container').removeClass('et_pb_menu_visible et_pb_no_animation').addClass('et_pb_menu_hidden'); search_container.removeClass('et_pb_search_form_hidden et_pb_no_animation').addClass('et_pb_search_visible et_pb_is_animating'); setTimeout(function () { $('.et_menu_container').addClass('et_pb_no_animation'); search_container.addClass('et_pb_no_animation').removeClass('et_pb_is_animating'); }, 1000); search_container.find('input').focus(); et_set_search_form_css(); } /** * Hide the search. * * @since Divi v3.0.23 */ function hide_search() { if ($('.et_search_form_container').hasClass('et_pb_is_animating')) { return; } $('.et_menu_container').removeClass('et_pb_menu_hidden et_pb_no_animation').addClass('et_pb_menu_visible'); $('.et_search_form_container').removeClass('et_pb_search_visible et_pb_no_animation').addClass('et_pb_search_form_hidden et_pb_is_animating'); setTimeout(function () { $('.et_menu_container').addClass('et_pb_no_animation'); $('.et_search_form_container').addClass('et_pb_no_animation').removeClass('et_pb_is_animating'); }, 1000); } $(this).keyup(function () { $('.et-search-field').focus(function () { show_search(); }).blur(function () { hide_search(); }); }); }); jQuery(document).ready(function($) { /** * Add skiplink to page. */ function skipTo(target) { const skiplink = '<a href="' + target + '" class="skip-link da11y-screen-reader-text">Skip to content</a>'; $(target).attr('tabindex', -1); $('body').prepend(skiplink); } skipTo('#main-content'); /** * Use js to focus for internal links. */ $('a[href^="#"]').click(function () { const content = $('#' + $(this).attr('href').slice(1)); content.focus(); }); }); jQuery(document).ready(function($) { let lastKey = new Date(); let lastClick = new Date(); /** * Only apply focus styles for keyboard usage. */ $(this).on('focusin', function (e) { $('.keyboard-outline').removeClass('keyboard-outline'); const wasByKeyboard = lastClick < lastKey; if (wasByKeyboard) { $(e.target).addClass('keyboard-outline'); } }); $(this).on('mousedown', function () { lastClick = new Date(); }); $(this).on('keydown', function () { lastKey = new Date(); }); }); jQuery(document).ready(function($) { /** * Allow Accordion & Toggle Divi modules to be focusable. * * @divi-module Accordion, Toggle */ $('.et_pb_toggle').each(function () { $(this).attr('tabindex', 0); }); /** * Prevent spacebar from scolling page when toggle & accordion have focus. * * @divi-module Accordion, Toggle */ $('.et_pb_toggle').on('keydown', function(e) { // Spacebar. if (e.which === 32){ e.preventDefault(); } }); /** * Expand Accordion & Toggle modules when enter or spacebar are pressed while focused. * * @divi-module Accordion, Toggle */ $(document).on('keyup', function(e) { // Spacebar & Enter. if (e.which === 13 || e.which === 32) { $('.et_pb_toggle:focus .et_pb_toggle_title').trigger('click'); } }); }); jQuery(document).ready(function($) { /** * Add unique ID to search module input with matching label. * * @divi-module Search */ $('.et-search-field').each(function (e) { $(this).attr('id', 'et_pb_search_module_input_' + e); $('#et_pb_search_module_input_' + e).before('<label class="da11y-screen-reader-text" for="et_pb_search_module_input_' + e + '">Search for...</label>'); $('#et_pb_search_module_input_' + e).after('<button type="submit" class="da11y-screen-reader-text">Search</button>'); }); /** * Add unique ID to contact module input with matching label. * * @divi-module Contact */ $('.et_pb_contact_form').each(function (e) { $(this).find('.et_pb_contact_captcha_question').parent().wrap('<label></label>'); }); /** * Correct labels on social media icons */ $('.et-social-facebook a.icon span').text('Facebook'); $('.et-social-twitter a.icon span').text('Twitter'); $('.et-social-google-plus a.icon span').text('Google Plus'); $('.et-social-pinterest a.icon span').text('Pinterest'); $('.et-social-linkedin a.icon span').text('LinkedIn'); $('.et-social-tumblr a.icon span').text('Tumblr'); $('.et-social-instagram a.icon span').text('Instagram'); $('.et-social-skype a.icon span').text('Skype'); $('.et-social-flikr a.icon span').text('Flickr'); $('.et-social-myspace a.icon span').text('Myspace'); $('.et-social-dribbble a.icon span').text('Dribble'); $('.et-social-youtube a.icon span').text('YouTube'); $('.et-social-vimeo a.icon span').text('Vimeo'); $('.et-social-rss a.icon span').text('RSS'); }); jQuery(document).ready(function($) { /** * Add role="tabList". * * @divi-module Tab */ $('.et_pb_tabs_controls').each(function () { $(this).attr('role', 'tabList'); }); /** * Add role="presentation". * * @divi-module Tab */ $('.et_pb_tabs_controls li').each(function () { $(this).attr('role', 'presentation'); }); /** * Add role="tab". * * @divi-module Tab */ $('.et_pb_tabs_controls a').each(function () { $(this).attr('role', 'tab'); }); /** * Add role="tabpanel". * * @divi-module Tab */ $('.et_pb_tab').each(function () { $(this).attr('role', 'tabpanel'); }); /** * Add initial state: * * aria-selected="false" * aria-expanded="false" * tabindex=-1 * * @divi-module Tab */ $('.et_pb_tabs_controls li:not(.et_pb_tab_active) a').each(function () { $(this).attr({ 'aria-selected': 'false', 'aria-expanded': 'false', tabindex: -1 }); }); /** * Add initial state: * * aria-selected="true" * aria-expanded="true" * tabindex=-1 * * @divi-module Tab */ $('.et_pb_tabs_controls li.et_pb_tab_active a').each(function () { $(this).attr({ 'aria-selected': 'true', 'aria-expanded': 'true', tabindex: 0 }); }); /** * Add unique ID to tab controls. * Add aria-controls="x". * * @divi-module Tab */ $('.et_pb_tabs_controls a').each(function (e) { $(this).attr({ id: 'et_pb_tab_control_' + e, 'aria-controls': 'et_pb_tab_panel_' + e }); }); /** * Add unique ID to tab panels. * Add aria-labelledby="x". * * @divi-module Tab */ $('.et_pb_tab').each(function (e) { $(this).attr({ id: 'et_pb_tab_panel_' + e, 'aria-labelledby': 'et_pb_tab_control_' + e }); }); /** * Set initial inactive tab panels to aria-hidden="false". * * @divi-module Tab */ $('.et_pb_tab.et_pb_active_content').each(function () { $(this).attr('aria-hidden', 'false'); }); /** * Set initial inactive tab panels to aria-hidden="true". * * @divi-module Tab */ $('.et_pb_tab:not(.et_pb_active_content)').each(function () { $(this).attr('aria-hidden', 'true'); }); /** * Add unique ID to tab module. * Need to use data attribute because a regular ID somehow interferes with Divi. * * @divi-module Tab */ $('.et_pb_tabs').each(function (e) { $(this).attr('data-da11y-id', 'et_pb_tab_module_' + e); }); /** * Update aria-selected attribute when tab is clicked or when hitting enter while focused. * * @divi-module Tab */ $('.et_pb_tabs_controls a').on('click', function () { const id = $(this).attr('id'); const namespace = $(this).closest('.et_pb_tabs').attr('data-da11y-id'); // Used as a selector to scope changes to current module. // Reset all tab controls to be aria-selected="false" & aria-expanded="false". $('[data-da11y-id="' + namespace + '"] .et_pb_tabs_controls a').attr({ 'aria-selected': 'false', 'aria-expanded': 'false', tabindex: -1 }); // Make active tab control aria-selected="true" & aria-expanded="true". $(this).attr({ 'aria-selected': 'true', 'aria-expanded': 'true', tabindex: 0 }); // Reset all tabs to be aria-hidden="true". $('#' + namespace + ' .et_pb_tab').attr('aria-hidden', 'true'); // Label active tab panel as aria-hidden="false". $('[aria-labelledby="' + id + '"]').attr('aria-hidden', 'false'); }); // Arrow navigation for tab modules $('.et_pb_tabs_controls a').keyup(function (e) { const namespace = $(this).closest('.et_pb_tabs').attr('data-da11y-id'); const module = $('[data-da11y-id="' + namespace + '"]'); if (e.which === 39) { // Right. const next = module.find('li.et_pb_tab_active').next(); if (next.length > 0) { next.find('a').trigger('click'); } else { module.find('li:first a').trigger('click'); } } else if (e.which === 37) { // Left. const next = module.find('li.et_pb_tab_active').prev(); if (next.length > 0) { next.find('a').trigger('click'); } else { module.find('li:last a').trigger('click'); } } $('.et_pb_tabs_controls a').removeClass('keyboard-outline'); module.find('li.et_pb_tab_active a').addClass('keyboard-outline'); }); /** * Add unique ID to search module. * Need to use data attribute because a regular ID somehow interferes with Divi. * * @divi-module Search */ $('.et_pb_search').each(function (e) { $(this).attr('data-da11y-id', 'et_pb_search_module_' + e); }); /** * Add aria-required="true" to inputs. * * @divi-module Contact Form */ $('[data-required_mark="required"]').each(function () { $(this).attr('aria-required', 'true'); }); /** * Hide hidden error field on contact form. * * @divi-module Contact Form */ $('.et_pb_contactform_validate_field').attr('type', 'hidden'); /** * Add alert role to error or success contact form message * * @divi-module Contact Form */ $('.et-pb-contact-message').attr('role', 'alert'); /** * Add main role to main-content */ $('#main-content').attr('role', 'main'); /** * Add aria-label="x". * * @divi-module Fullwidth header, comment-wrap */ $('.et_pb_fullwidth_header').each(function (e) { $(this).attr('aria-label', 'Wide Header' + e); }); $('#comment-wrap').attr('aria-label', 'Comments'); }); jQuery(document).ready(function($) { /** * Add aria-hidden="true" to all icons */ $('#et_top_search, .et_close_search_field, .et_pb_main_blurb_image').attr('aria-hidden', 'true'); }); jQuery(document).ready(function($) { /** * Mobile menu Aria support. */ $('.mobile_menu_bar_toggle').attr({'role': 'button', 'aria-expanded': 'false', 'tabindex': 0}); $('.mobile_menu_bar_toggle').on('click', function() { if($(this).hasClass('a11y-mobile-menu-open') ) { $(this).removeClass('a11y-mobile-menu-open').attr('aria-expanded', 'false'); } else { $(this).addClass('a11y-mobile-menu-open').attr('aria-expanded', 'true'); } }); }); jQuery(function($){$(".divi-mobile-stop-stacking").each(function(){$(this).parents(".et_pb_row").addClass("divi-mobile-stop-stacking-row")})}); var et_animation_data = [{"class":"et_pb_button_0_tb_header","style":"slideRight","repeat":"once","duration":"1000ms","delay":"0ms","intensity":"10%","starting_opacity":"0%","speed_curve":"ease-in-out"},{"class":"et_pb_sift_breadcrumbs_module_0","style":"fade","repeat":"once","duration":"1000ms","delay":"0ms","intensity":"50%","starting_opacity":"0%","speed_curve":"ease-in-out"},{"class":"et_pb_image_0","style":"slideBottom","repeat":"once","duration":"1000ms","delay":"0ms","intensity":"10%","starting_opacity":"0%","speed_curve":"ease-in-out"},{"class":"et_pb_image_1","style":"slideBottom","repeat":"once","duration":"1000ms","delay":"0ms","intensity":"10%","starting_opacity":"0%","speed_curve":"ease-in-out"},{"class":"et_pb_image_2","style":"slideBottom","repeat":"once","duration":"1000ms","delay":"0ms","intensity":"10%","starting_opacity":"0%","speed_curve":"ease-in-out"},{"class":"et_pb_image_3","style":"slideBottom","repeat":"once","duration":"1000ms","delay":"200ms","intensity":"10%","starting_opacity":"0%","speed_curve":"ease-in-out"},{"class":"et_pb_image_4","style":"slideBottom","repeat":"once","duration":"1000ms","delay":"200ms","intensity":"10%","starting_opacity":"0%","speed_curve":"ease-in-out"},{"class":"et_pb_image_5","style":"slideBottom","repeat":"once","duration":"1000ms","delay":"400ms","intensity":"10%","starting_opacity":"0%","speed_curve":"ease-in-out"},{"class":"et_pb_image_6","style":"fade","repeat":"once","duration":"2000ms","delay":"0ms","intensity":"50%","starting_opacity":"0%","speed_curve":"ease-in-out"},{"class":"et_pb_button_4","style":"slideBottom","repeat":"once","duration":"1000ms","delay":"0ms","intensity":"10%","starting_opacity":"0%","speed_curve":"ease-in-out"},{"class":"et_pb_button_5","style":"slideBottom","repeat":"once","duration":"1000ms","delay":"300ms","intensity":"10%","starting_opacity":"0%","speed_curve":"ease-in-out"}]; var et_link_options_data = [{"class":"et_pb_blurb_0","url":"https:\/\/www.thomasemlyn.co.uk\/services\/accounts\/","target":"_self"},{"class":"et_pb_blurb_1","url":"https:\/\/www.thomasemlyn.co.uk\/services\/bookkeeping\/","target":"_self"},{"class":"et_pb_blurb_2","url":"https:\/\/www.thomasemlyn.co.uk\/services\/cloud-accounting-xero\/","target":"_self"},{"class":"et_pb_text_2","url":"https:\/\/www.hueandhelix.co.uk","target":"_blank"}]; jQuery(document).ready(function( $ ) { if ( $('#main-header').length > 0 && $('.et-l--header').length == 0 ) { } else if ( $('.et-l--header').length > 0 && $('#main-header').length == 0 ) { } else { $('.divi-mobile-menu').remove(); $('body').addClass("no-mobile-menu"); } // if .dm-above-layout is on the page, get the height of this element // add it as margin-top to #open-button var dm_above_layout = $(".dm-above-layout"); if (dm_above_layout.length > 0) { var dm_above_layout_height = dm_above_layout.outerHeight(); $("#open-button").css("margin-top", dm_above_layout_height); // add padding to the top of #main-content $("#main-content").css("padding-top", dm_above_layout_height); } $("body").addClass("dm-custom-header"); function check_from_top(){ var scroll = $(window).scrollTop(); if (scroll >= 300) { $("#dm-header").addClass("fixed-header"); $("body").addClass("dm-fixed-header"); } else { $("#dm-header").removeClass("fixed-header"); $("body").removeClass("dm-fixed-header"); } if (scroll >= 50) { $(".dm-not-fixed-scroll #dm-header #et_top_search_mob").removeClass("active"); $("body.dm-not-fixed-scroll").removeClass("search-active"); } } check_from_top(); $(window).scroll(function() { check_from_top(); }); $("body").addClass("dm-bm-pos-right"); $("body").addClass("dm-expand-shape"); $("body").addClass("dm-divi-engine"); $("body").addClass("dm-circle-expand"); $("body").addClass("dm-menuside-right"); var get_one_click = false; jQuery(document).on('touchstart click', ".anchorpoint", function(e){ var _this = jQuery(e.target); if (jQuery("body").hasClass("show-menu")) { jQuery('#open-button').trigger('click'); } var getLink = _this.find('a').attr('href'); var currentUrl = window.location.href; var linkUrlPart = ''; var linkAnchorPart = ''; var currentUrlPart = currentUrl; e.preventDefault(); if(currentUrl.indexOf("#") != -1){ currentUrlPart = getLink.substring(0, getLink.indexOf("#") ); } if(getLink.indexOf("#") == 0){ linkUrlPart = currentUrlPart; linkAnchorPart = getLink.substring(1); }else if (getLink.indexOf("#") != -1 ){ linkUrlPart = getLink.substring(0, getLink.indexOf("#") ); linkAnchorPart = getLink.substring(getLink.indexOf("#")+1); } if ( linkUrlPart == currentUrlPart ){ // Same Url if (jQuery('#' + linkAnchorPart).length) { if ( linkAnchorPart != '' ){ var target_offset = jQuery('#' + linkAnchorPart).offset(); var top = target_offset.top; var header_fixed = "notfixed"; if ( header_fixed == 'fixed' ) { var header_height_scroll = 80; var header_height = 78; var scroll_distance = 300; if ( target_offset.top < scroll_distance ) { if ( target_offset.top < header_height ) { top = 0; } else { top = top - header_height; } } else { top = top - header_height_scroll; } } window.scrollTo({top: top, behavior: "smooth"}); //document.getElementById(linkAnchorPart).scrollIntoView({ behavior: "smooth" }); } } else { window.location.href = getLink; } } else { window.location.href = getLink; } }); }); // check if menu-wrap__inner exists (function () { const menuWrapInner = document.getElementsByClassName("menu-wrap__inner")[0]; if (menuWrapInner && menuWrapInner.children.length > 0) { menuWrapInner.children[0].onscroll = function () { if (this.scrollTop >= 80) { jQuery('body').addClass('menu-wrap-scroll'); } else { jQuery('body').removeClass('menu-wrap-scroll'); } } } })(); jQuery(document).ready(function($){ var isOpen = false; var bodyEl = document.body; $(document).on('click', '#open-button', function(ev){ toggleMenu(ev); }); $(document).on('click', '#close-button', function(ev){ toggleMenu(ev); }) // close the menu element if the target it´s not the menu element or one of its descendants.. $(document).on( 'click', '#et-main-area', function(ev) { var target = $(ev.target); if( isOpen && target !== $('#open-button') ) { toggleMenu(ev); } } ); function toggleMenu(event) { event.stopPropagation(); event.preventDefault(); if( isOpen ) { $(bodyEl).removeClass( 'show-menu' ); $('#open-button').removeClass( 'is-active' ); $( '#dm_nav' ).removeClass( 'active' ); $('#dm-menu').find('.menu-item-has-children').each(function() { $(this).removeClass('visible'); }); setTimeout(function (){ $('#dm_nav').addClass( 'menuclosed' ); }, 800); }else { $(bodyEl).addClass( 'show-menu' ); $('#open-button').addClass( 'is-active' ); $( '#dm_nav' ).addClass( 'active' ); $( '#dm_nav' ).removeClass( 'menuclosed' ); } isOpen = !isOpen; } }); jQuery(document).ready(function( $ ) { $("body").addClass("dm-ch-logo-pos-left"); $("body").addClass("dm-ch-cart-icon-pos-none"); $("body").addClass("dm-ch-search-icon-pos-right"); $("body").addClass("dm-ch-account-icon-pos-none"); $("body").addClass("dm-search-icon-header"); $("#dm-header #et_top_search_mob #et_search_icon").on('touchstart click', function(event) { $("#dm-header #et_top_search_mob").addClass("active"); setTimeout( function() { $("body").addClass("search-active"); }, 500); }); $(document).on('touchstart click', ".search-active #et_top_search_mob #et_search_icon" , function(event){ console.log("added"); $( ".et-search-form" ).submit(); }); $("#dm-header #et_top_search_mob .close").on('touchstart click', function(event) { $("#dm-header #et_top_search_mob").removeClass("active"); $("body").removeClass("search-active"); }); $("body").addClass("dm-not-fixed-scroll"); }); jQuery(document).ready(function($){ $("body").addClass("bc-expand-circle"); var overlayNav = $('.cd-overlay-nav'), overlayContent = $('.cd-overlay-content'), navigation = $('#dm_nav .menu-wrap__inner'), toggleNav = $('#open-button'), burger_bg = $('.menu-wrap'); // Initialize navigation and content layers layerInit(); // Commented this out as when resizing, the animation to open the menu woudld be delayed sometimes even up to 5s - SUP-7777 // $(window).on('resize', function(){ // window.requestAnimationFrame(layerInit); // }); // Open/close the menu and cover layers toggleNav.on('click', function(event) { if (!burger_bg.hasClass('close-nav')) { // It means navigation is not visible yet - open it and animate navigation layer burger_bg.addClass('close-nav'); overlayNav.children('span').velocity({ translateZ: 0, scaleX: 1, scaleY: 1, }, 500, 'easeInCubic', function(){ navigation.addClass('fade-in'); }); } else { // Navigation is open - close it and remove navigation layer burger_bg.removeClass('close-nav'); overlayContent.children('span').velocity({ translateZ: 0, scaleX: 1, scaleY: 1, }, 0, 'easeInCubic', function(){ navigation.removeClass('fade-in'); overlayNav.children('span').velocity({ translateZ: 0, scaleX: 0, scaleY: 0, }, 500); overlayContent.addClass('is-hidden').one('webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend', function(){ overlayContent.children('span').velocity({ translateZ: 0, scaleX: 0, scaleY: 0, }, 500, function(){overlayContent.removeClass('is-hidden')}); }); if ($('html').hasClass('no-csstransitions')) { overlayContent.children('span').velocity({ translateZ: 0, scaleX: 0, scaleY: 0, }, 500, function(){overlayContent.removeClass('is-hidden')}); } }); } }); function layerInit(){ var diameterValue = (Math.sqrt( Math.pow($(window).height(), 2) + Math.pow($(window).width(), 2))*2); overlayNav.children('span').velocity({ scaleX: 0, scaleY: 0, translateZ: 0, }, 50).velocity({ height : diameterValue+'px', width : diameterValue+'px', top : -(diameterValue/2)+'px', left : -(diameterValue/2)+'px', }, 0); overlayContent.children('span').velocity({ scaleX: 0, scaleY: 0, translateZ: 0, }, 50).velocity({ height : diameterValue+'px', width : diameterValue+'px', top : -(diameterValue/2)+'px', left : -(diameterValue/2)+'px', }, 0); } }); jQuery(document).ready(function( $ ) { $("body").addClass("collapse-submenu"); function dm_setup_collapsible_submenus() { var $menu = $('#dm_nav'), top_level_link = '.menu-wrap__inner .menu-item-has-children > a'; $menu.find('a').each(function() { $(this).closest('.menu-item-has-children a').append('<span class="clickthrough"></span>'); var click_through = $(".clickthrough"); if ( $(this).closest('.menu-item').length > 0 && !$(this).siblings('.sub-menu').length ) { $(this).off('touchstart click').on('touchstart click', function(event) { // $("#dm-menu.nav li").removeClass('visible'); $(this).parents('.mobile_nav').trigger('click'); }); } else { } }); } setTimeout(function() { dm_setup_collapsible_submenus(); }, 1200); var click_through = '.clickthrough'; if ($(window).width() < 1200) { var touchmoved; $('.menu-item-has-children').on('touchend click', click_through, function(e) { if(touchmoved != true){ e.preventDefault(); e.stopPropagation(); $(this).closest('.menu-item').siblings().removeClass('visible'); $(this).closest('.menu-item').toggleClass('visible'); setTimeout(function() { jQuery('.menu-item').removeClass('et-hover'); jQuery('.menu-item').removeClass('et-touch-hover'); }, 800); } }).on('touchmove', click_through, function(e) { touchmoved = true; }).on('touchstart', click_through, function(e) { touchmoved = false; }); } else { $('body').on('touchstart click', click_through, function(e) { e.preventDefault(); e.stopPropagation(); $(this).closest('.menu-item').siblings().removeClass('visible'); $(this).closest('.menu-item').toggleClass('visible'); setTimeout(function() { jQuery('.menu-item').removeClass('et-hover'); jQuery('.menu-item').removeClass('et-touch-hover'); }, 800); }); } $("#dm_nav .menu-item").on("touchstart", 'a',function(e) { touchmoved = false; //var addressValue = $(this).attr("href"); //window.location.href = addressValue; }).on("touchmove", 'a', function(e){ touchmoved = true; }).on("touchend click", 'a', function(e){ if ( touchmoved != true ){ e.preventDefault(); e.stopPropagation(); var addressValue = $(this).attr("href"); var addresstarget = $(this).attr('target'); if (addresstarget == "_blank") { window.open(addressValue, '_blank'); } else { window.location.href = addressValue; } } }); }); /* <![CDATA[ */ jQuery(".divi-mobile-stop-stacking").closest(".et_pb_row").addClass("divi-mobile-stop-stacking-row"); /* ]]> */ /* <![CDATA[ */ var monarchSettings = {"ajaxurl":"https:\/\/www.thomasemlyn.co.uk\/wp-admin\/admin-ajax.php","pageurl":"https:\/\/www.thomasemlyn.co.uk\/about\/partnernetwork\/","stats_nonce":"f90a649ebc","share_counts":"414b2649ae","follow_counts":"87e76b0f87","total_counts":"e148e40113","media_single":"6108dda42d","media_total":"3f24340e91","generate_all_window_nonce":"10b69e249e","no_img_message":"No images available for sharing on this page"}; /* ]]> */ /* <![CDATA[ */ "use strict";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){return protoProps&&defineProperties(Constructor.prototype,protoProps),staticProps&&defineProperties(Constructor,staticProps),Constructor}}();function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}var RocketBrowserCompatibilityChecker=function(){function RocketBrowserCompatibilityChecker(options){_classCallCheck(this,RocketBrowserCompatibilityChecker),this.passiveSupported=!1,this._checkPassiveOption(this),this.options=!!this.passiveSupported&&options}return _createClass(RocketBrowserCompatibilityChecker,[{key:"_checkPassiveOption",value:function(self){try{var options={get passive(){return!(self.passiveSupported=!0)}};window.addEventListener("test",null,options),window.removeEventListener("test",null,options)}catch(err){self.passiveSupported=!1}}},{key:"initRequestIdleCallback",value:function(){!1 in window&&(window.requestIdleCallback=function(cb){var start=Date.now();return setTimeout(function(){cb({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-start))}})},1)}),!1 in window&&(window.cancelIdleCallback=function(id){return clearTimeout(id)})}},{key:"isDataSaverModeOn",value:function(){return"connection"in navigator&&!0===navigator.connection.saveData}},{key:"supportsLinkPrefetch",value:function(){var elem=document.createElement("link");return elem.relList&&elem.relList.supports&&elem.relList.supports("prefetch")&&window.IntersectionObserver&&"isIntersecting"in IntersectionObserverEntry.prototype}},{key:"isSlowConnection",value:function(){return"connection"in navigator&&"effectiveType"in navigator.connection&&("2g"===navigator.connection.effectiveType||"slow-2g"===navigator.connection.effectiveType)}}]),RocketBrowserCompatibilityChecker}(); /* ]]> */ /* <![CDATA[ */ var RocketPreloadLinksConfig = {"excludeUris":"\/(?:.+\/)?feed(?:\/(?:.+\/?)?)?$|\/(?:.+\/)?embed\/|\/(index.php\/)?(.*)wp-json(\/.*|$)|\/refer\/|\/go\/|\/recommend\/|\/recommends\/","usesTrailingSlash":"1","imageExt":"jpg|jpeg|gif|png|tiff|bmp|webp|avif|pdf|doc|docx|xls|xlsx|php","fileExt":"jpg|jpeg|gif|png|tiff|bmp|webp|avif|pdf|doc|docx|xls|xlsx|php|html|htm","siteUrl":"https:\/\/www.thomasemlyn.co.uk","onHoverDelay":"100","rateThrottle":"3"}; /* ]]> */ /* <![CDATA[ */ (function() { "use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e=function(){function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}}();function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var t=function(){function n(e,t){i(this,n),this.browser=e,this.config=t,this.options=this.browser.options,this.prefetched=new Set,this.eventTime=null,this.threshold=1111,this.numOnHover=0}return e(n,[{key:"init",value:function(){!this.browser.supportsLinkPrefetch()||this.browser.isDataSaverModeOn()||this.browser.isSlowConnection()||(this.regex={excludeUris:RegExp(this.config.excludeUris,"i"),images:RegExp(".("+this.config.imageExt+")$","i"),fileExt:RegExp(".("+this.config.fileExt+")$","i")},this._initListeners(this))}},{key:"_initListeners",value:function(e){-1<this.config.onHoverDelay&&document.addEventListener("mouseover",e.listener.bind(e),e.listenerOptions),document.addEventListener("mousedown",e.listener.bind(e),e.listenerOptions),document.addEventListener("touchstart",e.listener.bind(e),e.listenerOptions)}},{key:"listener",value:function(e){var t=e.target.closest("a"),n=this._prepareUrl(t);if(null!==n)switch(e.type){case"mousedown":case"touchstart":this._addPrefetchLink(n);break;case"mouseover":this._earlyPrefetch(t,n,"mouseout")}}},{key:"_earlyPrefetch",value:function(t,e,n){var i=this,r=setTimeout(function(){if(r=null,0===i.numOnHover)setTimeout(function(){return i.numOnHover=0},1e3);else if(i.numOnHover>i.config.rateThrottle)return;i.numOnHover++,i._addPrefetchLink(e)},this.config.onHoverDelay);t.addEventListener(n,function e(){t.removeEventListener(n,e,{passive:!0}),null!==r&&(clearTimeout(r),r=null)},{passive:!0})}},{key:"_addPrefetchLink",value:function(i){return this.prefetched.add(i.href),new Promise(function(e,t){var n=document.createElement("link");n.rel="prefetch",n.href=i.href,n.onload=e,n.onerror=t,document.head.appendChild(n)}).catch(function(){})}},{key:"_prepareUrl",value:function(e){if(null===e||"object"!==(void 0===e?"undefined":r(e))||!1 in e||-1===["http:","https:"].indexOf(e.protocol))return null;var t=e.href.substring(0,this.config.siteUrl.length),n=this._getPathname(e.href,t),i={original:e.href,protocol:e.protocol,origin:t,pathname:n,href:t+n};return this._isLinkOk(i)?i:null}},{key:"_getPathname",value:function(e,t){var n=t?e.substring(this.config.siteUrl.length):e;return n.startsWith("/")||(n="/"+n),this._shouldAddTrailingSlash(n)?n+"/":n}},{key:"_shouldAddTrailingSlash",value:function(e){return this.config.usesTrailingSlash&&!e.endsWith("/")&&!this.regex.fileExt.test(e)}},{key:"_isLinkOk",value:function(e){return null!==e&&"object"===(void 0===e?"undefined":r(e))&&(!this.prefetched.has(e.href)&&e.origin===this.config.siteUrl&&-1===e.href.indexOf("?")&&-1===e.href.indexOf("#")&&!this.regex.excludeUris.test(e.href)&&!this.regex.images.test(e.href))}}],[{key:"run",value:function(){"undefined"!=typeof RocketPreloadLinksConfig&&new n(new RocketBrowserCompatibilityChecker({capture:!0,passive:!0}),RocketPreloadLinksConfig).init()}}]),n}();t.run(); }()); /* ]]> */ /* <![CDATA[ */ var DIVI = {"item_count":"%d Item","items_count":"%d Items"}; var et_builder_utils_params = {"condition":{"diviTheme":true,"extraTheme":false},"scrollLocations":["app","top"],"builderScrollLocations":{"desktop":"app","tablet":"app","phone":"app"},"onloadScrollLocation":"app","builderType":"fe"}; var et_frontend_scripts = {"builderCssContainerPrefix":"#et-boc","builderCssLayoutPrefix":"#et-boc .et-l"}; var et_pb_custom = {"ajaxurl":"https:\/\/www.thomasemlyn.co.uk\/wp-admin\/admin-ajax.php","images_uri":"https:\/\/www.thomasemlyn.co.uk\/wp-content\/themes\/Divi\/images","builder_images_uri":"https:\/\/www.thomasemlyn.co.uk\/wp-content\/themes\/Divi\/includes\/builder\/images","et_frontend_nonce":"d6b6c10182","subscription_failed":"Please, check the fields below to make sure you entered the correct information.","et_ab_log_nonce":"746f6e0fa9","fill_message":"Please, fill in the following fields:","contact_error_message":"Please, fix the following errors:","invalid":"Invalid email","captcha":"Captcha","prev":"Prev","previous":"Previous","next":"Next","wrong_captcha":"You entered the wrong number in captcha.","wrong_checkbox":"Checkbox","ignore_waypoints":"no","is_divi_theme_used":"1","widget_search_selector":".widget_search","ab_tests":[],"is_ab_testing_active":"","page_id":"53630","unique_test_id":"","ab_bounce_rate":"5","is_cache_plugin_active":"yes","is_shortcode_tracking":"","tinymce_uri":"https:\/\/www.thomasemlyn.co.uk\/wp-content\/themes\/Divi\/includes\/builder\/frontend-builder\/assets\/vendors","accent_color":"#1e73be","waypoints_options":[]}; var et_pb_box_shadow_elements = []; /* ]]> */ /* <![CDATA[ */ var et_pb_motion_elements = {"desktop":[],"tablet":[],"phone":[]}; /* ]]> */ /* <![CDATA[ */ var et_pb_sticky_elements = []; /* ]]> */ window.lazyLoadOptions=[{elements_selector:"img[data-lazy-src],.rocket-lazyload,iframe[data-lazy-src]",data_src:"lazy-src",data_srcset:"lazy-srcset",data_sizes:"lazy-sizes",class_loading:"lazyloading",class_loaded:"lazyloaded",threshold:300,callback_loaded:function(element){if(element.tagName==="IFRAME"&&element.dataset.rocketLazyload=="fitvidscompatible"){if(element.classList.contains("lazyloaded")){if(typeof window.jQuery!="undefined"){if(jQuery.fn.fitVids){jQuery(element).parent().fitVids()}}}}}},{elements_selector:".rocket-lazyload",data_src:"lazy-src",data_srcset:"lazy-srcset",data_sizes:"lazy-sizes",class_loading:"lazyloading",class_loaded:"lazyloaded",threshold:300,}];window.addEventListener('LazyLoad::Initialized',function(e){var lazyLoadInstance=e.detail.instance;if(window.MutationObserver){var observer=new MutationObserver(function(mutations){var image_count=0;var iframe_count=0;var rocketlazy_count=0;mutations.forEach(function(mutation){for(var i=0;i<mutation.addedNodes.length;i++){if(typeof mutation.addedNodes[i].getElementsByTagName!=='function'){continue} if(typeof mutation.addedNodes[i].getElementsByClassName!=='function'){continue} images=mutation.addedNodes[i].getElementsByTagName('img');is_image=mutation.addedNodes[i].tagName=="IMG";iframes=mutation.addedNodes[i].getElementsByTagName('iframe');is_iframe=mutation.addedNodes[i].tagName=="IFRAME";rocket_lazy=mutation.addedNodes[i].getElementsByClassName('rocket-lazyload');image_count+=images.length;iframe_count+=iframes.length;rocketlazy_count+=rocket_lazy.length;if(is_image){image_count+=1} if(is_iframe){iframe_count+=1}}});if(image_count>0||iframe_count>0||rocketlazy_count>0){lazyLoadInstance.update()}});var b=document.getElementsByTagName("body")[0];var config={childList:!0,subtree:!0};observer.observe(b,config)}},!1)
https://thomasemlyn.co.uk/about/our-process
Status: 200
Emails: info@thomasemlyn.co.uk
View text
About Our process Partner network Careers Services Accounts Bookkeeping Business consultancy CIS Cloud accounting & Xero Company formation Secretarial Helping your business grow Payroll & P11D R&D tax relief Personal tax VAT Packages Virtual Finance Office (VFO) Elevate – For Ambitious Construction Business Owners Sectors Construction Property Growing businesses Resources Blogs Dates and deadlines Business news Calculators Contact About Our process Partner network Careers Services Accounts Bookkeeping Business consultancy CIS Cloud accounting & Xero Company formation Secretarial Helping your business grow Payroll & P11D R&D tax relief Personal tax VAT Packages Virtual Finance Office (VFO) Elevate – For Ambitious Construction Business Owners Sectors Construction Property Growing businesses Resources Blogs Dates and deadlines Business news Calculators Contact Book a call Our process Home • About • Our process Guiding you step-by-step We don’t like to beat around the bush. If you come to us with a problem or are looking for advice and support, we’ll get the ball rolling as soon as possible. All it takes is a phone call or filling out an online form. Once you’ve done that, we’ll take care of the rest. Initial meeting We will meet with you to discuss your requirements, what you are looking for in an accountant, and to make sure we are a good fit. Proposal We will put together a proposal based on the services you require to help your business succeed. Accept Your accountant is an important asset to your business. Please take your time to review our proposal and accept when you are happy. Review Once we have been appointed as your accountant we will carry out a review of your accounting system, and look to where technology can be applied to make the system more efficient. Let’s set up a meeting Notice: JavaScript is required for this content. /* PLUGIN WIDE STYLES */ .nf-form-content .nf-field-label label { font-size:16px; } .nf-form-content .nf-field-element .ninja-forms-field:not(select) { background-color:#ffffff; border-width:1px; border-style:solid; border-color:#757575; color:#424242; font-size:14px; padding:6px; } .nf-form-content .nf-field-container.listcheckbox-container li { color:#424242; font-size:14px; } .nf-form-content .nf-field-container.submit-container .nf-field-element .ninja-forms-field { background-color:#ffc700; border-width:0px; color:#08376b; font-size:16px; border-radius: 10px; padding-right: 60px; padding-left: 60px; padding-top: 10px; padding-bottom: 10px; font-weight:700; letter-spacing: 0.5px; } .nf-form-content .nf-field-container.submit-container .nf-field-element .ninja-forms-field:hover { background-color:#d61632; color:#ffffff; } .nf-form-content .nf-field-container.save-container .nf-field-element .ninja-forms-field { background-color:#212121; color:#ffffff; } .nf-form-content .nf-field-container.listcountry-container .nf-field-element .ninja-forms-field { background-color:#ffffff; border-width:1px; border-style:solid; border-color:#757575; color:#424242; height:45px; font-size:14px; } .nf-form-content .nf-field-container.listselect-container .nf-field-element .ninja-forms-field { background-color:#ffffff; border-width:1px; border-style:solid; border-color:#757575; color:#424242; height:45px; font-size:14px; } .nf-form-content .nf-field-container.listmultiselect-container .nf-field-element .ninja-forms-field { background-color:#ffffff; border-width:1px; border-style:solid; border-color:#757575; color:#424242; font-size:14px; } .nf-form-content .nf-field-container.listradio-container li { color:#424242; font-size:14px; } .nf-form-content .nf-field-container.firstname-container .nf-field-element .ninja-forms-field { height:45px; } .nf-form-content .nf-field-container.lastname-container .nf-field-element .ninja-forms-field { height:45px; } .nf-form-content .nf-field-container.date-container .nf-field-element .ninja-forms-field { height:45px; } .nf-form-content .nf-field-container.user-analytics-country-container .nf-field-element .ninja-forms-field { height:45px; } .nf-form-content .nf-field-container.textbox-container .nf-field-element .ninja-forms-field { height:45px; } .nf-form-content .nf-field-container.city-container .nf-field-element .ninja-forms-field { height:45px; } .nf-form-content .nf-field-container.address-container .nf-field-element .ninja-forms-field { height:45px; } .nf-form-content .nf-field-container.address2-container .nf-field-element .ninja-forms-field { height:45px; } .nf-form-content .nf-field-container.email-container .nf-field-element .ninja-forms-field { height:45px; } .nf-form-content .nf-field-container.phone-container .nf-field-element .ninja-forms-field { height:45px; } .nf-form-content .nf-field-container.zip-container .nf-field-element .ninja-forms-field { height:45px; } .nf-form-content .nf-field-container.confirm-container .nf-field-element .ninja-forms-field { height:45px; } .nf-form-content .nf-field-container.number-container .nf-field-element .ninja-forms-field { height:45px; } .nf-form-content .nf-field-container.spam-container .nf-field-element .ninja-forms-field { height:45px; } .nf-form-content .nf-field-container.hr-container .nf-field-element .ninja-forms-field { padding:0px; } var formDisplay=1;var nfForms=nfForms||[];var form=[];form.id='10';form.settings={"objectType":"Form Setting","editActive":true,"title":"Process - get in touch form","created_at":"2023-04-28 15:45:08","default_label_pos":"above","show_title":"0","clear_complete":"1","hide_complete":"1","logged_in":"","key":"","conditions":[],"wrapper_class":"","element_class":"","add_submit":"1","not_logged_in_msg":"","sub_limit_number":"","sub_limit_msg":"","calculations":[],"formContentData":[{"formContentData":[{"order":1,"cells":[{"order":0,"fields":["first_name_1615802028192"],"width":50},{"order":1,"fields":["last_name_1615802032447"],"width":50}]},{"order":2,"cells":[{"order":0,"fields":["email"],"width":"100"}]},{"order":3,"cells":[{"order":0,"fields":["message"],"width":"100"}]},{"order":4,"cells":[{"order":0,"fields":["tick_the_box_below_to_confirm_you_re_not_a_robot_1631003981783"],"width":"100"}]},{"order":5,"cells":[{"order":0,"fields":["submit"],"width":"100"}]}],"order":0,"type":"part","clean":true,"title":"Part Title","key":"ynihzog"}],"container_styles_background-color":"","container_styles_border":"","container_styles_border-style":"","container_styles_border-color":"","container_styles_color":"","container_styles_height":"","container_styles_width":"","container_styles_font-size":"","container_styles_margin":"","container_styles_padding":"","container_styles_display":"","container_styles_float":"","container_styles_show_advanced_css":"0","container_styles_advanced":"","title_styles_background-color":"","title_styles_border":"","title_styles_border-style":"","title_styles_border-color":"","title_styles_color":"","title_styles_height":"","title_styles_width":"","title_styles_font-size":"","title_styles_margin":"","title_styles_padding":"","title_styles_display":"","title_styles_float":"","title_styles_show_advanced_css":"0","title_styles_advanced":"","row_styles_background-color":"","row_styles_border":"","row_styles_border-style":"","row_styles_border-color":"","row_styles_color":"","row_styles_height":"","row_styles_width":"","row_styles_font-size":"","row_styles_margin":"","row_styles_padding":"","row_styles_display":"","row_styles_show_advanced_css":"0","row_styles_advanced":"","row-odd_styles_background-color":"","row-odd_styles_border":"","row-odd_styles_border-style":"","row-odd_styles_border-color":"","row-odd_styles_color":"","row-odd_styles_height":"","row-odd_styles_width":"","row-odd_styles_font-size":"","row-odd_styles_margin":"","row-odd_styles_padding":"","row-odd_styles_display":"","row-odd_styles_show_advanced_css":"0","row-odd_styles_advanced":"","success-msg_styles_background-color":"","success-msg_styles_border":"","success-msg_styles_border-style":"","success-msg_styles_border-color":"","success-msg_styles_color":"","success-msg_styles_height":"","success-msg_styles_width":"","success-msg_styles_font-size":"","success-msg_styles_margin":"","success-msg_styles_padding":"","success-msg_styles_display":"","success-msg_styles_show_advanced_css":"0","success-msg_styles_advanced":"","error_msg_styles_background-color":"","error_msg_styles_border":"","error_msg_styles_border-style":"","error_msg_styles_border-color":"","error_msg_styles_color":"","error_msg_styles_height":"","error_msg_styles_width":"","error_msg_styles_font-size":"","error_msg_styles_margin":"","error_msg_styles_padding":"","error_msg_styles_display":"","error_msg_styles_show_advanced_css":"0","error_msg_styles_advanced":"","currency":"","unique_field_error":"A form with this value has already been submitted.","save_progress_allow_multiple":"","save_progress_table_legend":"Load saved progress","save_progress_table_columns":[{"errors":[],"max_options":0,"label":"Column Title","field":"{field}","order":0,"settingModel":{"settings":false,"hide_merge_tags":false,"error":false,"name":"save_progress_table_columns","type":"option-repeater","label":"Save Table Columns <a href=\"#\" class=\"nf-add-new\">Add New<\/a>","width":"full","group":"primary","columns":{"field":{"header":"Field Key","default":""}},"value":[{"label":"Column Title","field":"{field}","order":0}],"tmpl_row":"tmpl-nf-save-progress-table-columns-repeater-row"}}],"mp_breadcrumb":"1","mp_progress_bar":"1","mp_display_titles":"0","breadcrumb_container_styles_show_advanced_css":"0","breadcrumb_buttons_styles_show_advanced_css":"0","breadcrumb_button_hover_styles_show_advanced_css":"0","breadcrumb_active_button_styles_show_advanced_css":"0","progress_bar_container_styles_show_advanced_css":"0","progress_bar_fill_styles_show_advanced_css":"0","part_titles_styles_show_advanced_css":"0","navigation_container_styles_show_advanced_css":"0","previous_button_styles_show_advanced_css":"0","next_button_styles_show_advanced_css":"0","navigation_hover_styles_show_advanced_css":"0","repeatable_fieldsets":"","changeEmailErrorMsg":"Please enter a valid email address!","changeDateErrorMsg":"Please enter a valid date!","confirmFieldErrorMsg":"These fields must match!","fieldNumberNumMinError":"Number Min Error","fieldNumberNumMaxError":"Number Max Error","fieldNumberIncrementBy":"Please increment by ","formErrorsCorrectErrors":"Please correct errors before submitting this form.","validateRequiredField":"This is a required field.","honeypotHoneypotError":"Honeypot Error","fieldsMarkedRequired":" ","drawerDisabled":false,"form_title_heading_level":"3","header_position":"left","footer_position":"left","allow_public_link":0,"embed_form":"","ninjaForms":"Ninja Forms","fieldTextareaRTEInsertLink":"Insert Link","fieldTextareaRTEInsertMedia":"Insert Media","fieldTextareaRTESelectAFile":"Select a file","formHoneypot":"If you are a human seeing this field, please leave it empty.","fileUploadOldCodeFileUploadInProgress":"File Upload in Progress.","fileUploadOldCodeFileUpload":"FILE UPLOAD","currencySymbol":"$","thousands_sep":",","decimal_point":".","siteLocale":"en_GB","dateFormat":"m\/d\/Y","startOfWeek":"1","of":"of","previousMonth":"Previous Month","nextMonth":"Next Month","months":["January","February","March","April","May","June","July","August","September","October","November","December"],"monthsShort":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"weekdays":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],"weekdaysShort":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"weekdaysMin":["Su","Mo","Tu","We","Th","Fr","Sa"],"recaptchaConsentMissing":"reCaptcha validation couldn't load.","recaptchaMissingCookie":"reCaptcha v3 validation couldn't load the cookie needed to submit the form.","recaptchaConsentEvent":"Accept reCaptcha cookies before sending the form.","currency_symbol":"","beforeForm":"","beforeFields":"","afterFields":"","afterForm":""};form.fields=[{"objectType":"Field","objectDomain":"fields","editActive":false,"order":1,"idAttribute":"id","label":"First name","key":"first_name_1615802028192","type":"textbox","created_at":"2019-02-05 10:57:14","label_pos":"above","required":1,"placeholder":"","default":"","wrapper_class":"","element_class":"","container_class":"","input_limit":"","input_limit_type":"characters","input_limit_msg":"Character(s) left","manual_key":"","disable_input":"","admin_label":"","help_text":"","desc_text":"","disable_browser_autocomplete":"","mask":"","custom_mask":"","wrap_styles_background-color":"","wrap_styles_border":"","wrap_styles_border-style":"","wrap_styles_border-color":"","wrap_styles_color":"","wrap_styles_height":"","wrap_styles_width":"","wrap_styles_font-size":"","wrap_styles_margin":"","wrap_styles_padding":"","wrap_styles_display":"","wrap_styles_float":"","wrap_styles_show_advanced_css":0,"wrap_styles_advanced":"","label_styles_background-color":"","label_styles_border":"","label_styles_border-style":"","label_styles_border-color":"","label_styles_color":"","label_styles_height":"","label_styles_width":"","label_styles_font-size":"","label_styles_margin":"","label_styles_padding":"","label_styles_display":"","label_styles_float":"","label_styles_show_advanced_css":0,"label_styles_advanced":"","element_styles_background-color":"","element_styles_border":"","element_styles_border-style":"","element_styles_border-color":"","element_styles_color":"","element_styles_height":"","element_styles_width":"","element_styles_font-size":"","element_styles_margin":"","element_styles_padding":"","element_styles_display":"","element_styles_float":"","element_styles_show_advanced_css":0,"element_styles_advanced":"","cellcid":"c4793","custom_name_attribute":"","personally_identifiable":"","value":"","drawerDisabled":"","field_label":"First name","field_key":"first_name_1615802028192","id":65,"beforeField":"","afterField":"","parentType":"textbox","element_templates":["textbox","input"],"old_classname":"","wrap_template":"wrap"},{"objectType":"Field","objectDomain":"fields","editActive":false,"order":2,"idAttribute":"id","type":"lastname","label":"Last name","key":"last_name_1615802032447","label_pos":"above","required":1,"default":"","placeholder":"","container_class":"","element_class":"","admin_label":"","help_text":"","custom_name_attribute":"lname","personally_identifiable":1,"wrap_styles_border":"","wrap_styles_width":"","wrap_styles_margin":"","wrap_styles_padding":"","wrap_styles_float":"","wrap_styles_show_advanced_css":0,"label_styles_border":"","label_styles_width":"","label_styles_font-size":"","label_styles_margin":"","label_styles_padding":"","label_styles_float":"","label_styles_show_advanced_css":0,"element_styles_border":"","element_styles_width":"","element_styles_font-size":"","element_styles_margin":"","element_styles_padding":"","element_styles_float":"","element_styles_show_advanced_css":0,"cellcid":"c4796","value":"","drawerDisabled":"","field_label":"Last name","field_key":"last_name_1615802032447","id":69,"beforeField":"","afterField":"","parentType":"lastname","element_templates":["lastname","input"],"old_classname":"","wrap_template":"wrap"},{"objectType":"Field","objectDomain":"fields","editActive":false,"order":3,"idAttribute":"id","label":"Email","key":"email","type":"email","created_at":"2019-02-05 10:57:14","label_pos":"above","required":1,"placeholder":"","default":"","wrapper_class":"","element_class":"","container_class":"","admin_label":"","help_text":"","desc_text":"","wrap_styles_background-color":"","wrap_styles_border":"","wrap_styles_border-style":"","wrap_styles_border-color":"","wrap_styles_color":"","wrap_styles_height":"","wrap_styles_width":"","wrap_styles_font-size":"","wrap_styles_margin":"","wrap_styles_padding":"","wrap_styles_display":"","wrap_styles_float":"","wrap_styles_show_advanced_css":0,"wrap_styles_advanced":"","label_styles_background-color":"","label_styles_border":"","label_styles_border-style":"","label_styles_border-color":"","label_styles_color":"","label_styles_height":"","label_styles_width":"","label_styles_font-size":"","label_styles_margin":"","label_styles_padding":"","label_styles_display":"","label_styles_float":"","label_styles_show_advanced_css":0,"label_styles_advanced":"","element_styles_background-color":"","element_styles_border":"","element_styles_border-style":"","element_styles_border-color":"","element_styles_color":"","element_styles_height":"","element_styles_width":"","element_styles_font-size":"","element_styles_margin":"","element_styles_padding":"","element_styles_display":"","element_styles_float":"","element_styles_show_advanced_css":0,"element_styles_advanced":"","cellcid":"c4799","custom_name_attribute":"email","personally_identifiable":1,"value":"","field_label":"Email","field_key":"email","id":66,"beforeField":"","afterField":"","parentType":"email","element_templates":["email","input"],"old_classname":"","wrap_template":"wrap"},{"objectType":"Field","objectDomain":"fields","editActive":false,"order":4,"idAttribute":"id","label":"Message","key":"message","type":"textarea","created_at":"2019-02-05 10:57:14","label_pos":"above","required":1,"placeholder":"","default":"","wrapper_class":"","element_class":"","container_class":"","input_limit":"","input_limit_type":"characters","input_limit_msg":"Character(s) left","manual_key":"","disable_input":"","admin_label":"","help_text":"","desc_text":"","disable_browser_autocomplete":"","textarea_rte":"","disable_rte_mobile":"","textarea_media":"","wrap_styles_background-color":"","wrap_styles_border":"","wrap_styles_border-style":"","wrap_styles_border-color":"","wrap_styles_color":"","wrap_styles_height":"","wrap_styles_width":"","wrap_styles_font-size":"","wrap_styles_margin":"","wrap_styles_padding":"","wrap_styles_display":"","wrap_styles_float":"","wrap_styles_show_advanced_css":0,"wrap_styles_advanced":"","label_styles_background-color":"","label_styles_border":"","label_styles_border-style":"","label_styles_border-color":"","label_styles_color":"","label_styles_height":"","label_styles_width":"","label_styles_font-size":"","label_styles_margin":"","label_styles_padding":"","label_styles_display":"","label_styles_float":"","label_styles_show_advanced_css":0,"label_styles_advanced":"","element_styles_background-color":"","element_styles_border":"","element_styles_border-style":"","element_styles_border-color":"","element_styles_color":"","element_styles_height":"","element_styles_width":"","element_styles_font-size":"","element_styles_margin":"","element_styles_padding":"","element_styles_display":"","element_styles_float":"","element_styles_show_advanced_css":0,"element_styles_advanced":"","cellcid":"c4802","value":"","field_label":"Message","field_key":"message","id":67,"beforeField":"","afterField":"","parentType":"textarea","element_templates":["textarea","input"],"old_classname":"","wrap_template":"wrap"},{"objectType":"Field","objectDomain":"fields","editActive":false,"order":5,"idAttribute":"id","label":"Tick the box below to confirm you're not a robot","type":"recaptcha","container_class":"","element_class":"","wrap_styles_border":"","wrap_styles_width":"","wrap_styles_margin":"","wrap_styles_padding":"","wrap_styles_float":"","wrap_styles_show_advanced_css":0,"label_styles_border":"","label_styles_width":"","label_styles_font-size":"","label_styles_margin":"","label_styles_padding":"","label_styles_float":"","label_styles_show_advanced_css":0,"size":"visible","key":"tick_the_box_below_to_confirm_you_re_not_a_robot_1631003981783","cellcid":"c4805","drawerDisabled":"","field_label":"Tick the box below to confirm you're not a robot","field_key":"tick_the_box_below_to_confirm_you_re_not_a_robot_1631003981783","id":70,"beforeField":"","afterField":"","value":"","label_pos":"above","parentType":"textbox","element_templates":["recaptcha","input"],"old_classname":"","wrap_template":"wrap","site_key":"6LcsB94UAAAAAHpUq4GS1aA2W50yVhX011JEzCm3","theme":"light","lang":"en-GB"},{"objectType":"Field","objectDomain":"fields","editActive":false,"order":6,"idAttribute":"id","label":"Submit","key":"submit","type":"submit","created_at":"2019-02-05 10:57:14","processing_label":"Processing","container_class":"","element_class":"","wrap_styles_background-color":"","wrap_styles_border":"","wrap_styles_border-style":"","wrap_styles_border-color":"","wrap_styles_color":"","wrap_styles_height":"","wrap_styles_width":"","wrap_styles_font-size":"","wrap_styles_margin":"","wrap_styles_padding":"","wrap_styles_display":"","wrap_styles_float":"","wrap_styles_show_advanced_css":0,"wrap_styles_advanced":"","label_styles_background-color":"","label_styles_border":"","label_styles_border-style":"","label_styles_border-color":"","label_styles_color":"","label_styles_height":"","label_styles_width":"","label_styles_font-size":"","label_styles_margin":"","label_styles_padding":"","label_styles_display":"","label_styles_float":"","label_styles_show_advanced_css":0,"label_styles_advanced":"","element_styles_background-color":"","element_styles_border":"","element_styles_border-style":"","element_styles_border-color":"","element_styles_color":"","element_styles_height":"","element_styles_width":"","element_styles_font-size":"","element_styles_margin":"","element_styles_padding":"","element_styles_display":"","element_styles_float":"","element_styles_show_advanced_css":0,"element_styles_advanced":"","submit_element_hover_styles_background-color":"","submit_element_hover_styles_border":"","submit_element_hover_styles_border-style":"","submit_element_hover_styles_border-color":"","submit_element_hover_styles_color":"","submit_element_hover_styles_height":"","submit_element_hover_styles_width":"","submit_element_hover_styles_font-size":"","submit_element_hover_styles_margin":"","submit_element_hover_styles_padding":"","submit_element_hover_styles_display":"","submit_element_hover_styles_float":"","submit_element_hover_styles_show_advanced_css":0,"submit_element_hover_styles_advanced":"","cellcid":"c4808","field_label":"Submit","field_key":"submit","id":68,"beforeField":"","afterField":"","value":"","label_pos":"above","parentType":"textbox","element_templates":["submit","button","input"],"old_classname":"","wrap_template":"wrap-no-label"}];nfForms.push(form); <div class="nf-mp-header"></div> <div class="nf-mp-body"></div> <div class="nf-mp-footer"></div> {{{ data.renderProgressBar() }}} {{{ data.renderBreadcrumbs() }}} {{{ data.renderPartTitle() }}} <h3> {{{ data.title }}} </h3> {{{ data.renderNextPrevious() }}} <ul class="nf-next-previous"> <# if ( data.showPrevious ) { #> <li class="nf-previous-item"> <input type="button" class="nf-previous" value="{{{ data.prevLabel }}}" /> </li> <# } #> <# if ( data.showNext ) { #> <li class="nf-next-item"> <input type="button" class="nf-next" value="{{{ data.nextLabel }}}" /> </li> <# } #> </ul> <ul class="nf-breadcrumbs"> <# _.each( data.parts, function( part, index ) { #> <li class="{{{ ( data.currentIndex == index ) ? 'active' : '' }}} {{{ ( part.errors ) ? 'errors' : '' }}}"> <a href="#" class="nf-breadcrumb" data-index="{{{ index }}}">{{{ ( part.errors ) ? '' : '' }}} {{{ part.title }}}</a> </li> <# } ); #> </ul> <div class="nf-progress-container"> <div class="nf-progress" style="width: {{{ data.percent }}}%;"></div> </div> <nf-fields></nf-fields> <nf-cells></nf-cells> Growth on your mind? Let’s talk We’ll chat about your business, your future, and your aspirations. And then we’ll help you get there. Contact us Book a call Contact us 01245 801611 info@thomasemlyn.co.uk 7 Bellefield House 104 New London Road Chelmsford Essex CM2 0DG Useful linksTerms & Conditions Privacy Statement & Cookie Policy Cookie Information Accessibility Statement Copyright Legal information Thomas Emlyn is registered in England & Wales. Company Registration Number: 13498885 Facebook Twitter LinkedIn {"prefetch":[{"source":"document","where":{"and":[{"href_matches":"\/*"},{"not":{"href_matches":["\/wp-*.php","\/wp-admin\/*","\/wp-content\/uploads\/*","\/wp-content\/*","\/wp-content\/plugins\/*","\/wp-content\/themes\/sift\/*","\/wp-content\/themes\/Divi\/*","\/*\\?(.+)"]}},{"not":{"selector_matches":"a[rel~=\"nofollow\"]"}},{"not":{"selector_matches":".no-prefetch, .no-prefetch a"}}]},"eagerness":"conservative"}]} jQuery(document).ready(function($) { if($('.menu-item-has-children').find('a') ) { $('.menu-item-has-children').find('a').addClass('da11y-submenu'); $('.menu-item-has-children').find('a').not('.sub-menu a').attr('aria-expanded', 'false'); } $('.da11y-submenu').on('focus', function() { $(this).not('.sub-menu a').attr('aria-expanded', 'true'); $(this).siblings('.sub-menu').addClass('da11y-submenu-show'); $(this).trigger('mouseenter'); }); $('.menu-item-has-children a').on('focusout', function() { if($(this).parent().not('.menu-item-has-children').is(':last-child')) { $(this).parents('.menu-item-has-children').children('.da11y-submenu').attr('aria-expanded', 'false').trigger('mouseleave').siblings('.sub-menu').removeClass('da11y-submenu-show'); } }); /** * Generate search form styles. * * @since Divi v3.0.23 */ function et_set_search_form_css() { const search_container = $('.et_search_form_container'); const body = $('body'); if (search_container.hasClass('et_pb_search_visible')) { const header_height = $('#main-header').innerHeight(); const menu_width = $('#top-menu').width(); const font_size = $('#top-menu li a').css('font-size'); search_container.css({ height: header_height + 'px' }); search_container.find('input').css('font-size', font_size); if (!body.hasClass('et_header_style_left')) { search_container.css('max-width', menu_width + 60); } else { search_container.find('form').css('max-width', menu_width + 60); } } } /** * Show the search. * * @since Divi v3.0.23 */ function show_search() { const search_container = $('.et_search_form_container'); if (search_container.hasClass('et_pb_is_animating')) { return; } $('.et_menu_container').removeClass('et_pb_menu_visible et_pb_no_animation').addClass('et_pb_menu_hidden'); search_container.removeClass('et_pb_search_form_hidden et_pb_no_animation').addClass('et_pb_search_visible et_pb_is_animating'); setTimeout(function () { $('.et_menu_container').addClass('et_pb_no_animation'); search_container.addClass('et_pb_no_animation').removeClass('et_pb_is_animating'); }, 1000); search_container.find('input').focus(); et_set_search_form_css(); } /** * Hide the search. * * @since Divi v3.0.23 */ function hide_search() { if ($('.et_search_form_container').hasClass('et_pb_is_animating')) { return; } $('.et_menu_container').removeClass('et_pb_menu_hidden et_pb_no_animation').addClass('et_pb_menu_visible'); $('.et_search_form_container').removeClass('et_pb_search_visible et_pb_no_animation').addClass('et_pb_search_form_hidden et_pb_is_animating'); setTimeout(function () { $('.et_menu_container').addClass('et_pb_no_animation'); $('.et_search_form_container').addClass('et_pb_no_animation').removeClass('et_pb_is_animating'); }, 1000); } $(this).keyup(function () { $('.et-search-field').focus(function () { show_search(); }).blur(function () { hide_search(); }); }); }); jQuery(document).ready(function($) { /** * Add skiplink to page. */ function skipTo(target) { const skiplink = '<a href="' + target + '" class="skip-link da11y-screen-reader-text">Skip to content</a>'; $(target).attr('tabindex', -1); $('body').prepend(skiplink); } skipTo('#main-content'); /** * Use js to focus for internal links. */ $('a[href^="#"]').click(function () { const content = $('#' + $(this).attr('href').slice(1)); content.focus(); }); }); jQuery(document).ready(function($) { let lastKey = new Date(); let lastClick = new Date(); /** * Only apply focus styles for keyboard usage. */ $(this).on('focusin', function (e) { $('.keyboard-outline').removeClass('keyboard-outline'); const wasByKeyboard = lastClick < lastKey; if (wasByKeyboard) { $(e.target).addClass('keyboard-outline'); } }); $(this).on('mousedown', function () { lastClick = new Date(); }); $(this).on('keydown', function () { lastKey = new Date(); }); }); jQuery(document).ready(function($) { /** * Allow Accordion & Toggle Divi modules to be focusable. * * @divi-module Accordion, Toggle */ $('.et_pb_toggle').each(function () { $(this).attr('tabindex', 0); }); /** * Prevent spacebar from scolling page when toggle & accordion have focus. * * @divi-module Accordion, Toggle */ $('.et_pb_toggle').on('keydown', function(e) { // Spacebar. if (e.which === 32){ e.preventDefault(); } }); /** * Expand Accordion & Toggle modules when enter or spacebar are pressed while focused. * * @divi-module Accordion, Toggle */ $(document).on('keyup', function(e) { // Spacebar & Enter. if (e.which === 13 || e.which === 32) { $('.et_pb_toggle:focus .et_pb_toggle_title').trigger('click'); } }); }); jQuery(document).ready(function($) { /** * Add unique ID to search module input with matching label. * * @divi-module Search */ $('.et-search-field').each(function (e) { $(this).attr('id', 'et_pb_search_module_input_' + e); $('#et_pb_search_module_input_' + e).before('<label class="da11y-screen-reader-text" for="et_pb_search_module_input_' + e + '">Search for...</label>'); $('#et_pb_search_module_input_' + e).after('<button type="submit" class="da11y-screen-reader-text">Search</button>'); }); /** * Add unique ID to contact module input with matching label. * * @divi-module Contact */ $('.et_pb_contact_form').each(function (e) { $(this).find('.et_pb_contact_captcha_question').parent().wrap('<label></label>'); }); /** * Correct labels on social media icons */ $('.et-social-facebook a.icon span').text('Facebook'); $('.et-social-twitter a.icon span').text('Twitter'); $('.et-social-google-plus a.icon span').text('Google Plus'); $('.et-social-pinterest a.icon span').text('Pinterest'); $('.et-social-linkedin a.icon span').text('LinkedIn'); $('.et-social-tumblr a.icon span').text('Tumblr'); $('.et-social-instagram a.icon span').text('Instagram'); $('.et-social-skype a.icon span').text('Skype'); $('.et-social-flikr a.icon span').text('Flickr'); $('.et-social-myspace a.icon span').text('Myspace'); $('.et-social-dribbble a.icon span').text('Dribble'); $('.et-social-youtube a.icon span').text('YouTube'); $('.et-social-vimeo a.icon span').text('Vimeo'); $('.et-social-rss a.icon span').text('RSS'); }); jQuery(document).ready(function($) { /** * Add role="tabList". * * @divi-module Tab */ $('.et_pb_tabs_controls').each(function () { $(this).attr('role', 'tabList'); }); /** * Add role="presentation". * * @divi-module Tab */ $('.et_pb_tabs_controls li').each(function () { $(this).attr('role', 'presentation'); }); /** * Add role="tab". * * @divi-module Tab */ $('.et_pb_tabs_controls a').each(function () { $(this).attr('role', 'tab'); }); /** * Add role="tabpanel". * * @divi-module Tab */ $('.et_pb_tab').each(function () { $(this).attr('role', 'tabpanel'); }); /** * Add initial state: * * aria-selected="false" * aria-expanded="false" * tabindex=-1 * * @divi-module Tab */ $('.et_pb_tabs_controls li:not(.et_pb_tab_active) a').each(function () { $(this).attr({ 'aria-selected': 'false', 'aria-expanded': 'false', tabindex: -1 }); }); /** * Add initial state: * * aria-selected="true" * aria-expanded="true" * tabindex=-1 * * @divi-module Tab */ $('.et_pb_tabs_controls li.et_pb_tab_active a').each(function () { $(this).attr({ 'aria-selected': 'true', 'aria-expanded': 'true', tabindex: 0 }); }); /** * Add unique ID to tab controls. * Add aria-controls="x". * * @divi-module Tab */ $('.et_pb_tabs_controls a').each(function (e) { $(this).attr({ id: 'et_pb_tab_control_' + e, 'aria-controls': 'et_pb_tab_panel_' + e }); }); /** * Add unique ID to tab panels. * Add aria-labelledby="x". * * @divi-module Tab */ $('.et_pb_tab').each(function (e) { $(this).attr({ id: 'et_pb_tab_panel_' + e, 'aria-labelledby': 'et_pb_tab_control_' + e }); }); /** * Set initial inactive tab panels to aria-hidden="false". * * @divi-module Tab */ $('.et_pb_tab.et_pb_active_content').each(function () { $(this).attr('aria-hidden', 'false'); }); /** * Set initial inactive tab panels to aria-hidden="true". * * @divi-module Tab */ $('.et_pb_tab:not(.et_pb_active_content)').each(function () { $(this).attr('aria-hidden', 'true'); }); /** * Add unique ID to tab module. * Need to use data attribute because a regular ID somehow interferes with Divi. * * @divi-module Tab */ $('.et_pb_tabs').each(function (e) { $(this).attr('data-da11y-id', 'et_pb_tab_module_' + e); }); /** * Update aria-selected attribute when tab is clicked or when hitting enter while focused. * * @divi-module Tab */ $('.et_pb_tabs_controls a').on('click', function () { const id = $(this).attr('id'); const namespace = $(this).closest('.et_pb_tabs').attr('data-da11y-id'); // Used as a selector to scope changes to current module. // Reset all tab controls to be aria-selected="false" & aria-expanded="false". $('[data-da11y-id="' + namespace + '"] .et_pb_tabs_controls a').attr({ 'aria-selected': 'false', 'aria-expanded': 'false', tabindex: -1 }); // Make active tab control aria-selected="true" & aria-expanded="true". $(this).attr({ 'aria-selected': 'true', 'aria-expanded': 'true', tabindex: 0 }); // Reset all tabs to be aria-hidden="true". $('#' + namespace + ' .et_pb_tab').attr('aria-hidden', 'true'); // Label active tab panel as aria-hidden="false". $('[aria-labelledby="' + id + '"]').attr('aria-hidden', 'false'); }); // Arrow navigation for tab modules $('.et_pb_tabs_controls a').keyup(function (e) { const namespace = $(this).closest('.et_pb_tabs').attr('data-da11y-id'); const module = $('[data-da11y-id="' + namespace + '"]'); if (e.which === 39) { // Right. const next = module.find('li.et_pb_tab_active').next(); if (next.length > 0) { next.find('a').trigger('click'); } else { module.find('li:first a').trigger('click'); } } else if (e.which === 37) { // Left. const next = module.find('li.et_pb_tab_active').prev(); if (next.length > 0) { next.find('a').trigger('click'); } else { module.find('li:last a').trigger('click'); } } $('.et_pb_tabs_controls a').removeClass('keyboard-outline'); module.find('li.et_pb_tab_active a').addClass('keyboard-outline'); }); /** * Add unique ID to search module. * Need to use data attribute because a regular ID somehow interferes with Divi. * * @divi-module Search */ $('.et_pb_search').each(function (e) { $(this).attr('data-da11y-id', 'et_pb_search_module_' + e); }); /** * Add aria-required="true" to inputs. * * @divi-module Contact Form */ $('[data-required_mark="required"]').each(function () { $(this).attr('aria-required', 'true'); }); /** * Hide hidden error field on contact form. * * @divi-module Contact Form */ $('.et_pb_contactform_validate_field').attr('type', 'hidden'); /** * Add alert role to error or success contact form message * * @divi-module Contact Form */ $('.et-pb-contact-message').attr('role', 'alert'); /** * Add main role to main-content */ $('#main-content').attr('role', 'main'); /** * Add aria-label="x". * * @divi-module Fullwidth header, comment-wrap */ $('.et_pb_fullwidth_header').each(function (e) { $(this).attr('aria-label', 'Wide Header' + e); }); $('#comment-wrap').attr('aria-label', 'Comments'); }); jQuery(document).ready(function($) { /** * Add aria-hidden="true" to all icons */ $('#et_top_search, .et_close_search_field, .et_pb_main_blurb_image').attr('aria-hidden', 'true'); }); jQuery(document).ready(function($) { /** * Mobile menu Aria support. */ $('.mobile_menu_bar_toggle').attr({'role': 'button', 'aria-expanded': 'false', 'tabindex': 0}); $('.mobile_menu_bar_toggle').on('click', function() { if($(this).hasClass('a11y-mobile-menu-open') ) { $(this).removeClass('a11y-mobile-menu-open').attr('aria-expanded', 'false'); } else { $(this).addClass('a11y-mobile-menu-open').attr('aria-expanded', 'true'); } }); }); jQuery(function($){$(".divi-mobile-stop-stacking").each(function(){$(this).parents(".et_pb_row").addClass("divi-mobile-stop-stacking-row")})}); var et_animation_data = [{"class":"et_pb_button_0_tb_header","style":"slideRight","repeat":"once","duration":"1000ms","delay":"0ms","intensity":"10%","starting_opacity":"0%","speed_curve":"ease-in-out"},{"class":"et_pb_sift_breadcrumbs_module_0","style":"fade","repeat":"once","duration":"1000ms","delay":"0ms","intensity":"50%","starting_opacity":"0%","speed_curve":"ease-in-out"},{"class":"et_pb_image_0","style":"slideBottom","repeat":"once","duration":"1000ms","delay":"0ms","intensity":"10%","starting_opacity":"0%","speed_curve":"ease-in-out"},{"class":"et_pb_image_1","style":"slideBottom","repeat":"once","duration":"1000ms","delay":"200ms","intensity":"10%","starting_opacity":"0%","speed_curve":"ease-in-out"},{"class":"et_pb_image_2","style":"slideBottom","repeat":"once","duration":"1000ms","delay":"200ms","intensity":"10%","starting_opacity":"0%","speed_curve":"ease-in-out"},{"class":"et_pb_image_3","style":"slideBottom","repeat":"once","duration":"1000ms","delay":"400ms","intensity":"10%","starting_opacity":"0%","speed_curve":"ease-in-out"},{"class":"et_pb_image_4","style":"fade","repeat":"once","duration":"2000ms","delay":"0ms","intensity":"50%","starting_opacity":"0%","speed_curve":"ease-in-out"},{"class":"et_pb_button_0","style":"slideBottom","repeat":"once","duration":"1000ms","delay":"0ms","intensity":"10%","starting_opacity":"0%","speed_curve":"ease-in-out"},{"class":"et_pb_button_1","style":"slideBottom","repeat":"once","duration":"1000ms","delay":"300ms","intensity":"10%","starting_opacity":"0%","speed_curve":"ease-in-out"}]; jQuery(document).ready(function( $ ) { if ( $('#main-header').length > 0 && $('.et-l--header').length == 0 ) { } else if ( $('.et-l--header').length > 0 && $('#main-header').length == 0 ) { } else { $('.divi-mobile-menu').remove(); $('body').addClass("no-mobile-menu"); } // if .dm-above-layout is on the page, get the height of this element // add it as margin-top to #open-button var dm_above_layout = $(".dm-above-layout"); if (dm_above_layout.length > 0) { var dm_above_layout_height = dm_above_layout.outerHeight(); $("#open-button").css("margin-top", dm_above_layout_height); // add padding to the top of #main-content $("#main-content").css("padding-top", dm_above_layout_height); } $("body").addClass("dm-custom-header"); function check_from_top(){ var scroll = $(window).scrollTop(); if (scroll >= 300) { $("#dm-header").addClass("fixed-header"); $("body").addClass("dm-fixed-header"); } else { $("#dm-header").removeClass("fixed-header"); $("body").removeClass("dm-fixed-header"); } if (scroll >= 50) { $(".dm-not-fixed-scroll #dm-header #et_top_search_mob").removeClass("active"); $("body.dm-not-fixed-scroll").removeClass("search-active"); } } check_from_top(); $(window).scroll(function() { check_from_top(); }); $("body").addClass("dm-bm-pos-right"); $("body").addClass("dm-expand-shape"); $("body").addClass("dm-divi-engine"); $("body").addClass("dm-circle-expand"); $("body").addClass("dm-menuside-right"); var get_one_click = false; jQuery(document).on('touchstart click', ".anchorpoint", function(e){ var _this = jQuery(e.target); if (jQuery("body").hasClass("show-menu")) { jQuery('#open-button').trigger('click'); } var getLink = _this.find('a').attr('href'); var currentUrl = window.location.href; var linkUrlPart = ''; var linkAnchorPart = ''; var currentUrlPart = currentUrl; e.preventDefault(); if(currentUrl.indexOf("#") != -1){ currentUrlPart = getLink.substring(0, getLink.indexOf("#") ); } if(getLink.indexOf("#") == 0){ linkUrlPart = currentUrlPart; linkAnchorPart = getLink.substring(1); }else if (getLink.indexOf("#") != -1 ){ linkUrlPart = getLink.substring(0, getLink.indexOf("#") ); linkAnchorPart = getLink.substring(getLink.indexOf("#")+1); } if ( linkUrlPart == currentUrlPart ){ // Same Url if (jQuery('#' + linkAnchorPart).length) { if ( linkAnchorPart != '' ){ var target_offset = jQuery('#' + linkAnchorPart).offset(); var top = target_offset.top; var header_fixed = "notfixed"; if ( header_fixed == 'fixed' ) { var header_height_scroll = 80; var header_height = 78; var scroll_distance = 300; if ( target_offset.top < scroll_distance ) { if ( target_offset.top < header_height ) { top = 0; } else { top = top - header_height; } } else { top = top - header_height_scroll; } } window.scrollTo({top: top, behavior: "smooth"}); //document.getElementById(linkAnchorPart).scrollIntoView({ behavior: "smooth" }); } } else { window.location.href = getLink; } } else { window.location.href = getLink; } }); }); // check if menu-wrap__inner exists (function () { const menuWrapInner = document.getElementsByClassName("menu-wrap__inner")[0]; if (menuWrapInner && menuWrapInner.children.length > 0) { menuWrapInner.children[0].onscroll = function () { if (this.scrollTop >= 80) { jQuery('body').addClass('menu-wrap-scroll'); } else { jQuery('body').removeClass('menu-wrap-scroll'); } } } })(); jQuery(document).ready(function($){ var isOpen = false; var bodyEl = document.body; $(document).on('click', '#open-button', function(ev){ toggleMenu(ev); }); $(document).on('click', '#close-button', function(ev){ toggleMenu(ev); }) // close the menu element if the target it´s not the menu element or one of its descendants.. $(document).on( 'click', '#et-main-area', function(ev) { var target = $(ev.target); if( isOpen && target !== $('#open-button') ) { toggleMenu(ev); } } ); function toggleMenu(event) { event.stopPropagation(); event.preventDefault(); if( isOpen ) { $(bodyEl).removeClass( 'show-menu' ); $('#open-button').removeClass( 'is-active' ); $( '#dm_nav' ).removeClass( 'active' ); $('#dm-menu').find('.menu-item-has-children').each(function() { $(this).removeClass('visible'); }); setTimeout(function (){ $('#dm_nav').addClass( 'menuclosed' ); }, 800); }else { $(bodyEl).addClass( 'show-menu' ); $('#open-button').addClass( 'is-active' ); $( '#dm_nav' ).addClass( 'active' ); $( '#dm_nav' ).removeClass( 'menuclosed' ); } isOpen = !isOpen; } }); jQuery(document).ready(function( $ ) { $("body").addClass("dm-ch-logo-pos-left"); $("body").addClass("dm-ch-cart-icon-pos-none"); $("body").addClass("dm-ch-search-icon-pos-right"); $("body").addClass("dm-ch-account-icon-pos-none"); $("body").addClass("dm-search-icon-header"); $("#dm-header #et_top_search_mob #et_search_icon").on('touchstart click', function(event) { $("#dm-header #et_top_search_mob").addClass("active"); setTimeout( function() { $("body").addClass("search-active"); }, 500); }); $(document).on('touchstart click', ".search-active #et_top_search_mob #et_search_icon" , function(event){ console.log("added"); $( ".et-search-form" ).submit(); }); $("#dm-header #et_top_search_mob .close").on('touchstart click', function(event) { $("#dm-header #et_top_search_mob").removeClass("active"); $("body").removeClass("search-active"); }); $("body").addClass("dm-not-fixed-scroll"); }); jQuery(document).ready(function($){ $("body").addClass("bc-expand-circle"); var overlayNav = $('.cd-overlay-nav'), overlayContent = $('.cd-overlay-content'), navigation = $('#dm_nav .menu-wrap__inner'), toggleNav = $('#open-button'), burger_bg = $('.menu-wrap'); // Initialize navigation and content layers layerInit(); // Commented this out as when resizing, the animation to open the menu woudld be delayed sometimes even up to 5s - SUP-7777 // $(window).on('resize', function(){ // window.requestAnimationFrame(layerInit); // }); // Open/close the menu and cover layers toggleNav.on('click', function(event) { if (!burger_bg.hasClass('close-nav')) { // It means navigation is not visible yet - open it and animate navigation layer burger_bg.addClass('close-nav'); overlayNav.children('span').velocity({ translateZ: 0, scaleX: 1, scaleY: 1, }, 500, 'easeInCubic', function(){ navigation.addClass('fade-in'); }); } else { // Navigation is open - close it and remove navigation layer burger_bg.removeClass('close-nav'); overlayContent.children('span').velocity({ translateZ: 0, scaleX: 1, scaleY: 1, }, 0, 'easeInCubic', function(){ navigation.removeClass('fade-in'); overlayNav.children('span').velocity({ translateZ: 0, scaleX: 0, scaleY: 0, }, 500); overlayContent.addClass('is-hidden').one('webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend', function(){ overlayContent.children('span').velocity({ translateZ: 0, scaleX: 0, scaleY: 0, }, 500, function(){overlayContent.removeClass('is-hidden')}); }); if ($('html').hasClass('no-csstransitions')) { overlayContent.children('span').velocity({ translateZ: 0, scaleX: 0, scaleY: 0, }, 500, function(){overlayContent.removeClass('is-hidden')}); } }); } }); function layerInit(){ var diameterValue = (Math.sqrt( Math.pow($(window).height(), 2) + Math.pow($(window).width(), 2))*2); overlayNav.children('span').velocity({ scaleX: 0, scaleY: 0, translateZ: 0, }, 50).velocity({ height : diameterValue+'px', width : diameterValue+'px', top : -(diameterValue/2)+'px', left : -(diameterValue/2)+'px', }, 0); overlayContent.children('span').velocity({ scaleX: 0, scaleY: 0, translateZ: 0, }, 50).velocity({ height : diameterValue+'px', width : diameterValue+'px', top : -(diameterValue/2)+'px', left : -(diameterValue/2)+'px', }, 0); } }); jQuery(document).ready(function( $ ) { $("body").addClass("collapse-submenu"); function dm_setup_collapsible_submenus() { var $menu = $('#dm_nav'), top_level_link = '.menu-wrap__inner .menu-item-has-children > a'; $menu.find('a').each(function() { $(this).closest('.menu-item-has-children a').append('<span class="clickthrough"></span>'); var click_through = $(".clickthrough"); if ( $(this).closest('.menu-item').length > 0 && !$(this).siblings('.sub-menu').length ) { $(this).off('touchstart click').on('touchstart click', function(event) { // $("#dm-menu.nav li").removeClass('visible'); $(this).parents('.mobile_nav').trigger('click'); }); } else { } }); } setTimeout(function() { dm_setup_collapsible_submenus(); }, 1200); var click_through = '.clickthrough'; if ($(window).width() < 1200) { var touchmoved; $('.menu-item-has-children').on('touchend click', click_through, function(e) { if(touchmoved != true){ e.preventDefault(); e.stopPropagation(); $(this).closest('.menu-item').siblings().removeClass('visible'); $(this).closest('.menu-item').toggleClass('visible'); setTimeout(function() { jQuery('.menu-item').removeClass('et-hover'); jQuery('.menu-item').removeClass('et-touch-hover'); }, 800); } }).on('touchmove', click_through, function(e) { touchmoved = true; }).on('touchstart', click_through, function(e) { touchmoved = false; }); } else { $('body').on('touchstart click', click_through, function(e) { e.preventDefault(); e.stopPropagation(); $(this).closest('.menu-item').siblings().removeClass('visible'); $(this).closest('.menu-item').toggleClass('visible'); setTimeout(function() { jQuery('.menu-item').removeClass('et-hover'); jQuery('.menu-item').removeClass('et-touch-hover'); }, 800); }); } $("#dm_nav .menu-item").on("touchstart", 'a',function(e) { touchmoved = false; //var addressValue = $(this).attr("href"); //window.location.href = addressValue; }).on("touchmove", 'a', function(e){ touchmoved = true; }).on("touchend click", 'a', function(e){ if ( touchmoved != true ){ e.preventDefault(); e.stopPropagation(); var addressValue = $(this).attr("href"); var addresstarget = $(this).attr('target'); if (addresstarget == "_blank") { window.open(addressValue, '_blank'); } else { window.location.href = addressValue; } } }); }); /* <![CDATA[ */ jQuery(".divi-mobile-stop-stacking").closest(".et_pb_row").addClass("divi-mobile-stop-stacking-row"); /* ]]> */ /* <![CDATA[ */ var monarchSettings = {"ajaxurl":"https:\/\/www.thomasemlyn.co.uk\/wp-admin\/admin-ajax.php","pageurl":"https:\/\/www.thomasemlyn.co.uk\/about\/our-process\/","stats_nonce":"f90a649ebc","share_counts":"414b2649ae","follow_counts":"87e76b0f87","total_counts":"e148e40113","media_single":"6108dda42d","media_total":"3f24340e91","generate_all_window_nonce":"10b69e249e","no_img_message":"No images available for sharing on this page"}; /* ]]> */ /* <![CDATA[ */ "use strict";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){return protoProps&&defineProperties(Constructor.prototype,protoProps),staticProps&&defineProperties(Constructor,staticProps),Constructor}}();function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}var RocketBrowserCompatibilityChecker=function(){function RocketBrowserCompatibilityChecker(options){_classCallCheck(this,RocketBrowserCompatibilityChecker),this.passiveSupported=!1,this._checkPassiveOption(this),this.options=!!this.passiveSupported&&options}return _createClass(RocketBrowserCompatibilityChecker,[{key:"_checkPassiveOption",value:function(self){try{var options={get passive(){return!(self.passiveSupported=!0)}};window.addEventListener("test",null,options),window.removeEventListener("test",null,options)}catch(err){self.passiveSupported=!1}}},{key:"initRequestIdleCallback",value:function(){!1 in window&&(window.requestIdleCallback=function(cb){var start=Date.now();return setTimeout(function(){cb({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-start))}})},1)}),!1 in window&&(window.cancelIdleCallback=function(id){return clearTimeout(id)})}},{key:"isDataSaverModeOn",value:function(){return"connection"in navigator&&!0===navigator.connection.saveData}},{key:"supportsLinkPrefetch",value:function(){var elem=document.createElement("link");return elem.relList&&elem.relList.supports&&elem.relList.supports("prefetch")&&window.IntersectionObserver&&"isIntersecting"in IntersectionObserverEntry.prototype}},{key:"isSlowConnection",value:function(){return"connection"in navigator&&"effectiveType"in navigator.connection&&("2g"===navigator.connection.effectiveType||"slow-2g"===navigator.connection.effectiveType)}}]),RocketBrowserCompatibilityChecker}(); /* ]]> */ /* <![CDATA[ */ var RocketPreloadLinksConfig = {"excludeUris":"\/(?:.+\/)?feed(?:\/(?:.+\/?)?)?$|\/(?:.+\/)?embed\/|\/(index.php\/)?(.*)wp-json(\/.*|$)|\/refer\/|\/go\/|\/recommend\/|\/recommends\/","usesTrailingSlash":"1","imageExt":"jpg|jpeg|gif|png|tiff|bmp|webp|avif|pdf|doc|docx|xls|xlsx|php","fileExt":"jpg|jpeg|gif|png|tiff|bmp|webp|avif|pdf|doc|docx|xls|xlsx|php|html|htm","siteUrl":"https:\/\/www.thomasemlyn.co.uk","onHoverDelay":"100","rateThrottle":"3"}; /* ]]> */ /* <![CDATA[ */ (function() { "use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e=function(){function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}}();function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var t=function(){function n(e,t){i(this,n),this.browser=e,this.config=t,this.options=this.browser.options,this.prefetched=new Set,this.eventTime=null,this.threshold=1111,this.numOnHover=0}return e(n,[{key:"init",value:function(){!this.browser.supportsLinkPrefetch()||this.browser.isDataSaverModeOn()||this.browser.isSlowConnection()||(this.regex={excludeUris:RegExp(this.config.excludeUris,"i"),images:RegExp(".("+this.config.imageExt+")$","i"),fileExt:RegExp(".("+this.config.fileExt+")$","i")},this._initListeners(this))}},{key:"_initListeners",value:function(e){-1<this.config.onHoverDelay&&document.addEventListener("mouseover",e.listener.bind(e),e.listenerOptions),document.addEventListener("mousedown",e.listener.bind(e),e.listenerOptions),document.addEventListener("touchstart",e.listener.bind(e),e.listenerOptions)}},{key:"listener",value:function(e){var t=e.target.closest("a"),n=this._prepareUrl(t);if(null!==n)switch(e.type){case"mousedown":case"touchstart":this._addPrefetchLink(n);break;case"mouseover":this._earlyPrefetch(t,n,"mouseout")}}},{key:"_earlyPrefetch",value:function(t,e,n){var i=this,r=setTimeout(function(){if(r=null,0===i.numOnHover)setTimeout(function(){return i.numOnHover=0},1e3);else if(i.numOnHover>i.config.rateThrottle)return;i.numOnHover++,i._addPrefetchLink(e)},this.config.onHoverDelay);t.addEventListener(n,function e(){t.removeEventListener(n,e,{passive:!0}),null!==r&&(clearTimeout(r),r=null)},{passive:!0})}},{key:"_addPrefetchLink",value:function(i){return this.prefetched.add(i.href),new Promise(function(e,t){var n=document.createElement("link");n.rel="prefetch",n.href=i.href,n.onload=e,n.onerror=t,document.head.appendChild(n)}).catch(function(){})}},{key:"_prepareUrl",value:function(e){if(null===e||"object"!==(void 0===e?"undefined":r(e))||!1 in e||-1===["http:","https:"].indexOf(e.protocol))return null;var t=e.href.substring(0,this.config.siteUrl.length),n=this._getPathname(e.href,t),i={original:e.href,protocol:e.protocol,origin:t,pathname:n,href:t+n};return this._isLinkOk(i)?i:null}},{key:"_getPathname",value:function(e,t){var n=t?e.substring(this.config.siteUrl.length):e;return n.startsWith("/")||(n="/"+n),this._shouldAddTrailingSlash(n)?n+"/":n}},{key:"_shouldAddTrailingSlash",value:function(e){return this.config.usesTrailingSlash&&!e.endsWith("/")&&!this.regex.fileExt.test(e)}},{key:"_isLinkOk",value:function(e){return null!==e&&"object"===(void 0===e?"undefined":r(e))&&(!this.prefetched.has(e.href)&&e.origin===this.config.siteUrl&&-1===e.href.indexOf("?")&&-1===e.href.indexOf("#")&&!this.regex.excludeUris.test(e.href)&&!this.regex.images.test(e.href))}}],[{key:"run",value:function(){"undefined"!=typeof RocketPreloadLinksConfig&&new n(new RocketBrowserCompatibilityChecker({capture:!0,passive:!0}),RocketPreloadLinksConfig).init()}}]),n}();t.run(); }()); /* ]]> */ /* <![CDATA[ */ var DIVI = {"item_count":"%d Item","items_count":"%d Items"}; var et_builder_utils_params = {"condition":{"diviTheme":true,"extraTheme":false},"scrollLocations":["app","top"],"builderScrollLocations":{"desktop":"app","tablet":"app","phone":"app"},"onloadScrollLocation":"app","builderType":"fe"}; var et_frontend_scripts = {"builderCssContainerPrefix":"#et-boc","builderCssLayoutPrefix":"#et-boc .et-l"}; var et_pb_custom = {"ajaxurl":"https:\/\/www.thomasemlyn.co.uk\/wp-admin\/admin-ajax.php","images_uri":"https:\/\/www.thomasemlyn.co.uk\/wp-content\/themes\/Divi\/images","builder_images_uri":"https:\/\/www.thomasemlyn.co.uk\/wp-content\/themes\/Divi\/includes\/builder\/images","et_frontend_nonce":"d6b6c10182","subscription_failed":"Please, check the fields below to make sure you entered the correct information.","et_ab_log_nonce":"746f6e0fa9","fill_message":"Please, fill in the following fields:","contact_error_message":"Please, fix the following errors:","invalid":"Invalid email","captcha":"Captcha","prev":"Prev","previous":"Previous","next":"Next","wrong_captcha":"You entered the wrong number in captcha.","wrong_checkbox":"Checkbox","ignore_waypoints":"no","is_divi_theme_used":"1","widget_search_selector":".widget_search","ab_tests":[],"is_ab_testing_active":"","page_id":"53628","unique_test_id":"","ab_bounce_rate":"5","is_cache_plugin_active":"yes","is_shortcode_tracking":"","tinymce_uri":"https:\/\/www.thomasemlyn.co.uk\/wp-content\/themes\/Divi\/includes\/builder\/frontend-builder\/assets\/vendors","accent_color":"#1e73be","waypoints_options":[]}; var et_pb_box_shadow_elements = []; /* ]]> */ /* <![CDATA[ */ var nfi18n = {"ninjaForms":"Ninja Forms","changeEmailErrorMsg":"Please enter a valid email address!","changeDateErrorMsg":"Please enter a valid date!","confirmFieldErrorMsg":"These fields must match!","fieldNumberNumMinError":"Number Min Error","fieldNumberNumMaxError":"Number Max Error","fieldNumberIncrementBy":"Please increment by ","fieldTextareaRTEInsertLink":"Insert Link","fieldTextareaRTEInsertMedia":"Insert Media","fieldTextareaRTESelectAFile":"Select a file","formErrorsCorrectErrors":"Please correct errors before submitting this form.","formHoneypot":"If you are a human seeing this field, please leave it empty.","validateRequiredField":"This is a required field.","honeypotHoneypotError":"Honeypot Error","fileUploadOldCodeFileUploadInProgress":"File Upload in Progress.","fileUploadOldCodeFileUpload":"FILE UPLOAD","currencySymbol":"$","fieldsMarkedRequired":"Fields marked with an <span class=\"ninja-forms-req-symbol\">*<\/span> are required","thousands_sep":",","decimal_point":".","siteLocale":"en_GB","dateFormat":"m\/d\/Y","startOfWeek":"1","of":"of","previousMonth":"Previous Month","nextMonth":"Next Month","months":["January","February","March","April","May","June","July","August","September","October","November","December"],"monthsShort":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"weekdays":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],"weekdaysShort":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"weekdaysMin":["Su","Mo","Tu","We","Th","Fr","Sa"],"recaptchaConsentMissing":"reCaptcha validation couldn't load.","recaptchaMissingCookie":"reCaptcha v3 validation couldn't load the cookie needed to submit the form.","recaptchaConsentEvent":"Accept reCaptcha cookies before sending the form."}; var nfFrontEnd = {"adminAjax":"https:\/\/www.thomasemlyn.co.uk\/wp-admin\/admin-ajax.php","ajaxNonce":"f8db795796","requireBaseUrl":"https:\/\/www.thomasemlyn.co.uk\/wp-content\/plugins\/ninja-forms\/assets\/js\/","use_merge_tags":{"user":{"address":"address","textbox":"textbox","button":"button","checkbox":"checkbox","city":"city","confirm":"confirm","date":"date","email":"email","firstname":"firstname","html":"html","hcaptcha":"hcaptcha","hidden":"hidden","lastname":"lastname","listcheckbox":"listcheckbox","listcountry":"listcountry","listimage":"listimage","listmultiselect":"listmultiselect","listradio":"listradio","listselect":"listselect","liststate":"liststate","note":"note","number":"number","password":"password","passwordconfirm":"passwordconfirm","product":"product","quantity":"quantity","recaptcha":"recaptcha","recaptcha_v3":"recaptcha_v3","repeater":"repeater","shipping":"shipping","signature":"signature","spam":"spam","starrating":"starrating","submit":"submit","terms":"terms","textarea":"textarea","total":"total","turnstile":"turnstile","unknown":"unknown","zip":"zip","hr":"hr","file_upload":"file_upload","user-analytics-browser":"user-analytics-browser","user-analytics-browser-version":"user-analytics-browser-version","user-analytics-ip-address":"user-analytics-ip-address","user-analytics-os":"user-analytics-os","user-analytics-referer":"user-analytics-referer","user-analytics-utm-campaign":"user-analytics-utm-campaign","user-analytics-utm-content":"user-analytics-utm-content","user-analytics-utm-medium":"user-analytics-utm-medium","user-analytics-utm-source":"user-analytics-utm-source","user-analytics-utm-term":"user-analytics-utm-term"},"post":{"address":"address","textbox":"textbox","button":"button","checkbox":"checkbox","city":"city","confirm":"confirm","date":"date","email":"email","firstname":"firstname","html":"html","hcaptcha":"hcaptcha","hidden":"hidden","lastname":"lastname","listcheckbox":"listcheckbox","listcountry":"listcountry","listimage":"listimage","listmultiselect":"listmultiselect","listradio":"listradio","listselect":"listselect","liststate":"liststate","note":"note","number":"number","password":"password","passwordconfirm":"passwordconfirm","product":"product","quantity":"quantity","recaptcha":"recaptcha","recaptcha_v3":"recaptcha_v3","repeater":"repeater","shipping":"shipping","signature":"signature","spam":"spam","starrating":"starrating","submit":"submit","terms":"terms","textarea":"textarea","total":"total","turnstile":"turnstile","unknown":"unknown","zip":"zip","hr":"hr","file_upload":"file_upload","user-analytics-browser":"user-analytics-browser","user-analytics-browser-version":"user-analytics-browser-version","user-analytics-ip-address":"user-analytics-ip-address","user-analytics-os":"user-analytics-os","user-analytics-referer":"user-analytics-referer","user-analytics-utm-campaign":"user-analytics-utm-campaign","user-analytics-utm-content":"user-analytics-utm-content","user-analytics-utm-medium":"user-analytics-utm-medium","user-analytics-utm-source":"user-analytics-utm-source","user-analytics-utm-term":"user-analytics-utm-term"},"system":{"address":"address","textbox":"textbox","button":"button","checkbox":"checkbox","city":"city","confirm":"confirm","date":"date","email":"email","firstname":"firstname","html":"html","hcaptcha":"hcaptcha","hidden":"hidden","lastname":"lastname","listcheckbox":"listcheckbox","listcountry":"listcountry","listimage":"listimage","listmultiselect":"listmultiselect","listradio":"listradio","listselect":"listselect","liststate":"liststate","note":"note","number":"number","password":"password","passwordconfirm":"passwordconfirm","product":"product","quantity":"quantity","recaptcha":"recaptcha","recaptcha_v3":"recaptcha_v3","repeater":"repeater","shipping":"shipping","signature":"signature","spam":"spam","starrating":"starrating","submit":"submit","terms":"terms","textarea":"textarea","total":"total","turnstile":"turnstile","unknown":"unknown","zip":"zip","hr":"hr","file_upload":"file_upload","user-analytics-browser":"user-analytics-browser","user-analytics-browser-version":"user-analytics-browser-version","user-analytics-ip-address":"user-analytics-ip-address","user-analytics-os":"user-analytics-os","user-analytics-referer":"user-analytics-referer","user-analytics-utm-campaign":"user-analytics-utm-campaign","user-analytics-utm-content":"user-analytics-utm-content","user-analytics-utm-medium":"user-analytics-utm-medium","user-analytics-utm-source":"user-analytics-utm-source","user-analytics-utm-term":"user-analytics-utm-term"},"fields":{"address":"address","textbox":"textbox","button":"button","checkbox":"checkbox","city":"city","confirm":"confirm","date":"date","email":"email","firstname":"firstname","html":"html","hcaptcha":"hcaptcha","hidden":"hidden","lastname":"lastname","listcheckbox":"listcheckbox","listcountry":"listcountry","listimage":"listimage","listmultiselect":"listmultiselect","listradio":"listradio","listselect":"listselect","liststate":"liststate","note":"note","number":"number","password":"password","passwordconfirm":"passwordconfirm","product":"product","quantity":"quantity","recaptcha":"recaptcha","recaptcha_v3":"recaptcha_v3","repeater":"repeater","shipping":"shipping","signature":"signature","spam":"spam","starrating":"starrating","submit":"submit","terms":"terms","textarea":"textarea","total":"total","turnstile":"turnstile","unknown":"unknown","zip":"zip","hr":"hr","file_upload":"file_upload","user-analytics-browser":"user-analytics-browser","user-analytics-browser-version":"user-analytics-browser-version","user-analytics-ip-address":"user-analytics-ip-address","user-analytics-os":"user-analytics-os","user-analytics-referer":"user-analytics-referer","user-analytics-utm-campaign":"user-analytics-utm-campaign","user-analytics-utm-content":"user-analytics-utm-content","user-analytics-utm-medium":"user-analytics-utm-medium","user-analytics-utm-source":"user-analytics-utm-source","user-analytics-utm-term":"user-analytics-utm-term"},"calculations":{"html":"html","hidden":"hidden","note":"note","unknown":"unknown","user-analytics-browser":"user-analytics-browser","user-analytics-browser-version":"user-analytics-browser-version","user-analytics-ip-address":"user-analytics-ip-address","user-analytics-os":"user-analytics-os","user-analytics-referer":"user-analytics-referer","user-analytics-utm-campaign":"user-analytics-utm-campaign","user-analytics-utm-content":"user-analytics-utm-content","user-analytics-utm-medium":"user-analytics-utm-medium","user-analytics-utm-source":"user-analytics-utm-source","user-analytics-utm-term":"user-analytics-utm-term"}},"opinionated_styles":"","filter_esc_status":"false","nf_consent_status_response":[]}; var nfInlineVars = []; /* ]]> */ /* <![CDATA[ */ var nfMPSettings = {"prevLabel":"Previous","nextLabel":"Next"}; /* ]]> */ /* <![CDATA[ */ var et_pb_motion_elements = {"desktop":[],"tablet":[],"phone":[]}; /* ]]> */ /* <![CDATA[ */ var et_pb_sticky_elements = []; /* ]]> */ <span id="nf-form-title-{{{ data.id }}}" class="nf-form-title"> {{{ ( 1 == data.settings.show_title ) ? '<h' + data.settings.form_title_heading_level + '>' + data.settings.title + '</h' + data.settings.form_title_heading_level + '>' : '' }}} </span> <div class="nf-form-wrap ninja-forms-form-wrap"> <div class="nf-response-msg"></div> <div class="nf-debug-msg"></div> <div class="nf-before-form"></div> <div class="nf-form-layout"></div> <div class="nf-after-form"></div> </div> {{{ data.beforeForm }}} {{{ data.afterForm }}} <div class="nf-form-fields-required">{{{ data.renderFieldsMarkedRequired() }}}</div> {{{ data.beforeFields }}} {{{ data.afterFields }}} <div id="nf-form-errors-{{{ data.id }}}" class="nf-form-errors" role="alert"></div> <div class="nf-form-hp"></div> {{{ data.beforeField }}} {{{ data.afterField }}} <form> <div> <div class="nf-before-form-content"></div> <div class="nf-form-content {{{ data.element_class }}}"></div> <div class="nf-after-form-content"></div> </div> </form> <label id="nf-label-field-hp-{{{ data.id }}}" for="nf-field-hp-{{{ data.id }}}" aria-hidden="true"> {{{ nfi18n.formHoneypot }}} <input id="nf-field-hp-{{{ data.id }}}" name="nf-field-hp" class="nf-element nf-field-hp" type="text" value="" aria-labelledby="nf-label-field-hp-{{{ data.id }}}" /> </label> <div id="nf-field-{{{ data.id }}}-container" class="nf-field-container {{{ data.type }}}-container {{{ data.renderContainerClass() }}}"> <div class="nf-before-field"></div> <div class="nf-field"></div> <div class="nf-after-field"></div> </div> {{{ data.beforeField }}} <# /* * Render our input limit section if that setting exists. */ #> <div class="nf-input-limit"></div> <# /* * Render our error section if we have an error. */ #> <div id="nf-error-{{{ data.id }}}" class="nf-error-wrap nf-error" role="alert" aria-live="assertive"></div> <# /* * Render any custom HTML after our field. */ #> {{{ data.afterField }}} <div id="nf-field-{{{ data.id }}}-wrap" class="{{{ data.renderWrapClass() }}}" data-field-id="{{{ data.id }}}"> <# /* * This is our main field template. It's called for every field type. * Note that must have ONE top-level, wrapping element. i.e. a div/span/etc that wraps all of the template. */ #> <# /* * Render our label. */ #> {{{ data.renderLabel() }}} <# /* * Render our field element. Uses the template for the field being rendered. */ #> <div class="nf-field-element">{{{ data.renderElement() }}}</div> <# /* * Render our Description Text. */ #> {{{ data.renderDescText() }}} </div> <div id="nf-field-{{{ data.id }}}-wrap" class="{{{ data.renderWrapClass() }}}" data-field-id="{{{ data.id }}}"> <div class="nf-field-label"></div> <div class="nf-field-element">{{{ data.renderElement() }}}</div> <div class="nf-error-wrap"></div> </div> {{{ data.renderElement() }}} <div class="nf-error-wrap"></div> <div class="nf-field-label"> <# if ( data.type === "listcheckbox" || data.type === "listradio" || data.type === "listimage" || data.type === "date" || data.type === "starrating" || data.type === "signature" || data.type === "html" || data.type === "hr" ) { #> <span id="nf-label-field-{{{ data.id }}}" class="nf-label-span {{{ data.renderLabelClasses() }}}"> {{{ ( data.maybeFilterHTML() === 'true' ) ? _.escape( data.label ) : data.label }}} {{{ ( 'undefined' != typeof data.required && 1 == data.required ) ? '<span class="ninja-forms-req-symbol">*</span>' : '' }}} {{{ data.maybeRenderHelp() }}} </span> <# } else { #> <label for="nf-field-{{{ data.id }}}" id="nf-label-field-{{{ data.id }}}" class="{{{ data.renderLabelClasses() }}}"> {{{ ( data.maybeFilterHTML() === 'true' ) ? _.escape( data.label ) : data.label }}} {{{ ( 'undefined' != typeof data.required && 1 == data.required ) ? '<span class="ninja-forms-req-symbol">*</span>' : '' }}} {{{ data.maybeRenderHelp() }}} </label> <# } #> </div> <div class="nf-error-msg nf-error-{{{ data.id }}}" aria-live="assertive">{{{ data.msg }}}</div> <div class="nf-error-msg nf-error-{{{ data.id }}}">{{{ data.msg }}}</div> {{{ data.currentCount() }}} {{{ nfi18n.of }}} {{{ data.input_limit }}} {{{ data.input_limit_msg }}} <input type="text" value="{{{ _.escape( data.value ) }}}" class="{{{ data.renderClasses() }}} nf-element" {{{ data.renderPlaceholder() }}} {{{ data.maybeDisabled() }}} {{{ data.maybeInputLimit() }}} id="nf-field-{{{ data.id }}}" name="{{ data.custom_name_attribute || 'nf-field-' + data.id + '-' + data.type }}" {{{ data.maybeDisableAutocomplete() }}} aria-invalid="false" aria-describedby="<# if( data.desc_text ) { #>nf-description-{{{ data.id }}} <# } #>nf-error-{{{ data.id }}}" aria-labelledby="nf-label-field-{{{ data.id }}}" {{{ data.maybeRequired() }}} > <input id="nf-field-{{{ data.id }}}" name="nf-field-{{{ data.id }}}" aria-invalid="false" aria-describedby="<# if( data.desc_text ) { #>nf-description-{{{ data.id }}} <# } #>nf-error-{{{ data.id }}}" class="{{{ data.renderClasses() }}} nf-element" type="text" value="{{{ _.escape( data.value ) }}}" {{{ data.renderPlaceholder() }}} {{{ data.maybeDisabled() }}} aria-labelledby="nf-label-field-{{{ data.id }}}" {{{ data.maybeRequired() }}} > <input type="text" value="{{{ _.escape( data.value ) }}}" class="{{{ data.renderClasses() }}} nf-element" id="nf-field-{{{ data.id }}}" name="{{ data.custom_name_attribute || 'nf-field-' + data.id + '-' + data.type }}" {{{ data.maybeDisableAutocomplete() }}} {{{ data.renderPlaceholder() }}} aria-invalid="false" aria-describedby="<# if( data.desc_text ) { #>nf-description-{{{ data.id }}} <# } #>nf-error-{{{ data.id }}}" aria-labelledby="nf-label-field-{{{ data.id }}}" {{{ data.maybeRequired() }}} > <input type="email" value="{{{ _.escape( data.value ) }}}" class="{{{ data.renderClasses() }}} nf-element" id="nf-field-{{{ data.id }}}" name="{{ data.custom_name_attribute || 'nf-field-' + data.id + '-' + data.type }}" {{{data.maybeDisableAutocomplete()}}} {{{ data.renderPlaceholder() }}} {{{ data.maybeDisabled() }}} aria-invalid="false" aria-describedby="<# if( data.desc_text ) { #>nf-description-{{{ data.id }}} <# } #>nf-error-{{{ data.id }}}" aria-labelledby="nf-label-field-{{{ data.id }}}" {{{ data.maybeRequired() }}} > <textarea id="nf-field-{{{ data.id }}}" name="nf-field-{{{ data.id }}}" aria-invalid="false" aria-describedby="<# if( data.desc_text ) { #>nf-description-{{{ data.id }}} <# } #>nf-error-{{{ data.id }}}" class="{{{ data.renderClasses() }}} nf-element" {{{ data.renderPlaceholder() }}} {{{ data.maybeDisabled() }}} {{{ data.maybeDisableAutocomplete() }}} {{{ data.maybeInputLimit() }}} aria-labelledby="nf-label-field-{{{ data.id }}}" {{{ data.maybeRequired() }}} >{{{ _.escape( data.value ) }}}</textarea> <span class="dashicons dashicons-admin-media"></span> <span class="dashicons dashicons-admin-links"></span> <span class="dashicons dashicons-editor-unlink"></span> <div class="summernote-link"> URL <input type="url" class="widefat code link-url"> <br /> Text <input type="url" class="widefat code link-text"> <br /> <label> <input type="checkbox" class="link-new-window"> {{{ nfi18n.fieldsTextareaOpenNewWindow }}} </label> <input type="button" class="cancel-link extra" value="Cancel"> <input type="button" class="insert-link extra" value="Insert"> </div> <input id="nf-field-{{{ data.id }}}" name="nf-field-{{{ data.id }}}" class="{{{ data.renderClasses() }}} nf-element" type="hidden" value="{{{ data.value }}}" /> <div class="g-recaptcha" data-callback="nf_recaptcha_response_{{{ data.id }}}" data-theme="{{{ data.theme }}}" data-sitekey="{{{ data.site_key }}}" data-fieldid="{{{ data.id }}}" {{{ ( "invisible" == data.size ) ? 'data-size="invisible"' : '' }}}></div> <# let myType = data.type if('save'== data.type){ myType = 'button' } #> <input id="nf-field-{{{ data.id }}}" class="{{{ data.renderClasses() }}} nf-element " type="{{{myType}}}" value="{{{ ( data.maybeFilterHTML() === 'true' ) ? _.escape( data.label ) : data.label }}}" {{{ ( data.disabled ) ? 'aria-disabled="true" disabled="true"' : '' }}}> <button id="nf-field-{{{ data.id }}}" name="nf-field-{{{ data.id }}}" class="{{{ data.classes }}} nf-element"> {{{ ( data.maybeFilterHTML() === 'true' ) ? _.escape( data.label ) : data.label }}} </button> window.lazyLoadOptions=[{elements_selector:"img[data-lazy-src],.rocket-lazyload,iframe[data-lazy-src]",data_src:"lazy-src",data_srcset:"lazy-srcset",data_sizes:"lazy-sizes",class_loading:"lazyloading",class_loaded:"lazyloaded",threshold:300,callback_loaded:function(element){if(element.tagName==="IFRAME"&&element.dataset.rocketLazyload=="fitvidscompatible"){if(element.classList.contains("lazyloaded")){if(typeof window.jQuery!="undefined"){if(jQuery.fn.fitVids){jQuery(element).parent().fitVids()}}}}}},{elements_selector:".rocket-lazyload",data_src:"lazy-src",data_srcset:"lazy-srcset",data_sizes:"lazy-sizes",class_loading:"lazyloading",class_loaded:"lazyloaded",threshold:300,}];window.addEventListener('LazyLoad::Initialized',function(e){var lazyLoadInstance=e.detail.instance;if(window.MutationObserver){var observer=new MutationObserver(function(mutations){var image_count=0;var iframe_count=0;var rocketlazy_count=0;mutations.forEach(function(mutation){for(var i=0;i<mutation.addedNodes.length;i++){if(typeof mutation.addedNodes[i].getElementsByTagName!=='function'){continue} if(typeof mutation.addedNodes[i].getElementsByClassName!=='function'){continue} images=mutation.addedNodes[i].getElementsByTagName('img');is_image=mutation.addedNodes[i].tagName=="IMG";iframes=mutation.addedNodes[i].getElementsByTagName('iframe');is_iframe=mutation.addedNodes[i].tagName=="IFRAME";rocket_lazy=mutation.addedNodes[i].getElementsByClassName('rocket-lazyload');image_count+=images.length;iframe_count+=iframes.length;rocketlazy_count+=rocket_lazy.length;if(is_image){image_count+=1} if(is_iframe){iframe_count+=1}}});if(image_count>0||iframe_count>0||rocketlazy_count>0){lazyLoadInstance.update()}});var b=document.getElementsByTagName("body")[0];var config={childList:!0,subtree:!0};observer.observe(b,config)}},!1)
https://thomasemlyn.co.uk/about
Status: 200
Emails: info@thomasemlyn.co.uk
View text
About Our process Partner network Careers Services Accounts Bookkeeping Business consultancy CIS Cloud accounting & Xero Company formation Secretarial Helping your business grow Payroll & P11D R&D tax relief Personal tax VAT Packages Virtual Finance Office (VFO) Elevate – For Ambitious Construction Business Owners Sectors Construction Property Growing businesses Resources Blogs Dates and deadlines Business news Calculators Contact About Our process Partner network Careers Services Accounts Bookkeeping Business consultancy CIS Cloud accounting & Xero Company formation Secretarial Helping your business grow Payroll & P11D R&D tax relief Personal tax VAT Packages Virtual Finance Office (VFO) Elevate – For Ambitious Construction Business Owners Sectors Construction Property Growing businesses Resources Blogs Dates and deadlines Business news Calculators Contact Book a call About Home • About About us Chris Metcalf | Founder of Thomas Emlyn Ltd With over 15 years of experience specialising in accountancy and financial strategy for the construction sector, I founded Thomas Emlyn Accountancy with one core mission: to simplify financial management for construction businesses, allowing you to focus on growth, clarity, and profitability. Working closely with construction business owners across London and beyond, I’ve seen firsthand how financial complexity and administrative burdens can hold back great companies from achieving their full potential. Through our innovative Virtual Finance Office (VFO) and Virtual Finance Director (VFD) services, we’ve successfully transformed financial stress into strategic clarity, empowering our clients to make informed decisions and improve their margins. Why Construction? I understand that the construction sector has unique challenges: cash-flow pressures, fluctuating material costs, subcontractor management, and complex tax regulations. Our tailored financial services are specifically designed to address these challenges head-on. My expertise isn’t just theoretical—it’s practical, tested, and proven to help construction companies like yours thrive. What Sets Us Apart Industry Expertise: I’ve built deep insights into construction accounting, tax planning, and strategic growth, translating complexity into straightforward, actionable insights. Strategic Partnership: I’m not just your accountant; I’m your strategic partner. My goal is to proactively guide you towards greater profitability and clearer financial insights. Personalised Service: No cookie-cutter solutions—every client receives personalised strategies reflecting your unique business circumstances, challenges, and ambitions. Our Commitment to You At Thomas Emlyn Accountancy, my promise is straightforward: to help you regain control of your finances, improve your business’s profitability, and reduce your stress about financial administration. Let’s build your financial future together. How we work Sustainability at our hearts In a world full of disposable mindsets, we look to create a sustainable practice. We believe longevity is the hallmark of a thriving environment. May that be in our office or the world around us. To do that, we operate sustainable business practices. Together, we can work towards a brighter future for all. Think sustainability.. Accounts Routine number crunching made simple and effective. Bookkeeping Having a great set of books makes running your business easier. Cloud accounting & Xero We’ll help you keep all your financial records in the cloud. See all services See our packages Opportunities & vacancies We’re always on the lookout for the future talent of accountancy. If you believe in a sustainable way of providing the best support possible for a client, look through our vacancies page. See vacancies Growth on your mind? Let’s talk We’ll chat about your business, your future, and your aspirations. And then we’ll help you get there. Contact us Book a call Contact us 01245 801611 info@thomasemlyn.co.uk 7 Bellefield House 104 New London Road Chelmsford Essex CM2 0DG Useful linksTerms & Conditions Privacy Statement & Cookie Policy Cookie Information Accessibility Statement Copyright Legal information Thomas Emlyn is registered in England & Wales. Company Registration Number: 13498885 Facebook Twitter LinkedIn {"prefetch":[{"source":"document","where":{"and":[{"href_matches":"\/*"},{"not":{"href_matches":["\/wp-*.php","\/wp-admin\/*","\/wp-content\/uploads\/*","\/wp-content\/*","\/wp-content\/plugins\/*","\/wp-content\/themes\/sift\/*","\/wp-content\/themes\/Divi\/*","\/*\\?(.+)"]}},{"not":{"selector_matches":"a[rel~=\"nofollow\"]"}},{"not":{"selector_matches":".no-prefetch, .no-prefetch a"}}]},"eagerness":"conservative"}]} jQuery(document).ready(function($) { if($('.menu-item-has-children').find('a') ) { $('.menu-item-has-children').find('a').addClass('da11y-submenu'); $('.menu-item-has-children').find('a').not('.sub-menu a').attr('aria-expanded', 'false'); } $('.da11y-submenu').on('focus', function() { $(this).not('.sub-menu a').attr('aria-expanded', 'true'); $(this).siblings('.sub-menu').addClass('da11y-submenu-show'); $(this).trigger('mouseenter'); }); $('.menu-item-has-children a').on('focusout', function() { if($(this).parent().not('.menu-item-has-children').is(':last-child')) { $(this).parents('.menu-item-has-children').children('.da11y-submenu').attr('aria-expanded', 'false').trigger('mouseleave').siblings('.sub-menu').removeClass('da11y-submenu-show'); } }); /** * Generate search form styles. * * @since Divi v3.0.23 */ function et_set_search_form_css() { const search_container = $('.et_search_form_container'); const body = $('body'); if (search_container.hasClass('et_pb_search_visible')) { const header_height = $('#main-header').innerHeight(); const menu_width = $('#top-menu').width(); const font_size = $('#top-menu li a').css('font-size'); search_container.css({ height: header_height + 'px' }); search_container.find('input').css('font-size', font_size); if (!body.hasClass('et_header_style_left')) { search_container.css('max-width', menu_width + 60); } else { search_container.find('form').css('max-width', menu_width + 60); } } } /** * Show the search. * * @since Divi v3.0.23 */ function show_search() { const search_container = $('.et_search_form_container'); if (search_container.hasClass('et_pb_is_animating')) { return; } $('.et_menu_container').removeClass('et_pb_menu_visible et_pb_no_animation').addClass('et_pb_menu_hidden'); search_container.removeClass('et_pb_search_form_hidden et_pb_no_animation').addClass('et_pb_search_visible et_pb_is_animating'); setTimeout(function () { $('.et_menu_container').addClass('et_pb_no_animation'); search_container.addClass('et_pb_no_animation').removeClass('et_pb_is_animating'); }, 1000); search_container.find('input').focus(); et_set_search_form_css(); } /** * Hide the search. * * @since Divi v3.0.23 */ function hide_search() { if ($('.et_search_form_container').hasClass('et_pb_is_animating')) { return; } $('.et_menu_container').removeClass('et_pb_menu_hidden et_pb_no_animation').addClass('et_pb_menu_visible'); $('.et_search_form_container').removeClass('et_pb_search_visible et_pb_no_animation').addClass('et_pb_search_form_hidden et_pb_is_animating'); setTimeout(function () { $('.et_menu_container').addClass('et_pb_no_animation'); $('.et_search_form_container').addClass('et_pb_no_animation').removeClass('et_pb_is_animating'); }, 1000); } $(this).keyup(function () { $('.et-search-field').focus(function () { show_search(); }).blur(function () { hide_search(); }); }); }); jQuery(document).ready(function($) { /** * Add skiplink to page. */ function skipTo(target) { const skiplink = '<a href="' + target + '" class="skip-link da11y-screen-reader-text">Skip to content</a>'; $(target).attr('tabindex', -1); $('body').prepend(skiplink); } skipTo('#main-content'); /** * Use js to focus for internal links. */ $('a[href^="#"]').click(function () { const content = $('#' + $(this).attr('href').slice(1)); content.focus(); }); }); jQuery(document).ready(function($) { let lastKey = new Date(); let lastClick = new Date(); /** * Only apply focus styles for keyboard usage. */ $(this).on('focusin', function (e) { $('.keyboard-outline').removeClass('keyboard-outline'); const wasByKeyboard = lastClick < lastKey; if (wasByKeyboard) { $(e.target).addClass('keyboard-outline'); } }); $(this).on('mousedown', function () { lastClick = new Date(); }); $(this).on('keydown', function () { lastKey = new Date(); }); }); jQuery(document).ready(function($) { /** * Allow Accordion & Toggle Divi modules to be focusable. * * @divi-module Accordion, Toggle */ $('.et_pb_toggle').each(function () { $(this).attr('tabindex', 0); }); /** * Prevent spacebar from scolling page when toggle & accordion have focus. * * @divi-module Accordion, Toggle */ $('.et_pb_toggle').on('keydown', function(e) { // Spacebar. if (e.which === 32){ e.preventDefault(); } }); /** * Expand Accordion & Toggle modules when enter or spacebar are pressed while focused. * * @divi-module Accordion, Toggle */ $(document).on('keyup', function(e) { // Spacebar & Enter. if (e.which === 13 || e.which === 32) { $('.et_pb_toggle:focus .et_pb_toggle_title').trigger('click'); } }); }); jQuery(document).ready(function($) { /** * Add unique ID to search module input with matching label. * * @divi-module Search */ $('.et-search-field').each(function (e) { $(this).attr('id', 'et_pb_search_module_input_' + e); $('#et_pb_search_module_input_' + e).before('<label class="da11y-screen-reader-text" for="et_pb_search_module_input_' + e + '">Search for...</label>'); $('#et_pb_search_module_input_' + e).after('<button type="submit" class="da11y-screen-reader-text">Search</button>'); }); /** * Add unique ID to contact module input with matching label. * * @divi-module Contact */ $('.et_pb_contact_form').each(function (e) { $(this).find('.et_pb_contact_captcha_question').parent().wrap('<label></label>'); }); /** * Correct labels on social media icons */ $('.et-social-facebook a.icon span').text('Facebook'); $('.et-social-twitter a.icon span').text('Twitter'); $('.et-social-google-plus a.icon span').text('Google Plus'); $('.et-social-pinterest a.icon span').text('Pinterest'); $('.et-social-linkedin a.icon span').text('LinkedIn'); $('.et-social-tumblr a.icon span').text('Tumblr'); $('.et-social-instagram a.icon span').text('Instagram'); $('.et-social-skype a.icon span').text('Skype'); $('.et-social-flikr a.icon span').text('Flickr'); $('.et-social-myspace a.icon span').text('Myspace'); $('.et-social-dribbble a.icon span').text('Dribble'); $('.et-social-youtube a.icon span').text('YouTube'); $('.et-social-vimeo a.icon span').text('Vimeo'); $('.et-social-rss a.icon span').text('RSS'); }); jQuery(document).ready(function($) { /** * Add role="tabList". * * @divi-module Tab */ $('.et_pb_tabs_controls').each(function () { $(this).attr('role', 'tabList'); }); /** * Add role="presentation". * * @divi-module Tab */ $('.et_pb_tabs_controls li').each(function () { $(this).attr('role', 'presentation'); }); /** * Add role="tab". * * @divi-module Tab */ $('.et_pb_tabs_controls a').each(function () { $(this).attr('role', 'tab'); }); /** * Add role="tabpanel". * * @divi-module Tab */ $('.et_pb_tab').each(function () { $(this).attr('role', 'tabpanel'); }); /** * Add initial state: * * aria-selected="false" * aria-expanded="false" * tabindex=-1 * * @divi-module Tab */ $('.et_pb_tabs_controls li:not(.et_pb_tab_active) a').each(function () { $(this).attr({ 'aria-selected': 'false', 'aria-expanded': 'false', tabindex: -1 }); }); /** * Add initial state: * * aria-selected="true" * aria-expanded="true" * tabindex=-1 * * @divi-module Tab */ $('.et_pb_tabs_controls li.et_pb_tab_active a').each(function () { $(this).attr({ 'aria-selected': 'true', 'aria-expanded': 'true', tabindex: 0 }); }); /** * Add unique ID to tab controls. * Add aria-controls="x". * * @divi-module Tab */ $('.et_pb_tabs_controls a').each(function (e) { $(this).attr({ id: 'et_pb_tab_control_' + e, 'aria-controls': 'et_pb_tab_panel_' + e }); }); /** * Add unique ID to tab panels. * Add aria-labelledby="x". * * @divi-module Tab */ $('.et_pb_tab').each(function (e) { $(this).attr({ id: 'et_pb_tab_panel_' + e, 'aria-labelledby': 'et_pb_tab_control_' + e }); }); /** * Set initial inactive tab panels to aria-hidden="false". * * @divi-module Tab */ $('.et_pb_tab.et_pb_active_content').each(function () { $(this).attr('aria-hidden', 'false'); }); /** * Set initial inactive tab panels to aria-hidden="true". * * @divi-module Tab */ $('.et_pb_tab:not(.et_pb_active_content)').each(function () { $(this).attr('aria-hidden', 'true'); }); /** * Add unique ID to tab module. * Need to use data attribute because a regular ID somehow interferes with Divi. * * @divi-module Tab */ $('.et_pb_tabs').each(function (e) { $(this).attr('data-da11y-id', 'et_pb_tab_module_' + e); }); /** * Update aria-selected attribute when tab is clicked or when hitting enter while focused. * * @divi-module Tab */ $('.et_pb_tabs_controls a').on('click', function () { const id = $(this).attr('id'); const namespace = $(this).closest('.et_pb_tabs').attr('data-da11y-id'); // Used as a selector to scope changes to current module. // Reset all tab controls to be aria-selected="false" & aria-expanded="false". $('[data-da11y-id="' + namespace + '"] .et_pb_tabs_controls a').attr({ 'aria-selected': 'false', 'aria-expanded': 'false', tabindex: -1 }); // Make active tab control aria-selected="true" & aria-expanded="true". $(this).attr({ 'aria-selected': 'true', 'aria-expanded': 'true', tabindex: 0 }); // Reset all tabs to be aria-hidden="true". $('#' + namespace + ' .et_pb_tab').attr('aria-hidden', 'true'); // Label active tab panel as aria-hidden="false". $('[aria-labelledby="' + id + '"]').attr('aria-hidden', 'false'); }); // Arrow navigation for tab modules $('.et_pb_tabs_controls a').keyup(function (e) { const namespace = $(this).closest('.et_pb_tabs').attr('data-da11y-id'); const module = $('[data-da11y-id="' + namespace + '"]'); if (e.which === 39) { // Right. const next = module.find('li.et_pb_tab_active').next(); if (next.length > 0) { next.find('a').trigger('click'); } else { module.find('li:first a').trigger('click'); } } else if (e.which === 37) { // Left. const next = module.find('li.et_pb_tab_active').prev(); if (next.length > 0) { next.find('a').trigger('click'); } else { module.find('li:last a').trigger('click'); } } $('.et_pb_tabs_controls a').removeClass('keyboard-outline'); module.find('li.et_pb_tab_active a').addClass('keyboard-outline'); }); /** * Add unique ID to search module. * Need to use data attribute because a regular ID somehow interferes with Divi. * * @divi-module Search */ $('.et_pb_search').each(function (e) { $(this).attr('data-da11y-id', 'et_pb_search_module_' + e); }); /** * Add aria-required="true" to inputs. * * @divi-module Contact Form */ $('[data-required_mark="required"]').each(function () { $(this).attr('aria-required', 'true'); }); /** * Hide hidden error field on contact form. * * @divi-module Contact Form */ $('.et_pb_contactform_validate_field').attr('type', 'hidden'); /** * Add alert role to error or success contact form message * * @divi-module Contact Form */ $('.et-pb-contact-message').attr('role', 'alert'); /** * Add main role to main-content */ $('#main-content').attr('role', 'main'); /** * Add aria-label="x". * * @divi-module Fullwidth header, comment-wrap */ $('.et_pb_fullwidth_header').each(function (e) { $(this).attr('aria-label', 'Wide Header' + e); }); $('#comment-wrap').attr('aria-label', 'Comments'); }); jQuery(document).ready(function($) { /** * Add aria-hidden="true" to all icons */ $('#et_top_search, .et_close_search_field, .et_pb_main_blurb_image').attr('aria-hidden', 'true'); }); jQuery(document).ready(function($) { /** * Mobile menu Aria support. */ $('.mobile_menu_bar_toggle').attr({'role': 'button', 'aria-expanded': 'false', 'tabindex': 0}); $('.mobile_menu_bar_toggle').on('click', function() { if($(this).hasClass('a11y-mobile-menu-open') ) { $(this).removeClass('a11y-mobile-menu-open').attr('aria-expanded', 'false'); } else { $(this).addClass('a11y-mobile-menu-open').attr('aria-expanded', 'true'); } }); }); jQuery(function($){$(".divi-mobile-stop-stacking").each(function(){$(this).parents(".et_pb_row").addClass("divi-mobile-stop-stacking-row")})}); var et_animation_data = [{"class":"et_pb_button_0_tb_header","style":"slideRight","repeat":"once","duration":"1000ms","delay":"0ms","intensity":"10%","starting_opacity":"0%","speed_curve":"ease-in-out"},{"class":"et_pb_sift_breadcrumbs_module_0","style":"fade","repeat":"once","duration":"1000ms","delay":"0ms","intensity":"50%","starting_opacity":"0%","speed_curve":"ease-in-out"},{"class":"et_pb_image_0","style":"slideBottom","repeat":"once","duration":"1000ms","delay":"0ms","intensity":"10%","starting_opacity":"0%","speed_curve":"ease-in-out"},{"class":"et_pb_image_1","style":"slideBottom","repeat":"once","duration":"1000ms","delay":"0ms","intensity":"10%","starting_opacity":"0%","speed_curve":"ease-in-out"},{"class":"et_pb_image_2","style":"slideBottom","repeat":"once","duration":"1000ms","delay":"0ms","intensity":"10%","starting_opacity":"0%","speed_curve":"ease-in-out"},{"class":"et_pb_image_3","style":"slideBottom","repeat":"once","duration":"1000ms","delay":"200ms","intensity":"10%","starting_opacity":"0%","speed_curve":"ease-in-out"},{"class":"et_pb_image_4","style":"slideBottom","repeat":"once","duration":"1000ms","delay":"200ms","intensity":"10%","starting_opacity":"0%","speed_curve":"ease-in-out"},{"class":"et_pb_image_5","style":"slideBottom","repeat":"once","duration":"1000ms","delay":"400ms","intensity":"10%","starting_opacity":"0%","speed_curve":"ease-in-out"},{"class":"et_pb_image_6","style":"fade","repeat":"once","duration":"2000ms","delay":"0ms","intensity":"50%","starting_opacity":"0%","speed_curve":"ease-in-out"},{"class":"et_pb_button_4","style":"slideBottom","repeat":"once","duration":"1000ms","delay":"0ms","intensity":"10%","starting_opacity":"0%","speed_curve":"ease-in-out"},{"class":"et_pb_button_5","style":"slideBottom","repeat":"once","duration":"1000ms","delay":"300ms","intensity":"10%","starting_opacity":"0%","speed_curve":"ease-in-out"}]; var et_link_options_data = [{"class":"et_pb_blurb_0","url":"https:\/\/www.thomasemlyn.co.uk\/services\/accounts\/","target":"_self"},{"class":"et_pb_blurb_1","url":"https:\/\/www.thomasemlyn.co.uk\/services\/bookkeeping\/","target":"_self"},{"class":"et_pb_blurb_2","url":"https:\/\/www.thomasemlyn.co.uk\/services\/cloud-accounting-xero\/","target":"_self"}]; jQuery(document).ready(function( $ ) { if ( $('#main-header').length > 0 && $('.et-l--header').length == 0 ) { } else if ( $('.et-l--header').length > 0 && $('#main-header').length == 0 ) { } else { $('.divi-mobile-menu').remove(); $('body').addClass("no-mobile-menu"); } // if .dm-above-layout is on the page, get the height of this element // add it as margin-top to #open-button var dm_above_layout = $(".dm-above-layout"); if (dm_above_layout.length > 0) { var dm_above_layout_height = dm_above_layout.outerHeight(); $("#open-button").css("margin-top", dm_above_layout_height); // add padding to the top of #main-content $("#main-content").css("padding-top", dm_above_layout_height); } $("body").addClass("dm-custom-header"); function check_from_top(){ var scroll = $(window).scrollTop(); if (scroll >= 300) { $("#dm-header").addClass("fixed-header"); $("body").addClass("dm-fixed-header"); } else { $("#dm-header").removeClass("fixed-header"); $("body").removeClass("dm-fixed-header"); } if (scroll >= 50) { $(".dm-not-fixed-scroll #dm-header #et_top_search_mob").removeClass("active"); $("body.dm-not-fixed-scroll").removeClass("search-active"); } } check_from_top(); $(window).scroll(function() { check_from_top(); }); $("body").addClass("dm-bm-pos-right"); $("body").addClass("dm-expand-shape"); $("body").addClass("dm-divi-engine"); $("body").addClass("dm-circle-expand"); $("body").addClass("dm-menuside-right"); var get_one_click = false; jQuery(document).on('touchstart click', ".anchorpoint", function(e){ var _this = jQuery(e.target); if (jQuery("body").hasClass("show-menu")) { jQuery('#open-button').trigger('click'); } var getLink = _this.find('a').attr('href'); var currentUrl = window.location.href; var linkUrlPart = ''; var linkAnchorPart = ''; var currentUrlPart = currentUrl; e.preventDefault(); if(currentUrl.indexOf("#") != -1){ currentUrlPart = getLink.substring(0, getLink.indexOf("#") ); } if(getLink.indexOf("#") == 0){ linkUrlPart = currentUrlPart; linkAnchorPart = getLink.substring(1); }else if (getLink.indexOf("#") != -1 ){ linkUrlPart = getLink.substring(0, getLink.indexOf("#") ); linkAnchorPart = getLink.substring(getLink.indexOf("#")+1); } if ( linkUrlPart == currentUrlPart ){ // Same Url if (jQuery('#' + linkAnchorPart).length) { if ( linkAnchorPart != '' ){ var target_offset = jQuery('#' + linkAnchorPart).offset(); var top = target_offset.top; var header_fixed = "notfixed"; if ( header_fixed == 'fixed' ) { var header_height_scroll = 80; var header_height = 78; var scroll_distance = 300; if ( target_offset.top < scroll_distance ) { if ( target_offset.top < header_height ) { top = 0; } else { top = top - header_height; } } else { top = top - header_height_scroll; } } window.scrollTo({top: top, behavior: "smooth"}); //document.getElementById(linkAnchorPart).scrollIntoView({ behavior: "smooth" }); } } else { window.location.href = getLink; } } else { window.location.href = getLink; } }); }); // check if menu-wrap__inner exists (function () { const menuWrapInner = document.getElementsByClassName("menu-wrap__inner")[0]; if (menuWrapInner && menuWrapInner.children.length > 0) { menuWrapInner.children[0].onscroll = function () { if (this.scrollTop >= 80) { jQuery('body').addClass('menu-wrap-scroll'); } else { jQuery('body').removeClass('menu-wrap-scroll'); } } } })(); jQuery(document).ready(function($){ var isOpen = false; var bodyEl = document.body; $(document).on('click', '#open-button', function(ev){ toggleMenu(ev); }); $(document).on('click', '#close-button', function(ev){ toggleMenu(ev); }) // close the menu element if the target it´s not the menu element or one of its descendants.. $(document).on( 'click', '#et-main-area', function(ev) { var target = $(ev.target); if( isOpen && target !== $('#open-button') ) { toggleMenu(ev); } } ); function toggleMenu(event) { event.stopPropagation(); event.preventDefault(); if( isOpen ) { $(bodyEl).removeClass( 'show-menu' ); $('#open-button').removeClass( 'is-active' ); $( '#dm_nav' ).removeClass( 'active' ); $('#dm-menu').find('.menu-item-has-children').each(function() { $(this).removeClass('visible'); }); setTimeout(function (){ $('#dm_nav').addClass( 'menuclosed' ); }, 800); }else { $(bodyEl).addClass( 'show-menu' ); $('#open-button').addClass( 'is-active' ); $( '#dm_nav' ).addClass( 'active' ); $( '#dm_nav' ).removeClass( 'menuclosed' ); } isOpen = !isOpen; } }); jQuery(document).ready(function( $ ) { $("body").addClass("dm-ch-logo-pos-left"); $("body").addClass("dm-ch-cart-icon-pos-none"); $("body").addClass("dm-ch-search-icon-pos-right"); $("body").addClass("dm-ch-account-icon-pos-none"); $("body").addClass("dm-search-icon-header"); $("#dm-header #et_top_search_mob #et_search_icon").on('touchstart click', function(event) { $("#dm-header #et_top_search_mob").addClass("active"); setTimeout( function() { $("body").addClass("search-active"); }, 500); }); $(document).on('touchstart click', ".search-active #et_top_search_mob #et_search_icon" , function(event){ console.log("added"); $( ".et-search-form" ).submit(); }); $("#dm-header #et_top_search_mob .close").on('touchstart click', function(event) { $("#dm-header #et_top_search_mob").removeClass("active"); $("body").removeClass("search-active"); }); $("body").addClass("dm-not-fixed-scroll"); }); jQuery(document).ready(function($){ $("body").addClass("bc-expand-circle"); var overlayNav = $('.cd-overlay-nav'), overlayContent = $('.cd-overlay-content'), navigation = $('#dm_nav .menu-wrap__inner'), toggleNav = $('#open-button'), burger_bg = $('.menu-wrap'); // Initialize navigation and content layers layerInit(); // Commented this out as when resizing, the animation to open the menu woudld be delayed sometimes even up to 5s - SUP-7777 // $(window).on('resize', function(){ // window.requestAnimationFrame(layerInit); // }); // Open/close the menu and cover layers toggleNav.on('click', function(event) { if (!burger_bg.hasClass('close-nav')) { // It means navigation is not visible yet - open it and animate navigation layer burger_bg.addClass('close-nav'); overlayNav.children('span').velocity({ translateZ: 0, scaleX: 1, scaleY: 1, }, 500, 'easeInCubic', function(){ navigation.addClass('fade-in'); }); } else { // Navigation is open - close it and remove navigation layer burger_bg.removeClass('close-nav'); overlayContent.children('span').velocity({ translateZ: 0, scaleX: 1, scaleY: 1, }, 0, 'easeInCubic', function(){ navigation.removeClass('fade-in'); overlayNav.children('span').velocity({ translateZ: 0, scaleX: 0, scaleY: 0, }, 500); overlayContent.addClass('is-hidden').one('webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend', function(){ overlayContent.children('span').velocity({ translateZ: 0, scaleX: 0, scaleY: 0, }, 500, function(){overlayContent.removeClass('is-hidden')}); }); if ($('html').hasClass('no-csstransitions')) { overlayContent.children('span').velocity({ translateZ: 0, scaleX: 0, scaleY: 0, }, 500, function(){overlayContent.removeClass('is-hidden')}); } }); } }); function layerInit(){ var diameterValue = (Math.sqrt( Math.pow($(window).height(), 2) + Math.pow($(window).width(), 2))*2); overlayNav.children('span').velocity({ scaleX: 0, scaleY: 0, translateZ: 0, }, 50).velocity({ height : diameterValue+'px', width : diameterValue+'px', top : -(diameterValue/2)+'px', left : -(diameterValue/2)+'px', }, 0); overlayContent.children('span').velocity({ scaleX: 0, scaleY: 0, translateZ: 0, }, 50).velocity({ height : diameterValue+'px', width : diameterValue+'px', top : -(diameterValue/2)+'px', left : -(diameterValue/2)+'px', }, 0); } }); jQuery(document).ready(function( $ ) { $("body").addClass("collapse-submenu"); function dm_setup_collapsible_submenus() { var $menu = $('#dm_nav'), top_level_link = '.menu-wrap__inner .menu-item-has-children > a'; $menu.find('a').each(function() { $(this).closest('.menu-item-has-children a').append('<span class="clickthrough"></span>'); var click_through = $(".clickthrough"); if ( $(this).closest('.menu-item').length > 0 && !$(this).siblings('.sub-menu').length ) { $(this).off('touchstart click').on('touchstart click', function(event) { // $("#dm-menu.nav li").removeClass('visible'); $(this).parents('.mobile_nav').trigger('click'); }); } else { } }); } setTimeout(function() { dm_setup_collapsible_submenus(); }, 1200); var click_through = '.clickthrough'; if ($(window).width() < 1200) { var touchmoved; $('.menu-item-has-children').on('touchend click', click_through, function(e) { if(touchmoved != true){ e.preventDefault(); e.stopPropagation(); $(this).closest('.menu-item').siblings().removeClass('visible'); $(this).closest('.menu-item').toggleClass('visible'); setTimeout(function() { jQuery('.menu-item').removeClass('et-hover'); jQuery('.menu-item').removeClass('et-touch-hover'); }, 800); } }).on('touchmove', click_through, function(e) { touchmoved = true; }).on('touchstart', click_through, function(e) { touchmoved = false; }); } else { $('body').on('touchstart click', click_through, function(e) { e.preventDefault(); e.stopPropagation(); $(this).closest('.menu-item').siblings().removeClass('visible'); $(this).closest('.menu-item').toggleClass('visible'); setTimeout(function() { jQuery('.menu-item').removeClass('et-hover'); jQuery('.menu-item').removeClass('et-touch-hover'); }, 800); }); } $("#dm_nav .menu-item").on("touchstart", 'a',function(e) { touchmoved = false; //var addressValue = $(this).attr("href"); //window.location.href = addressValue; }).on("touchmove", 'a', function(e){ touchmoved = true; }).on("touchend click", 'a', function(e){ if ( touchmoved != true ){ e.preventDefault(); e.stopPropagation(); var addressValue = $(this).attr("href"); var addresstarget = $(this).attr('target'); if (addresstarget == "_blank") { window.open(addressValue, '_blank'); } else { window.location.href = addressValue; } } }); }); /* <![CDATA[ */ jQuery(".divi-mobile-stop-stacking").closest(".et_pb_row").addClass("divi-mobile-stop-stacking-row"); /* ]]> */ /* <![CDATA[ */ var monarchSettings = {"ajaxurl":"https:\/\/www.thomasemlyn.co.uk\/wp-admin\/admin-ajax.php","pageurl":"https:\/\/www.thomasemlyn.co.uk\/about\/","stats_nonce":"f90a649ebc","share_counts":"414b2649ae","follow_counts":"87e76b0f87","total_counts":"e148e40113","media_single":"6108dda42d","media_total":"3f24340e91","generate_all_window_nonce":"10b69e249e","no_img_message":"No images available for sharing on this page"}; /* ]]> */ /* <![CDATA[ */ "use strict";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){return protoProps&&defineProperties(Constructor.prototype,protoProps),staticProps&&defineProperties(Constructor,staticProps),Constructor}}();function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}var RocketBrowserCompatibilityChecker=function(){function RocketBrowserCompatibilityChecker(options){_classCallCheck(this,RocketBrowserCompatibilityChecker),this.passiveSupported=!1,this._checkPassiveOption(this),this.options=!!this.passiveSupported&&options}return _createClass(RocketBrowserCompatibilityChecker,[{key:"_checkPassiveOption",value:function(self){try{var options={get passive(){return!(self.passiveSupported=!0)}};window.addEventListener("test",null,options),window.removeEventListener("test",null,options)}catch(err){self.passiveSupported=!1}}},{key:"initRequestIdleCallback",value:function(){!1 in window&&(window.requestIdleCallback=function(cb){var start=Date.now();return setTimeout(function(){cb({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-start))}})},1)}),!1 in window&&(window.cancelIdleCallback=function(id){return clearTimeout(id)})}},{key:"isDataSaverModeOn",value:function(){return"connection"in navigator&&!0===navigator.connection.saveData}},{key:"supportsLinkPrefetch",value:function(){var elem=document.createElement("link");return elem.relList&&elem.relList.supports&&elem.relList.supports("prefetch")&&window.IntersectionObserver&&"isIntersecting"in IntersectionObserverEntry.prototype}},{key:"isSlowConnection",value:function(){return"connection"in navigator&&"effectiveType"in navigator.connection&&("2g"===navigator.connection.effectiveType||"slow-2g"===navigator.connection.effectiveType)}}]),RocketBrowserCompatibilityChecker}(); /* ]]> */ /* <![CDATA[ */ var RocketPreloadLinksConfig = {"excludeUris":"\/(?:.+\/)?feed(?:\/(?:.+\/?)?)?$|\/(?:.+\/)?embed\/|\/(index.php\/)?(.*)wp-json(\/.*|$)|\/refer\/|\/go\/|\/recommend\/|\/recommends\/","usesTrailingSlash":"1","imageExt":"jpg|jpeg|gif|png|tiff|bmp|webp|avif|pdf|doc|docx|xls|xlsx|php","fileExt":"jpg|jpeg|gif|png|tiff|bmp|webp|avif|pdf|doc|docx|xls|xlsx|php|html|htm","siteUrl":"https:\/\/www.thomasemlyn.co.uk","onHoverDelay":"100","rateThrottle":"3"}; /* ]]> */ /* <![CDATA[ */ (function() { "use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e=function(){function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}}();function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var t=function(){function n(e,t){i(this,n),this.browser=e,this.config=t,this.options=this.browser.options,this.prefetched=new Set,this.eventTime=null,this.threshold=1111,this.numOnHover=0}return e(n,[{key:"init",value:function(){!this.browser.supportsLinkPrefetch()||this.browser.isDataSaverModeOn()||this.browser.isSlowConnection()||(this.regex={excludeUris:RegExp(this.config.excludeUris,"i"),images:RegExp(".("+this.config.imageExt+")$","i"),fileExt:RegExp(".("+this.config.fileExt+")$","i")},this._initListeners(this))}},{key:"_initListeners",value:function(e){-1<this.config.onHoverDelay&&document.addEventListener("mouseover",e.listener.bind(e),e.listenerOptions),document.addEventListener("mousedown",e.listener.bind(e),e.listenerOptions),document.addEventListener("touchstart",e.listener.bind(e),e.listenerOptions)}},{key:"listener",value:function(e){var t=e.target.closest("a"),n=this._prepareUrl(t);if(null!==n)switch(e.type){case"mousedown":case"touchstart":this._addPrefetchLink(n);break;case"mouseover":this._earlyPrefetch(t,n,"mouseout")}}},{key:"_earlyPrefetch",value:function(t,e,n){var i=this,r=setTimeout(function(){if(r=null,0===i.numOnHover)setTimeout(function(){return i.numOnHover=0},1e3);else if(i.numOnHover>i.config.rateThrottle)return;i.numOnHover++,i._addPrefetchLink(e)},this.config.onHoverDelay);t.addEventListener(n,function e(){t.removeEventListener(n,e,{passive:!0}),null!==r&&(clearTimeout(r),r=null)},{passive:!0})}},{key:"_addPrefetchLink",value:function(i){return this.prefetched.add(i.href),new Promise(function(e,t){var n=document.createElement("link");n.rel="prefetch",n.href=i.href,n.onload=e,n.onerror=t,document.head.appendChild(n)}).catch(function(){})}},{key:"_prepareUrl",value:function(e){if(null===e||"object"!==(void 0===e?"undefined":r(e))||!1 in e||-1===["http:","https:"].indexOf(e.protocol))return null;var t=e.href.substring(0,this.config.siteUrl.length),n=this._getPathname(e.href,t),i={original:e.href,protocol:e.protocol,origin:t,pathname:n,href:t+n};return this._isLinkOk(i)?i:null}},{key:"_getPathname",value:function(e,t){var n=t?e.substring(this.config.siteUrl.length):e;return n.startsWith("/")||(n="/"+n),this._shouldAddTrailingSlash(n)?n+"/":n}},{key:"_shouldAddTrailingSlash",value:function(e){return this.config.usesTrailingSlash&&!e.endsWith("/")&&!this.regex.fileExt.test(e)}},{key:"_isLinkOk",value:function(e){return null!==e&&"object"===(void 0===e?"undefined":r(e))&&(!this.prefetched.has(e.href)&&e.origin===this.config.siteUrl&&-1===e.href.indexOf("?")&&-1===e.href.indexOf("#")&&!this.regex.excludeUris.test(e.href)&&!this.regex.images.test(e.href))}}],[{key:"run",value:function(){"undefined"!=typeof RocketPreloadLinksConfig&&new n(new RocketBrowserCompatibilityChecker({capture:!0,passive:!0}),RocketPreloadLinksConfig).init()}}]),n}();t.run(); }()); /* ]]> */ /* <![CDATA[ */ var DIVI = {"item_count":"%d Item","items_count":"%d Items"}; var et_builder_utils_params = {"condition":{"diviTheme":true,"extraTheme":false},"scrollLocations":["app","top"],"builderScrollLocations":{"desktop":"app","tablet":"app","phone":"app"},"onloadScrollLocation":"app","builderType":"fe"}; var et_frontend_scripts = {"builderCssContainerPrefix":"#et-boc","builderCssLayoutPrefix":"#et-boc .et-l"}; var et_pb_custom = {"ajaxurl":"https:\/\/www.thomasemlyn.co.uk\/wp-admin\/admin-ajax.php","images_uri":"https:\/\/www.thomasemlyn.co.uk\/wp-content\/themes\/Divi\/images","builder_images_uri":"https:\/\/www.thomasemlyn.co.uk\/wp-content\/themes\/Divi\/includes\/builder\/images","et_frontend_nonce":"d6b6c10182","subscription_failed":"Please, check the fields below to make sure you entered the correct information.","et_ab_log_nonce":"746f6e0fa9","fill_message":"Please, fill in the following fields:","contact_error_message":"Please, fix the following errors:","invalid":"Invalid email","captcha":"Captcha","prev":"Prev","previous":"Previous","next":"Next","wrong_captcha":"You entered the wrong number in captcha.","wrong_checkbox":"Checkbox","ignore_waypoints":"no","is_divi_theme_used":"1","widget_search_selector":".widget_search","ab_tests":[],"is_ab_testing_active":"","page_id":"504","unique_test_id":"","ab_bounce_rate":"5","is_cache_plugin_active":"yes","is_shortcode_tracking":"","tinymce_uri":"https:\/\/www.thomasemlyn.co.uk\/wp-content\/themes\/Divi\/includes\/builder\/frontend-builder\/assets\/vendors","accent_color":"#1e73be","waypoints_options":[]}; var et_pb_box_shadow_elements = []; /* ]]> */ /* <![CDATA[ */ var et_pb_motion_elements = {"desktop":[],"tablet":[],"phone":[]}; /* ]]> */ /* <![CDATA[ */ var et_pb_sticky_elements = []; /* ]]> */ window.lazyLoadOptions=[{elements_selector:"img[data-lazy-src],.rocket-lazyload,iframe[data-lazy-src]",data_src:"lazy-src",data_srcset:"lazy-srcset",data_sizes:"lazy-sizes",class_loading:"lazyloading",class_loaded:"lazyloaded",threshold:300,callback_loaded:function(element){if(element.tagName==="IFRAME"&&element.dataset.rocketLazyload=="fitvidscompatible"){if(element.classList.contains("lazyloaded")){if(typeof window.jQuery!="undefined"){if(jQuery.fn.fitVids){jQuery(element).parent().fitVids()}}}}}},{elements_selector:".rocket-lazyload",data_src:"lazy-src",data_srcset:"lazy-srcset",data_sizes:"lazy-sizes",class_loading:"lazyloading",class_loaded:"lazyloaded",threshold:300,}];window.addEventListener('LazyLoad::Initialized',function(e){var lazyLoadInstance=e.detail.instance;if(window.MutationObserver){var observer=new MutationObserver(function(mutations){var image_count=0;var iframe_count=0;var rocketlazy_count=0;mutations.forEach(function(mutation){for(var i=0;i<mutation.addedNodes.length;i++){if(typeof mutation.addedNodes[i].getElementsByTagName!=='function'){continue} if(typeof mutation.addedNodes[i].getElementsByClassName!=='function'){continue} images=mutation.addedNodes[i].getElementsByTagName('img');is_image=mutation.addedNodes[i].tagName=="IMG";iframes=mutation.addedNodes[i].getElementsByTagName('iframe');is_iframe=mutation.addedNodes[i].tagName=="IFRAME";rocket_lazy=mutation.addedNodes[i].getElementsByClassName('rocket-lazyload');image_count+=images.length;iframe_count+=iframes.length;rocketlazy_count+=rocket_lazy.length;if(is_image){image_count+=1} if(is_iframe){iframe_count+=1}}});if(image_count>0||iframe_count>0||rocketlazy_count>0){lazyLoadInstance.update()}});var b=document.getElementsByTagName("body")[0];var config={childList:!0,subtree:!0};observer.observe(b,config)}},!1)
http://thomasemlyn.co.uk/
Status: 200
Emails: info@thomasemlyn.co.uk
View text
About Our process Partner network Careers Services Accounts Bookkeeping Business consultancy CIS Cloud accounting & Xero Company formation Secretarial Helping your business grow Payroll & P11D R&D tax relief Personal tax VAT Packages Virtual Finance Office (VFO) Elevate – For Ambitious Construction Business Owners Sectors Construction Property Growing businesses Resources Blogs Dates and deadlines Business news Calculators Contact About Our process Partner network Careers Services Accounts Bookkeeping Business consultancy CIS Cloud accounting & Xero Company formation Secretarial Helping your business grow Payroll & P11D R&D tax relief Personal tax VAT Packages Virtual Finance Office (VFO) Elevate – For Ambitious Construction Business Owners Sectors Construction Property Growing businesses Resources Blogs Dates and deadlines Business news Calculators Contact Book a call Accountants For Construction Businesses and Their Owners Stronger Margins. Healthier Cashflow. Sustainable Growth. Book a call Running a construction business is demanding The last thing you need is financial admin stealing your time – chasing CIS, or worrying about whether your applications are being accounted for correctly. In construction, there’s enough complexity already. You deserve clarity. You deserve freedom to focus on growth. And you deserve an accountant who understands the industry and is there when you need them. About Me You’re probably here because you’re ready for more: You’re ready to take your business to the next level – with stronger margins, healthier cashflow, and a clear understanding of where your profits are coming from and how to grow them. Learn more Or you’re done feeling weighed down by financial admin – bookkeeping, CIS, VAT, payroll, compliance headaches – that slow your momentum. You want freedom to focus on what you do best: growing your business. Learn more Download – 5 Steps to Get Control of Your Margins and Make More Profit Our guide details 5 steps for you to make more profit by getting control of the margins in your construction business. As a construction business owner, you know that a small tweak in your gross profit margin can make a big impact to the bottom line. Downloading our guide is the first step to taking control. Download now What You’ll Get From Us Personal Service We take the time to understand your business, your goals, and your challenges, so our advice is always practical and relevant. When you need us, we’re there – not just at year-end, but all year round. Beyond Compliance Saving you tax is a given – it’s what we do naturally. We go beyond compliance to give you clear insights into your business, helping you make informed decisions, improve margins, and drive growth. Unlimited Support No surprises, no hidden extras. With fixed monthly fees, you’ll always know exactly what you’re paying. It means you can contact us as much as you need to, without worrying about unexpected bills. Elevate Your Business Our Core Services Essentials – Our Essentials package takes care of the key financial obligations every construction business must meet. We handle your VAT returns, payroll, and statutory accounts, tax returns and company secretarial , ensuring everything is accurate, compliant, and filed on time. This gives you complete peace of mind that the foundations of your business finances. Virtual Finance Office (VFO) – This gives you the support of a full finance team without the overheads. We take care of your day-to-day financial management and bookkeeping. CIS submissions, invoicing, credit control, payroll, and management reporting – so you can focus on running projects and growing the business. You’ll receive monthly insights that make it easy to track margins, control cashflow, and make confident decisions. Virtual Finance Director (VFD) – This is for construction business owners ready to scale. Acting as your strategic finance partner, we help you interpret the numbers, plan for growth, and make informed business decisions. Through regular finance meetings, tailored KPIs, and clear strategic guidance, we’ll help you increase profits, strengthen cashflow, and build a business that runs on solid financial strategy. Every service comes with unlimited phone and email support. We’re here whenever you need us, so don’t hesitate to get in touch. Ready to take action? Booking a discovery call is the first step to getting started with us. To see if we are a good fit for each other, we will have an initial conversation, discussing your goals for the business, current challenges, and how we support other construction businesses. We will ensure we are the right partner for you. Book a call Scale with Confidence: Business Advisory for Growing Construction Firms Growing a construction business comes with new challenges – tighter margins, bigger teams, and more complex projects. Building on from VFD – our business advisory program is designed specifically for scaling construction companies looking to exit in the next 2 – 5 years. Helping you move from working in the business to working on it. Through strategic financial guidance, performance tracking, and a clear roadmap, we’ll give you the clarity and confidence to scale profitably. Join our Elevate Program For Ambitious Construction Business Owners Here Book a call We’ve Done It Before. We’re Doing It Right Now. Expertsin our field We’ve helped countless construction businesses reach their goals. We’ve learned a lot from working with our clients and are experts in the construction industry. See what some of our clients say about us. Billy Chambers, Managing Director, City M&E Ltd - Essex We decided to work with Thomas Emlyn because we needed an accountant who really understands the construction industry, and they’ve been brilliant from day one.Their knowledge of things like CIS, project costing, and cash flow has made a real difference in how we manage our finances and provided sound consulting advise.Their support and response times have been spot on—whenever we’ve needed advice, they’ve been quick to respond with clear, practical guidance, which has saved us a lot of time and hassle.We’ve only done quarterly management accounts a couple of times, but even in that short period, the insights we got were really useful. Having a proper breakdown of our financial position helped us make better decisions and plan ahead with confidence.We’d absolutely recommend Thomas Emlyn to others in the construction industry. They’re knowledgeable, reliable, and make dealing with the numbers much easier so we can focus on running the business. John Rowe, Commercial Director, Bloom Construction Group Ltd - London Chris came highly recommended from a business owner I have a lot of respect for in the Construction Industry. From our first meeting, we have been treated with the highest level of professionalism and diligence. The Team is always on hand to help, response times are rapid and there is no task which isn’t met with enthusiasm to solve. Being able to navigate the nuances around VAT and CIS has been particularly helpful. Also accurately tracking acceptable profit margins, how to categorise costs and analyse what we are spending too little or too much on. Chris and the team’s industry specific knowledge is invaluable. As a busy and ambitious business owner, it’s important to me to protect my down time and maintain a healthy work life balance. Our Virtual Finance Office (VFO) dramatically enables this, as I can avoid hours upon hours on tasks where I am not an expert. I can instead focus time on activities where my skills have maximum impact to the growth of our business. I can, and do, gladly recommend Thomas Emlyn to other businesses – for all the reasons above! You’re in this for the long haul. Low margins means tight cash flow – and nothing is more stressful. You can change that. You can regain control, grow your margins, and build a business that works for you. We only take on two new clients a month. If you’re ready for change, now’s the time. Book a Call Discover Our Blog Things to Be Wary of When Choosing an Accountant (Especially in Construction) Choosing the right accountant can make or break your construction business. A great one will improve your margins, strengthen your cashflow, and give you industry-specific insights you can actually use. read more How Do I Plan for Quiet Months or Times When Payments Are Slow? Every construction business faces quiet spells — delayed jobs, slow-paying clients, seasonal dips, or projects pushed back at the last minute. The firms that survive (and grow) aren’t the ones with the biggest contracts… they’re the ones with the strongest financial planning. read more What’s the Best Way to Deal With Retentions in Construction? Retentions are a constant frustration in UK construction — money earned, but not received, sometimes for 12–24 monthsafter completing a job. For many construction businesses, retentions quietly erode cashflow, distort margins, and make forecasting almost impossible. read more How Can I Get Paid Quicker by Customers? Slow payments are one of the biggest pain points in UK construction. Late invoices choke cashflow, delay payroll, and make it difficult to plan for growth. The good news? You can take back control of your payment cycle with a few smart systems and conversations. read more Growth on your mind? Let’s talk We’ll chat about your business, your future, and your aspirations. And then we’ll help you get there. Contact us Book a call Contact us 01245 801611 info@thomasemlyn.co.uk 7 Bellefield House 104 New London Road Chelmsford Essex CM2 0DG Useful linksTerms & Conditions Privacy Statement & Cookie Policy Cookie Information Accessibility Statement Copyright Legal information Thomas Emlyn is registered in England & Wales. Company Registration Number: 13498885 Facebook Twitter LinkedIn {"prefetch":[{"source":"document","where":{"and":[{"href_matches":"\/*"},{"not":{"href_matches":["\/wp-*.php","\/wp-admin\/*","\/wp-content\/uploads\/*","\/wp-content\/*","\/wp-content\/plugins\/*","\/wp-content\/themes\/sift\/*","\/wp-content\/themes\/Divi\/*","\/*\\?(.+)"]}},{"not":{"selector_matches":"a[rel~=\"nofollow\"]"}},{"not":{"selector_matches":".no-prefetch, .no-prefetch a"}}]},"eagerness":"conservative"}]} jQuery(document).ready(function($) { if($('.menu-item-has-children').find('a') ) { $('.menu-item-has-children').find('a').addClass('da11y-submenu'); $('.menu-item-has-children').find('a').not('.sub-menu a').attr('aria-expanded', 'false'); } $('.da11y-submenu').on('focus', function() { $(this).not('.sub-menu a').attr('aria-expanded', 'true'); $(this).siblings('.sub-menu').addClass('da11y-submenu-show'); $(this).trigger('mouseenter'); }); $('.menu-item-has-children a').on('focusout', function() { if($(this).parent().not('.menu-item-has-children').is(':last-child')) { $(this).parents('.menu-item-has-children').children('.da11y-submenu').attr('aria-expanded', 'false').trigger('mouseleave').siblings('.sub-menu').removeClass('da11y-submenu-show'); } }); /** * Generate search form styles. * * @since Divi v3.0.23 */ function et_set_search_form_css() { const search_container = $('.et_search_form_container'); const body = $('body'); if (search_container.hasClass('et_pb_search_visible')) { const header_height = $('#main-header').innerHeight(); const menu_width = $('#top-menu').width(); const font_size = $('#top-menu li a').css('font-size'); search_container.css({ height: header_height + 'px' }); search_container.find('input').css('font-size', font_size); if (!body.hasClass('et_header_style_left')) { search_container.css('max-width', menu_width + 60); } else { search_container.find('form').css('max-width', menu_width + 60); } } } /** * Show the search. * * @since Divi v3.0.23 */ function show_search() { const search_container = $('.et_search_form_container'); if (search_container.hasClass('et_pb_is_animating')) { return; } $('.et_menu_container').removeClass('et_pb_menu_visible et_pb_no_animation').addClass('et_pb_menu_hidden'); search_container.removeClass('et_pb_search_form_hidden et_pb_no_animation').addClass('et_pb_search_visible et_pb_is_animating'); setTimeout(function () { $('.et_menu_container').addClass('et_pb_no_animation'); search_container.addClass('et_pb_no_animation').removeClass('et_pb_is_animating'); }, 1000); search_container.find('input').focus(); et_set_search_form_css(); } /** * Hide the search. * * @since Divi v3.0.23 */ function hide_search() { if ($('.et_search_form_container').hasClass('et_pb_is_animating')) { return; } $('.et_menu_container').removeClass('et_pb_menu_hidden et_pb_no_animation').addClass('et_pb_menu_visible'); $('.et_search_form_container').removeClass('et_pb_search_visible et_pb_no_animation').addClass('et_pb_search_form_hidden et_pb_is_animating'); setTimeout(function () { $('.et_menu_container').addClass('et_pb_no_animation'); $('.et_search_form_container').addClass('et_pb_no_animation').removeClass('et_pb_is_animating'); }, 1000); } $(this).keyup(function () { $('.et-search-field').focus(function () { show_search(); }).blur(function () { hide_search(); }); }); }); jQuery(document).ready(function($) { /** * Add skiplink to page. */ function skipTo(target) { const skiplink = '<a href="' + target + '" class="skip-link da11y-screen-reader-text">Skip to content</a>'; $(target).attr('tabindex', -1); $('body').prepend(skiplink); } skipTo('#main-content'); /** * Use js to focus for internal links. */ $('a[href^="#"]').click(function () { const content = $('#' + $(this).attr('href').slice(1)); content.focus(); }); }); jQuery(document).ready(function($) { let lastKey = new Date(); let lastClick = new Date(); /** * Only apply focus styles for keyboard usage. */ $(this).on('focusin', function (e) { $('.keyboard-outline').removeClass('keyboard-outline'); const wasByKeyboard = lastClick < lastKey; if (wasByKeyboard) { $(e.target).addClass('keyboard-outline'); } }); $(this).on('mousedown', function () { lastClick = new Date(); }); $(this).on('keydown', function () { lastKey = new Date(); }); }); jQuery(document).ready(function($) { /** * Allow Accordion & Toggle Divi modules to be focusable. * * @divi-module Accordion, Toggle */ $('.et_pb_toggle').each(function () { $(this).attr('tabindex', 0); }); /** * Prevent spacebar from scolling page when toggle & accordion have focus. * * @divi-module Accordion, Toggle */ $('.et_pb_toggle').on('keydown', function(e) { // Spacebar. if (e.which === 32){ e.preventDefault(); } }); /** * Expand Accordion & Toggle modules when enter or spacebar are pressed while focused. * * @divi-module Accordion, Toggle */ $(document).on('keyup', function(e) { // Spacebar & Enter. if (e.which === 13 || e.which === 32) { $('.et_pb_toggle:focus .et_pb_toggle_title').trigger('click'); } }); }); jQuery(document).ready(function($) { /** * Add unique ID to search module input with matching label. * * @divi-module Search */ $('.et-search-field').each(function (e) { $(this).attr('id', 'et_pb_search_module_input_' + e); $('#et_pb_search_module_input_' + e).before('<label class="da11y-screen-reader-text" for="et_pb_search_module_input_' + e + '">Search for...</label>'); $('#et_pb_search_module_input_' + e).after('<button type="submit" class="da11y-screen-reader-text">Search</button>'); }); /** * Add unique ID to contact module input with matching label. * * @divi-module Contact */ $('.et_pb_contact_form').each(function (e) { $(this).find('.et_pb_contact_captcha_question').parent().wrap('<label></label>'); }); /** * Correct labels on social media icons */ $('.et-social-facebook a.icon span').text('Facebook'); $('.et-social-twitter a.icon span').text('Twitter'); $('.et-social-google-plus a.icon span').text('Google Plus'); $('.et-social-pinterest a.icon span').text('Pinterest'); $('.et-social-linkedin a.icon span').text('LinkedIn'); $('.et-social-tumblr a.icon span').text('Tumblr'); $('.et-social-instagram a.icon span').text('Instagram'); $('.et-social-skype a.icon span').text('Skype'); $('.et-social-flikr a.icon span').text('Flickr'); $('.et-social-myspace a.icon span').text('Myspace'); $('.et-social-dribbble a.icon span').text('Dribble'); $('.et-social-youtube a.icon span').text('YouTube'); $('.et-social-vimeo a.icon span').text('Vimeo'); $('.et-social-rss a.icon span').text('RSS'); }); jQuery(document).ready(function($) { /** * Add role="tabList". * * @divi-module Tab */ $('.et_pb_tabs_controls').each(function () { $(this).attr('role', 'tabList'); }); /** * Add role="presentation". * * @divi-module Tab */ $('.et_pb_tabs_controls li').each(function () { $(this).attr('role', 'presentation'); }); /** * Add role="tab". * * @divi-module Tab */ $('.et_pb_tabs_controls a').each(function () { $(this).attr('role', 'tab'); }); /** * Add role="tabpanel". * * @divi-module Tab */ $('.et_pb_tab').each(function () { $(this).attr('role', 'tabpanel'); }); /** * Add initial state: * * aria-selected="false" * aria-expanded="false" * tabindex=-1 * * @divi-module Tab */ $('.et_pb_tabs_controls li:not(.et_pb_tab_active) a').each(function () { $(this).attr({ 'aria-selected': 'false', 'aria-expanded': 'false', tabindex: -1 }); }); /** * Add initial state: * * aria-selected="true" * aria-expanded="true" * tabindex=-1 * * @divi-module Tab */ $('.et_pb_tabs_controls li.et_pb_tab_active a').each(function () { $(this).attr({ 'aria-selected': 'true', 'aria-expanded': 'true', tabindex: 0 }); }); /** * Add unique ID to tab controls. * Add aria-controls="x". * * @divi-module Tab */ $('.et_pb_tabs_controls a').each(function (e) { $(this).attr({ id: 'et_pb_tab_control_' + e, 'aria-controls': 'et_pb_tab_panel_' + e }); }); /** * Add unique ID to tab panels. * Add aria-labelledby="x". * * @divi-module Tab */ $('.et_pb_tab').each(function (e) { $(this).attr({ id: 'et_pb_tab_panel_' + e, 'aria-labelledby': 'et_pb_tab_control_' + e }); }); /** * Set initial inactive tab panels to aria-hidden="false". * * @divi-module Tab */ $('.et_pb_tab.et_pb_active_content').each(function () { $(this).attr('aria-hidden', 'false'); }); /** * Set initial inactive tab panels to aria-hidden="true". * * @divi-module Tab */ $('.et_pb_tab:not(.et_pb_active_content)').each(function () { $(this).attr('aria-hidden', 'true'); }); /** * Add unique ID to tab module. * Need to use data attribute because a regular ID somehow interferes with Divi. * * @divi-module Tab */ $('.et_pb_tabs').each(function (e) { $(this).attr('data-da11y-id', 'et_pb_tab_module_' + e); }); /** * Update aria-selected attribute when tab is clicked or when hitting enter while focused. * * @divi-module Tab */ $('.et_pb_tabs_controls a').on('click', function () { const id = $(this).attr('id'); const namespace = $(this).closest('.et_pb_tabs').attr('data-da11y-id'); // Used as a selector to scope changes to current module. // Reset all tab controls to be aria-selected="false" & aria-expanded="false". $('[data-da11y-id="' + namespace + '"] .et_pb_tabs_controls a').attr({ 'aria-selected': 'false', 'aria-expanded': 'false', tabindex: -1 }); // Make active tab control aria-selected="true" & aria-expanded="true". $(this).attr({ 'aria-selected': 'true', 'aria-expanded': 'true', tabindex: 0 }); // Reset all tabs to be aria-hidden="true". $('#' + namespace + ' .et_pb_tab').attr('aria-hidden', 'true'); // Label active tab panel as aria-hidden="false". $('[aria-labelledby="' + id + '"]').attr('aria-hidden', 'false'); }); // Arrow navigation for tab modules $('.et_pb_tabs_controls a').keyup(function (e) { const namespace = $(this).closest('.et_pb_tabs').attr('data-da11y-id'); const module = $('[data-da11y-id="' + namespace + '"]'); if (e.which === 39) { // Right. const next = module.find('li.et_pb_tab_active').next(); if (next.length > 0) { next.find('a').trigger('click'); } else { module.find('li:first a').trigger('click'); } } else if (e.which === 37) { // Left. const next = module.find('li.et_pb_tab_active').prev(); if (next.length > 0) { next.find('a').trigger('click'); } else { module.find('li:last a').trigger('click'); } } $('.et_pb_tabs_controls a').removeClass('keyboard-outline'); module.find('li.et_pb_tab_active a').addClass('keyboard-outline'); }); /** * Add unique ID to search module. * Need to use data attribute because a regular ID somehow interferes with Divi. * * @divi-module Search */ $('.et_pb_search').each(function (e) { $(this).attr('data-da11y-id', 'et_pb_search_module_' + e); }); /** * Add aria-required="true" to inputs. * * @divi-module Contact Form */ $('[data-required_mark="required"]').each(function () { $(this).attr('aria-required', 'true'); }); /** * Hide hidden error field on contact form. * * @divi-module Contact Form */ $('.et_pb_contactform_validate_field').attr('type', 'hidden'); /** * Add alert role to error or success contact form message * * @divi-module Contact Form */ $('.et-pb-contact-message').attr('role', 'alert'); /** * Add main role to main-content */ $('#main-content').attr('role', 'main'); /** * Add aria-label="x". * * @divi-module Fullwidth header, comment-wrap */ $('.et_pb_fullwidth_header').each(function (e) { $(this).attr('aria-label', 'Wide Header' + e); }); $('#comment-wrap').attr('aria-label', 'Comments'); }); jQuery(document).ready(function($) { /** * Add aria-hidden="true" to all icons */ $('#et_top_search, .et_close_search_field, .et_pb_main_blurb_image').attr('aria-hidden', 'true'); }); jQuery(document).ready(function($) { /** * Mobile menu Aria support. */ $('.mobile_menu_bar_toggle').attr({'role': 'button', 'aria-expanded': 'false', 'tabindex': 0}); $('.mobile_menu_bar_toggle').on('click', function() { if($(this).hasClass('a11y-mobile-menu-open') ) { $(this).removeClass('a11y-mobile-menu-open').attr('aria-expanded', 'false'); } else { $(this).addClass('a11y-mobile-menu-open').attr('aria-expanded', 'true'); } }); }); jQuery(function($){$(".divi-mobile-stop-stacking").each(function(){$(this).parents(".et_pb_row").addClass("divi-mobile-stop-stacking-row")})}); var et_animation_data = [{"class":"et_pb_button_0_tb_header","style":"slideRight","repeat":"once","duration":"1000ms","delay":"0ms","intensity":"10%","starting_opacity":"0%","speed_curve":"ease-in-out"},{"class":"et_pb_image_0","style":"slideBottom","repeat":"once","duration":"1000ms","delay":"0ms","intensity":"10%","starting_opacity":"0%","speed_curve":"ease-in-out"},{"class":"et_pb_image_1","style":"slideBottom","repeat":"once","duration":"1000ms","delay":"0ms","intensity":"10%","starting_opacity":"0%","speed_curve":"ease-in-out"},{"class":"et_pb_column_7","style":"slideBottom","repeat":"once","duration":"1000ms","delay":"200ms","intensity":"10%","starting_opacity":"0%","speed_curve":"ease-in-out"},{"class":"et_pb_column_8","style":"slideBottom","repeat":"once","duration":"1000ms","delay":"200ms","intensity":"10%","starting_opacity":"0%","speed_curve":"ease-in-out"},{"class":"et_pb_column_9","style":"slideBottom","repeat":"once","duration":"1000ms","delay":"400ms","intensity":"10%","starting_opacity":"0%","speed_curve":"ease-in-out"},{"class":"et_pb_image_2","style":"slideBottom","repeat":"once","duration":"1000ms","delay":"0ms","intensity":"10%","starting_opacity":"0%","speed_curve":"ease-in-out"},{"class":"et_pb_column_16","style":"slideBottom","repeat":"once","duration":"1000ms","delay":"200ms","intensity":"10%","starting_opacity":"0%","speed_curve":"ease-in-out"},{"class":"et_pb_column_17","style":"slideBottom","repeat":"once","duration":"1000ms","delay":"400ms","intensity":"10%","starting_opacity":"0%","speed_curve":"ease-in-out"},{"class":"et_pb_column_20","style":"slideBottom","repeat":"once","duration":"1000ms","delay":"200ms","intensity":"10%","starting_opacity":"0%","speed_curve":"ease-in-out"},{"class":"et_pb_image_5","style":"slideBottom","repeat":"once","duration":"1000ms","delay":"0ms","intensity":"10%","starting_opacity":"0%","speed_curve":"ease-in-out"},{"class":"et_pb_image_6","style":"slideBottom","repeat":"once","duration":"1000ms","delay":"200ms","intensity":"10%","starting_opacity":"0%","speed_curve":"ease-in-out"},{"class":"et_pb_image_7","style":"slideBottom","repeat":"once","duration":"1000ms","delay":"200ms","intensity":"10%","starting_opacity":"0%","speed_curve":"ease-in-out"},{"class":"et_pb_image_8","style":"slideBottom","repeat":"once","duration":"1000ms","delay":"400ms","intensity":"10%","starting_opacity":"0%","speed_curve":"ease-in-out"},{"class":"et_pb_image_9","style":"fade","repeat":"once","duration":"2000ms","delay":"0ms","intensity":"50%","starting_opacity":"0%","speed_curve":"ease-in-out"},{"class":"et_pb_button_8","style":"slideBottom","repeat":"once","duration":"1000ms","delay":"0ms","intensity":"10%","starting_opacity":"0%","speed_curve":"ease-in-out"},{"class":"et_pb_button_9","style":"slideBottom","repeat":"once","duration":"1000ms","delay":"300ms","intensity":"10%","starting_opacity":"0%","speed_curve":"ease-in-out"}]; var et_link_options_data = [{"class":"et_pb_column_8","url":"","target":"_self"},{"class":"et_pb_column_16","url":"\/sectors\/#sme","target":"_self"},{"class":"et_pb_column_17","url":"\/sectors\/#growing-businesses","target":"_self"}]; jQuery(document).ready(function( $ ) { if ( $('#main-header').length > 0 && $('.et-l--header').length == 0 ) { } else if ( $('.et-l--header').length > 0 && $('#main-header').length == 0 ) { } else { $('.divi-mobile-menu').remove(); $('body').addClass("no-mobile-menu"); } // if .dm-above-layout is on the page, get the height of this element // add it as margin-top to #open-button var dm_above_layout = $(".dm-above-layout"); if (dm_above_layout.length > 0) { var dm_above_layout_height = dm_above_layout.outerHeight(); $("#open-button").css("margin-top", dm_above_layout_height); // add padding to the top of #main-content $("#main-content").css("padding-top", dm_above_layout_height); } $("body").addClass("dm-custom-header"); function check_from_top(){ var scroll = $(window).scrollTop(); if (scroll >= 300) { $("#dm-header").addClass("fixed-header"); $("body").addClass("dm-fixed-header"); } else { $("#dm-header").removeClass("fixed-header"); $("body").removeClass("dm-fixed-header"); } if (scroll >= 50) { $(".dm-not-fixed-scroll #dm-header #et_top_search_mob").removeClass("active"); $("body.dm-not-fixed-scroll").removeClass("search-active"); } } check_from_top(); $(window).scroll(function() { check_from_top(); }); $("body").addClass("dm-bm-pos-right"); $("body").addClass("dm-expand-shape"); $("body").addClass("dm-divi-engine"); $("body").addClass("dm-circle-expand"); $("body").addClass("dm-menuside-right"); var get_one_click = false; jQuery(document).on('touchstart click', ".anchorpoint", function(e){ var _this = jQuery(e.target); if (jQuery("body").hasClass("show-menu")) { jQuery('#open-button').trigger('click'); } var getLink = _this.find('a').attr('href'); var currentUrl = window.location.href; var linkUrlPart = ''; var linkAnchorPart = ''; var currentUrlPart = currentUrl; e.preventDefault(); if(currentUrl.indexOf("#") != -1){ currentUrlPart = getLink.substring(0, getLink.indexOf("#") ); } if(getLink.indexOf("#") == 0){ linkUrlPart = currentUrlPart; linkAnchorPart = getLink.substring(1); }else if (getLink.indexOf("#") != -1 ){ linkUrlPart = getLink.substring(0, getLink.indexOf("#") ); linkAnchorPart = getLink.substring(getLink.indexOf("#")+1); } if ( linkUrlPart == currentUrlPart ){ // Same Url if (jQuery('#' + linkAnchorPart).length) { if ( linkAnchorPart != '' ){ var target_offset = jQuery('#' + linkAnchorPart).offset(); var top = target_offset.top; var header_fixed = "notfixed"; if ( header_fixed == 'fixed' ) { var header_height_scroll = 80; var header_height = 78; var scroll_distance = 300; if ( target_offset.top < scroll_distance ) { if ( target_offset.top < header_height ) { top = 0; } else { top = top - header_height; } } else { top = top - header_height_scroll; } } window.scrollTo({top: top, behavior: "smooth"}); //document.getElementById(linkAnchorPart).scrollIntoView({ behavior: "smooth" }); } } else { window.location.href = getLink; } } else { window.location.href = getLink; } }); }); // check if menu-wrap__inner exists (function () { const menuWrapInner = document.getElementsByClassName("menu-wrap__inner")[0]; if (menuWrapInner && menuWrapInner.children.length > 0) { menuWrapInner.children[0].onscroll = function () { if (this.scrollTop >= 80) { jQuery('body').addClass('menu-wrap-scroll'); } else { jQuery('body').removeClass('menu-wrap-scroll'); } } } })(); jQuery(document).ready(function($){ var isOpen = false; var bodyEl = document.body; $(document).on('click', '#open-button', function(ev){ toggleMenu(ev); }); $(document).on('click', '#close-button', function(ev){ toggleMenu(ev); }) // close the menu element if the target it´s not the menu element or one of its descendants.. $(document).on( 'click', '#et-main-area', function(ev) { var target = $(ev.target); if( isOpen && target !== $('#open-button') ) { toggleMenu(ev); } } ); function toggleMenu(event) { event.stopPropagation(); event.preventDefault(); if( isOpen ) { $(bodyEl).removeClass( 'show-menu' ); $('#open-button').removeClass( 'is-active' ); $( '#dm_nav' ).removeClass( 'active' ); $('#dm-menu').find('.menu-item-has-children').each(function() { $(this).removeClass('visible'); }); setTimeout(function (){ $('#dm_nav').addClass( 'menuclosed' ); }, 800); }else { $(bodyEl).addClass( 'show-menu' ); $('#open-button').addClass( 'is-active' ); $( '#dm_nav' ).addClass( 'active' ); $( '#dm_nav' ).removeClass( 'menuclosed' ); } isOpen = !isOpen; } }); jQuery(document).ready(function( $ ) { $("body").addClass("dm-ch-logo-pos-left"); $("body").addClass("dm-ch-cart-icon-pos-none"); $("body").addClass("dm-ch-search-icon-pos-right"); $("body").addClass("dm-ch-account-icon-pos-none"); $("body").addClass("dm-search-icon-header"); $("#dm-header #et_top_search_mob #et_search_icon").on('touchstart click', function(event) { $("#dm-header #et_top_search_mob").addClass("active"); setTimeout( function() { $("body").addClass("search-active"); }, 500); }); $(document).on('touchstart click', ".search-active #et_top_search_mob #et_search_icon" , function(event){ console.log("added"); $( ".et-search-form" ).submit(); }); $("#dm-header #et_top_search_mob .close").on('touchstart click', function(event) { $("#dm-header #et_top_search_mob").removeClass("active"); $("body").removeClass("search-active"); }); $("body").addClass("dm-not-fixed-scroll"); }); jQuery(document).ready(function($){ $("body").addClass("bc-expand-circle"); var overlayNav = $('.cd-overlay-nav'), overlayContent = $('.cd-overlay-content'), navigation = $('#dm_nav .menu-wrap__inner'), toggleNav = $('#open-button'), burger_bg = $('.menu-wrap'); // Initialize navigation and content layers layerInit(); // Commented this out as when resizing, the animation to open the menu woudld be delayed sometimes even up to 5s - SUP-7777 // $(window).on('resize', function(){ // window.requestAnimationFrame(layerInit); // }); // Open/close the menu and cover layers toggleNav.on('click', function(event) { if (!burger_bg.hasClass('close-nav')) { // It means navigation is not visible yet - open it and animate navigation layer burger_bg.addClass('close-nav'); overlayNav.children('span').velocity({ translateZ: 0, scaleX: 1, scaleY: 1, }, 500, 'easeInCubic', function(){ navigation.addClass('fade-in'); }); } else { // Navigation is open - close it and remove navigation layer burger_bg.removeClass('close-nav'); overlayContent.children('span').velocity({ translateZ: 0, scaleX: 1, scaleY: 1, }, 0, 'easeInCubic', function(){ navigation.removeClass('fade-in'); overlayNav.children('span').velocity({ translateZ: 0, scaleX: 0, scaleY: 0, }, 500); overlayContent.addClass('is-hidden').one('webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend', function(){ overlayContent.children('span').velocity({ translateZ: 0, scaleX: 0, scaleY: 0, }, 500, function(){overlayContent.removeClass('is-hidden')}); }); if ($('html').hasClass('no-csstransitions')) { overlayContent.children('span').velocity({ translateZ: 0, scaleX: 0, scaleY: 0, }, 500, function(){overlayContent.removeClass('is-hidden')}); } }); } }); function layerInit(){ var diameterValue = (Math.sqrt( Math.pow($(window).height(), 2) + Math.pow($(window).width(), 2))*2); overlayNav.children('span').velocity({ scaleX: 0, scaleY: 0, translateZ: 0, }, 50).velocity({ height : diameterValue+'px', width : diameterValue+'px', top : -(diameterValue/2)+'px', left : -(diameterValue/2)+'px', }, 0); overlayContent.children('span').velocity({ scaleX: 0, scaleY: 0, translateZ: 0, }, 50).velocity({ height : diameterValue+'px', width : diameterValue+'px', top : -(diameterValue/2)+'px', left : -(diameterValue/2)+'px', }, 0); } }); jQuery(document).ready(function( $ ) { $("body").addClass("collapse-submenu"); function dm_setup_collapsible_submenus() { var $menu = $('#dm_nav'), top_level_link = '.menu-wrap__inner .menu-item-has-children > a'; $menu.find('a').each(function() { $(this).closest('.menu-item-has-children a').append('<span class="clickthrough"></span>'); var click_through = $(".clickthrough"); if ( $(this).closest('.menu-item').length > 0 && !$(this).siblings('.sub-menu').length ) { $(this).off('touchstart click').on('touchstart click', function(event) { // $("#dm-menu.nav li").removeClass('visible'); $(this).parents('.mobile_nav').trigger('click'); }); } else { } }); } setTimeout(function() { dm_setup_collapsible_submenus(); }, 1200); var click_through = '.clickthrough'; if ($(window).width() < 1200) { var touchmoved; $('.menu-item-has-children').on('touchend click', click_through, function(e) { if(touchmoved != true){ e.preventDefault(); e.stopPropagation(); $(this).closest('.menu-item').siblings().removeClass('visible'); $(this).closest('.menu-item').toggleClass('visible'); setTimeout(function() { jQuery('.menu-item').removeClass('et-hover'); jQuery('.menu-item').removeClass('et-touch-hover'); }, 800); } }).on('touchmove', click_through, function(e) { touchmoved = true; }).on('touchstart', click_through, function(e) { touchmoved = false; }); } else { $('body').on('touchstart click', click_through, function(e) { e.preventDefault(); e.stopPropagation(); $(this).closest('.menu-item').siblings().removeClass('visible'); $(this).closest('.menu-item').toggleClass('visible'); setTimeout(function() { jQuery('.menu-item').removeClass('et-hover'); jQuery('.menu-item').removeClass('et-touch-hover'); }, 800); }); } $("#dm_nav .menu-item").on("touchstart", 'a',function(e) { touchmoved = false; //var addressValue = $(this).attr("href"); //window.location.href = addressValue; }).on("touchmove", 'a', function(e){ touchmoved = true; }).on("touchend click", 'a', function(e){ if ( touchmoved != true ){ e.preventDefault(); e.stopPropagation(); var addressValue = $(this).attr("href"); var addresstarget = $(this).attr('target'); if (addresstarget == "_blank") { window.open(addressValue, '_blank'); } else { window.location.href = addressValue; } } }); }); /* <![CDATA[ */ jQuery(".divi-mobile-stop-stacking").closest(".et_pb_row").addClass("divi-mobile-stop-stacking-row"); /* ]]> */ /* <![CDATA[ */ var monarchSettings = {"ajaxurl":"https:\/\/www.thomasemlyn.co.uk\/wp-admin\/admin-ajax.php","pageurl":"https:\/\/www.thomasemlyn.co.uk\/","stats_nonce":"f90a649ebc","share_counts":"414b2649ae","follow_counts":"87e76b0f87","total_counts":"e148e40113","media_single":"6108dda42d","media_total":"3f24340e91","generate_all_window_nonce":"10b69e249e","no_img_message":"No images available for sharing on this page"}; /* ]]> */ /* <![CDATA[ */ "use strict";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){return protoProps&&defineProperties(Constructor.prototype,protoProps),staticProps&&defineProperties(Constructor,staticProps),Constructor}}();function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}var RocketBrowserCompatibilityChecker=function(){function RocketBrowserCompatibilityChecker(options){_classCallCheck(this,RocketBrowserCompatibilityChecker),this.passiveSupported=!1,this._checkPassiveOption(this),this.options=!!this.passiveSupported&&options}return _createClass(RocketBrowserCompatibilityChecker,[{key:"_checkPassiveOption",value:function(self){try{var options={get passive(){return!(self.passiveSupported=!0)}};window.addEventListener("test",null,options),window.removeEventListener("test",null,options)}catch(err){self.passiveSupported=!1}}},{key:"initRequestIdleCallback",value:function(){!1 in window&&(window.requestIdleCallback=function(cb){var start=Date.now();return setTimeout(function(){cb({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-start))}})},1)}),!1 in window&&(window.cancelIdleCallback=function(id){return clearTimeout(id)})}},{key:"isDataSaverModeOn",value:function(){return"connection"in navigator&&!0===navigator.connection.saveData}},{key:"supportsLinkPrefetch",value:function(){var elem=document.createElement("link");return elem.relList&&elem.relList.supports&&elem.relList.supports("prefetch")&&window.IntersectionObserver&&"isIntersecting"in IntersectionObserverEntry.prototype}},{key:"isSlowConnection",value:function(){return"connection"in navigator&&"effectiveType"in navigator.connection&&("2g"===navigator.connection.effectiveType||"slow-2g"===navigator.connection.effectiveType)}}]),RocketBrowserCompatibilityChecker}(); /* ]]> */ /* <![CDATA[ */ var RocketPreloadLinksConfig = {"excludeUris":"\/(?:.+\/)?feed(?:\/(?:.+\/?)?)?$|\/(?:.+\/)?embed\/|\/(index.php\/)?(.*)wp-json(\/.*|$)|\/refer\/|\/go\/|\/recommend\/|\/recommends\/","usesTrailingSlash":"1","imageExt":"jpg|jpeg|gif|png|tiff|bmp|webp|avif|pdf|doc|docx|xls|xlsx|php","fileExt":"jpg|jpeg|gif|png|tiff|bmp|webp|avif|pdf|doc|docx|xls|xlsx|php|html|htm","siteUrl":"https:\/\/www.thomasemlyn.co.uk","onHoverDelay":"100","rateThrottle":"3"}; /* ]]> */ /* <![CDATA[ */ (function() { "use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e=function(){function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}}();function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var t=function(){function n(e,t){i(this,n),this.browser=e,this.config=t,this.options=this.browser.options,this.prefetched=new Set,this.eventTime=null,this.threshold=1111,this.numOnHover=0}return e(n,[{key:"init",value:function(){!this.browser.supportsLinkPrefetch()||this.browser.isDataSaverModeOn()||this.browser.isSlowConnection()||(this.regex={excludeUris:RegExp(this.config.excludeUris,"i"),images:RegExp(".("+this.config.imageExt+")$","i"),fileExt:RegExp(".("+this.config.fileExt+")$","i")},this._initListeners(this))}},{key:"_initListeners",value:function(e){-1<this.config.onHoverDelay&&document.addEventListener("mouseover",e.listener.bind(e),e.listenerOptions),document.addEventListener("mousedown",e.listener.bind(e),e.listenerOptions),document.addEventListener("touchstart",e.listener.bind(e),e.listenerOptions)}},{key:"listener",value:function(e){var t=e.target.closest("a"),n=this._prepareUrl(t);if(null!==n)switch(e.type){case"mousedown":case"touchstart":this._addPrefetchLink(n);break;case"mouseover":this._earlyPrefetch(t,n,"mouseout")}}},{key:"_earlyPrefetch",value:function(t,e,n){var i=this,r=setTimeout(function(){if(r=null,0===i.numOnHover)setTimeout(function(){return i.numOnHover=0},1e3);else if(i.numOnHover>i.config.rateThrottle)return;i.numOnHover++,i._addPrefetchLink(e)},this.config.onHoverDelay);t.addEventListener(n,function e(){t.removeEventListener(n,e,{passive:!0}),null!==r&&(clearTimeout(r),r=null)},{passive:!0})}},{key:"_addPrefetchLink",value:function(i){return this.prefetched.add(i.href),new Promise(function(e,t){var n=document.createElement("link");n.rel="prefetch",n.href=i.href,n.onload=e,n.onerror=t,document.head.appendChild(n)}).catch(function(){})}},{key:"_prepareUrl",value:function(e){if(null===e||"object"!==(void 0===e?"undefined":r(e))||!1 in e||-1===["http:","https:"].indexOf(e.protocol))return null;var t=e.href.substring(0,this.config.siteUrl.length),n=this._getPathname(e.href,t),i={original:e.href,protocol:e.protocol,origin:t,pathname:n,href:t+n};return this._isLinkOk(i)?i:null}},{key:"_getPathname",value:function(e,t){var n=t?e.substring(this.config.siteUrl.length):e;return n.startsWith("/")||(n="/"+n),this._shouldAddTrailingSlash(n)?n+"/":n}},{key:"_shouldAddTrailingSlash",value:function(e){return this.config.usesTrailingSlash&&!e.endsWith("/")&&!this.regex.fileExt.test(e)}},{key:"_isLinkOk",value:function(e){return null!==e&&"object"===(void 0===e?"undefined":r(e))&&(!this.prefetched.has(e.href)&&e.origin===this.config.siteUrl&&-1===e.href.indexOf("?")&&-1===e.href.indexOf("#")&&!this.regex.excludeUris.test(e.href)&&!this.regex.images.test(e.href))}}],[{key:"run",value:function(){"undefined"!=typeof RocketPreloadLinksConfig&&new n(new RocketBrowserCompatibilityChecker({capture:!0,passive:!0}),RocketPreloadLinksConfig).init()}}]),n}();t.run(); }()); /* ]]> */ /* <![CDATA[ */ var DIVI = {"item_count":"%d Item","items_count":"%d Items"}; var et_builder_utils_params = {"condition":{"diviTheme":true,"extraTheme":false},"scrollLocations":["app","top"],"builderScrollLocations":{"desktop":"app","tablet":"app","phone":"app"},"onloadScrollLocation":"app","builderType":"fe"}; var et_frontend_scripts = {"builderCssContainerPrefix":"#et-boc","builderCssLayoutPrefix":"#et-boc .et-l"}; var et_pb_custom = {"ajaxurl":"https:\/\/www.thomasemlyn.co.uk\/wp-admin\/admin-ajax.php","images_uri":"https:\/\/www.thomasemlyn.co.uk\/wp-content\/themes\/Divi\/images","builder_images_uri":"https:\/\/www.thomasemlyn.co.uk\/wp-content\/themes\/Divi\/includes\/builder\/images","et_frontend_nonce":"d6b6c10182","subscription_failed":"Please, check the fields below to make sure you entered the correct information.","et_ab_log_nonce":"746f6e0fa9","fill_message":"Please, fill in the following fields:","contact_error_message":"Please, fix the following errors:","invalid":"Invalid email","captcha":"Captcha","prev":"Prev","previous":"Previous","next":"Next","wrong_captcha":"You entered the wrong number in captcha.","wrong_checkbox":"Checkbox","ignore_waypoints":"no","is_divi_theme_used":"1","widget_search_selector":".widget_search","ab_tests":[],"is_ab_testing_active":"","page_id":"409","unique_test_id":"","ab_bounce_rate":"5","is_cache_plugin_active":"yes","is_shortcode_tracking":"","tinymce_uri":"https:\/\/www.thomasemlyn.co.uk\/wp-content\/themes\/Divi\/includes\/builder\/frontend-builder\/assets\/vendors","accent_color":"#1e73be","waypoints_options":[]}; var et_pb_box_shadow_elements = []; /* ]]> */ /* <![CDATA[ */ var mejsL10n = {"language":"en","strings":{"mejs.download-file":"Download File","mejs.install-flash":"You are using a browser that does not have Flash player enabled or installed. Please turn on your Flash player plugin or download the latest version from https:\/\/get.adobe.com\/flashplayer\/","mejs.fullscreen":"Fullscreen","mejs.play":"Play","mejs.pause":"Pause","mejs.time-slider":"Time Slider","mejs.time-help-text":"Use Left\/Right Arrow keys to advance one second, Up\/Down arrows to advance ten seconds.","mejs.live-broadcast":"Live Broadcast","mejs.volume-help-text":"Use Up\/Down Arrow keys to increase or decrease volume.","mejs.unmute":"Unmute","mejs.mute":"Mute","mejs.volume-slider":"Volume Slider","mejs.video-player":"Video Player","mejs.audio-player":"Audio Player","mejs.captions-subtitles":"Captions\/Subtitles","mejs.captions-chapters":"Chapters","mejs.none":"None","mejs.afrikaans":"Afrikaans","mejs.albanian":"Albanian","mejs.arabic":"Arabic","mejs.belarusian":"Belarusian","mejs.bulgarian":"Bulgarian","mejs.catalan":"Catalan","mejs.chinese":"Chinese","mejs.chinese-simplified":"Chinese (Simplified)","mejs.chinese-traditional":"Chinese (Traditional)","mejs.croatian":"Croatian","mejs.czech":"Czech","mejs.danish":"Danish","mejs.dutch":"Dutch","mejs.english":"English","mejs.estonian":"Estonian","mejs.filipino":"Filipino","mejs.finnish":"Finnish","mejs.french":"French","mejs.galician":"Galician","mejs.german":"German","mejs.greek":"Greek","mejs.haitian-creole":"Haitian Creole","mejs.hebrew":"Hebrew","mejs.hindi":"Hindi","mejs.hungarian":"Hungarian","mejs.icelandic":"Icelandic","mejs.indonesian":"Indonesian","mejs.irish":"Irish","mejs.italian":"Italian","mejs.japanese":"Japanese","mejs.korean":"Korean","mejs.latvian":"Latvian","mejs.lithuanian":"Lithuanian","mejs.macedonian":"Macedonian","mejs.malay":"Malay","mejs.maltese":"Maltese","mejs.norwegian":"Norwegian","mejs.persian":"Persian","mejs.polish":"Polish","mejs.portuguese":"Portuguese","mejs.romanian":"Romanian","mejs.russian":"Russian","mejs.serbian":"Serbian","mejs.slovak":"Slovak","mejs.slovenian":"Slovenian","mejs.spanish":"Spanish","mejs.swahili":"Swahili","mejs.swedish":"Swedish","mejs.tagalog":"Tagalog","mejs.thai":"Thai","mejs.turkish":"Turkish","mejs.ukrainian":"Ukrainian","mejs.vietnamese":"Vietnamese","mejs.welsh":"Welsh","mejs.yiddish":"Yiddish"}}; /* ]]> */ /* <![CDATA[ */ var _wpmejsSettings = {"pluginPath":"\/wp-includes\/js\/mediaelement\/","classPrefix":"mejs-","stretching":"responsive","audioShortcodeLibrary":"mediaelement","videoShortcodeLibrary":"mediaelement"}; /* ]]> */ /* <![CDATA[ */ var et_pb_motion_elements = {"desktop":[],"tablet":[],"phone":[]}; /* ]]> */ /* <![CDATA[ */ var et_pb_sticky_elements = []; /* ]]> */ window.lazyLoadOptions=[{elements_selector:"img[data-lazy-src],.rocket-lazyload,iframe[data-lazy-src]",data_src:"lazy-src",data_srcset:"lazy-srcset",data_sizes:"lazy-sizes",class_loading:"lazyloading",class_loaded:"lazyloaded",threshold:300,callback_loaded:function(element){if(element.tagName==="IFRAME"&&element.dataset.rocketLazyload=="fitvidscompatible"){if(element.classList.contains("lazyloaded")){if(typeof window.jQuery!="undefined"){if(jQuery.fn.fitVids){jQuery(element).parent().fitVids()}}}}}},{elements_selector:".rocket-lazyload",data_src:"lazy-src",data_srcset:"lazy-srcset",data_sizes:"lazy-sizes",class_loading:"lazyloading",class_loaded:"lazyloaded",threshold:300,}];window.addEventListener('LazyLoad::Initialized',function(e){var lazyLoadInstance=e.detail.instance;if(window.MutationObserver){var observer=new MutationObserver(function(mutations){var image_count=0;var iframe_count=0;var rocketlazy_count=0;mutations.forEach(function(mutation){for(var i=0;i<mutation.addedNodes.length;i++){if(typeof mutation.addedNodes[i].getElementsByTagName!=='function'){continue} if(typeof mutation.addedNodes[i].getElementsByClassName!=='function'){continue} images=mutation.addedNodes[i].getElementsByTagName('img');is_image=mutation.addedNodes[i].tagName=="IMG";iframes=mutation.addedNodes[i].getElementsByTagName('iframe');is_iframe=mutation.addedNodes[i].tagName=="IFRAME";rocket_lazy=mutation.addedNodes[i].getElementsByClassName('rocket-lazyload');image_count+=images.length;iframe_count+=iframes.length;rocketlazy_count+=rocket_lazy.length;if(is_image){image_count+=1} if(is_iframe){iframe_count+=1}}});if(image_count>0||iframe_count>0||rocketlazy_count>0){lazyLoadInstance.update()}});var b=document.getElementsByTagName("body")[0];var config={childList:!0,subtree:!0};observer.observe(b,config)}},!1)