function read_Cookie_val(name) { const value = '; '+document.cookie; const parts = value.split('; '+name+'='); if (parts.length === 2) return parts.pop().split(';').shift(); } $(function(){ let loginsignupWidget = $('[data-component-loginsignup]'); if (read_Cookie_val('app_u_token')) { loginsignupWidget.find('.loginWidg').hide(); loginsignupWidget.find('.signupWidg').hide(); loginsignupWidget.find('.dashboardWidg').show(); loginsignupWidget.find('.logoutWidg').show(); }else{ loginsignupWidget.find('.dashboardWidg').hide(); loginsignupWidget.find('.logoutWidg').hide(); loginsignupWidget.find('.loginWidg').show(); loginsignupWidget.find('.signupWidg').show(); } });
fr_new.png
$(function(){setTimeout(function (){ let searchWidget = $('[data-component-dynamicsearch]'); console.log("searchWidget", searchWidget.find('input[name="keyword"]')); var urlParams = new URLSearchParams(window.location.search); let searchedKeyword = ''; let searchedFilters = ''; if(urlParams.has('s')){ searchedKeyword = urlParams.get('s'); } if(urlParams.has('filters')){ searchedFilters = urlParams.get('filters'); searchedFilters = searchedFilters.split(';'); } searchWidget.each(function (){ selfSearchWidget = $(this); if(searchedKeyword !=''){ selfSearchWidget.find('input[name="keyword"]').val(searchedKeyword); } if(searchedFilters){ $.each(searchedFilters, function (key, value) { if (value) { let optValue = value.split(':'); let filterName = optValue[0]; let filterVal = optValue[1]; selfSearchWidget.find('select[name="'+filterName+'"]').val(filterVal); } }); } let keyword = ''; keyword = selfSearchWidget.find('input[name="keyword"]').val(); let selectedObj = selfSearchWidget.attr("data-selected-obj"); let success_redirect = selfSearchWidget.find('input[name=success_redirect]').val(); let all_filters = ''; let filtersQS = ''; if(!success_redirect){ success_redirect = window.location.href; } if (selfSearchWidget.find('.search-filters').length > 0) { all_filters = selfSearchWidget.find('.search-filters').find('select'); all_filters.off().on('change', function(){ $(this).attr('title', $(this).val()); let QS = $(this).attr('name')+':'+$(this).val(); $(this).attr('data-qs', QS); filtersQS = ''; let filtersArr = []; all_filters.each(function(){ if($(this).attr('data-qs')){ filtersArr.push($(this).attr('data-qs')); } }); filtersQS = filtersArr.join(';'); let keyword = ''; keyword = selfSearchWidget.find('[name="keyword"]').val(); let prepSrc = ''; if (success_redirect && selectedObj && keyword !='') { prepSrc = success_redirect+'?s='+keyword+'&obj='+selectedObj + '&filters='+filtersQS; selfSearchWidget.find('.searchBtn').attr('href', prepSrc); }else{ selfSearchWidget.find('.searchBtn').attr('href', 'javascript:void(0)'); } }); } if (success_redirect && selectedObj && keyword !='') { prepSrc = success_redirect+'?s='+keyword+'&obj='+selectedObj + '&filters='+filtersQS; selfSearchWidget.find('.searchBtn').attr('href', prepSrc); }else{ selfSearchWidget.find('.searchBtn').attr('href', 'javascript:void(0)'); } selfSearchWidget.find('[name="keyword"]').on('change textInput input', function(){ let keyword = ''; keyword = $(this).val(); let prepSrc = ''; if (success_redirect && selectedObj && keyword !='') { prepSrc = success_redirect+'?s='+keyword+'&obj='+selectedObj + '&filters='+filtersQS; selfSearchWidget.find('.searchBtn').attr('href', prepSrc); }else{ selfSearchWidget.find('.searchBtn').attr('href', 'javascript:void(0)'); } }); selfSearchWidget.find('[name="keyword"]').on('keyup', function(e){ if (e.key === 'Enter' || e.keyCode === 13) { let keyword = ''; keyword = $(this).val(); let prepSrc = ''; if (success_redirect && selectedObj && keyword !='') { prepSrc = success_redirect+'?s='+keyword+'&obj='+selectedObj + '&filters='+filtersQS; window.location.href = prepSrc; }else{ selfSearchWidget.find('.searchBtn').attr('href', 'javascript:void(0)'); } } }); }); }, 2000);});
$(function () { setTimeout(function() { fillFormBasicInfoFields(); }, 2000);});
blog Object

The Top 16 Retail Discounts for First Responders

Read More

How to Offer Discounts to Boost Your Sales

Read More

Psychology of Discounts - Attract Customers with Discount

Read More

What Makes Firefighters Real Heroes

Read More

Why Online Marketing is Important for Your Business

Read More

The Star of Life The Symbol of Emergency Medical Care

Read More

Why Vendors Should Offer Special Discounts to First Responders

Read More

Why Vendors Should Offer Special Discounts to First Responders_1

Read More

First Responder Flag Honors the Heroic Service

Read More

How We Support First Responders and Local Vendors

Read More

The Top Hotel Discounts for First Responders

Read More

Career Trends for Emergency Medical Technicians in 2019

Read More

How Local Vendors can Grow with First Responder Discounts

Read More
Join Our Mailing List
$(function(){setTimeout(function (){makeUSStatesCitiesDropdown('[data-component-dynamicsearch]');},2000);})
$(function() { console.log( "ready!" );$(".carousel-item").first().addClass('active'); });