(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://priorityroofs.com/wp-content/uploads/breeze/google/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-KBPDWH29');
document.addEventListener( 'DOMContentLoaded', function() {
var citySelect = document.getElementById('form-field-field_99a4074');
var hiddenField = document.getElementById('form-field-toemail');
citySelect.addEventListener('change', function() {
var selectedOption = citySelect.value;
switch (selectedOption) {
case 'Austin, TX':
hiddenField.value = 'austin@priorityroofs.com,leah@priorityroofs.com,mcqueen@priorityroofs.com';
break;
// Add cases for other options here
case 'Dallas, TX':
hiddenField.value = 'office@priorityroofs.com,elias@priorityroofs.com,jack@priorityroofs.com,timothy@priorityroofs.com,kgarcia@priorityroofs.com,a.beishline@priorityroofs.com';
break;
// Add cases for other options here
case 'Fort Worth, TX':
hiddenField.value = 'ftworth@priorityroofs.com,mark@priorityroofs.com,jack@priorityroofs.com,timothy@priorityroofs.com';
break;
// Add cases for other options here
case 'San Diego, CA':
hiddenField.value = 'sandiego@priorityroofs.com,mwcreel@priorityroofs.com,katelyn@priorityroofs.com';
break;
// Add cases for other options here
case 'Denver, CO':
hiddenField.value = 'colorado@priorityroofs.com,tony@priorityroofs.com,leigha@priorityroofs.com';
break;
// Add cases for other options here
case 'Houston, TX':
hiddenField.value = 'houston@priorityroofs.com,jasonabney@priorityroofs.com,susanna@priorityroofs.com';
break;
// Add cases for other options here
case 'San Antonio, TX':
hiddenField.value = 'sanantonio@priorityroofs.com,zekec@priorityroofs.com,lisalyons@priorityroofs.com';
break;
// Add cases for other options here
case 'Tyler, TX':
hiddenField.value = 'tyler@priorityroofs.com,johnf@priorityroofs.com,cody@priorityroofs.com,randy@priorityroofs.com';
break;
// Add cases for other options here
case 'Oklahoma City, MO':
hiddenField.value = 'okc@priorityroofs.com,christian@priorityroofs.com,annie@priorityroofs.com';
break;
// Add cases for other options here
case 'Lakeland, FL':
hiddenField.value = 'lakeland@priorityroofs.com,shane@priorityroofs.com,terri@priorityroofs.com';
break;
// Add cases for other options here
case 'Orlando, FL':
hiddenField.value = 'orlando@priorityroofs.com,enrique@priorityroofs.com,karissa@priorityroofs.com';
break;
// Add cases for other options here
case 'Albuquerque, NM':
hiddenField.value = 'newmexico@priorityroofs.com,dave@priorityroofs.com,fiadh@priorityroofs.com';
break;
// Add cases for other options here
case 'Grand Rapids, MI':
hiddenField.value = 'grandrapids@priorityroofs.com,sam@priorityroofs.com';
break;
// Add cases for other options here
case 'Los Angeles, CA':
hiddenField.value = 'contact@priorityroofs.com,teresa@priorityroofs.com';
break;
// Add cases for other options here
default:
break;
}
});
});
document.addEventListener( 'DOMContentLoaded', function() {
var citySelect = document.getElementById('form-field-field_bb1d42f');
var hiddenField = document.getElementById('form-field-toemail2');
citySelect.addEventListener('change', function() {
var selectedOption = citySelect.value;
switch (selectedOption) {
case 'Austin, TX':
hiddenField.value = 'austin@priorityroofs.com,leah@priorityroofs.com,mcqueen@priorityroofs.com';
break;
// Add cases for other options here
case 'Dallas, TX':
hiddenField.value = 'office@priorityroofs.com,elias@priorityroofs.com,jack@priorityroofs.com,timothy@priorityroofs.com,kgarcia@priorityroofs.com,a.beishline@priorityroofs.com';
break;
// Add cases for other options here
case 'Fort Worth, TX':
hiddenField.value = 'ftworth@priorityroofs.com,mark@priorityroofs.com,jack@priorityroofs.com,timothy@priorityroofs.com';
break;
// Add cases for other options here
case 'San Diego, CA':
hiddenField.value = 'sandiego@priorityroofs.com,mwcreel@priorityroofs.com,katelyn@priorityroofs.com';
break;
// Add cases for other options here
case 'Denver, CO':
hiddenField.value = 'colorado@priorityroofs.com,tony@priorityroofs.com,leigha@priorityroofs.com';
break;
// Add cases for other options here
case 'Houston, TX':
hiddenField.value = 'houston@priorityroofs.com,jasonabney@priorityroofs.com,susanna@priorityroofs.com';
break;
// Add cases for other options here
case 'San Antonio, TX':
hiddenField.value = 'sanantonio@priorityroofs.com,zekec@priorityroofs.com,lisalyons@priorityroofs.com';
break;
// Add cases for other options here
case 'Tyler, TX':
hiddenField.value = 'tyler@priorityroofs.com,johnf@priorityroofs.com,cody@priorityroofs.com,randy@priorityroofs.com';
break;
// Add cases for other options here
case 'Oklahoma City, MO':
hiddenField.value = 'okc@priorityroofs.com,christian@priorityroofs.com,annie@priorityroofs.com';
break;
// Add cases for other options here
case 'Lakeland, FL':
hiddenField.value = 'lakeland@priorityroofs.com,shane@priorityroofs.com,terri@priorityroofs.com';
break;
// Add cases for other options here
case 'Orlando, FL':
hiddenField.value = 'orlando@priorityroofs.com,enrique@priorityroofs.com,karissa@priorityroofs.com';
break;
// Add cases for other options here
case 'Albuquerque, NM':
hiddenField.value = 'newmexico@priorityroofs.com,dave@priorityroofs.com,fiadh@priorityroofs.com';
break;
// Add cases for other options here
case 'Grand Rapids, MI':
hiddenField.value = 'grandrapids@priorityroofs.com,sam@priorityroofs.com';
break;
// Add cases for other options here
case 'Los Angeles, CA':
hiddenField.value = 'contact@priorityroofs.com,teresa@priorityroofs.com';
break;
// Add cases for other options here
default:
break;
}
});
});
var elementorFrontendConfig = {"environmentMode":{"edit":false,"wpPreview":false,"isScriptDebug":false},"i18n":{"shareOnFacebook":"Share on Facebook","shareOnTwitter":"Share on Twitter","pinIt":"Pin it","download":"Download","downloadImage":"Download image","fullscreen":"Fullscreen","zoom":"Zoom","share":"Share","playVideo":"Play Video","previous":"Previous","next":"Next","close":"Close","a11yCarouselWrapperAriaLabel":"Carousel | Horizontal scrolling: Arrow Left & Right","a11yCarouselPrevSlideMessage":"Previous slide","a11yCarouselNextSlideMessage":"Next slide","a11yCarouselFirstSlideMessage":"This is the first slide","a11yCarouselLastSlideMessage":"This is the last slide","a11yCarouselPaginationBulletMessage":"Go to slide"},"is_rtl":false,"breakpoints":{"xs":0,"sm":480,"md":768,"lg":1025,"xl":1440,"xxl":1600},"responsive":{"breakpoints":{"mobile":{"label":"Mobile Portrait","value":767,"default_value":767,"direction":"max","is_enabled":true},"mobile_extra":{"label":"Mobile Landscape","value":880,"default_value":880,"direction":"max","is_enabled":false},"tablet":{"label":"Tablet Portrait","value":1024,"default_value":1024,"direction":"max","is_enabled":true},"tablet_extra":{"label":"Tablet Landscape","value":1200,"default_value":1200,"direction":"max","is_enabled":false},"laptop":{"label":"Laptop","value":1366,"default_value":1366,"direction":"max","is_enabled":false},"widescreen":{"label":"Widescreen","value":2400,"default_value":2400,"direction":"min","is_enabled":false}}},"version":"3.21.1","is_static":false,"experimentalFeatures":{"e_optimized_assets_loading":true,"e_optimized_css_loading":true,"e_font_icon_svg":true,"additional_custom_breakpoints":true,"e_swiper_latest":true,"container_grid":true,"theme_builder_v2":true,"hello-theme-header-footer":true,"home_screen":true,"landing-pages":true,"form-submissions":true},"urls":{"assets":"https:\/\/priorityroofs.com\/wp-content\/plugins\/elementor\/assets\/"},"swiperClass":"swiper","settings":{"page":[],"editorPreferences":[]},"kit":{"active_breakpoints":["viewport_mobile","viewport_tablet"],"global_image_lightbox":"yes","lightbox_enable_counter":"yes","lightbox_enable_fullscreen":"yes","lightbox_enable_zoom":"yes","lightbox_enable_share":"yes","lightbox_title_src":"title","lightbox_description_src":"description","hello_header_logo_type":"logo","hello_header_menu_layout":"horizontal","hello_footer_logo_type":"logo"},"post":{"id":30,"title":"Blog%20%7C%20Priority%20Roofing","excerpt":"","featuredImage":false}};
var ElementorProFrontendConfig = {"ajaxurl":"https:\/\/priorityroofs.com\/wp-admin\/admin-ajax.php","nonce":"af9132701e","urls":{"assets":"https:\/\/priorityroofs.com\/wp-content\/plugins\/elementor-pro\/assets\/","rest":"https:\/\/priorityroofs.com\/wp-json\/"},"shareButtonsNetworks":{"facebook":{"title":"Facebook","has_counter":true},"twitter":{"title":"Twitter"},"linkedin":{"title":"LinkedIn","has_counter":true},"pinterest":{"title":"Pinterest","has_counter":true},"reddit":{"title":"Reddit","has_counter":true},"vk":{"title":"VK","has_counter":true},"odnoklassniki":{"title":"OK","has_counter":true},"tumblr":{"title":"Tumblr"},"digg":{"title":"Digg"},"skype":{"title":"Skype"},"stumbleupon":{"title":"StumbleUpon","has_counter":true},"mix":{"title":"Mix"},"telegram":{"title":"Telegram"},"pocket":{"title":"Pocket","has_counter":true},"xing":{"title":"XING","has_counter":true},"whatsapp":{"title":"WhatsApp"},"email":{"title":"Email"},"print":{"title":"Print"},"x-twitter":{"title":"X"},"threads":{"title":"Threads"}},"facebook_sdk":{"lang":"en_US","app_id":""},"lottie":{"defaultAnimationUrl":"https:\/\/priorityroofs.com\/wp-content\/plugins\/elementor-pro\/modules\/lottie\/assets\/animations\/default.json"}};
var back_to_top_main_div = document.createElement("a");
var back_to_top_sub_div = document.createElement("div");
var back_to_top_content_div = document.createElement("div");
var back_to_top_content_span = document.createElement("span");
back_to_top_main_div.appendChild(back_to_top_sub_div);
back_to_top_sub_div.appendChild(back_to_top_content_div);
back_to_top_content_div.appendChild(back_to_top_content_span);
back_to_top_main_div.classList.add("back-to-top-main-div");
back_to_top_sub_div.classList.add("back-to-top-sub-div");
back_to_top_content_div.classList.add("back-to-top-content-div");
back_to_top_content_span.classList.add("back-to-top-content-span");
document.body.appendChild(back_to_top_main_div);
// SHOW HIDE BACK TO TOP SCRIPT START HERE
window.addEventListener("scroll",function(){
backToTopShowFunction();
});
function backToTopShowFunction() {
if (window.pageYOffset > 50) {
document.body.classList.add("sticky_back_to_top");
} else {
document.body.classList.remove("sticky_back_to_top");
}
}
// SHOW HIDE BACK TO TOP SCRIPT END HERE
function jQueryBackToTop(){
jQuery("html, body").animate({ scrollTop: 0 }, 600);
}
jQuery('a.back-to-top-main-div').click(function(){
jQueryBackToTop();
return false;
});
//Start of Tawk.to Script - IN-204961
var Tawk_API=Tawk_API||{}, Tawk_LoadStart=new Date();
(function()
{ var s1=document.createElement("script"),s0=document.getElementsByTagName("script")[0]; s1.async=true; s1.src='https://embed.tawk.to/63f3990c4247f20fefe1a143/1gpnormk8'; s1.charset='UTF-8'; s1.setAttribute('crossorigin','*'); s0.parentNode.insertBefore(s1,s0); }
)();
//End of Tawk.to Script
jQuery(document).ready(function( $ ){
jQuery("#chatBTLink a").attr("href","javascript:void(Tawk_API.toggle())");
jQuery(".on-top").attr("onclick","window.open('https://shop.surelocktechnology.com/home')");
//jQuery("#chatBTLink a").attr("href","javascript:void(0);");
});
jQuery(document).ready(function( $ ) {
jQuery('.go_to_location').click(function() {
window.location.href=jQuery(this).find('a').attr('href');
return true;
});
});
jQuery(window).ready(function(){
jQuery('[type="tel"]').keyup(function() {
var c = jQuery(this).val();
var strFirstThree = c.substring(0,3);
var strFirstFour = c.substring(0,4);
if(strFirstThree == '555' || strFirstFour == '1555') {
alert('This is not a valid number');
jQuery(this).val('');
}
});
jQuery(window).scroll(function() {
if (jQuery(this).scrollTop() > 1) {
jQuery('.grad-hdr').addClass("sticky");
} else {
jQuery('.grad-hdr').removeClass("sticky");
}
});
});