Lead #3144

Company
TLP Consulting Limited
Website
https://tennantland.co.uk
Best Contact
Andrew
Email
andrew@tennantland.co.uk (person)

Override

Captured Pages

Emails: tlp@tennantland.co.uk
View text
Home About us Meet the team Official Information Services Business Audit Bookkeeping & accounting Business planning Business startup Company secretarial Corporate finance Rescue & recovery Corporate tax planning International services Mergers & acquisitions Payroll VAT Personal Personal tax planning Retirement strategies Self assessment Strategic partners Resources Calculators Tax and business calendar News Contact +44 (0)1423 526343 tlp@tennantland.co.uk Home About us Meet the team Official Information Services Business Audit Bookkeeping & accounting Business planning Business startup Company secretarial Corporate finance Rescue & recovery Corporate tax planning International services Mergers & acquisitions Payroll VAT Personal Personal tax planning Retirement strategies Self assessment Strategic partners Resources Calculators Tax and business calendar News Contact Select Page Home » Contact Contact TLP Chartered Accountants & Business Advisers 3 GreengateCardale ParkHarrogateNorth Yorkshire HG3 1GY Email: tlp@tennantland.co.uk Tel: 01423 526343 Fax: 01423 536594 VAT Number 418 060 769 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:#212121; color:#ffffff; padding:9px 21px 10px 21px; } .nf-form-content .nf-field-container.submit-container .nf-field-element .ninja-forms-field:hover { background-color:#424242; color:#ffffff; padding:9px 21px 10px 21px; } .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; } /* FIELDS STYLES */ .nf-form-content .nf-field-container #nf-field-4-wrap .nf-field-element .ninja-forms-field { background-color:#c1c1c1; } .nf-form-content .nf-field-container #nf-field-4-wrap .nf-field-element .ninja-forms-field:hover { background-color:#aaaaaa; } var formDisplay=1;var nfForms=nfForms||[];var form=[];form.id='1';form.settings={"objectType":"Form Setting","editActive":true,"title":"Contact Me","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":["name_1617203665747"],"width":"100"}]},{"order":2,"cells":[{"order":0,"fields":["email"],"width":"100"}]},{"order":3,"cells":[{"order":0,"fields":["telephone_1671532117919"],"width":"100"}]},{"order":4,"cells":[{"order":0,"fields":["comments_1617203684865"],"width":"100"}]},{"order":5,"cells":[{"order":0,"fields":["tick_the_box_below_to_confirm_if_you_re_not_a_robot_1671532138498"],"width":"100"}]},{"order":6,"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,"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":"&#36;","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&#039;t load.","recaptchaMissingCookie":"reCaptcha v3 validation couldn&#039;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":"Name","key":"name_1617203665747","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":"c4777","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","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":"c4781","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":3,"idAttribute":"id","label":"Telephone","type":"phone","key":"telephone_1671532117919","label_pos":"above","required":1,"default":"","placeholder":"","container_class":"","element_class":"","input_limit":"","input_limit_type":"characters","input_limit_msg":"Character(s) left","manual_key":false,"admin_label":"","help_text":"","mask":"","custom_mask":"","custom_name_attribute":"phone","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":"c4784","value":"","drawerDisabled":false,"id":53,"beforeField":"","afterField":"","parentType":"textbox","element_templates":["tel","textbox","input"],"old_classname":"","wrap_template":"wrap"},{"objectType":"Field","objectDomain":"fields","editActive":false,"order":4,"idAttribute":"id","label":"Comments","key":"comments_1617203684865","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":"c4787","value":"","drawerDisabled":false,"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 if 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_if_you_re_not_a_robot_1671532138498","cellcid":"c4790","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":"#c1c1c1","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":"#aaaaaa","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":"c4793","drawerDisabled":false,"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> TERMS AND CONDITIONS PRIVACY STATEMENT COOKIE POLICY ACCESSIBILITY STATEMENT COPYRIGHT SEARCH {"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")})}); 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 = 82; 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[ */ "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.tennantland.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.tennantland.co.uk\/wp-admin\/admin-ajax.php","images_uri":"https:\/\/www.tennantland.co.uk\/wp-content\/themes\/Divi\/images","builder_images_uri":"https:\/\/www.tennantland.co.uk\/wp-content\/themes\/Divi\/includes\/builder\/images","et_frontend_nonce":"246ed715a0","subscription_failed":"Please, check the fields below to make sure you entered the correct information.","et_ab_log_nonce":"c01da3fd2e","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.tennantland.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.tennantland.co.uk\/wp-admin\/admin-ajax.php","ajaxNonce":"013f27ec74","requireBaseUrl":"https:\/\/www.tennantland.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 = []; /* ]]> */ .et_pb_section_0_tb_footer.et_pb_section{padding-top:0px;padding-bottom:0px;margin-right:0px;margin-left:0px;background-color:#dcdcdc!important}.et_pb_row_0_tb_footer{background-color:#dcdcdc}.et_pb_image_0_tb_footer .et_pb_image_wrap img{min-height:auto;max-height:none}.et_pb_image_0_tb_footer{padding-right:0px;padding-left:0px;max-width:100%;text-align:left;margin-left:0}.et_pb_image_1_tb_footer{padding-right:0px;padding-left:0px;text-align:center}.et_pb_image_2_tb_footer{text-align:center}.et_pb_image_3_tb_footer{text-align:left;margin-left:0}.et_pb_text_0_tb_footer.et_pb_text a,.et_pb_text_1_tb_footer.et_pb_text a,.et_pb_text_2_tb_footer.et_pb_text a,.et_pb_text_3_tb_footer.et_pb_text a,.et_pb_text_4_tb_footer.et_pb_text a,.et_pb_text_5_tb_footer.et_pb_text a{color:#000000!important;transition:color 300ms ease 0ms}.et_pb_text_0_tb_footer.et_pb_text a:hover,.et_pb_text_1_tb_footer.et_pb_text a:hover,.et_pb_text_2_tb_footer.et_pb_text a:hover,.et_pb_text_3_tb_footer.et_pb_text a:hover,.et_pb_text_4_tb_footer.et_pb_text a:hover,.et_pb_text_5_tb_footer.et_pb_text a:hover{color:#898989!important}.et_pb_text_0_tb_footer h1,.et_pb_text_1_tb_footer h1,.et_pb_text_2_tb_footer h1,.et_pb_text_3_tb_footer h1,.et_pb_text_4_tb_footer h1,.et_pb_text_5_tb_footer h1{font-size:33px;color:#333333!important}.et_pb_text_0_tb_footer h2,.et_pb_text_1_tb_footer h2,.et_pb_text_2_tb_footer h2,.et_pb_text_3_tb_footer h2,.et_pb_text_4_tb_footer h2,.et_pb_text_5_tb_footer h2{font-size:25px;color:#333333!important}.et_pb_text_0_tb_footer h3,.et_pb_text_0_tb_footer h4,.et_pb_text_1_tb_footer h3,.et_pb_text_1_tb_footer h4,.et_pb_text_2_tb_footer h3,.et_pb_text_2_tb_footer h4,.et_pb_text_3_tb_footer h3,.et_pb_text_3_tb_footer h4,.et_pb_text_4_tb_footer h3,.et_pb_text_4_tb_footer h4,.et_pb_text_5_tb_footer h3,.et_pb_text_5_tb_footer h4{color:#333333!important}@media only screen and (min-width:981px){.et_pb_image_0_tb_footer{width:100%}}@media only screen and (max-width:980px){.et_pb_section_0_tb_footer.et_pb_section{margin-right:0px;margin-left:0px}.et_pb_image_0_tb_footer .et_pb_image_wrap img{min-height:auto;max-height:none;width:auto}.et_pb_image_0_tb_footer{width:100%}.et_pb_image_1_tb_footer .et_pb_image_wrap img,.et_pb_image_2_tb_footer .et_pb_image_wrap img,.et_pb_image_3_tb_footer .et_pb_image_wrap img{width:auto}.et_pb_text_0_tb_footer h1,.et_pb_text_1_tb_footer h1,.et_pb_text_2_tb_footer h1,.et_pb_text_3_tb_footer h1,.et_pb_text_4_tb_footer h1,.et_pb_text_5_tb_footer h1{font-size:25px}}@media only screen and (max-width:767px){.et_pb_image_0_tb_footer .et_pb_image_wrap img{min-height:auto;max-height:none;width:auto}.et_pb_image_0_tb_footer,.et_pb_image_3_tb_footer{text-align:center;margin-left:auto;margin-right:auto}.et_pb_image_1_tb_footer .et_pb_image_wrap img,.et_pb_image_2_tb_footer .et_pb_image_wrap img,.et_pb_image_3_tb_footer .et_pb_image_wrap img{width:auto}.et_pb_text_0_tb_footer h1,.et_pb_text_1_tb_footer h1,.et_pb_text_2_tb_footer h1,.et_pb_text_3_tb_footer h1,.et_pb_text_4_tb_footer h1,.et_pb_text_5_tb_footer h1{font-size:22px}.et_pb_image_0_tb_footer.et_pb_module{margin-left:auto!important;margin-right:auto!important}}.et_pb_section_0.et_pb_section{padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;background-color:#eeeeee!important}.et_pb_row_0{background-color:#f6f6f6}.et_pb_row_0.et_pb_row{padding-top:0px!important;padding-right:0px!important;padding-bottom:0px!important;padding-left:0px!important;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px}.et_pb_text_0.et_pb_text a{color:#F28900!important;transition:color 300ms ease 0ms}.et_pb_text_0.et_pb_text a:hover,.et_pb_text_1.et_pb_text a:hover{color:#999999!important}.et_pb_text_0 a,.et_pb_text_1 a{font-weight:700}.et_pb_text_0 h1{font-size:30px;color:#6B6B6B!important}.et_pb_text_0 h2,.et_pb_text_1 h2{font-size:27px;color:#333333!important}.et_pb_text_0 h3{color:#F28900!important}.et_pb_text_0 h4,.et_pb_text_1 h3,.et_pb_text_1 h4{color:#333333!important}.et_pb_text_0{padding-right:31px!important;padding-bottom:29px!important;padding-left:31px!important}.et_pb_code_0{padding-right:32px;padding-left:32px}.et_pb_text_1.et_pb_text a{color:#828282!important;transition:color 300ms ease 0ms}.et_pb_text_1 h1{font-size:30px;color:#333333!important}.et_pb_text_1{padding-right:34px!important;padding-left:34px!important}.et_pb_column_0{padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px}@media only screen and (max-width:980px){.et_pb_row_0{background-image:initial;background-color:initial}.et_pb_text_0 h1,.et_pb_text_1 h1{font-size:25px}.et_pb_text_0 h2,.et_pb_text_1 h2{font-size:27px}.et_pb_column_0{padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px}}@media only screen and (max-width:767px){.et_pb_row_0{background-image:initial}.et_pb_row_0.et_pb_row{padding-top:0px!important;padding-right:0px!important;padding-bottom:0px!important;padding-left:0px!important;padding-top:0px!important;padding-right:0px!important;padding-bottom:0px!important;padding-left:0px!important}.et_pb_text_0 h1,.et_pb_text_1 h1{font-size:22px}.et_pb_column_0{padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px}} <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="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() }}} > <input type="tel" value="{{{ _.escape( data.value ) }}}" class="{{{ data.renderClasses() }}} nf-element" {{{ data.maybeDisabled() }}} 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() }}} > <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)
Emails: tlp@tennantland.co.uk, viewed@www.auditregister.org.uk, found@www.icaew.com, found@www.frc.org.uk, viewed@www.icaewfirms.com
View text
Home About us Meet the team Official Information Services Business Audit Bookkeeping & accounting Business planning Business startup Company secretarial Corporate finance Rescue & recovery Corporate tax planning International services Mergers & acquisitions Payroll VAT Personal Personal tax planning Retirement strategies Self assessment Strategic partners Resources Calculators Tax and business calendar News Contact +44 (0)1423 526343 tlp@tennantland.co.uk Home About us Meet the team Official Information Services Business Audit Bookkeeping & accounting Business planning Business startup Company secretarial Corporate finance Rescue & recovery Corporate tax planning International services Mergers & acquisitions Payroll VAT Personal Personal tax planning Retirement strategies Self assessment Strategic partners Resources Calculators Tax and business calendar News Contact Select Page About usMeet the team Official Information Privacy Statement Home » About us » Official Information Offical Information Legal structuresTLP is a trading names of TLP Advisory LLP (Limited Liability Partnership) registered under partnershipNo. OC362176 (England & Wales). TLP Consulting Limited a company registered in England and Wales under No. 07139821 Registered Offices: 3 Greengate, Cardale Park, Harrogate, North Yorkshire, HG3 1GY. A full list of members / directors is available at this address. Investment Business TLP Consulting Limited is regulated for a range of investment business activities by the Institute of Chartered Accountants in England and Wales. Audit registration TLP Consulting Limited is a statutory auditor registered to carry on audit work in the UK by the Institute of Accountants in England and Wales. Details about our audit registration can be viewed at www.auditregister.org.uk under – TLP Audit Limited reference C002809473 The professional rules applicable to our audit work in the UK are the Audit Regulations which can be found at www.icaew.com/auditnews . In addition there are the International Standards on Auditing (UK and Ireland) at www.frc.org.uk/Our-Work/Codes-Standards/Audit-and-assurance/Standards-and-guidance/Standards-and-guidance-for-auditors/Auditing-standards.aspx . In carrying out our audit work we are subject to the Code of Ethics. With respect to audit work we are also subject to the APB Ethical Standards found at www.frc.org.uk/Our-Work/Publications/APB/Ethical-Standard-for-Reporting-Accountants-(ESRA).pdf . General practice registration We are members of the Institute of Chartered Accountants in England and Wales and in our conduct are subject to its Code of Ethics which can be found at www.icaew.com/regulations We confirm that we are registered to carry on general accountancy and tax practice by the Institute of Chartered Accountants in England and Wales. Details about our registration as practicing members of the Institute of Chartered Accountants in England and Wales can be viewed at www.icaewfirms.com using our firm name and location. VAT registration numbers TLP Advisory LLP – GB 107 4756 14 TLP Consulting Limited – GB 107 0622 55 Standard terms of business You can access a copy of our standard terms of business here. As a client, you will receive a full engagement letter setting out the services we have agreed to provide, our respective roles and responsibilities and other relevant information. As part of our legal and regulatory responsibilities under Anti-Money Laundering regulations, we are required to verify the identity of our clients (including individuals who own and control limited companies, partnerships, LLPs, trusts etc). We may verify client identities by carrying out an electronic check with an independent agency and you should let us know if you don’t want us to do this. Professional indemnity insurance Our professional indemnity insurer is Accelerant Insurance Europe SA, 1 Tollgate Business Park, Tollgate West, Colchester, CO3 8AB. The territorial coverage is worldwide excluding professional business carried out in the United States of America or Canada and excludes any action for a claim brought in any court in the United States of America or Canada. TERMS AND CONDITIONS PRIVACY STATEMENT COOKIE POLICY ACCESSIBILITY STATEMENT COPYRIGHT SEARCH {"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")})}); 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 = 82; 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[ */ "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.tennantland.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.tennantland.co.uk\/wp-admin\/admin-ajax.php","images_uri":"https:\/\/www.tennantland.co.uk\/wp-content\/themes\/Divi\/images","builder_images_uri":"https:\/\/www.tennantland.co.uk\/wp-content\/themes\/Divi\/includes\/builder\/images","et_frontend_nonce":"246ed715a0","subscription_failed":"Please, check the fields below to make sure you entered the correct information.","et_ab_log_nonce":"c01da3fd2e","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":"52487","unique_test_id":"","ab_bounce_rate":"5","is_cache_plugin_active":"yes","is_shortcode_tracking":"","tinymce_uri":"https:\/\/www.tennantland.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 = []; /* ]]> */ .et_pb_section_0_tb_footer.et_pb_section{padding-top:0px;padding-bottom:0px;margin-right:0px;margin-left:0px;background-color:#dcdcdc!important}.et_pb_row_0_tb_footer{background-color:#dcdcdc}.et_pb_image_0_tb_footer .et_pb_image_wrap img{min-height:auto;max-height:none}.et_pb_image_0_tb_footer{padding-right:0px;padding-left:0px;max-width:100%;text-align:left;margin-left:0}.et_pb_image_1_tb_footer{padding-right:0px;padding-left:0px;text-align:center}.et_pb_image_2_tb_footer{text-align:center}.et_pb_image_3_tb_footer{text-align:left;margin-left:0}.et_pb_text_0_tb_footer.et_pb_text a,.et_pb_text_1_tb_footer.et_pb_text a,.et_pb_text_2_tb_footer.et_pb_text a,.et_pb_text_3_tb_footer.et_pb_text a,.et_pb_text_4_tb_footer.et_pb_text a,.et_pb_text_5_tb_footer.et_pb_text a{color:#000000!important;transition:color 300ms ease 0ms}.et_pb_text_0_tb_footer.et_pb_text a:hover,.et_pb_text_1_tb_footer.et_pb_text a:hover,.et_pb_text_2_tb_footer.et_pb_text a:hover,.et_pb_text_3_tb_footer.et_pb_text a:hover,.et_pb_text_4_tb_footer.et_pb_text a:hover,.et_pb_text_5_tb_footer.et_pb_text a:hover{color:#898989!important}.et_pb_text_0_tb_footer h1,.et_pb_text_1_tb_footer h1,.et_pb_text_2_tb_footer h1,.et_pb_text_3_tb_footer h1,.et_pb_text_4_tb_footer h1,.et_pb_text_5_tb_footer h1{font-size:33px;color:#333333!important}.et_pb_text_0_tb_footer h2,.et_pb_text_1_tb_footer h2,.et_pb_text_2_tb_footer h2,.et_pb_text_3_tb_footer h2,.et_pb_text_4_tb_footer h2,.et_pb_text_5_tb_footer h2{font-size:25px;color:#333333!important}.et_pb_text_0_tb_footer h3,.et_pb_text_0_tb_footer h4,.et_pb_text_1_tb_footer h3,.et_pb_text_1_tb_footer h4,.et_pb_text_2_tb_footer h3,.et_pb_text_2_tb_footer h4,.et_pb_text_3_tb_footer h3,.et_pb_text_3_tb_footer h4,.et_pb_text_4_tb_footer h3,.et_pb_text_4_tb_footer h4,.et_pb_text_5_tb_footer h3,.et_pb_text_5_tb_footer h4{color:#333333!important}@media only screen and (min-width:981px){.et_pb_image_0_tb_footer{width:100%}}@media only screen and (max-width:980px){.et_pb_section_0_tb_footer.et_pb_section{margin-right:0px;margin-left:0px}.et_pb_image_0_tb_footer .et_pb_image_wrap img{min-height:auto;max-height:none;width:auto}.et_pb_image_0_tb_footer{width:100%}.et_pb_image_1_tb_footer .et_pb_image_wrap img,.et_pb_image_2_tb_footer .et_pb_image_wrap img,.et_pb_image_3_tb_footer .et_pb_image_wrap img{width:auto}.et_pb_text_0_tb_footer h1,.et_pb_text_1_tb_footer h1,.et_pb_text_2_tb_footer h1,.et_pb_text_3_tb_footer h1,.et_pb_text_4_tb_footer h1,.et_pb_text_5_tb_footer h1{font-size:25px}}@media only screen and (max-width:767px){.et_pb_image_0_tb_footer .et_pb_image_wrap img{min-height:auto;max-height:none;width:auto}.et_pb_image_0_tb_footer,.et_pb_image_3_tb_footer{text-align:center;margin-left:auto;margin-right:auto}.et_pb_image_1_tb_footer .et_pb_image_wrap img,.et_pb_image_2_tb_footer .et_pb_image_wrap img,.et_pb_image_3_tb_footer .et_pb_image_wrap img{width:auto}.et_pb_text_0_tb_footer h1,.et_pb_text_1_tb_footer h1,.et_pb_text_2_tb_footer h1,.et_pb_text_3_tb_footer h1,.et_pb_text_4_tb_footer h1,.et_pb_text_5_tb_footer h1{font-size:22px}.et_pb_image_0_tb_footer.et_pb_module{margin-left:auto!important;margin-right:auto!important}}.et_pb_section_0.et_pb_section{padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;background-color:#eeeeee!important}.et_pb_row_0{background-color:#f6f6f6}.et_pb_row_0.et_pb_row{padding-top:0px!important;padding-right:0px!important;padding-bottom:0px!important;padding-left:0px!important;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px}.et_pb_sidebar_0.et_pb_widget_area h3:first-of-type,.et_pb_sidebar_0.et_pb_widget_area h4:first-of-type,.et_pb_sidebar_0.et_pb_widget_area h5:first-of-type,.et_pb_sidebar_0.et_pb_widget_area h6:first-of-type,.et_pb_sidebar_0.et_pb_widget_area h2:first-of-type,.et_pb_sidebar_0.et_pb_widget_area h1:first-of-type,.et_pb_sidebar_0.et_pb_widget_area .widget-title,.et_pb_sidebar_0.et_pb_widget_area .widgettitle{font-size:16px}.et_pb_sidebar_0.et_pb_widget_area{background-color:#FFFFFF}.et_pb_sidebar_0{padding-top:29px;padding-bottom:35px;padding-left:37px;margin-bottom:30px!important}.et_pb_text_0.et_pb_text a{color:#828282!important;transition:color 300ms ease 0ms}.et_pb_text_0.et_pb_text a:hover{color:#999999!important}.et_pb_text_0 a{font-weight:700}.et_pb_text_0 h1{font-size:30px;color:#6B6B6B!important}.et_pb_text_0 h2{font-size:27px;color:#333333!important}.et_pb_text_0 h3{color:#F28900!important}.et_pb_text_0 h4{color:#333333!important}.et_pb_text_0{margin-bottom:30px!important}.et_pb_column_0{padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px}.et_pb_column_1{padding-top:11px;padding-right:32px;padding-bottom:51px;padding-left:32px}@media only screen and (max-width:980px){.et_pb_row_0{background-image:initial;background-color:initial}.et_pb_text_0 h1{font-size:25px}.et_pb_text_0 h2{font-size:27px}.et_pb_column_0,.et_pb_column_1{padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px}}@media only screen and (max-width:767px){.et_pb_row_0{background-image:initial}.et_pb_row_0.et_pb_row{padding-top:0px!important;padding-right:0px!important;padding-bottom:0px!important;padding-left:0px!important;padding-top:0px!important;padding-right:0px!important;padding-bottom:0px!important;padding-left:0px!important}.et_pb_text_0 h1{font-size:22px}.et_pb_column_0,.et_pb_column_1{padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px}}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)
Emails: tlp@tennantland.co.uk, pdl@tennantland.co.uk, andrew@tennantland.co.uk, nigel@tennantland.co.uk, ann-marieclapham@tennantland.co.uk, snash@tennantland.co.uk
View text
Home About us Meet the team Official Information Services Business Audit Bookkeeping & accounting Business planning Business startup Company secretarial Corporate finance Rescue & recovery Corporate tax planning International services Mergers & acquisitions Payroll VAT Personal Personal tax planning Retirement strategies Self assessment Strategic partners Resources Calculators Tax and business calendar News Contact +44 (0)1423 526343 tlp@tennantland.co.uk Home About us Meet the team Official Information Services Business Audit Bookkeeping & accounting Business planning Business startup Company secretarial Corporate finance Rescue & recovery Corporate tax planning International services Mergers & acquisitions Payroll VAT Personal Personal tax planning Retirement strategies Self assessment Strategic partners Resources Calculators Tax and business calendar News Contact Select Page About usMeet the team Official Information Privacy Statement Home » About us » Meet the team Meet the team All partners deal with a full range of client needs including auditing, accountancy, management and computer services, personal and corporate taxation advice and planning, business planning and raising finance. PARTNERS Paul Land, BSc (Hons), ACA pdl@tennantland.co.uk Paul is TLP’s Managing Partner having trained and qualified as a Chartered Accountant with an independent firm in North Leeds, obtaining invaluable experience in the owner managed businesses sector before joining forces with his former colleague and friend the late Adam Tennant. Paul has been the driving force behind the expansion of TLP over the last ten years, acting for an increasingly varied national client base. As well as being responsible for advising TLPs corporate clients on strategic matters and assisting them in growing their businesses, Paul engages in special project work with an emphasis on business acquisitions and disposals, corporate re-structuring and tax solutions. This expertise in corporate finance combined with corporate banking, legal and professional strategic partnerships are the essence of TLP and are the foundation on which Paul has built the firm. Andrew Wild, BA (Hons), FCA andrew@tennantland.co.uk In 2003, Andrew joined TLP as a partner. Andrew provides a partner led service to a wide portfolio of clients ranging from small OMBs to larger corporate companies, as well as personal tax services to a number of high net worth individuals. Andrew qualified as a chartered accountant in 1996 having trained at a medium sized firm based in Manchester, specialising in audit, accounting and taxation services to small and medium sized OMBs. He then joined the Leeds office of a national practice where he spent seven years within audit and associated departments, gaining experience in company audits, corporate financial due diligence, corporate recovery finance reviews and business planning. Andrew promotes open dialogue and clients having direct contact at all levels within TLP to build a close business relationship that enables him and his staff to fully understanding and keep up to date with all aspects of a clients business and therefore ensure the firm provides the best service possible. A former swimmer and runner competing at National level in both sports, not to mention a former double National Biathlon champion, Andrew’s leisure pursuits now revolve around two wheels and can often be seen cycling around the hills of Yorkshire and furth afield. Nigel Ash, BA (Hons), FCCA nigel@tennantland.co.uk Nigel was promoted to partner in April 2012 having joined TLP in November 2005 as a manager in the Audit and Accounts Department before becoming Associate Partner in March 2009. Nigel qualified in 1999 and progressed to manager at a firm in Skipton, specialising in the Audit, Accounts and Tax of small and medium OMBs, as well as gaining experience in various forms of Corporate Finance. As well as managing a portfolio of clients, Nigel has become increasingly involoved in ad-hoc work such as financial due diligence and business acquisitions and disposals. Following promotion to Partner it is his intention to take on a more prominent role with existing and new TLP clients and help drive the business forward. Nigel enjoys spending his spare time with his young family and is an avid cricket fan. Senior Staff Ann-Marie Clapham, BA (Hons), FCCA, CTA – Corporate Tax Associate ann-marieclapham@tennantland.co.uk Ann-Marie qualified as a Certified Accountant in 1999 with a Leeds based sole practitioner firm, qualifying as a Chartered Tax Advisor in 2000. Before joining TLP in June 2006 Ann-Marie specialised in Corporate Tax, working for national firm of Chartered Accountants, dealing with large plcs and owner managed businesses of varying sizes and sectors. Ann-Marie was appointed Associate Partner in March 2009 and is responsible for overseeing the mainline Tax Department, ensuring delivery of client services in a timely manner and to a high professional standard. In addition to tax compliance and tax planning for both Corporate and Personal clients, Ann-Marie carries out supervision and training support for ATT trainees within the department. In her spare time Ann-Marie can be found walking her beloved four legged friend, is a keen photographer, and despite the weather loves to go camping. Stuart Nash (Sage certified trainer) – Payroll administrator snash@tennantland.co.uk After following a circuitous career path Stuart joined TLP from a major Leeds accountancy firm in September 2005. Stuart manages the payroll department and is responsible for the preparation of payrolls for around 250 companies, which account for approximately 1,000 employees. Outside of work his grandchildren take up most of his time, and what little time is left he likes to spend walking and taking photographs. TERMS AND CONDITIONS PRIVACY STATEMENT COOKIE POLICY ACCESSIBILITY STATEMENT COPYRIGHT SEARCH {"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")})}); 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 = 82; 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[ */ "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.tennantland.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.tennantland.co.uk\/wp-admin\/admin-ajax.php","images_uri":"https:\/\/www.tennantland.co.uk\/wp-content\/themes\/Divi\/images","builder_images_uri":"https:\/\/www.tennantland.co.uk\/wp-content\/themes\/Divi\/includes\/builder\/images","et_frontend_nonce":"246ed715a0","subscription_failed":"Please, check the fields below to make sure you entered the correct information.","et_ab_log_nonce":"c01da3fd2e","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":"25938","unique_test_id":"","ab_bounce_rate":"5","is_cache_plugin_active":"yes","is_shortcode_tracking":"","tinymce_uri":"https:\/\/www.tennantland.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 = []; /* ]]> */ .et_pb_section_0_tb_footer.et_pb_section{padding-top:0px;padding-bottom:0px;margin-right:0px;margin-left:0px;background-color:#dcdcdc!important}.et_pb_row_0_tb_footer{background-color:#dcdcdc}.et_pb_image_0_tb_footer .et_pb_image_wrap img{min-height:auto;max-height:none}.et_pb_image_0_tb_footer{padding-right:0px;padding-left:0px;max-width:100%;text-align:left;margin-left:0}.et_pb_image_1_tb_footer{padding-right:0px;padding-left:0px;text-align:center}.et_pb_image_2_tb_footer{text-align:center}.et_pb_image_3_tb_footer{text-align:left;margin-left:0}.et_pb_text_0_tb_footer.et_pb_text a,.et_pb_text_1_tb_footer.et_pb_text a,.et_pb_text_2_tb_footer.et_pb_text a,.et_pb_text_3_tb_footer.et_pb_text a,.et_pb_text_4_tb_footer.et_pb_text a,.et_pb_text_5_tb_footer.et_pb_text a{color:#000000!important;transition:color 300ms ease 0ms}.et_pb_text_0_tb_footer.et_pb_text a:hover,.et_pb_text_1_tb_footer.et_pb_text a:hover,.et_pb_text_2_tb_footer.et_pb_text a:hover,.et_pb_text_3_tb_footer.et_pb_text a:hover,.et_pb_text_4_tb_footer.et_pb_text a:hover,.et_pb_text_5_tb_footer.et_pb_text a:hover{color:#898989!important}.et_pb_text_0_tb_footer h1,.et_pb_text_1_tb_footer h1,.et_pb_text_2_tb_footer h1,.et_pb_text_3_tb_footer h1,.et_pb_text_4_tb_footer h1,.et_pb_text_5_tb_footer h1{font-size:33px;color:#333333!important}.et_pb_text_0_tb_footer h2,.et_pb_text_1_tb_footer h2,.et_pb_text_2_tb_footer h2,.et_pb_text_3_tb_footer h2,.et_pb_text_4_tb_footer h2,.et_pb_text_5_tb_footer h2{font-size:25px;color:#333333!important}.et_pb_text_0_tb_footer h3,.et_pb_text_0_tb_footer h4,.et_pb_text_1_tb_footer h3,.et_pb_text_1_tb_footer h4,.et_pb_text_2_tb_footer h3,.et_pb_text_2_tb_footer h4,.et_pb_text_3_tb_footer h3,.et_pb_text_3_tb_footer h4,.et_pb_text_4_tb_footer h3,.et_pb_text_4_tb_footer h4,.et_pb_text_5_tb_footer h3,.et_pb_text_5_tb_footer h4{color:#333333!important}@media only screen and (min-width:981px){.et_pb_image_0_tb_footer{width:100%}}@media only screen and (max-width:980px){.et_pb_section_0_tb_footer.et_pb_section{margin-right:0px;margin-left:0px}.et_pb_image_0_tb_footer .et_pb_image_wrap img{min-height:auto;max-height:none;width:auto}.et_pb_image_0_tb_footer{width:100%}.et_pb_image_1_tb_footer .et_pb_image_wrap img,.et_pb_image_2_tb_footer .et_pb_image_wrap img,.et_pb_image_3_tb_footer .et_pb_image_wrap img{width:auto}.et_pb_text_0_tb_footer h1,.et_pb_text_1_tb_footer h1,.et_pb_text_2_tb_footer h1,.et_pb_text_3_tb_footer h1,.et_pb_text_4_tb_footer h1,.et_pb_text_5_tb_footer h1{font-size:25px}}@media only screen and (max-width:767px){.et_pb_image_0_tb_footer .et_pb_image_wrap img{min-height:auto;max-height:none;width:auto}.et_pb_image_0_tb_footer,.et_pb_image_3_tb_footer{text-align:center;margin-left:auto;margin-right:auto}.et_pb_image_1_tb_footer .et_pb_image_wrap img,.et_pb_image_2_tb_footer .et_pb_image_wrap img,.et_pb_image_3_tb_footer .et_pb_image_wrap img{width:auto}.et_pb_text_0_tb_footer h1,.et_pb_text_1_tb_footer h1,.et_pb_text_2_tb_footer h1,.et_pb_text_3_tb_footer h1,.et_pb_text_4_tb_footer h1,.et_pb_text_5_tb_footer h1{font-size:22px}.et_pb_image_0_tb_footer.et_pb_module{margin-left:auto!important;margin-right:auto!important}}.et_pb_section_0.et_pb_section{padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;background-color:#eeeeee!important}.et_pb_row_0{background-color:#f6f6f6}.et_pb_row_0.et_pb_row{padding-top:0px!important;padding-right:0px!important;padding-bottom:0px!important;padding-left:0px!important;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px}.et_pb_sidebar_0.et_pb_widget_area h3:first-of-type,.et_pb_sidebar_0.et_pb_widget_area h4:first-of-type,.et_pb_sidebar_0.et_pb_widget_area h5:first-of-type,.et_pb_sidebar_0.et_pb_widget_area h6:first-of-type,.et_pb_sidebar_0.et_pb_widget_area h2:first-of-type,.et_pb_sidebar_0.et_pb_widget_area h1:first-of-type,.et_pb_sidebar_0.et_pb_widget_area .widget-title,.et_pb_sidebar_0.et_pb_widget_area .widgettitle{font-size:16px}.et_pb_sidebar_0.et_pb_widget_area{background-color:#FFFFFF}.et_pb_sidebar_0{padding-top:29px;padding-bottom:35px;padding-left:37px;margin-bottom:30px!important}.et_pb_text_0.et_pb_text a{color:#828282!important;transition:color 300ms ease 0ms}.et_pb_text_0.et_pb_text a:hover{color:#999999!important}.et_pb_text_0 a{font-weight:700}.et_pb_text_0 h1{font-size:30px;color:#6B6B6B!important}.et_pb_text_0 h2{font-size:27px;color:#333333!important}.et_pb_text_0 h3{color:#F28900!important}.et_pb_text_0 h4{color:#333333!important}.et_pb_text_0{padding-bottom:30px!important}.et_pb_column_0{padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px}.et_pb_column_1{padding-top:11px;padding-right:32px;padding-bottom:51px;padding-left:32px}@media only screen and (max-width:980px){.et_pb_row_0{background-image:initial;background-color:initial}.et_pb_text_0 h1{font-size:25px}.et_pb_text_0 h2{font-size:27px}.et_pb_column_0,.et_pb_column_1{padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px}}@media only screen and (max-width:767px){.et_pb_row_0{background-image:initial;background-color:RGBA(255,255,255,0)}.et_pb_row_0.et_pb_row{padding-top:0px!important;padding-right:0px!important;padding-bottom:0px!important;padding-left:0px!important;padding-top:0px!important;padding-right:0px!important;padding-bottom:0px!important;padding-left:0px!important}.et_pb_text_0 h1{font-size:22px}.et_pb_column_0,.et_pb_column_1{padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px}}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)
Emails: tlp@tennantland.co.uk
View text
Home About us Meet the team Official Information Services Business Audit Bookkeeping & accounting Business planning Business startup Company secretarial Corporate finance Rescue & recovery Corporate tax planning International services Mergers & acquisitions Payroll VAT Personal Personal tax planning Retirement strategies Self assessment Strategic partners Resources Calculators Tax and business calendar News Contact +44 (0)1423 526343 tlp@tennantland.co.uk Home About us Meet the team Official Information Services Business Audit Bookkeeping & accounting Business planning Business startup Company secretarial Corporate finance Rescue & recovery Corporate tax planning International services Mergers & acquisitions Payroll VAT Personal Personal tax planning Retirement strategies Self assessment Strategic partners Resources Calculators Tax and business calendar News Contact Select Page About usMeet the team Official Information Privacy Statement Home » About us About us Leading our chosen markets TLP is regarded as one of the most progressive and entrepreneurial professional services firms in the North Yorkshire area offering a comprehensive suite of accounting, taxation and advisory services. We offer intelligent solutions to a national client base that ranges from individuals and owner managed businesses, to large corporate entities, charities and overseas operations. With leadership in the provision of risk management, tax, recovery, financial management and mainline audit and accounting services we help individuals achieve personal ambitions which create, protect and enhance personal wealth. We aim to give the assurance needed to manage your organisation effectively together with a proactive support demanded to help you stay ahead of the competition. TERMS AND CONDITIONS PRIVACY STATEMENT COOKIE POLICY ACCESSIBILITY STATEMENT COPYRIGHT SEARCH {"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")})}); 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 = 82; 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[ */ "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.tennantland.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.tennantland.co.uk\/wp-admin\/admin-ajax.php","images_uri":"https:\/\/www.tennantland.co.uk\/wp-content\/themes\/Divi\/images","builder_images_uri":"https:\/\/www.tennantland.co.uk\/wp-content\/themes\/Divi\/includes\/builder\/images","et_frontend_nonce":"246ed715a0","subscription_failed":"Please, check the fields below to make sure you entered the correct information.","et_ab_log_nonce":"c01da3fd2e","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.tennantland.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 = []; /* ]]> */ .et_pb_section_0_tb_footer.et_pb_section{padding-top:0px;padding-bottom:0px;margin-right:0px;margin-left:0px;background-color:#dcdcdc!important}.et_pb_row_0_tb_footer{background-color:#dcdcdc}.et_pb_image_0_tb_footer .et_pb_image_wrap img{min-height:auto;max-height:none}.et_pb_image_0_tb_footer{padding-right:0px;padding-left:0px;max-width:100%;text-align:left;margin-left:0}.et_pb_image_1_tb_footer{padding-right:0px;padding-left:0px;text-align:center}.et_pb_image_2_tb_footer{text-align:center}.et_pb_image_3_tb_footer{text-align:left;margin-left:0}.et_pb_text_0_tb_footer.et_pb_text a,.et_pb_text_1_tb_footer.et_pb_text a,.et_pb_text_2_tb_footer.et_pb_text a,.et_pb_text_3_tb_footer.et_pb_text a,.et_pb_text_4_tb_footer.et_pb_text a,.et_pb_text_5_tb_footer.et_pb_text a{color:#000000!important;transition:color 300ms ease 0ms}.et_pb_text_0_tb_footer.et_pb_text a:hover,.et_pb_text_1_tb_footer.et_pb_text a:hover,.et_pb_text_2_tb_footer.et_pb_text a:hover,.et_pb_text_3_tb_footer.et_pb_text a:hover,.et_pb_text_4_tb_footer.et_pb_text a:hover,.et_pb_text_5_tb_footer.et_pb_text a:hover{color:#898989!important}.et_pb_text_0_tb_footer h1,.et_pb_text_1_tb_footer h1,.et_pb_text_2_tb_footer h1,.et_pb_text_3_tb_footer h1,.et_pb_text_4_tb_footer h1,.et_pb_text_5_tb_footer h1{font-size:33px;color:#333333!important}.et_pb_text_0_tb_footer h2,.et_pb_text_1_tb_footer h2,.et_pb_text_2_tb_footer h2,.et_pb_text_3_tb_footer h2,.et_pb_text_4_tb_footer h2,.et_pb_text_5_tb_footer h2{font-size:25px;color:#333333!important}.et_pb_text_0_tb_footer h3,.et_pb_text_0_tb_footer h4,.et_pb_text_1_tb_footer h3,.et_pb_text_1_tb_footer h4,.et_pb_text_2_tb_footer h3,.et_pb_text_2_tb_footer h4,.et_pb_text_3_tb_footer h3,.et_pb_text_3_tb_footer h4,.et_pb_text_4_tb_footer h3,.et_pb_text_4_tb_footer h4,.et_pb_text_5_tb_footer h3,.et_pb_text_5_tb_footer h4{color:#333333!important}@media only screen and (min-width:981px){.et_pb_image_0_tb_footer{width:100%}}@media only screen and (max-width:980px){.et_pb_section_0_tb_footer.et_pb_section{margin-right:0px;margin-left:0px}.et_pb_image_0_tb_footer .et_pb_image_wrap img{min-height:auto;max-height:none;width:auto}.et_pb_image_0_tb_footer{width:100%}.et_pb_image_1_tb_footer .et_pb_image_wrap img,.et_pb_image_2_tb_footer .et_pb_image_wrap img,.et_pb_image_3_tb_footer .et_pb_image_wrap img{width:auto}.et_pb_text_0_tb_footer h1,.et_pb_text_1_tb_footer h1,.et_pb_text_2_tb_footer h1,.et_pb_text_3_tb_footer h1,.et_pb_text_4_tb_footer h1,.et_pb_text_5_tb_footer h1{font-size:25px}}@media only screen and (max-width:767px){.et_pb_image_0_tb_footer .et_pb_image_wrap img{min-height:auto;max-height:none;width:auto}.et_pb_image_0_tb_footer,.et_pb_image_3_tb_footer{text-align:center;margin-left:auto;margin-right:auto}.et_pb_image_1_tb_footer .et_pb_image_wrap img,.et_pb_image_2_tb_footer .et_pb_image_wrap img,.et_pb_image_3_tb_footer .et_pb_image_wrap img{width:auto}.et_pb_text_0_tb_footer h1,.et_pb_text_1_tb_footer h1,.et_pb_text_2_tb_footer h1,.et_pb_text_3_tb_footer h1,.et_pb_text_4_tb_footer h1,.et_pb_text_5_tb_footer h1{font-size:22px}.et_pb_image_0_tb_footer.et_pb_module{margin-left:auto!important;margin-right:auto!important}}.et_pb_section_0.et_pb_section{padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;background-color:#eeeeee!important}.et_pb_row_0{background-color:#f6f6f6}.et_pb_row_0.et_pb_row{padding-top:0px!important;padding-right:0px!important;padding-bottom:0px!important;padding-left:0px!important;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px}.et_pb_sidebar_0.et_pb_widget_area h3:first-of-type,.et_pb_sidebar_0.et_pb_widget_area h4:first-of-type,.et_pb_sidebar_0.et_pb_widget_area h5:first-of-type,.et_pb_sidebar_0.et_pb_widget_area h6:first-of-type,.et_pb_sidebar_0.et_pb_widget_area h2:first-of-type,.et_pb_sidebar_0.et_pb_widget_area h1:first-of-type,.et_pb_sidebar_0.et_pb_widget_area .widget-title,.et_pb_sidebar_0.et_pb_widget_area .widgettitle{font-size:16px}.et_pb_sidebar_0.et_pb_widget_area{background-color:#FFFFFF}.et_pb_sidebar_0{padding-top:29px;padding-bottom:35px;padding-left:37px;margin-bottom:30px!important}.et_pb_text_0.et_pb_text a{color:#828282!important;transition:color 300ms ease 0ms}.et_pb_text_0.et_pb_text a:hover{color:#999999!important}.et_pb_text_0 a{font-weight:700}.et_pb_text_0 h1{font-size:30px;color:#6B6B6B!important}.et_pb_text_0 h2{font-size:27px;color:#333333!important}.et_pb_text_0 h3{color:#F28900!important}.et_pb_text_0 h4{color:#333333!important}.et_pb_text_0{padding-bottom:30px!important}.et_pb_column_0{padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px}.et_pb_column_1{padding-top:11px;padding-right:32px;padding-bottom:51px;padding-left:32px}@media only screen and (max-width:980px){.et_pb_row_0{background-image:initial;background-color:initial}.et_pb_text_0 h1{font-size:25px}.et_pb_text_0 h2{font-size:27px}.et_pb_column_0,.et_pb_column_1{padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px}}@media only screen and (max-width:767px){.et_pb_row_0{background-image:initial}.et_pb_row_0.et_pb_row{padding-top:0px!important;padding-right:0px!important;padding-bottom:0px!important;padding-left:0px!important;padding-top:0px!important;padding-right:0px!important;padding-bottom:0px!important;padding-left:0px!important}.et_pb_text_0 h1{font-size:22px}.et_pb_column_0,.et_pb_column_1{padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px}}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)
Emails: tlp@tennantland.co.uk
View text
Home About us Meet the team Official Information Services Business Audit Bookkeeping & accounting Business planning Business startup Company secretarial Corporate finance Rescue & recovery Corporate tax planning International services Mergers & acquisitions Payroll VAT Personal Personal tax planning Retirement strategies Self assessment Strategic partners Resources Calculators Tax and business calendar News Contact 3 Greengate, Cardale Park, Harrogate, HG3 1GY Tel: 01423 526 343 Email: tlp@tennantland.co.uk New Website Launching Soon OFFICIAL INFORMATION HOME PAGE {"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")})}); 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 = 82; 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[ */ "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.tennantland.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.tennantland.co.uk\/wp-admin\/admin-ajax.php","images_uri":"https:\/\/www.tennantland.co.uk\/wp-content\/themes\/Divi\/images","builder_images_uri":"https:\/\/www.tennantland.co.uk\/wp-content\/themes\/Divi\/includes\/builder\/images","et_frontend_nonce":"246ed715a0","subscription_failed":"Please, check the fields below to make sure you entered the correct information.","et_ab_log_nonce":"c01da3fd2e","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":"53919","unique_test_id":"","ab_bounce_rate":"5","is_cache_plugin_active":"yes","is_shortcode_tracking":"","tinymce_uri":"https:\/\/www.tennantland.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 = []; /* ]]> */ .et_pb_section_0_tb_header.et_pb_section{padding-top:0px;padding-bottom:0px;background-color:#eeeeee!important}.et_pb_text_0_tb_header.et_pb_text a{color:#828282!important;transition:color 300ms ease 0ms}.et_pb_text_0_tb_header.et_pb_text a:hover{color:#999999!important}.et_pb_text_0_tb_header a{font-weight:700}.et_pb_text_0_tb_header h1{font-size:30px;color:#333333!important}.et_pb_text_0_tb_header h2{font-size:27px;color:#333333!important}.et_pb_text_0_tb_header h3,.et_pb_text_0_tb_header h4{color:#333333!important}.et_pb_section_0_tb_footer.et_pb_section{padding-top:0px;padding-bottom:31px;background-color:#dcdcdc!important}.et_pb_row_0_tb_footer.et_pb_row{padding-top:56px!important;padding-top:56px}.et_pb_text_0_tb_footer.et_pb_text a,.et_pb_text_1_tb_footer.et_pb_text a{color:#000000!important;transition:color 300ms ease 0ms}.et_pb_text_0_tb_footer.et_pb_text a:hover,.et_pb_text_1_tb_footer.et_pb_text a:hover{color:#898989!important}.et_pb_text_0_tb_footer h1,.et_pb_text_1_tb_footer h1{font-size:33px;color:#333333!important}.et_pb_text_0_tb_footer h2,.et_pb_text_1_tb_footer h2{font-size:25px;color:#333333!important}.et_pb_text_0_tb_footer h3,.et_pb_text_0_tb_footer h4,.et_pb_text_1_tb_footer h3,.et_pb_text_1_tb_footer h4{color:#333333!important}@media only screen and (max-width:980px){.et_pb_text_0_tb_footer h1,.et_pb_text_0_tb_footer h2,.et_pb_text_1_tb_footer h1,.et_pb_text_1_tb_footer h2{font-size:25px}}@media only screen and (max-width:767px){.et_pb_text_0_tb_footer h1,.et_pb_text_1_tb_footer h1{font-size:22px}.et_pb_text_0_tb_footer h2,.et_pb_text_1_tb_footer h2{font-size:25px}}.et_pb_section_0.et_pb_section{padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;background-color:#eeeeee!important}.et_pb_row_0{background-color:#f6f6f6}.et_pb_row_0.et_pb_row{padding-top:0px!important;padding-right:0px!important;padding-bottom:0px!important;padding-left:0px!important;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px}.et_pb_image_0{padding-top:50px;text-align:center}.et_pb_text_0.et_pb_text a{color:#828282!important;transition:color 300ms ease 0ms}.et_pb_text_0.et_pb_text a:hover{color:#999999!important}.et_pb_text_0 a{font-weight:700}.et_pb_text_0 h1{font-size:30px;color:#6B6B6B!important}.et_pb_text_0 h2{font-size:27px;color:#333333!important}.et_pb_text_0 h3{color:#F28900!important}.et_pb_text_0 h4{color:#333333!important}.et_pb_text_0{padding-top:50px!important;margin-bottom:30px!important}.et_pb_column_0{padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px}@media only screen and (max-width:980px){.et_pb_row_0{background-image:initial;background-color:initial}.et_pb_image_0 .et_pb_image_wrap img{width:auto}.et_pb_text_0 h1{font-size:25px}.et_pb_text_0 h2{font-size:27px}.et_pb_column_0{padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px}}@media only screen and (max-width:767px){.et_pb_row_0{background-image:initial}.et_pb_row_0.et_pb_row{padding-top:0px!important;padding-right:0px!important;padding-bottom:0px!important;padding-left:0px!important;padding-top:0px!important;padding-right:0px!important;padding-bottom:0px!important;padding-left:0px!important}.et_pb_image_0 .et_pb_image_wrap img{width:auto}.et_pb_text_0 h1{font-size:22px}.et_pb_column_0{padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px}}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)