It looks like this is a web page, not a feed. I looked for a feed associated with this page, but couldn't find one. Please enter the address of your feed to validate.

Source: https://adlocalpages.com/united-states/yorba-linda/automotive/ocrv-center-rv-collision-repair-shop-paint-shop

  1. <!DOCTYPE HTML>
  2. <html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en">
  3. <head>
  4.    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  5.    <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6.    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2, user-scalable=1">
  7.  
  8.    <!-- Preconnect -->
  9.    <link rel="preconnect" href="https://www.optimizecdn.com" crossorigin>
  10.    <link rel="preconnect" href="https://fonts.googleapis.com" crossorigin>
  11. <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  12. <link rel="apple-touch-icon" href="/images/logo1-(2).png">
  13.    <link rel="icon" type="image/png" href="/images/logo1-(2).png">
  14.    <!-- Site Meta Data -->
  15.    <title>OCRV Center - RV Collision Repair Shop &amp; Paint Shop - Automotive - Business</title>
  16.    <meta name="description" content="Connect with OCRV Center - RV Collision Repair Shop & Paint Shop, Automotive in Yorba Linda, California. Find OCRV Center - RV Collision Repair Shop & Paint Shop reviews and more. ">
  17.    <meta name="keywords" content="Business Owners,Business Owners,OCRV Center - RV Collision Repair Shop & Paint Shop,Business,Yorba Linda, California,Automotive,Automotives">
  18.    <meta name="robots" content="index, follow">
  19.  
  20.    <!-- Canonical URL -->
  21. <link rel="canonical" href="https://www.adlocalpages.com/united-states/yorba-linda/automotive/ocrv-center-rv-collision-repair-shop-paint-shop">
  22.    <span style="position:absolute;color:transparent;width:100%;z-index:-1;height:50px;top:0;">
  23. www.adlocalpages.com - Ad Local Pages</span>
  24.    
  25. <!-- Preload -->
  26. <link rel="preload" as="style" href="https://www.optimizecdn.com/directory/cdn/assets/bootstrap/css/critical-styles.pkgd.min.css?v=04.12.24.14" importance="high">
  27. <link rel="preload" href="/pictures/profile/pimage-21423-355-photo.jpg" as="image" importance="high">
  28.    <!-- Non-Critical Stylesheet - Render Before Critical Styles -->
  29. <link rel="stylesheet" media="print" onload="this.onload=null;this.removeAttribute('media');" href="https://www.optimizecdn.com/directory/cdn/assets/bootstrap/css/non-critical-styles.pkgd.min.css?v=2.1.1">
  30. <noscript>
  31. <link rel="stylesheet" href="https://www.optimizecdn.com/directory/cdn/assets/bootstrap/css/non-critical-styles.pkgd.min.css">
  32. </noscript>
  33. <!-- Critical Stylesheet -->
  34. <link rel="stylesheet" href="https://www.optimizecdn.com/directory/cdn/assets/bootstrap/css/critical-styles.pkgd.min.css?v=04.12.24.14">
  35.    
  36.    <!-- Google Fonts Stylesheet -->    
  37.    <link rel="stylesheet" media="print" onload="this.onload=null;this.removeAttribute('media');" href="https://fonts.googleapis.com/css?family=Lato:300,400,600,700,800,900|Ubuntu:300,400,600,700,800,900|Open+Sans:300,400,600,700,800,900&display=swap">
  38.    <noscript>
  39.        <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lato:300,400,600,700,800,900|Ubuntu:300,400,600,700,800,900|Open+Sans:300,400,600,700,800,900&display=swap">
  40.    </noscript>
  41.    <!-- FontAwesome Stylesheet -->
  42.    <link rel="stylesheet" media="print" onload="this.onload=null;this.removeAttribute('media');" href="https://www.optimizecdn.com/directory/cdn/assets/bootstrap/font-awesome/css/font-awesome.min.css">
  43.    <noscript>
  44.        <link rel="stylesheet" href="https://www.optimizecdn.com/directory/cdn/assets/bootstrap/font-awesome/css/font-awesome.min.css">
  45.    </noscript>
  46.    <!-- Critical JavaScript -->
  47.    <script src="https://www.optimizecdn.com/directory/cdn/assets/bootstrap/libraries/latest/jquery.min.js"></script>
  48. <script src="https://www.optimizecdn.com/directory/cdn/assets/bootstrap/libraries/latest/jquery-ui.min.js"></script>
  49. <script src="https://www.optimizecdn.com/directory/cdn/assets/bootstrap/libraries/latest/bootstrap.min.js"></script>
  50. <script>
  51. /* jQuery.event.special.touchstart = {
  52. setup: function( _, ns, handle ) {
  53. this.addEventListener("touchstart", handle, { passive: !ns.includes("noPreventDefault") });
  54. }
  55. }; */
  56. jQuery.event.special.touchmove = {
  57. setup: function( _, ns, handle ) {
  58. this.addEventListener("touchmove", handle, { passive: !ns.includes("noPreventDefault") });
  59. }
  60. };
  61. jQuery.event.special.wheel = {
  62. setup: function( _, ns, handle ){
  63. this.addEventListener("wheel", handle, { passive: true });
  64. }
  65. };
  66. jQuery.event.special.mousewheel = {
  67. setup: function( _, ns, handle ){
  68. this.addEventListener("mousewheel", handle, { passive: true });
  69. }
  70. };
  71. </script>
  72.    <!-- Prefetch -->
  73.    <link rel="prefetch" href="https://www.optimizecdn.com/directory/cdn/assets/bootstrap/jquery.lazy/1.7.9/jquery.lazy.min.js" as="script">
  74.    <link rel="prefetch" href="https://www.optimizecdn.com/directory/cdn/assets/bootstrap/js/websiteScripts.min.js?v=0.4" as="script">
  75. <link rel="prefetch" href="https://www.optimizecdn.com/directory/cdn/assets/bootstrap/limonte-sweetalert2/6.11.2/sweetalert2.min.css" as="style">
  76.    <link rel="prefetch" href="https://www.optimizecdn.com/directory/cdn/assets/bootstrap/limonte-sweetalert2/6.11.2/sweetalert2.min.js" as="script">
  77. <!-- Social Media Meta Data -->
  78.    <meta property="og:type" content="website">
  79.    <meta property="og:url" content="https://www.adlocalpages.com/united-states/yorba-linda/automotive/ocrv-center-rv-collision-repair-shop-paint-shop">
  80.    <meta property="og:site_name" content="Ad Local Pages">
  81.    <meta property="og:title" content="OCRV Center - RV Collision Repair Shop &amp; Paint Shop on Ad Local Pages">
  82.    <meta property="og:description" content="Learn about OCRV Center - RV Collision Repair Shop & Paint Shop, Automotive in Yorba Linda, California. Find OCRV Center - RV Collision Repair Shop & Paint Shop reviews and more on Ad Local Pages.">
  83.    <meta property="og:image" content="https://www.adlocalpages.com/pictures/social_media/pimage-21423-355-photo.jpg">
  84.    <!-- Custom Page HEAD Content -->        <script>
  85.        function g() {
  86.            window.addEventListener('load', () => {
  87.                if (typeof initializeG === 'function') {
  88.                    initializeG();
  89.                }
  90.                            });
  91.        }
  92.    </script>
  93.    <script src="https://maps.googleapis.com/maps/api/js?v=3.exp&libraries=places&region=US&callback=g&language=en&key=AIzaSyCmn5CTc33p7UbPEHOi2C25t8j0iUAVHRM"></script>
  94.  
  95. </head>
  96.  
  97. <body class="general-session"><!--
  98. IMPORTANT: It is not recommended to customize this widget as it directly connects to fields in DESIGN SETTINGS. If new design settings are created and this widget is already customized, then the website will not be able to apply any new design setitngs.
  99.  
  100. INSTEAD: If custom CSS rules are needed, add them directly into the DESIGN SETTINGS > CUSTOM CSS section.
  101. -->
  102. <style>
  103.    .upload-form-field::before {
  104.        content: "choose files";
  105.        display: inline-block;
  106.        border: 1px solid #999;
  107.        border-radius: 3px;
  108.        padding: 5px 8px;
  109.    }
  110.    #first_container span.input-group-addon,#first_container .datepicker *,#first_container .input-group-addon, #first_container .input-group-addon *,#first_container .fr-action-buttons .fr-submit,.fr-popup .fr-layer.fr-color-hex-layer .fr-action-buttons button.fr-command {
  111.        white-space: nowrap !important;
  112.    }
  113.    /* Main Website Design */
  114.    body,.modal-header,.modal-content,.modal-body,.modal-footer {
  115.        background: rgb(255, 255, 255);
  116.        color: rgb(41, 41, 41);
  117.        font-family: 'Lato';
  118.        font-size: 14px;
  119.    }
  120.    .select2-container .select2-choice {
  121.        font-family: 'Lato'!important;
  122.    }
  123.        html{
  124.        background: rgb(35, 35, 35)    }
  125.        a,a.h1,a.h2,a.h3,a.h4,a.h5,a.h6,.pricing_menu li ul li a:not(.btn) {
  126.        color: rgb(51, 122, 183);
  127.    }
  128.    a:hover, a:focus,.pricing_menu li ul li a:not(.btn):hover,.pricing_menu li ul li a:not(.btn):focus {
  129.        color: rgb(35, 82, 124);
  130.    }
  131.    .breadcrumb a{
  132.            color: rgba(119, 119, 119,0.9);
  133.    }
  134.    .breadcrumb a:hover, .breadcrumb a:focus,.breadcrumb > .active {
  135.        color: rgb(119, 119, 119);
  136.    }
  137.    .help-inline, .help-block {
  138.            color: rgba(41, 41, 41,0.5);
  139.    }
  140.    .h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
  141.        font-family: 'Open Sans';
  142.    }
  143.        /* Header Design */
  144.    .header, .mobile_website_logo img {
  145.        background: rgb(247, 247, 247);
  146.    }
  147.    .header .mini-nav li a:not(.btn):not(.network-icon), .header .mini-nav span {
  148.        color: rgb(41, 41, 41);
  149.            font-size: 14px;
  150.        }
  151.    .header .mini-nav li a:not(.btn):hover {
  152.            color: rgba(41, 41, 41,0.95);
  153.    }
  154.    .header .btn_get_listed {
  155.            background-color: rgba(217, 83, 79,0.97);
  156.        border: 1px solid rgb(217, 83, 79);
  157.        color: rgb(255, 255, 255)!important;
  158.    }
  159.    .header .btn_get_listed:hover, .header .btn_get_listed:focus {
  160.        background-color: rgb(217, 83, 79);
  161.    }
  162.    .header .btn_search {
  163.            background-color: rgba(217, 83, 79,0.97);
  164.        border: 1px solid rgb(217, 83, 79);
  165.        color: rgb(255, 255, 255);
  166.    }
  167.    .header .btn_search:hover, .header .btn_search:focus {
  168.        background-color: rgb(217, 83, 79);
  169.        color: rgb(255, 255, 255);
  170.    }
  171.  
  172.    /* Logo Design */
  173.    .logo,.logo:hover,.logo:focus {
  174.        color: rgb(52, 73, 94);
  175.        font-family: 'Ubuntu';
  176.    }
  177.    .logo .slogan {
  178.        color: rgb(97, 96, 96);
  179.    }
  180.    .logo .fa {
  181.        color: rgb(52, 73, 94);
  182.        }
  183.  
  184.    /* Main Menu Design */
  185.    .member-profile-tabs > ul, .member-profile-tabs .tabs-container {
  186.        background: rgb(238, 238, 238);
  187.        position: sticky;
  188.        z-index: 1;
  189.            top: 50px;
  190.        }
  191.    @media only screen and (max-width: 1100px) {
  192.        .member-profile-tabs > ul, .member-profile-tabs .tabs-container {
  193.                    top: 50px;
  194.                }
  195.    }
  196.    .header ul.nav.navbar-nav li ul {
  197.        background-color: #fafafa;
  198.    }
  199.    .header ul.nav.navbar-nav li ul li a, .header ul.nav.navbar-nav li ul li span {
  200.        color: rgb(41, 41, 41);
  201.    }
  202.    .header .navbar-default, .pagination > .active > a {
  203.        background-color: rgb(52, 73, 94);
  204.    }
  205.    .header ul.nav.navbar-nav li ul li a:hover, .header ul.nav.navbar-nav li ul li a:focus{
  206.        border-left-color: rgb(41, 41, 41);
  207.        background: rgb(41, 41, 41);
  208.        color: #fafafa;
  209.    }
  210.    .navbar-default .navbar-toggle .icon-bar {
  211.        background-color: rgb(255, 255, 255);
  212.    }
  213.    .user_sidebar, .main_menu {
  214.        color: rgb(255, 255, 255);
  215.    }
  216.    .navbar-default .navbar-nav > li > a, .navbar-default .navbar-nav > li > span  {
  217.        color: rgb(255, 255, 255);
  218.    }
  219.    .navbar-default .navbar-nav > li:hover > a,.navbar-default .navbar-nav > li > a:hover,.navbar-default .navbar-nav > li > a:active, .navbar-default .navbar-nav > li > a:focus {
  220.        color: rgb(250, 250, 250);
  221.    }
  222.    .navbar-default .navbar-nav > li {
  223.        font-family: 'Ubuntu';
  224.    }
  225.    
  226.    
  227.  
  228.    /* Footer Design */
  229.    .footer {
  230.        background-color: rgb(35, 35, 35);
  231.        display: block;
  232.    }
  233.    .footer, .footer_menu a,.footer_terms a,.footer_menu .content {
  234.        color: rgb(239, 239, 239);
  235.    }
  236.    .footer_menu a:hover, .footer_terms a:hover, .footer_menu a:focus, .footer_terms a:focus {
  237.        color: rgb(255, 255, 255);
  238.    }
  239.    .footer_menu .head {
  240.        color: rgb(255, 255, 255);
  241.    }
  242.    .btn_footer_get_listed {
  243.            background-color: rgba(217, 83, 79,0.95);
  244.        border: 1px solid rgb(217, 83, 79);
  245.        color: rgb(255, 255, 255)!important;
  246.    }
  247.    .btn_footer_get_listed:hover, .btn_footer_get_listed:focus{
  248.        background-color: rgb(217, 83, 79);
  249.    }
  250.  
  251.    /* Homepage Design */
  252.        .homepage_settings h1, .homepage_settings h2, .homepage_map h1, .homepage_map h2 {
  253.        font-family: 'Ubuntu';
  254.    }
  255.    .homepage_settings h1, .homepage_map h1 {
  256.        color: rgb(255, 255, 255);
  257.            font-weight: 600;
  258.            text-align: left;
  259.    }
  260.    .homepage_settings h2, .homepage_map h2 {
  261.        color: rgb(255, 255, 255);
  262.            font-weight: 400;
  263.            text-align: left;
  264.  
  265.    }
  266.    .homepage_settings .search_box label {
  267.        color: rgb(255, 255, 255);
  268.    }
  269.    .btn_home_search, .search_box input[type=submit] {
  270.            background-color: rgba(217, 83, 79,0.97);
  271.        border: 1px solid rgb(217, 83, 79);
  272.        color: rgb(255, 255, 255);
  273.    }
  274.    .btn_home_search:hover, .btn_home_search:focus, .search_box input[type=submit]:hover, .search_box input[type=submit]:focus {
  275.        background-color: rgb(217, 83, 79);
  276.        color: rgb(255, 255, 255);
  277.    }
  278.    .homepage_settings .search_box {
  279.            background-color: rgba(52, 73, 94,0.8);
  280.    }
  281.  
  282.    /* Homepage Steps Module */
  283.    .homepage_steps {
  284.            background: none;
  285.        box-shadow: none;
  286.        padding: 0;
  287.                color: rgb(255, 255, 255);
  288.            }
  289.    .homepage_steps a.homepage_step_link,.homepage_steps a.homepage_step_link:hover,.homepage_steps a.homepage_step_link:active{
  290.        color: rgb(255, 255, 255)!important;
  291.    }
  292.    .homepage_steps .fa {
  293.        color: rgb(144, 168, 192);
  294.            background-color: rgba(144, 168, 192,0.075);
  295.    }
  296.  
  297.    /* Blog Posts Slider Settings */
  298.    #myCarousel h2 a, .carousel-caption p,#myCarousel .list-group-item h2, #myCarousel li.list-group-item h4 {
  299.            color: rgb(255, 255, 255);
  300.        }
  301.    #myCarousel .list-group-item {
  302.            background-color: rgba(52, 73, 94,0.9);
  303.        border-color: rgba(52, 73, 94,0.80);
  304.    }
  305.    #myCarousel .carousel-caption {
  306.            background-color: rgba(52, 73, 94,0.8);
  307.    }
  308.    #myCarousel .list-group, #myCarousel .carousel-inner {
  309.            background-color: rgb(52, 73, 94)        }
  310.    #myCarousel .list-group .active, #myCarousel .list-group-item:hover {
  311.            background-color: rgb(52, 73, 94)        }
  312.    #myCarousel .list-group .active h4, #myCarousel .list-group-item:hover h4{
  313.            color: rgb(250, 250, 250);
  314.        }
  315.  
  316.    /* Additional Settings */
  317.    .well blockquote {
  318.        background: rgb(255, 255, 255) none repeat scroll 0 0;
  319.        border-color: rgb(238, 238, 238);
  320.        color: rgb(41, 41, 41);
  321.        padding: 10px 20px;
  322.    }
  323.    .account-form-box form table tr td table {
  324.        background-color: transparent!important;
  325.        border: none!important;
  326.    }
  327.  
  328.    .account-form-box form table tr td table td {
  329.        background-color: transparent!important;
  330.        color: rgb(41, 41, 41)!important;
  331.        border: none!important;
  332.    }
  333.    div.dataTables_length label, div.dataTables_filter label, .dataTables_wrapper .dataTables_paginate .paginate_button.disabled, .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover, .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:active{
  334.        color: rgb(41, 41, 41)!important;
  335.    }
  336.    .table.dataTable > thead > tr > th, .table > thead > tr > th {
  337.        background-color: rgb(238, 238, 238);
  338.        color: rgb(85, 85, 85);
  339.        border-bottom:0;
  340.        font-weight:600;
  341.    }
  342.    table.dataTable tbody tr {
  343.        background-color: rgb(250, 250, 250)!important;
  344.    }
  345.    .table-striped.dataTable tbody > tr:nth-of-type(2n+1),.table-striped > tbody > tr:nth-of-type(2n+1) {
  346.            background-color: rgba(255, 255, 255,0.3)!important;
  347.    }
  348.    .sidemenu_panel .list-group-item{
  349.        background-color: transparent!important;
  350.        color: rgb(41, 41, 41)!important;
  351.    }
  352.    .img-thumbnail {
  353.        background-color: rgb(250, 250, 250)!important;
  354.        border: 1px solid rgb(238, 238, 238);
  355.    }
  356.    .member_admin_sidemenu p, .member_admin_sidemenu h3 {
  357.        color: rgb(41, 41, 41)!important;
  358.    }
  359.    .close {
  360.        color: rgb(41, 41, 41);
  361.        opacity: 1;
  362.    }
  363.    .member_results_header h1, .content_w_sidebar.feature-search h1, .feature_results_header h1 {
  364.        font-size:36px;
  365.        display: block;
  366.    }
  367.    .member_results_header h2, .feature_results_header h2 {
  368.        font-size:30px;
  369.        display: block;
  370.    }
  371.    .homepage_settings {
  372.        padding-top: 60px;
  373.        padding-bottom: 90px;
  374.    }
  375.    @media only screen and (max-width: 768px) {
  376.                        .member-profile-header .favorite {float:none}
  377.    }
  378.  
  379.    @media only screen and (max-width: 1100px) {
  380.        }
  381.    .views > i.fa.activeView {
  382.        background-color: rgb(52, 73, 94);
  383.        color: rgb(255, 255, 255);
  384.    }
  385.    .views > i.fa {
  386.            background-color: rgba(52, 73, 94,0.6);
  387.        color: rgb(255, 255, 255);
  388.    }
  389.    .ui-rangeSlider-label {
  390.        background-color: rgb(52, 73, 94)!important;
  391.        color: rgb(255, 255, 255)!important;
  392.    }
  393.    .pricing_menu li .title {
  394.        background: rgb(52, 73, 94);
  395.        color: rgb(255, 255, 255);
  396.    }
  397.    p.account-tip{
  398.        color: rgb(41, 41, 41);
  399.    }
  400.    .circled_number {
  401.        background: rgb(52, 73, 94);
  402.        color: rgb(255, 255, 255);
  403.    }
  404.    .pic {
  405.            background-color: rgba(52, 73, 94,0.8);
  406.        color: rgb(255, 255, 255);
  407.        background-repeat: no-repeat;
  408.        background-position: center;
  409.        }
  410.    .pic .pic-caption {
  411.            background: linear-gradient(0deg, rgba(0, 0, 0, 0) 0%,rgba(52, 73, 94,0.85) 50%);
  412.        color: rgb(255, 255, 255);
  413.    }
  414.    .slick-prev-fa i, .slick-next-fa i{
  415.        color: rgb(52, 73, 94);
  416.    }
  417.    .module, .well, .tab-content, .nav-tabs>li.active>a, .nav-tabs>li.active>a:focus, .nav-tabs>li.active>a:hover, .nav-tabs>li>a:focus, .nav-tabs>li>a:hover, .nav-tabs.nav-justified>li.active>a, .nav-tabs.nav-justified>li.active>a:focus, .nav-tabs.nav-justified>li.active>a:hover, .nav-tab.nav-justified>li>a:focus, .nav-tabs.nav-justified>li>a:hover, .account-form-box,.account-form-box .module .module,.account-form-box .module .well,.account-form-box .well .well,.account-form-box .well .module,.module .module .module,.module .well .well,.module .module .well,.module .well .module,.well .well .well,.well .module .module,.well .well .module,.well .module .well, .froala-table.module{
  418.        background-color: rgb(250, 250, 250);
  419.        border-color: rgb(238, 238, 238);
  420.        color: rgb(41, 41, 41);
  421.    }
  422. .nav-tabs > li.active > a, .nav-tabs > li.active > a:focus, .nav-tabs > li.active > a:hover {
  423. box-shadow: 0 2px 0 0 rgb(51, 122, 183) inset;
  424. border-top:1px solid rgb(51, 122, 183);
  425. border-radius: 0;
  426. }
  427.    .nav-pills > li.active a, .nav-pills > li > a:hover {
  428.        background-color: rgb(51, 122, 183)!important;
  429.        border-color: rgb(51, 122, 183)!important;
  430.        color: rgb(255, 255, 255)!important;
  431.    }
  432.    .sidemenu_panel .panel-heading {
  433.        color: rgb(41, 41, 41)!important;
  434.        background-color: rgb(250, 250, 250)!important;
  435.    }
  436.    .member-profile-tabs .nav-tabs > li:not(.active) > a, .login-register-tabs.nav-tabs > li:not(.active) > a {
  437.            background: rgba(250, 250, 250,0.5);
  438.        color:  rgb(41, 41, 41);
  439.    }
  440.    .member-profile-tabs .nav-tabs > li:not(.active) > a:hover, .login-register-tabs.nav-tabs > li:not(.active) > a:hover {
  441.            background: rgba(250, 250, 250,1);
  442.        color:  rgb(41, 41, 41);
  443.    }
  444.    .author-snapshot .well {
  445.        background-color: rgb(250, 250, 250)!important;
  446.        border-color: rgb(238, 238, 238)!important;
  447.        color: rgb(41, 41, 41)!important;
  448.    }
  449.    .nav-tabs>li>a, .nav-pills>li>a {
  450.        font-weight: 600;
  451.    }
  452.        .module .help-inline,.module .help-block,.well .help-inline,.well .help-block,.account-form-box .help-inline,.account-form-box .help-block,.account-form-box p.account-tip{
  453.            color: rgba(41, 41, 41,0.5);
  454.    }
  455.    #service_areas_table td,#service_areas_table_wrapper label, #service_areas_table_info, #service_areas_table_paginate > a {
  456.        color: rgb(41, 41, 41) !important;
  457.    }
  458.    .popover {
  459.        background-color: rgb(250, 250, 250);
  460.        border-color: rgb(250, 250, 250);
  461.        padding:0;
  462.        text-align:left;
  463.    }
  464.    .popover-title, .popover-content {
  465.        background-color: rgb(250, 250, 250);
  466.        color: rgb(41, 41, 41);
  467.        border-color: rgb(250, 250, 250);
  468.        text-align:left;
  469.    }
  470.    .popover-content {
  471.            background-color: rgba(41, 41, 41,.05);
  472.    }
  473.    .popover.left > .arrow::after {
  474.        border-left-color: rgb(250, 250, 250)!important;
  475.    }
  476.    .popover.right > .arrow::after {
  477.        border-right-color: rgb(250, 250, 250)!important;
  478.    }
  479.    .popover.bottom > .arrow::after {
  480.        border-bottom-color: rgb(250, 250, 250)!important;
  481.    }
  482.    .popover.top > .arrow::after {
  483.        border-top-color: rgb(250, 250, 250)!important;
  484.    }
  485.    .progress, .table-view .table-view-group:nth-child(2n-1),.tab-content .well, .tab-content .module,#account-tabs .well,#account-tabs .module,.account-form-box .module,.account-form-box .well,.module .module,.well .well,.module .well,.well .module{
  486.        background-color: rgb(255, 255, 255);
  487.        color: rgb(41, 41, 41);
  488.    }
  489.    .table > tbody > tr > td, .table > tbody > tr > th, .table > tfoot > tr > td, .table > tfoot > tr > th, .table > thead > tr > td, .table > thead > tr > th, .nav-tabs, hr, .account-menu-title, table.dataTable.no-footer {
  490.        border-color: rgb(238, 238, 238);
  491.    }
  492.    .table-view li, .table-view .table-view-group > div {
  493.        border-top:1px solid rgb(238, 238, 238);
  494.    }
  495.    .table-view .table-view-group:last-child {
  496.        border-bottom:1px solid rgb(238, 238, 238);
  497.    }
  498.    .module h1, .module h2, .module h3, .module h4, .module h5 {
  499.        color: rgb(62, 62, 62);
  500.    }
  501.    .module p:not(.fr-box.fr-basic .fr-element p) {
  502.        color: rgb(41, 41, 41);
  503.    }
  504.    .pagination>.active>a {
  505.            border-color: rgba(255, 255, 255,0.2);
  506.    }
  507.    .pagination>.active>a {
  508.        color: rgb(255, 255, 255);
  509.    }
  510.    .pagination > .active > a:hover, .pagination > .active > a:focus {
  511.            border-color: rgba(255, 255, 255,0.2);
  512.        background-color: rgb(52, 73, 94);
  513.        color: rgb(255, 255, 255);
  514.    }
  515.    .pagination > li > a {
  516.        color: rgb(52, 73, 94);
  517.            border-color: rgba(52, 73, 94,0.2);
  518.        background-color: rgb(255, 255, 255);
  519.    }
  520.    .pagination > li > a:focus, .pagination > li > a:hover, .pagination > li > span:focus, .pagination > li > span:hover {
  521.        background-color: rgb(52, 73, 94);
  522.        border-color: rgb(52, 73, 94);
  523.        color: rgb(255, 255, 255);
  524.    }
  525.  
  526.    .nav-pills.nav-wizard > li a, .nav-pills.nav-wizard > li a:hover{
  527.        background-color: rgb(250, 250, 250)!important;
  528.        color: rgb(41, 41, 41)!important;
  529.    }
  530.    .member_wizard2 li.incomplete {
  531.        background: rgb(250, 250, 250)!important;
  532.    }
  533.    .member_wizard2 li.incomplete a, .member_wizard2 li.incomplete a:hover {
  534.        background-color: rgb(240, 173, 78)!important;
  535.        border-color: rgb(240, 173, 78);
  536.        color: rgb(255, 255, 255);
  537.    }
  538.    .nav-pills.nav-wizard > li.active a, .nav-pills.member_wizard > li.active:hover a {
  539.        background-color: rgb(51, 122, 183)!important;
  540.        color: rgb(255, 255, 255)!important;
  541.    }
  542.    .member_wizard2 li.active {
  543.        background: rgb(51, 122, 183)!important;
  544.    }
  545.    .member_wizard2 li.completed a, .member_wizard2 li.completed a:hover {
  546.        background-color: rgb(92, 184, 92)!important;
  547.        border-color: rgb(92, 184, 92);
  548.        color: rgb(255, 255, 255);
  549.    }
  550.  
  551.        .nav-pills.nav-wizard > li.active .nav-arrow, .nav-pills.nav-wizard > li.active:hover .nav-arrow {
  552.        border-color: transparent transparent transparent rgb(51, 122, 183)!important;
  553.    }
  554.    .nav-pills.nav-wizard > li.active .nav-wedge, .nav-pills.nav-wizard > li.active:hover .nav-wedge{
  555.        border-color: rgb(51, 122, 183) rgb(51, 122, 183) rgb(51, 122, 183) transparent!important;
  556.    }
  557.    
  558.        li.completed .nav-wedge, .nav-pills.nav-wizard > li.completed:hover .nav-wedge {
  559.        border-color: rgb(92, 184, 92) rgb(92, 184, 92) rgb(92, 184, 92) transparent!important;
  560.    }
  561.    
  562.        li.incomplete .nav-wedge, .nav-pills.nav-wizard > li.incomplete:hover .nav-wedge {
  563.        border-color: rgb(250, 250, 250) rgb(250, 250, 250) rgb(250, 250, 250) transparent!important;
  564.    }
  565.    
  566.  
  567.    .nav-pills.member_wizard > li.completed a, .nav-pills.member_wizard > li.completed a:hover {
  568.        background-color: rgb(92, 184, 92)!important;
  569.        color: rgb(255, 255, 255)!important;
  570.    }
  571.    .member_wizard2 li.completed {
  572.        background: rgb(92, 184, 92)!important;
  573.    }
  574.    .member_wizard2 li {
  575.        color: rgb(255, 255, 255);
  576.        border-right: 3px solid rgb(255, 255, 255);
  577.    }
  578.  
  579.        li.completed .nav-arrow, .nav-pills.nav-wizard > li.completed:hover .nav-arrow {
  580.        border-color: transparent transparent transparent rgb(92, 184, 92)!important;
  581.    }
  582.    
  583.        li.incomplete .nav-arrow, .nav-pills.nav-wizard > li.incomplete:hover .nav-arrow{
  584.        border-color: transparent transparent transparent rgb(250, 250, 250)!important;
  585.    }
  586.    
  587.    /* Default Colors */
  588.    .btn-primary, .btn-primary.disabled, .btn-primary.disabled.active, .btn-primary.disabled.focus, .btn-primary.disabled:active, .btn-primary.disabled:focus, .btn-primary.disabled:hover, .btn-primary[disabled], .btn-primary[disabled].active, .btn-primary[disabled].focus, .btn-primary[disabled]:active, .btn-primary[disabled]:focus, .btn-primary[disabled]:hover, fieldset[disabled] .btn-primary, fieldset[disabled] .btn-primary.active, fieldset[disabled] .btn-primary.focus, fieldset[disabled] .btn-primary:active, fieldset[disabled] .btn-primary:focus, fieldset[disabled] .btn-primary:hover, .btn.dropdown-toggle.btn-primary,.navbar-default .navbar-nav > li > a.btn-primary, .navbar-default .navbar-nav > li > span.btn-primary,.mobile-main-menu .sidebar-nav li a.btn-primary, .mobile-main-menu .sidebar-nav li span.btn-primary {
  589.            background-color: rgba(51, 122, 183,0.95);
  590.        border-color: rgb(51, 122, 183);
  591.        color: rgb(255, 255, 255);
  592.    }
  593.    .btn-primary:hover, .btn-primary:focus, .btn-primary:active,.btn-primary:active:focus, .btn-primary:active:hover, .nav > li > a.btn-primary:focus, .nav > li > a.btn-primary:hover,.btn-primary.active,.open > .dropdown-toggle.btn-primary, .btn-primary.active.focus, .btn-primary.active:focus, .btn-primary.active:hover, .btn-primary:active.focus, .open>.dropdown-toggle.btn-primary:hover, .open>.dropdown-toggle.btn-primary:focus, .open>.dropdown-toggle.btn-primary.focus,a.bg-primary:focus,a.bg-primary:hover, .panel-primary .panel-heading, .btn.dropdown-toggle.btn-primary:hover,.upload-form-field,.upload-form-field:hover,.upload-form-field:active:focus,.upload-form-field:before {
  594.        background-color: rgb(51, 122, 183);
  595.        border-color: rgb(51, 122, 183);
  596.        color: rgb(255, 255, 255);
  597.    }
  598.    .panel-primary {
  599.            background-color: rgba(51, 122, 183,0.1);
  600.        border-color: rgb(51, 122, 183);
  601.    }
  602.    .bg-primary,.progress-bar-primary,.module p.bg-primary,.label-primary,.pricing_menu .title.bg-primary {
  603.        background-color: rgb(51, 122, 183);
  604.        color: rgb(255, 255, 255);
  605.    }
  606.    .bg-primary .badge {
  607.        background-color:rgb(255, 255, 255);
  608.        color: rgb(51, 122, 183);
  609.    }
  610.    .alert-primary {
  611.            background-color:rgba(51, 122, 183,0.7);
  612.        border-color:rgba(51, 122, 183,0.7);
  613.            color: rgba(255, 255, 255,0.9);
  614.    }
  615.    .btn.dropdown-toggle.btn-primary *, .btn-primary a {
  616.        color: rgb(255, 255, 255);
  617.    }
  618.    .text-primary{
  619.        color: rgb(51, 122, 183);
  620.    }
  621.    .btn-info, .btn-info.disabled, .btn-info.disabled.active, .btn-info.disabled.focus, .btn-info.disabled:active, .btn-info.disabled:focus, .btn-info.disabled:hover, .btn-info[disabled], .btn-info[disabled].active, .btn-info[disabled].focus, .btn-info[disabled]:active, .btn-info[disabled]:focus, .btn-info[disabled]:hover, fieldset[disabled] .btn-info, fieldset[disabled] .btn-info.active, fieldset[disabled] .btn-info.focus, fieldset[disabled] .btn-info:active, fieldset[disabled] .btn-info:focus, fieldset[disabled] .btn-info:hover, .btn.dropdown-toggle.btn-info,.navbar-default .navbar-nav > li > a.btn-info, .navbar-default .navbar-nav > li > span.btn-info,.mobile-main-menu .sidebar-nav li a.btn-info, .mobile-main-menu .sidebar-nav li span.btn-info {
  622.            background-color: rgba(91, 192, 222,0.95);
  623.        border-color: rgb(91, 192, 222);
  624.        color: rgb(255, 255, 255);
  625.    }
  626.    .btn-info:hover, .btn-info:focus, .btn-info:active,.btn-info:active:focus, .btn-info:active:hover, .nav > li > a.btn-info:focus, .nav > li > a.btn-info:hover,.btn-info.active,.open > .dropdown-toggle.btn-info, .btn-info.active.focus, .btn-info.active:focus, .btn-info.active:hover, .btn-info:active.focus, .open>.dropdown-toggle.btn-info:hover, .open>.dropdown-toggle.btn-info:focus, .open>.dropdown-toggle.btn-info.focus,a.bg-info:focus,a.bg-info:hover, .panel-info .panel-heading, .btn.dropdown-toggle.btn-info:hover {
  627.        background-color: rgb(91, 192, 222);
  628.        border-color: rgb(91, 192, 222);
  629.        color: rgb(255, 255, 255);
  630.    }
  631.    .panel-info{
  632.            background-color: rgba(91, 192, 222,0.1);
  633.        border-color: rgb(91, 192, 222);
  634.    }
  635.    .bg-info,.progress-bar-info,.module p.bg-info,.label-info,.pricing_menu .title.bg-info {
  636.        background-color: rgb(91, 192, 222);
  637.        color: rgb(255, 255, 255);
  638.    }
  639.    .bg-info .badge {
  640.        background-color:rgb(255, 255, 255);
  641.        color: rgb(91, 192, 222);
  642.    }
  643.    .alert-info {
  644.            background-color:rgba(91, 192, 222,0.7);
  645.        border-color:rgba(91, 192, 222,0.7);
  646.            color: rgba(255, 255, 255,0.9);
  647.    }
  648.    .btn.dropdown-toggle.btn-info *, .btn-info a {
  649.        color: rgb(255, 255, 255);
  650.    }
  651.    .text-info{
  652.        color: rgb(91, 192, 222);
  653.    }
  654.    .btn-success, .btn-success.disabled, .btn-success.disabled.active, .btn-success.disabled.focus, .btn-success.disabled:active, .btn-success.disabled:focus, .btn-success.disabled:hover, .btn-success[disabled], .btn-success[disabled].active, .btn-success[disabled].focus, .btn-success[disabled]:active, .btn-success[disabled]:focus, .btn-success[disabled]:hover, fieldset[disabled] .btn-success, fieldset[disabled] .btn-success.active, fieldset[disabled] .btn-success.focus, fieldset[disabled] .btn-success:active, fieldset[disabled] .btn-success:focus, fieldset[disabled] .btn-success:hover, .btn.dropdown-toggle.btn-success,.navbar-default .navbar-nav > li > a.btn-success, .navbar-default .navbar-nav > li > span.btn-success,.mobile-main-menu .sidebar-nav li a.btn-success, .mobile-main-menu .sidebar-nav li span.btn-success {
  655.            background-color: rgba(92, 184, 92,0.95);
  656.        border-color: rgb(92, 184, 92);
  657.        color: rgb(255, 255, 255);
  658.    }
  659.    .btn-success:hover, .btn-success:focus, .btn-success:active,.btn-success:active:focus, .btn-success:active:hover, .nav > li > a.btn-success:focus, .nav > li > a.btn-success:hover,.btn-success.active,.open > .dropdown-toggle.btn-success, .btn-success.active.focus, .btn-success.active:focus, .btn-success.active:hover, .btn-success:active.focus, .open>.dropdown-toggle.btn-success:hover, .open>.dropdown-toggle.btn-success:focus, .open>.dropdown-toggle.btn-success.focus,a.bg-success:focus,a.bg-success:hover, .panel-success .panel-heading, .btn.dropdown-toggle.btn-success:hover {
  660.        background-color: rgb(92, 184, 92);
  661.        border-color: rgb(92, 184, 92);
  662.        color: rgb(255, 255, 255);
  663.    }
  664.    .panel-success{
  665.            background-color: rgba(92, 184, 92,0.1);
  666.        border-color: rgb(92, 184, 92);
  667.    }
  668.    .bg-success,.progress-bar-success,.module p.bg-success,.label-success,.pricing_menu .title.bg-success {
  669.        background-color: rgb(92, 184, 92);
  670.        color: rgb(255, 255, 255);
  671.    }
  672.    .bg-success .badge {
  673.        background-color: rgb(255, 255, 255);
  674.        color: rgb(92, 184, 92);
  675.    }
  676.    .alert-success {
  677.            background-color:rgba(92, 184, 92,0.7);
  678.        border-color:rgba(92, 184, 92,0.7);
  679.            color: rgba(255, 255, 255,0.9);
  680.    }
  681.    .btn.dropdown-toggle.btn-success *, .btn-success a {
  682.        color: rgb(255, 255, 255);
  683.    }
  684.    .text-success{
  685.        color: rgb(92, 184, 92);
  686.    }
  687.    .btn-warning, .btn-warning.disabled, .btn-warning.disabled.active, .btn-warning.disabled.focus, .btn-warning.disabled:active, .btn-warning.disabled:focus, .btn-warning.disabled:hover, .btn-warning[disabled], .btn-warning[disabled].active, .btn-warning[disabled].focus, .btn-warning[disabled]:active, .btn-warning[disabled]:focus, .btn-warning[disabled]:hover, fieldset[disabled] .btn-warning, fieldset[disabled] .btn-warning.active, fieldset[disabled] .btn-warning.focus, fieldset[disabled] .btn-warning:active, fieldset[disabled] .btn-warning:focus, fieldset[disabled] .btn-warning:hover, .btn.dropdown-toggle.btn-warning,.navbar-default .navbar-nav > li > a.btn-warning, .navbar-default .navbar-nav > li > span.btn-warning,.mobile-main-menu .sidebar-nav li a.btn-warning, .mobile-main-menu .sidebar-nav li span.btn-warning {
  688.            background-color: rgba(240, 173, 78,0.95);
  689.        border-color: rgb(240, 173, 78);
  690.        color: rgb(255, 255, 255);
  691.    }
  692.    .btn-warning:hover, .btn-warning:focus, .btn-warning:active,.btn-warning:active:focus, .btn-warning:active:hover, .nav > li > a.btn-warning:focus, .nav > li > a.btn-warning:hover,.btn-warning.active,.open > .dropdown-toggle.btn-warning, .btn-warning.active.focus, .btn-warning.active:focus, .btn-warning.active:hover, .btn-warning:active.focus, .open>.dropdown-toggle.btn-warning:hover, .open>.dropdown-toggle.btn-warning:focus, .open>.dropdown-toggle.btn-warning.focus,a.bg-warning:focus,a.bg-warning:hover, .panel-warning .panel-heading, .btn.dropdown-toggle.btn-warning:hover {
  693.        background-color: rgb(240, 173, 78);
  694.        border-color: rgb(240, 173, 78);
  695.        color: rgb(255, 255, 255);
  696.    }
  697.    .panel-warning {
  698.            background-color: rgba(240, 173, 78,0.1);
  699.        border-color: rgb(240, 173, 78);
  700.    }
  701.    .bg-warning,.progress-bar-warning,.module p.bg-warning,.label-warning,.pricing_menu .title.bg-warning {
  702.        background-color: rgb(240, 173, 78);
  703.        color: rgb(255, 255, 255);
  704.    }
  705.    .bg-warning .badge {
  706.        background-color: rgb(255, 255, 255);
  707.        color: rgb(240, 173, 78);
  708.    }
  709.    .alert-warning {
  710.            background-color:rgba(240, 173, 78,0.7);
  711.        border-color:rgba(240, 173, 78,0.7);
  712.            color: rgba(255, 255, 255,0.9);
  713.    }
  714.    .btn.dropdown-toggle.btn-warning *, .btn-warning a {
  715.        color: rgb(255, 255, 255);
  716.    }
  717.    .text-warning {
  718.        color: rgb(240, 173, 78);
  719.    }
  720.    .btn-danger, .btn-danger.disabled, .btn-danger.disabled.active, .btn-danger.disabled.focus, .btn-danger.disabled:active, .btn-danger.disabled:focus, .btn-danger.disabled:hover, .btn-danger[disabled], .btn-danger[disabled].active, .btn-danger[disabled].focus, .btn-danger[disabled]:active, .btn-danger[disabled]:focus, .btn-danger[disabled]:hover, fieldset[disabled] .btn-danger, fieldset[disabled] .btn-danger.active, fieldset[disabled] .btn-danger.focus, fieldset[disabled] .btn-danger:active, fieldset[disabled] .btn-danger:focus, fieldset[disabled] .btn-danger:hover, .btn.dropdown-toggle.btn-danger,.navbar-default .navbar-nav > li > a.btn-danger, .navbar-default .navbar-nav > li > span.btn-danger,.mobile-main-menu .sidebar-nav li a.btn-danger, .mobile-main-menu .sidebar-nav li span.btn-danger {
  721.            background-color: rgba(217, 83, 79,0.95);
  722.        border-color: rgb(217, 83, 79);
  723.        color: rgb(255, 255, 255);
  724.    }
  725.    .btn-danger:hover, .btn-danger:focus, .btn-danger:active,.btn-danger:active:focus, .btn-danger:active:hover, .nav > li > a.btn-danger:focus, .nav > li > a.btn-danger:hover,.btn-danger.active,.open > .dropdown-toggle.btn-danger, .btn-danger.active.focus, .btn-danger.active:focus, .btn-danger.active:hover, .btn-danger:active.focus, .open>.dropdown-toggle.btn-danger:hover, .open>.dropdown-toggle.btn-danger:focus, .open>.dropdown-toggle.btn-danger.focus,a.bg-danger:focus,a.bg-danger:hover, .panel-danger .panel-heading, .btn.dropdown-toggle.btn-danger:hover {
  726.        background-color: rgb(217, 83, 79);
  727.        border-color: rgb(217, 83, 79);
  728.        color: rgb(255, 255, 255);
  729.    }
  730.    .has-error .form-control {
  731.        border-color: rgb(217, 83, 79);
  732.    }
  733.    .has-error .help-block:not(.form-field-help-block), .has-error ~ .help-block:not(.form-field-help-block) {
  734.        background: rgb(217, 83, 79);
  735.        color: rgb(255, 255, 255) !important;
  736.    }
  737.    .has-error .checkbox, .has-error .checkbox-inline, .has-error .control-label, .has-error .help-block, .has-error .radio, .has-error .radio-inline, .has-error.checkbox label, .has-error.checkbox-inline label, .has-error.radio label, .has-error.radio-inline label {
  738.        color: rgb(217, 83, 79);
  739.    }
  740.    .panel-danger {
  741.            background-color: rgba(217, 83, 79,0.1);
  742.        border-color: rgb(217, 83, 79);
  743.    }
  744.    .bg-danger,.progress-bar-danger,.module p.bg-danger,.label-danger,.pricing_menu .title.bg-danger {
  745.        background-color: rgb(217, 83, 79);
  746.        color: rgb(255, 255, 255);
  747.    }
  748.    .bg-danger .badge {
  749.        background-color: rgb(255, 255, 255);
  750.        color: rgb(217, 83, 79);
  751.    }
  752.    .alert-danger {
  753.            background-color:rgba(217, 83, 79,0.7);
  754.        border-color:rgba(217, 83, 79,0.7);
  755.            color: rgba(255, 255, 255,0.9);
  756.    }
  757.    .btn.dropdown-toggle.btn-danger *, .btn-danger a {
  758.        color: rgb(255, 255, 255);
  759.    }
  760.    .text-danger{
  761.        color: rgb(217, 83, 79);
  762.    }
  763.    .btn-default, .tags a, .btn-default.disabled, .btn-default.disabled.active, .btn-default.disabled.focus, .btn-default.disabled:active, .btn-default.disabled:focus, .btn-default.disabled:hover, .btn-default[disabled], .btn-default[disabled].active, .btn-default[disabled].focus, .btn-default[disabled]:active, .btn-default[disabled]:focus, .btn-default[disabled]:hover, fieldset[disabled] .btn-default, fieldset[disabled] .btn-default.active, fieldset[disabled] .btn-default.focus, fieldset[disabled] .btn-default:active, fieldset[disabled] .btn-default:focus, fieldset[disabled] .btn-default:hover, .btn.dropdown-toggle.btn-default, #popover .mini_profile_pic,.navbar-default .navbar-nav > li > a.btn-default, .navbar-default .navbar-nav > li > span.btn-default,.mobile-main-menu .sidebar-nav li a.btn-default, .mobile-main-menu .sidebar-nav li span.btn-default {
  764.            background-color: rgba(238, 238, 238,0.95);
  765.        border-color: rgb(238, 238, 238);
  766.        color: rgb(85, 85, 85);
  767.    }
  768.    .btn-default:hover, .btn-default:focus, .btn-default:active,.btn-default:active:focus, .btn-default:active:hover,.tags a:hover, .nav > li > a.btn-default:focus, .nav > li > a.btn-default:hover,.btn-default.active,.open > .dropdown-toggle.btn-default, .btn-default.active.focus, .btn-default.active:focus, .btn-default.active:hover, .btn-default:active.focus, .open>.dropdown-toggle.btn-default:hover, .open>.dropdown-toggle.btn-default:focus, .open>.dropdown-toggle.btn-default.focus,a.bg-default:focus,a.bg-default:hover, .panel-default .panel-heading, .member_accounts .panel-default > .panel-heading, .panel-default.categories-panel .panel-heading, .btn.dropdown-toggle.btn-default:hover, #popover .mini_profile_pic {
  769.        background-color: rgb(238, 238, 238);
  770.        border-color: rgb(238, 238, 238);
  771.        color: rgb(85, 85, 85);
  772.    }
  773.    .sidemenu_panel .panel-default .panel_heading {
  774.        background-color: rgb(238, 238, 238)!important;
  775.        border-color: rgb(238, 238, 238)!important;
  776.        color: rgb(85, 85, 85)!important;
  777.    }
  778.    .panel-default, .member_accounts .panel-default{
  779.            background-color: rgba(238, 238, 238,0.1);
  780.        border-color: rgb(238, 238, 238);
  781.    }
  782.    .bg-default,.progress-bar-default,.module p.bg-default,.label-default,.pricing_menu .title.bg-default {
  783.        background-color: rgb(238, 238, 238);
  784.        color: rgb(85, 85, 85);
  785.    }
  786.    .bg-default .badge {
  787.        background-color: rgb(85, 85, 85);
  788.        color: rgb(238, 238, 238);
  789.    }
  790.    .alert-default {
  791.            background-color:rgba(238, 238, 238,0.7);
  792.        border-color:rgba(238, 238, 238,0.7);
  793.            color: rgba(85, 85, 85,0.9);
  794.    }
  795.    .btn.dropdown-toggle.btn-default *, .btn-default a {
  796.        color: rgb(85, 85, 85);
  797.    }
  798.    .text-default{
  799.        color: rgb(238, 238, 238);
  800.    }
  801.    .btn-secondary, .btn.dropdown-toggle.btn-secondary,.navbar-default .navbar-nav > li > a.btn-secondary, .navbar-default .navbar-nav > li > span.btn-secondary,.mobile-main-menu .sidebar-nav li a.btn-secondary, .mobile-main-menu .sidebar-nav li span.btn-secondary {
  802.            background-color: rgba(41, 41, 41,0.95);
  803.        border: 1px solid rgb(41, 41, 41);
  804.        color: rgb(255, 255, 255);
  805.    }
  806.    .btn-secondary:hover, .btn-secondary:focus, .btn-secondary:active,.btn-secondary:active:focus, .btn-secondary:active:hover, .nav > li > a.btn-secondary:focus, .nav > li > a.btn-secondary:hover,.btn-secondary.active,.open > .dropdown-toggle.btn-secondary, .btn-secondary.active.focus, .btn-secondary.active:focus, .btn-secondary.active:hover, .btn-secondary:active.focus, .open>.dropdown-toggle.btn-secondary:hover, .open>.dropdown-toggle.btn-secondary:focus, .open>.dropdown-toggle.btn-secondary.focus,a.bg-secondary:focus,a.bg-secondary:hover,.btn.dropdown-toggle.btn-secondary:hover {
  807.        background-color: rgb(41, 41, 41);
  808.        border: 1px solid rgb(41, 41, 41);
  809.        color: rgb(255, 255, 255);
  810.    }
  811.    .bg-secondary,.progress-bar-secondary,.module p.bg-secondary,.module p.bg-secondary:not(.fr-box.fr-basic .fr-element p),.label-secondary,.pricing_menu .title.bg-secondary {
  812.        background-color: rgb(41, 41, 41);
  813.        color: rgb(255, 255, 255);
  814.    }
  815.    .bg-secondary .badge {
  816.        background-color:rgb(255, 255, 255);
  817.        color: rgb(41, 41, 41);
  818.    }
  819.    .alert-secondary {
  820.            background-color:rgba(41, 41, 41,0.7);
  821.        border-color:rgba(41, 41, 41,0.7);
  822.            color: rgba(255, 255, 255,0.9);
  823.    }
  824.    .btn.dropdown-toggle.btn-secondary *, .btn-secondary a {
  825.        color: rgb(255, 255, 255);
  826.    }
  827.    .text-secondary {
  828.        color: rgb(41, 41, 41);
  829.    }
  830.    .feature-post #post-content .alert-secondary.btn-block, .feature-search .img_section .alert-secondary.btn-block, .search_result .img_section  .alert-secondary {
  831.        background-color: rgba(41, 41, 41,0.2);
  832.    }
  833.  
  834.    /* Footer Newsletter Row */
  835.    .newsletter_row .alert {
  836.        color: rgb(255, 255, 255);
  837.    }
  838.    .newsletter_row {
  839.        background-color: rgb(52, 73, 94);
  840.        color: rgb(255, 255, 255);
  841.    }
  842.    .newsletter_row input[type="submit"],.newsletter_footer_button {
  843.            background-color: rgba(92, 184, 92,0.97);
  844.        color: rgb(255, 255, 255);
  845.        border-color: rgb(92, 184, 92);
  846.    }
  847.    .newsletter_row input[type="submit"]:hover,.newsletter_row input[type="submit"]:focus,.newsletter_footer_button:hover,.newsletter_footer_button:focus {
  848.        background-color: rgb(92, 184, 92);
  849.        color: rgb(255, 255, 255);
  850.    }
  851.    .newsletter_button_left {
  852.            border-right: 1px solid rgba(255, 255, 255,0.2);
  853.    }
  854.    .newsletter_button_right {
  855.        border-left: 1px solid rgba(255, 255, 255,0.2);
  856.    }
  857.    .newsletter_row small.help-block {
  858.        background: rgb(255, 255, 255);
  859.        margin-top: -5px;
  860.        float: left;
  861.        padding: 8px;
  862.        border-radius: 1px;
  863.        color: rgb(52, 73, 94);
  864.        text-transform: capitalize;
  865.    }
  866.    .newsletter_row .has-success .checkbox,.newsletter_row .has-error .checkbox{
  867.        color: rgb(255, 255, 255);
  868.    }
  869.    @media only screen and (max-width: 767px) {
  870.        .newsletter_button_right,.newsletter_button_left{
  871.            border: none;
  872.            margin: 5px 0;
  873.        }
  874.    }
  875.  
  876.    /* Font Sizes */
  877.  
  878.    .navbar-default .navbar-nav > li > a, .navbar-default .navbar-nav > li > span {
  879.        font-size: 16px;
  880.    }
  881.    .header .logo {
  882.        font-size: 33px;
  883.    }
  884.    .homepage_title h1, .homepage_settings h1 {
  885.        font-size: 54px;
  886.    }
  887.    .homepage_settings h2 {
  888.        font-size: 28px;
  889.    }
  890.  
  891.    .ui-rangeSlider-bar{
  892.        background: rgb(217, 83, 79)!important;
  893.    }
  894.  
  895.    
  896.    
  897.    @media only screen and (max-width: 1024px){
  898.        .modal {margin-top: 40px;}
  899.    }
  900.    @media only screen and (max-width: 768px){
  901.        .modal {margin-top: 60px;}
  902.    }
  903.  
  904.    /* Calendar Styles */
  905.  
  906.    #cal-slide-content {
  907.        color: rgb(85, 85, 85)!important;
  908.        background-color: rgb(238, 238, 238)!important;
  909.        -webkit-box-shadow: none!important;
  910.        box-shadow: none!important;
  911.    }
  912.    #cal-slide-content a.event-item {
  913.        color: rgb(85, 85, 85)!important;
  914.        font-weight:bold!important;
  915.    }
  916.    #cal-slide-content a.event-item small {
  917.        display: inline-block;
  918.    }
  919.    .cal-month-box, .cal-year-box, .cal-week-box {
  920.        border: 1px solid rgb(238, 238, 238)!important;
  921.    }
  922.    .cal-year-box .row-fluid, .cal-month-box .cal-row-fluid {
  923.        border-bottom: 1px solid rgb(238, 238, 238)!important;
  924.    }
  925.    .cal-year-box [class*="span"], .cal-month-box [class*="cal-cell"] {
  926.        border-right: 1px solid rgb(238, 238, 238)!important;
  927.    }
  928.    .cal-year-box .row-fluid, .cal-row-fluid, #cal-day-box .cal-day-hour:nth-child(odd) {
  929.        background-color: rgb(255, 255, 255)!important;
  930.    }
  931.    .cal-month-day span:not(.pull-right):not(.events-count-label):not(.events-label) {
  932.        color: rgb(85, 85, 85)!important;
  933.    }
  934.    .cal-day-today span[data-cal-date] {
  935.        color: rgb(41, 41, 41)!important;
  936.    }
  937.    .cal-year-box .row-fluid [class*="span"]:last-child, .cal-month-box .cal-row-fluid [class*="cal-cell"]:last-child {
  938.        border: 0!important;
  939.    }
  940.    .cal-row-head {
  941.        background: rgb(250, 250, 250)!important;
  942.    }
  943.    .day-highlight:hover, .day-highlight {
  944.        background-color: rgb(238, 238, 238)!important;
  945.    }
  946.    .cal-event-list .event.pull-left {
  947.        background-color: rgb(41, 41, 41)!important;
  948.        opacity: 0.4;
  949.        margin-top: 7px!important;
  950.    }
  951.    .cal-day-today {
  952.        background-color: rgb(238, 238, 238)!important;
  953.    }
  954.    #cal-day-tick {
  955.        border: 1px solid rgb(238, 238, 238)!important;
  956.        background-color: rgb(238, 238, 238)!important;
  957.    }
  958.    .cal-day-weekend span[data-cal-date]{
  959.        color: rgb(41, 41, 41)!important;
  960.    }
  961.        .rsDefault, .rsDefault .rsOverflow, .rsDefault .rsSlide, .rsDefault .rsVideoFrameHolder, .rsDefault .rsThumbs {
  962.        background: #151515!important;
  963.    }
  964.    
  965.    #first_container .favorite, #first_container .fa.favorite {
  966.        color: #aaa;
  967.        background: rgb(238, 238, 238);
  968.        border: 1px solid rgb(238, 238, 238);
  969.        white-space:nowrap!important;
  970.    }
  971.    #first_container .favorite span, #first_container .fa.favorite span {
  972.        font-family: 'Lato';
  973.        white-space:nowrap!important;
  974.    }
  975.    #first_container .favoriteActive:not(.favorite.comments-count-badge), #first_container .fa.favoriteActive:not(.favorite.comments-count-badge .fa) {
  976.        color: #ef4770;
  977.    }
  978.        #first_container .favorite::after, #first_container .fa.favorite::after {
  979.        font-family: 'Lato';
  980.        margin-left: 3px;
  981.    }
  982.    #first_container .favorite span, #first_container .fa.favorite span{
  983.        padding-left: 3px;
  984.        font-family: 'Lato';
  985.        font-size: 11px;
  986.    }
  987.    #first_container .favorite .bookmark-number, #first_container .fa.favorite .bookmark-number {
  988.        background: #aaa;
  989.        color:rgb(238, 238, 238);
  990.        padding: 0 5px;
  991.        border-radius: 100px;
  992.        display: inline-block;
  993.        font-weight:bold;
  994.    }
  995.    #first_container .favorite.favoriteActive .bookmark-number:not(.comments-count-badge .bookmark-number), #first_container .fa.favorite.favoriteActive .bookmark-number {
  996.        background: #ef4770;
  997.    }
  998.    
  999.    span.checkbox_value::after {
  1000.        content: ', ';
  1001.    }
  1002.  
  1003.    span.checkbox_value:last-child::after {
  1004.        content: '';
  1005.    }
  1006.    
  1007.    
  1008.    
  1009.  
  1010.    /*  Homepage Sections Background Color Logic */
  1011.  
  1012.    
  1013.    .homepage-section-1 {
  1014.        padding: 40px 0 40px;
  1015.    }
  1016.  
  1017.    
  1018.    .homepage-section-1 {
  1019.        background: rgb(52, 73, 94);
  1020.    }
  1021.  
  1022.    
  1023.    .homepage-section-2 {
  1024.        padding: 40px 0 40px;
  1025.    }
  1026.  
  1027.    
  1028.    .homepage-section-3 {
  1029.        padding: 40px 0 40px;
  1030.    }
  1031.  
  1032.    
  1033.    .homepage-section-4 {
  1034.        padding: 40px 0 40px;
  1035.    }
  1036.  
  1037.    
  1038.    .homepage-section-5 {
  1039.        padding: 40px 0 40px;
  1040.    }
  1041.  
  1042.    
  1043.    .homepage-section-6 {
  1044.        padding: 40px 0 40px;
  1045.    }
  1046.  
  1047.    
  1048.    .homepage-section-7 {
  1049.        padding: 40px 0 40px;
  1050.    }
  1051.  
  1052.    
  1053.    .homepage-section-8 {
  1054.        padding: 40px 0 40px;
  1055.    }
  1056.  
  1057.    
  1058.    .homepage-section-9 {
  1059.        padding: 40px 0 40px;
  1060.    }
  1061.  
  1062.    
  1063.    .homepage-section-10 {
  1064.        padding: 40px 0 40px;
  1065.    }
  1066.  
  1067.    
  1068.    .homepage-section-11 {
  1069.        padding: 40px 0 40px;
  1070.    }
  1071.  
  1072.    
  1073.    .homepage-section-12 {
  1074.        padding: 40px 0 40px;
  1075.    }
  1076.  
  1077.    
  1078.    .homepage-section-13 {
  1079.        padding: 40px 0 40px;
  1080.    }
  1081.  
  1082.    
  1083.    .homepage-section-14 {
  1084.        padding: 40px 0 40px;
  1085.    }
  1086.  
  1087.    
  1088.    .homepage-section-15 {
  1089.        padding: 40px 0 40px;
  1090.    }
  1091.  
  1092.    
  1093.    /* Additional Settings */
  1094.  
  1095.    
  1096.    /* Streaming Widgets Title Settings */
  1097.  
  1098.    .streaming-title {
  1099.        text-align: left;
  1100.        font-size: 30px;
  1101.            font-weight: 600;
  1102.                font-family: 'Open Sans';
  1103.            padding-bottom: 0px;
  1104.    }
  1105.  
  1106.        
  1107.    .homepage-join-module .module h2:first-of-type {
  1108.        color: rgb(0, 0, 0);
  1109.    }
  1110.  
  1111.    .homepage-join-module .module{
  1112.        background: rgb(255, 255, 255);
  1113.        border-color: rgb(255, 255, 255);
  1114.    }
  1115.  
  1116.    .homepage-about-module .module h2:first-of-type {
  1117.        color: rgb(0, 0, 0);
  1118.    }
  1119.  
  1120.    .homepage-about-module .module{
  1121.        background: rgb(255, 255, 255);
  1122.        border-color: rgb(255, 255, 255);
  1123.  
  1124.    }
  1125.  
  1126.    
  1127.    
  1128.    .img-circle, .img-circle img{
  1129.        border-radius:1000px!important;
  1130.    }
  1131.  
  1132.    .img-rounded img, img.fr-dib.img-rounded{
  1133.        border-radius: 6px!important;
  1134.    }
  1135.    
  1136.    /* Google Translate Module */
  1137.        .skiptranslate{font-size:0}
  1138.    .goog-te-gadget-simple{border:1px solid #ccc;border-radius:4px;box-shadow:0 1px 1px rgba(0,0,0,0.075) inset;color:#555}
  1139.    .skiptranslate.goog-te-gadget span,img.goog-te-gadget-icon{display:none!important}
  1140.    .goog-te-gadget .goog-te-combo{margin-bottom:-4px}
  1141.    .skiptranslate.goog-te-gadget select{border:1px solid #ddd;border-radius:3px;font-size:12px;padding:2px 4px;width:100%;background:#fff;margin:0;height:30px;line-height:30px;display:block;color:#555;box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}
  1142.    @media only screen and (max-width: 1100px) {
  1143.        .skiptranslate:not(.skiptranslate[style="display: none;"]){height:39px}
  1144.        .skiptranslate:not(.skiptranslate[style="display: none;"]) ~ .header{margin-top:10px!important}
  1145.        .skiptranslate:not(.skiptranslate[style="display: none;"]) ~ .announcement-bar{margin-top:10px}
  1146.        .skiptranslate:not(.skiptranslate[style="display: none;"]) ~ .announcement-bar ~ .header{margin-top:0!important}
  1147.        .skiptranslate:not(.skiptranslate[style="display: none;"]) ~ .header .mobile-main-menu{top:89px!important;height:calc(100% - 90px)!important}
  1148.        .skiptranslate:not(.skiptranslate[style="display: none;"]) ~ .header .navbar{top:39px}
  1149.        .skiptranslate:not(.skiptranslate[style="display: none;"]) ~ #first_container .member_sidebar.open{top: 89px;}
  1150.    }
  1151.    @media only screen and (max-width: 767px) {
  1152.        .skiptranslate:not(.skiptranslate[style="display: none;"]) ~ .announcement-bar.hidden-xs ~ .header{margin-top:10px!important}
  1153.    }
  1154.  
  1155. </style>
  1156.  
  1157. <!--GOOGLE TAG MANAGER CODE-->    <!-- ON-PAGE CSS FUNCTIONS -->
  1158.    <style type="text/css">
  1159.        .homepage_settings h2 {text-align:center!important}
  1160. .header .logo .slogan {font-family: 'Lato';font-weight: 300;}    </style>
  1161.    <div class="header">
  1162.            <div class="container">
  1163. <div class="row vmargin">
  1164. <div id="website_logo" class="col-md-5 tpad xs-nopad xs-hpad sm-text-center xs-bmargin header-left-container">
  1165. <a href="https://www.adlocalpages.com" title="Ad Local Pages">
  1166. <img width="254" height="70" src="/images/adlocal-secondary-logo.png" alt="Ad Local Pages">
  1167. </a>
  1168. <div class="clearfix"></div>
  1169. </div>
  1170. <style type='text/css'> body input.tt-hint,body input.form-control.normal-autosuggest-input.tt-query {
  1171.   background-color: white !important;
  1172. }
  1173. .input-group-sm .input-group-addon .fa {
  1174.    font-size: 15px;
  1175. } </style><div class="col-md-7 text-right sm-text-center header-right-container nolpad xs-hpad">
  1176.            <ul class="mini-nav nobmargin list-inline xs-nopad xs-tmargin vpad">
  1177.            <li class=''><span id='link241'  class='hide'> 866-882-3562</span></li><li class='bmargin'><a href='/about/contact' id='link209'  class='hpad bmargin hide'>Contact Us</a></li><li class='bmargin'><a href='/login' id='link208'  class='rpad bmargin'>Member Login</a></li><li class='bmargin norpad'><a href='/join' id='link210'  class='btn btn_get_listed bold'>List Your Business</a></li>        </ul>
  1178.            <div class="clearfix"></div>
  1179.                <form action="/search_results" name="frm1" class="form-inline website-search">
  1180.                                    <div class="input-group input-group-sm bmargin sm-autosuggest">
  1181.                        <span class="input-group-addon hidden-md"><i class="fa fa-search"></i></span>
  1182.                        <input type="text"
  1183.                               placeholder="Name or Keyword" value="" name="q"
  1184.                               class="member_search form-control input-sm" autocomplete="off">
  1185.                    </div>
  1186.                                        <div class="input-group input-group-sm bmargin">
  1187.                        <span class="input-group-addon hidden-md"><i class="fa fa-location-arrow"></i></span>
  1188.                        <input type="text" placeholder="City or Post Code"
  1189.                               value="" id="location_google_maps_header" name="location_value"
  1190.                               class="googleSuggest googleLocation form-control">
  1191.                    </div>
  1192.                                    <input type="submit" value="Search" class="btn btn-sm btn_search bmargin xs-btn-block bold">
  1193.            </form>
  1194.            </div>
  1195.            </div>
  1196.        </div>
  1197.        <style type='text/css'> .mobile-main-menu .hasChildren span a {
  1198.    padding: 0px;
  1199. }
  1200.  
  1201. .user_sidebar > img {
  1202. width: 32px;
  1203. height: 32px;
  1204. position: absolute;
  1205. z-index: 10;
  1206. border-radius: 100px;
  1207. top: -1px;
  1208. object-fit: cover;
  1209. left: -10px;
  1210. background: rgb(238, 238, 238);
  1211. }
  1212. #member_sidebar_toggle img+.fa {
  1213.    display: none;
  1214. }
  1215. .main_menu, .user_sidebar {
  1216. padding: 5px 8px;
  1217. margin-right:0;
  1218. min-height: 33.0333px;
  1219. min-width: 38.116px;
  1220. }
  1221. .main_menu i, .user_sidebar i {
  1222.    font-size: 16px;
  1223. }
  1224. .navbar-nav li {
  1225.    float: none!Important;
  1226. }
  1227. .navbar-default{
  1228.    -webkit-transition: all .6s ease-in-out;
  1229.    -moz-transition: all .6s ease-in-out;
  1230.    -o-transition: all .6s ease-in-out;
  1231.    transition: all .6s ease-in-out;
  1232. }
  1233. .transparent_menu {
  1234. background-color: rgba(52, 73, 94,0.95)!important;
  1235. }
  1236. @media only screen and (max-width: 991px) {
  1237. #popover {display: none}
  1238. }
  1239. @media only screen and (max-width: 1100px){
  1240.    .mobile-main-menu{display:block!important}
  1241.    .navbar-toggle {display: block}
  1242.    #bs-main_menu .nav {display: none!important}
  1243. }
  1244. .mobile-main-menu {
  1245.    position: fixed;
  1246.    height: calc(100% - 50px)!important;
  1247.    width: 250px;
  1248.    background: rgb(52, 73, 94);
  1249.    z-index: 99999;
  1250.    right: -250px;
  1251.    top: 50px;
  1252.    display: none;
  1253.    -webkit-transition: all .6s ease-in-out;
  1254.    -moz-transition: all .6s ease-in-out;
  1255.    -o-transition: all .6s ease-in-out;
  1256.    transition: all .6s ease-in-out;
  1257.    overflow-y: auto!important;
  1258.    overflow-x: hidden!important;
  1259. }
  1260. .mobile-main-menu ul li i {
  1261.    color: rgb(255, 255, 255);
  1262.    cursor: pointer;
  1263.    float: right;
  1264.    padding: 13px;
  1265. }
  1266.  
  1267. .mobile-main-menu.opened{
  1268.    right: 0px!important;
  1269. }
  1270.  
  1271. .mobile-main-menu ul li a, .mobile-main-menu ul li span {
  1272.    display: inline-block;
  1273.    float: left;
  1274.    -webkit-touch-callout: none;
  1275.    -webkit-user-select: none;
  1276.    -khtml-user-select: none;
  1277.    -moz-user-select: none;
  1278.    -ms-user-select: none;
  1279.    user-select: none;
  1280.    padding: 10px 0px;
  1281.    width: 80%;
  1282.    width: calc(100% - 40px);
  1283. }
  1284. .mobile-main-menu .sidebar-nav li ul {
  1285.    height: 0px;
  1286.    overflow: hidden;
  1287.    list-style: none;
  1288.    color: rgb(255, 255, 255);
  1289.    padding-left: 10px;
  1290. }
  1291. .mobile-main-menu .sidebar-nav li.sub_open > ul{
  1292.    height: 100%;
  1293. }
  1294. .mobile-main-menu ul.sidebar-nav {
  1295.    position: absolute;
  1296.    width: 250px;
  1297.    margin: 0;
  1298.    padding: 0;
  1299.    list-style: none;
  1300.    font-size: 14px;
  1301. }
  1302. .mobile-main-menu .sidebar-nav > li {
  1303.    display: block;
  1304.    line-height: 20px;
  1305.    padding: 0 15px 0 20px;
  1306. }
  1307. .mobile-main-menu .sidebar-nav li a, .mobile-main-menu .sidebar-nav li span {
  1308.    text-decoration: none;
  1309.    color: rgb(255, 255, 255);
  1310. padding-left:10px;
  1311. }
  1312. .mobile-main-menu .sidebar-nav li a i, .mobile-main-menu .sidebar-nav li span i {
  1313.    display: none;
  1314. } </style><div class="mobile-main-menu">
  1315. <ul class="sidebar-nav">
  1316. <li class=''><a href='/home' id='link1'>Home</a></li><li class=''><a href='/about' id='link189'>How It Works</a></li><li class=''><a href='/search_results' id='link229'>Find Professionals</a><ul><li class=''><a href='/automotive' id='link298'>Automotive</a></li><li class=''><a href='/business-to-business-b2b' id='link299'>Business to Business (B2B)</a></li><li class=''><a href='/financial' id='link300'>Financial</a></li><li class=''><a href='/health-and-beauty' id='link301'>Health & Beauty</a></li><li class=''><a href='/home-services' id='link302'>Home Services</a></li><li class=''><a href='/legal' id='link303'>Legal</a></li><li class=''><a href='/medical' id='link304'>Medical</a></li><li class=''><a href='/real-estate' id='link305'>Real Estate</a></li><li class=''><a href='/specialty' id='link306'>Specialty</a></li><li class=''><a href='/technology-and-manufacturing' id='link307'>Technology & Manufacturing</a></li></ul></li><li class=''><a href='/blog' id='link227'>Blog</a></li><li class='btn-warning'><a href='/getmatched' id='link228'  class='bold'>Get Free Quotes</a></li> </ul>
  1317. </div>
  1318. <nav class="navbar navbar-default lockedonscroll">
  1319.    <div class="container container-fluid">
  1320.  
  1321.      <div class="navbar-header">
  1322.        <button type="button" class="navbar-toggle collapsed main_menu" data-toggle="collapse" aria-label="main_menu">
  1323. <i class="fa fa-bars fa-fw"></i>
  1324.        </button>
  1325.  
  1326.        
  1327.      </div>
  1328.  
  1329.      <div class="tablet-menu collapse navbar-collapse nopad" id="bs-main_menu">
  1330.        <ul class="tablet-menu-ul nav navbar-nav nav-justified">
  1331.          <li class=''><a href='/home' id='link1'>Home</a></li><li class=''><a href='/about' id='link189'>How It Works</a></li><li class=''><a href='/search_results' id='link229'>Find Professionals</a><ul><li class=''><a href='/automotive' id='link298'>Automotive</a></li><li class=''><a href='/business-to-business-b2b' id='link299'>Business to Business (B2B)</a></li><li class=''><a href='/financial' id='link300'>Financial</a></li><li class=''><a href='/health-and-beauty' id='link301'>Health & Beauty</a></li><li class=''><a href='/home-services' id='link302'>Home Services</a></li><li class=''><a href='/legal' id='link303'>Legal</a></li><li class=''><a href='/medical' id='link304'>Medical</a></li><li class=''><a href='/real-estate' id='link305'>Real Estate</a></li><li class=''><a href='/specialty' id='link306'>Specialty</a></li><li class=''><a href='/technology-and-manufacturing' id='link307'>Technology & Manufacturing</a></li></ul></li><li class=''><a href='/blog' id='link227'>Blog</a></li><li class='btn-warning'><a href='/getmatched' id='link228'  class='bold'>Get Free Quotes</a></li>        </ul>
  1332.      </div>
  1333.    </div>
  1334. </nav>
  1335. <!--CSS IF MENU IS FIXED TOP-->
  1336.  
  1337. </div>
  1338. <!--
  1339.  
  1340. IMPORTANT: This widget contains real Adsense code as a sample to show how this widget functions.  Please replace the current Adsense code below with your own code in order to generate revenue from this ad space.
  1341.  
  1342. -->
  1343. <div class="container clearfix text-center banner-ad-unit above-content-banner-ad">
  1344. <div class="clearfix vmargin banner-ad-unit">
  1345. <a class="center-block text-center" href="https://www.trademarkpropertysolutions.com" target="_blank">
  1346. <img width="970" height="90" loading="lazy" alt="Banner Ad" src="/images/TRADEMARKPROPERTYSOLUTIONS.COM970x90banner.png">
  1347. </a>
  1348. </div>
  1349. <div class="clearfix"></div>
  1350. </div>
  1351. <div class="clearfix"></div><div class="clearfix"></div>
  1352. <!-- Begin  Content -->
  1353. <div id="first_container" class="content-container fr-view">
  1354.        <div class="container">
  1355.                <ol class='breadcrumb' itemscope itemtype='https://schema.org/BreadcrumbList'><li itemprop='itemListElement' itemscope itemtype='https://schema.org/ListItem'><a itemtype='https://schema.org/Thing' itemprop='item' href='//www.adlocalpages.com' title='Ad Local Pages'><span itemprop='name'>Home</span><meta itemprop='position' content='1' /></a></li><li itemprop='itemListElement' itemscope itemtype='https://schema.org/ListItem'><a itemtype='https://schema.org/Thing' itemprop='item' href='/united-states' title='United States'><span itemprop='name'>United States</span><meta itemprop='position' content='2' /></a></li><li itemprop='itemListElement' itemscope itemtype='https://schema.org/ListItem'><a itemtype='https://schema.org/Thing' itemprop='item' href='/united-states/yorba-linda' title='Yorba Linda'><span itemprop='name'>Yorba Linda</span><meta itemprop='position' content='4' /></a></li><li itemprop='itemListElement' itemscope itemtype='https://schema.org/ListItem'><a itemtype='https://schema.org/Thing' itemprop='item' href='/united-states/yorba-linda/automotive' title='Automotive'><span itemprop='name'>Automotive</span><meta itemprop='position' content='6' /></a></li><li class='active'>OCRV Center - RV Collision Repair Shop & Paint Shop</li></ol>        <div class="clearfix body-content"></div>
  1356.        <style type='text/css'> a.btn.btn-warning.pull-right.bmargin.xs-nomargin {
  1357. position: relative;
  1358. z-index: 999;
  1359. } </style>
  1360. <div class="row content_w_sidebar member_profile level_3">
  1361.  
  1362.    <div class='col-md-9'><style type='text/css'> @media only screen and (max-width: 767px) {
  1363. .profile-header-write-review {
  1364. margin-top: 10px !important;
  1365. }
  1366. }
  1367. </style>
  1368. <div class="row member-profile-header">
  1369.    <div class="col-xs-12 col-sm-2 norpad text-center xs-nopad xs-bmargin profile-image">
  1370.            <a href="/united-states/yorba-linda/automotive/ocrv-center-rv-collision-repair-shop-paint-shop/connect" title="Contact Business Owners OCRV Center - RV Collision Repair Shop & Paint Shop">
  1371.                <img width="162" height="216" class="img-rounded" src="/pictures/profile/pimage-21423-355-photo.jpg" alt="Business Owners OCRV Center - RV Collision Repair Shop & Paint Shop in Yorba Linda CA" title="Contact OCRV Center - RV Collision Repair Shop & Paint Shop">
  1372.            </a>
  1373.            </div>
  1374.    <div class="xs-text-center col-xs-12 col-sm-9">
  1375.        <div class="row">
  1376.            <div class="col-sm-10 norpad xs-hpad">
  1377.                <h1 class="bold inline-block">
  1378.                    OCRV Center - RV Collision Repair Shop & Paint Shop                </h1>
  1379. </div>
  1380. <div class='col-sm-2 text-right nolpad bmargin xs-nopad xs-text-center'></div>        </div>
  1381.        <div class="row">
  1382.            <div class="col-sm-6 tmargin xs-nomargin">
  1383.                <p class="line-height-xl nomargin">
  1384.                    <span class='profile-header-top-category '>Automotive<br /></span><span class=profile-header-location><i class="fa fa-map-marker text-danger"></i> Yorba Linda, California, 92887</span>                </p>
  1385.            </div>
  1386.  
  1387.                            <div class="clearfix"></div>
  1388.            
  1389.  
  1390.                            <div class="col-sm-6 tmargin profile-header-send-message">
  1391.                    <a class="btn btn-success btn-block btn-lg" title="Contact OCRV Center - RV Collision Repair Shop & Paint Shop" href="/united-states/yorba-linda/automotive/ocrv-center-rv-collision-repair-shop-paint-shop/connect">
  1392.                                            Request Free Quote
  1393.                                        </a>
  1394.                </div>
  1395.            
  1396.            
  1397.            
  1398.            
  1399.        </div>
  1400.    </div>
  1401.            <div class="hidden-xs col-sm-1 nolpad member-badges">
  1402.             <a href="#" data-original-title="Verified Member" id="popoverData" rel="popover" data-placement="left" data-trigger="hover" class="member_popover fpad-sm btn btn-default btn-block hidden-xs" data-content="This member verified their information">
  1403. <img width="200" height="161" loading="lazy" alt="Verified Member" src="/images/memberbadge.png">
  1404.    </a>
  1405.  
  1406. <script type="text/javascript">
  1407. $(document).ready(function(){
  1408. $('.member_popover').popover({
  1409. container: 'body'
  1410. });
  1411. });
  1412. </script>        </div>
  1413.    </div>
  1414. <div class="clearfix"></div>        <div class="clearfix"></div>
  1415.            
  1416.                
  1417.            
  1418. <div class="well  tmargin  bmargin fpad make-connection">
  1419. <span class="h3 nobmargin">
  1420. <i class="fa fa-comments-o fa-fw" aria-hidden="true"></i>
  1421. </span>
  1422. <b>MAKE A CONNECTION</b>
  1423. OCRV Center - RV Collision Repair Shop & Paint Shop
  1424. is accepting messages:
  1425. <a class="inline-block" href="/united-states/yorba-linda/automotive/ocrv-center-rv-collision-repair-shop-paint-shop/connect">
  1426. Request Free Quote
  1427. </a>
  1428. </div>
  1429. <div class="clearfix"></div><div role="tabpanel"
  1430.     class="tmargin  member-profile-tabs ">
  1431.                        <ul class="nav nav-tabs fpad nobpad profile-tabs-nav" role="tablist" aria-label="Profile Tabs">
  1432.                                            <li class="active hideMyTab" role="presentation">
  1433.                                <a href="#div1" rel=" nofollow" aria-controls="t1" aria-label="Overview" role="tab" data-toggle="tab" aria-selected="false">
  1434.                                    Overview                                                                                                        </a>
  1435.                            </li>
  1436.                            <style>.hideMyTab{ display:none !important;}.profile-tabs-nav{height: 1px;padding:0;}</style>            </ul>
  1437.                            <div class="tab-content">
  1438.                
  1439.                                <div id="div1" role="tabpanel" aria-labelledby="t1 div1"
  1440.                                     class="tab-pane active">
  1441.                                    <style type='text/css'> ul.table-view.list-inline.xs-center-block > h2.tmargin.tpad.xs-text-center.xs-center-block.clearfix:last-child {
  1442. display:none;
  1443. } </style>        <div id="map-canvas"></div>
  1444.        <div class="clearfix"></div>
  1445.                    <a class="pull-right btn-sm map-link get-directions-link" rel="nofollow" target="_blank" href="https://maps.google.com/maps?daddr=23281+La+Palma+Ave++Yorba+Linda+California+92887+United+States" title="Click for Directions">
  1446.                Get Directions <i class="fa fa-external-link" aria-hidden="true"></i>
  1447.            </a>
  1448.                            <a class="pull-right btn-sm map-link larger-map-link" href="#" target="_blank" data-target="#locationModal" data-toggle="modal" title="View On Larger Map">
  1449.                View On Larger Map
  1450.            </a>
  1451.                <div class="clearfix"></div>
  1452.                                <div class="table-view list-inline xs-center-block bmargin">
  1453.                                                <div class="clearfix"></div>
  1454.                                <h2 class="tmargin tpad xs-center-block clearfix">
  1455.                                    Contact Information                                </h2>
  1456.                                                                                    <div class="table-view-group clearfix">
  1457.                                        <div class="col-sm-4 bold">
  1458.                                            Company Name                                        </div>
  1459.                                        <div class="col-sm-8">
  1460.                                            <span class="textbox textbox-company">OCRV Center - RV Collision Repair Shop & Paint Shop</span>                                        </div>
  1461.                                    </div>
  1462.                                                                                <tr>
  1463.                            <th colspan="2">
  1464.                                                            </th>
  1465.                        </tr>
  1466.                                            <tr>
  1467.                            <th colspan="2">
  1468.                                                            </th>
  1469.                        </tr>
  1470.                                            <tr>
  1471.                            <th colspan="2">
  1472.                                                            </th>
  1473.                        </tr>
  1474.                                            <tr>
  1475.                            <th colspan="2">
  1476.                                    <div class="table-view-group clearfix">      
  1477.        <div class="col-sm-4 bold">
  1478.            Location
  1479.        </div>
  1480.        <div class="col-sm-8">
  1481.            <span>23281 La Palma Ave</span><br><span>Yorba Linda</span>, <span>California</span>, <span>92887</span><br>United States        </div>
  1482.    </div>
  1483. <!-- SCHEMA FOR LOCALBUSINESS -->
  1484. <div itemscope itemtype="http://schema.org/LocalBusiness">
  1485. <meta itemprop="name" content="OCRV Center - RV Collision Repair Shop & Paint Shop">
  1486. <meta itemprop="priceRange" content="$$">
  1487. <meta itemprop="telePhone" content="714-909-1444">
  1488. <meta itemprop="url" content="https://www.adlocalpages.com/united-states/yorba-linda/automotive/ocrv-center-rv-collision-repair-shop-paint-shop">
  1489. <meta itemprop="image" content="https://www.adlocalpages.com">
  1490. <div itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
  1491. <meta itemprop="streetAddress" content="23281 La Palma Ave">
  1492. <meta itemprop="addressLocality" content="Yorba Linda">
  1493. <meta itemprop="addressRegion" content="92887">
  1494. <meta itemprop="addressCountry" content="United States of America">
  1495. </div>
  1496. <div itemprop="geo" itemscope itemtype="http://schema.org/GeoCoordinates">
  1497. <meta itemprop="latitude" content="33.8746366">
  1498. <meta itemprop="longitude" content="-117.7288155">
  1499. </div>
  1500. </div>
  1501.                            </th>
  1502.                        </tr>
  1503.                    
  1504.                            </div>
  1505.            
  1506.                                                    <div class="table-view list-inline xs-center-block bmargin">
  1507.                                                <div class="clearfix"></div>
  1508.                                <h2 class="tmargin tpad xs-center-block clearfix">
  1509.                                    Company Details                                </h2>
  1510.                                                                                    <div class="table-view-group clearfix">
  1511.                                        <div class="col-sm-4 bold">
  1512.                                            Hours of Operation                                        </div>
  1513.                                        <div class="col-sm-8">
  1514.                                            <span class="textarea textarea-rep_matters">8AM-5PM</span>                                        </div>
  1515.                                    </div>
  1516.                                                        
  1517.                            </div>
  1518.            
  1519.                    <div class="overview-tab-about-me"><h2 class="tmargin tpad xs-center-block clearfix about-member-blurb">About OCRV Center - RV Collision Repair Shop & Paint Shop</h2><div class="clearfix"></div><p style='margin-top:0in;margin-right:0in;margin-bottom:8.0pt;margin-left:0in;line-height:107%;font-size:15px;font-family:"Calibri",sans-serif;'>OCRV Center&#39;s Mission is to provide appreciative solutions to all in need of RV Collision Repair, Paint, Body, Interior, Upgrades &amp; Solar at a single Commercial Collision Repair Facility in Southern California!</p><p style='margin-top:0in;margin-right:0in;margin-bottom:8.0pt;margin-left:0in;line-height:107%;font-size:15px;font-family:"Calibri",sans-serif;'>Websites URL:</p><p style='margin-top:0in;margin-right:0in;margin-bottom:8.0pt;margin-left:0in;line-height:107%;font-size:15px;font-family:"Calibri",sans-serif;'><a rel="nofollow" href="https://ocrvcenter.com">https://ocrvcenter.com</a></p><p style='margin-top:0in;margin-right:0in;margin-bottom:8.0pt;margin-left:0in;line-height:107%;font-size:15px;font-family:"Calibri",sans-serif;'><br></p><p style='margin-top:0in;margin-right:0in;margin-bottom:8.0pt;margin-left:0in;line-height:107%;font-size:15px;font-family:"Calibri",sans-serif;'>Phone:</p><p style='margin-top:0in;margin-right:0in;margin-bottom:8.0pt;margin-left:0in;line-height:107%;font-size:15px;font-family:"Calibri",sans-serif;'>714-909-1444</p><div class="clearfix"></div>                    <div class="table-view list-inline xs-center-block bmargin">
  1520.                                                <div class="clearfix"></div>
  1521.                                <h2 class="tmargin tpad xs-center-block clearfix">
  1522.                                    Write About You And Your Company                                </h2>
  1523.                                                                        <tr>
  1524.                            <th colspan="2">
  1525.                                <div class="clearfix"></div>                            </th>
  1526.                        </tr>
  1527.                    
  1528.                            </div>
  1529.            
  1530.            <div class="clearfix"></div></div>    <div class="clearfix"></div>  <style>
  1531.   #map-canvas {
  1532.   height: 200px;
  1533.   width: 100%;
  1534.   margin: 0px;
  1535.   padding: 0px;
  1536.   border-radius:5px;
  1537.   overflow:hidden;
  1538.   }
  1539.  </style>
  1540.  <script>
  1541.  $(document).ready(function(){
  1542.      var map,map2;
  1543.      function initialize() {
  1544.                var styles = [{"featureType":"landscape","stylers":[{"hue":"#FFBB00"},{"saturation":43.400000000000006},{"lightness":37.599999999999994},{"gamma":1}]},{"featureType":"road.highway","stylers":[{"hue":"#FFC200"},{"saturation":-61.8},{"lightness":45.599999999999994},{"gamma":1}]},{"featureType":"road.arterial","stylers":[{"hue":"#FF0300"},{"saturation":-100},{"lightness":51.19999999999999},{"gamma":1}]},{"featureType":"road.local","stylers":[{"hue":"#FF0300"},{"saturation":-100},{"lightness":52},{"gamma":1}]},{"featureType":"water","stylers":[{"hue":"#0078FF"},{"saturation":-13.200000000000003},{"lightness":2.4000000000000057},{"gamma":1}]},{"featureType":"poi","stylers":[{"hue":"#00FF6A"},{"saturation":-1.0989010989011234},{"lightness":11.200000000000017},{"gamma":1}]}];
  1545.               var styledMap = new google.maps.StyledMapType(styles,{name: "Styled Map"});
  1546.                var myLatlng = new google.maps.LatLng(parseFloat(33.8746366),parseFloat(-117.7288155));
  1547.        var iconImage = '/images/pin_drop.png';
  1548.        var mapOptions = {
  1549.          zoom: 15,
  1550.          center: myLatlng,
  1551.          scrollwheel: false
  1552.        }
  1553.        map = new google.maps.Map(document.getElementById('map-canvas'), mapOptions);
  1554.        map2 = new google.maps.Map(document.getElementById('map-canvas2'), mapOptions);
  1555.                    map.mapTypes.set('map_style', styledMap);
  1556.            map.setMapTypeId('map_style');
  1557.            map2.mapTypes.set('map_style', styledMap);
  1558.            map2.setMapTypeId('map_style');
  1559.                var marker = new google.maps.Marker({
  1560.        position: myLatlng,
  1561.        map: map,
  1562.        icon: iconImage
  1563.        });
  1564.        var marker2 = new google.maps.Marker({
  1565.        position: myLatlng,
  1566.        map: map2,
  1567.        icon: iconImage
  1568.        });
  1569.      }
  1570.      google.maps.event.addDomListener(window, 'load', initialize);
  1571.      $('#locationModal').on('shown.bs.modal', function() {
  1572.      var currentCenter = map2.getCenter();
  1573.      google.maps.event.trigger(map2, "resize");
  1574.      map2.setCenter(currentCenter);
  1575.    });
  1576.  });
  1577.  </script>
  1578.  <style type='text/css'> #map-canvas2 {
  1579.    height: 100%;
  1580.    margin-bottom: 5px;
  1581.    width: 100%;
  1582. } </style><div class="modal fade" id="locationModal" tabindex="-1" role="dialog" aria-labelledby="locationModal" aria-hidden="true">
  1583. <div class="modal-dialog modal-lg">
  1584. <div class="modal-content">
  1585. <div class="modal-header">
  1586. <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  1587. <h4 class="modal-title">Map View</h4>
  1588. </div>
  1589.            <div class="modal-body" style="height: 350px;">
  1590. <div id="map-canvas2"></div>
  1591. </div>
  1592.            <div class="modal-footer">
  1593. <a rel="nofollow" href="https://maps.google.com/maps?daddr=23281+La+Palma+Ave++Yorba+Linda+California+92887+United+States" type="button" rel="nofollow" target="_blank" class="btn btn-primary member-directions">Get Directions</a>
  1594. <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
  1595. </div>
  1596. </div>
  1597. </div>
  1598. </div>                                </div>
  1599.                             <div class="clearfix"></div>
  1600.            </div>
  1601.            </div>
  1602.    </div>
  1603.    <div class="col-sm-12 col-md-3 sidebar-section">        <section id='id' class=''><style type='text/css'> #captchaContainer {
  1604. transform:scale(0.77);
  1605. -webkit-transform:scale(0.77);
  1606. transform-origin:0 0;
  1607. -webkit-transform-origin:0 0;
  1608. } </style>        <div class="module">
  1609.            <style type="text/css">label span.required { color: #B94A48; }span.help-inline, span.help-block {font-size: .9em; }</style><form action="/api/widget/json/get/Bootstrap%20Theme%20-%20Function%20-%20Save%20Form" id="myform" method="post" labelwidth="100" labelpaddingtop="0.5em" enctype="multipart/form-data" form_action_type="widget" form_action_div return_data_type="" name="bootstrap_get_match" class=" "><input type="hidden" name="sized" value="0" id="myform-element-0"/><input type="hidden" name="mysql_real_escape_string_runned" value="1" id="myform-element-1"/><input type="hidden" name="usertokenid" value="21423" id="myform-element-2"/><input type="hidden" name="saveinfo" value="1" id="myform-element-3"/><input type="hidden" name="vals" value="1|2" id="myform-element-4"/><input type="hidden" name="answerqmatch" value="3" id="myform-element-5"/><input type="hidden" name="form_source" value="%2Funited-states%2Fyorba-linda%2Fautomotive%2Focrv-center-rv-collision-repair-shop-paint-shop" id="myform-element-6"/><input type="hidden" name="form" value="myform" id="myform-element-7"/><input type="hidden" name="formname" value="bootstrap_get_match" id="myform-element-8"/><input type="hidden" name="dowiz" value="1" id="myform-element-9"/><input type="hidden" name="save" value="1" id="myform-element-10"/><input type="hidden" name="url_origin_pars" value="/united-states/yorba-linda/automotive/ocrv-center-rv-collision-repair-shop-paint-shop" id="myform-element-11"/>    <style>
  1610.        form[action="/api/widget/json/get/Bootstrap%20Theme%20-%20Function%20-%20Save%20Form"] .form-group .checkbox label, form[action="/api/widget/json/get/Bootstrap%20Theme%20-%20Function%20-%20Save%20Form"] .form-group .radio label, form[action="/api/widget/json/get/Bootstrap%20Theme%20-%20Function%20-%20Save%20Form"] .form-group label.checkbox, form[action="/api/widget/json/get/Bootstrap%20Theme%20-%20Function%20-%20Save%20Form"] .form-group label.radio{
  1611.            display: inline-block;
  1612.            margin-right: 15px;
  1613.        }
  1614.        form[action="/api/widget/json/get/Bootstrap%20Theme%20-%20Function%20-%20Save%20Form"] .form-group label {
  1615.            display: none;
  1616.        }
  1617. form[action="/api/widget/json/get/Bootstrap%20Theme%20-%20Function%20-%20Save%20Form"] .form-group label.btn{
  1618. display: block;
  1619. }
  1620.  
  1621.        form[action="/api/widget/json/get/Bootstrap%20Theme%20-%20Function%20-%20Save%20Form"] .form-group div.bootstrap-filestyle ,
  1622.        form[action="/api/widget/json/get/Bootstrap%20Theme%20-%20Function%20-%20Save%20Form"] .form-group div.bootstrap-filestyle label.btn{
  1623.            width: 100%;
  1624.        }
  1625.  
  1626.        form[action="/api/widget/json/get/Bootstrap%20Theme%20-%20Function%20-%20Save%20Form"] .form-group div.bootstrap-filestyle span.group-span-filestyle:nth-child(2)  {
  1627.            margin: 0px !important;
  1628.        }
  1629.  
  1630.        form[action="/api/widget/json/get/Bootstrap%20Theme%20-%20Function%20-%20Save%20Form"] .form-group div.bootstrap-filestyle span.group-span-filestyle:nth-child(2) label.btn  {
  1631.            margin-top: 10px;
  1632.        }
  1633.    </style>
  1634.    
  1635. <script>
  1636.    $(document).ready(function(){
  1637.        $('form[action="/api/widget/json/get/Bootstrap%20Theme%20-%20Function%20-%20Save%20Form"] input, form[action="/api/widget/json/get/Bootstrap%20Theme%20-%20Function%20-%20Save%20Form"] select').each(function(){
  1638.            if($(this).parents('.form-group').find('.required:hidden').length > 0){
  1639.  
  1640.                let placeholderAttr = $(this).attr('placeholder');
  1641.                let optionRequired = $(this).find('option[value=""]').html();
  1642.                                   if (typeof placeholderAttr !== 'undefined' && placeholderAttr.indexOf(`(Required)`) < 1) {
  1643.                        $(this).attr('placeholder', $(this).attr('placeholder') + ` (Required)`);
  1644.                    }
  1645.                
  1646.                if (typeof optionRequired !== 'undefined' && optionRequired.indexOf(`(Required)`) < 1) {
  1647.                    $(this).find('option[value=""]').html($(this).find('option[value=""]').html() + ` (Required)`);
  1648.                }
  1649.            }
  1650.        })
  1651.    })
  1652. </script> <h3 class="nomargin">
  1653. Request Free Quote
  1654. </h3>
  1655. <hr>
  1656. <div class="form-group"><label class="vertical-label bd-text" for="myform-element-14">Name</label><input type="text" name="lead_name" placeholder="Enter Name" autocomplete="off" value class="form-control control-group  form-control " id="myform-element-14"/></div><div class="form-group"><label class="vertical-label bd-email" for="myform-element-15"><span class="required">* </span>Email</label><input type="email" name="lead_email" required placeholder="Enter Email" autocomplete="off" value class="form-control control-group  form-control " id="myform-element-15"/></div><div class="form-group"><label class="vertical-label bd-text" for="myform-element-16">Phone Number</label><input type="text" name="lead_phone" placeholder="Enter Phone" autocomplete="off" value class="form-control control-group  form-control " id="myform-element-16"/></div><div class="form-group">
  1657. <label class="vertical-label" for="myform-element-1543">
  1658.     Preferred Reply Day
  1659. </label>
  1660. <select aria-label="Preferred Reply Day" name="lead_preferred_day" autocomplete="off" class="form-control control-group " id="myform-element-1543">
  1661. <option value="">Preferred Reply Day</option>
  1662. <option value="As soon as possible">As soon as possible</option>
  1663.                    <option value="Sunday">Sunday</option>
  1664.            <option value="Monday">Monday</option>
  1665.            <option value="Tuesday">Tuesday</option>
  1666.            <option value="Wednesday">Wednesday</option>
  1667.            <option value="Thursday">Thursday</option>
  1668.            <option value="Friday">Friday</option>
  1669.            <option value="Saturday">Saturday</option>
  1670.                
  1671.        ?>
  1672. </select>
  1673. </div>
  1674. <div class="form-group">
  1675.    <label class="vertical-label" for="myform-element-1654">
  1676.                Preferred Reply Time</label>
  1677.    <select aria-label="Preferred Reply Time" name="lead_preferred_time" autocomplete="off" class="form-control control-group " id="myform-element-1654">
  1678.        <option value="">Preferred Reply Time</option>
  1679.        <option value="As soon as possible">As soon as possible</option>
  1680.                    <option value="12:00 am">12:00 am</option>
  1681.            <option value="1:00 am">1:00 am</option>
  1682.            <option value="2:00 am">2:00 am</option>
  1683.            <option value="3:00 am">3:00 am</option>
  1684.            <option value="4:00 am">4:00 am</option>
  1685.            <option value="5:00 am">5:00 am</option>
  1686.            <option value="6:00 am">6:00 am</option>
  1687.            <option value="7:00 am">7:00 am</option>
  1688.            <option value="8:00 am">8:00 am</option>
  1689.            <option value="9:00 am">9:00 am</option>
  1690.            <option value="10:00 am">10:00 am</option>
  1691.            <option value="11:00 am">11:00 am</option>
  1692.            <option value="12:00 pm">12:00 pm</option>
  1693.            <option value="1:00 pm">1:00 pm</option>
  1694.            <option value="2:00 pm">2:00 pm</option>
  1695.            <option value="3:00  pm">3:00  pm</option>
  1696.            <option value="4:00 pm">4:00 pm</option>
  1697.            <option value="5:00 pm">5:00 pm</option>
  1698.            <option value="6:00 pm">6:00 pm</option>
  1699.            <option value="7:00 pm">7:00 pm</option>
  1700.            <option value="8:00 pm">8:00 pm</option>
  1701.            <option value="9:00 pm">9:00 pm</option>
  1702.            <option value="10:00 pm">10:00 pm</option>
  1703.            <option value="11:00 pm">11:00 pm</option>
  1704.                
  1705.    </select>
  1706. </div>
  1707. <style type='text/css'> #map-canvas-contact-sidebar {
  1708.    display: block;
  1709.    width: 100%;
  1710.    height: 250px;
  1711.    float: right;
  1712. }
  1713. label.fill-location-check {
  1714.  display: block;
  1715.  width: 100%;
  1716.  float: left;
  1717.  margin: 6px 0 6px 9%;
  1718. }
  1719. #myform .google-writen-location {
  1720.  float: right;
  1721. }
  1722.  
  1723. #map-canvas-contact-sidebar {
  1724.    border-radius: 4px;
  1725. }
  1726. .pac-container {    
  1727. z-index: 1551;
  1728. } </style>    <input type="hidden" name="utoken" value="21423">
  1729.            <span class="location_status" id="location_status" data-state="default"></span>
  1730.            <span class="location_required" id="location_required" data-state="1"></span>
  1731.            <div class="form-group" style="overflow: auto;">
  1732.            <label for="myform-element-8"><span class="required">* </span>Location</label>
  1733.            <input id="pac-input" required fv-notEmpty-message="Required Field" class="controls google-writen-location form-control " type="text" name="lead_location" placeholder="City or Post Code" autocomplete="off">
  1734.            <input type="hidden" name="lat" value="">
  1735.            <input type="hidden" name="lng" value="">
  1736.            <input type="hidden" name="swlat" value="">
  1737.            <input type="hidden" name="swlng" value="">
  1738.            <input type="hidden" name="nelat" value="">
  1739.            <input type="hidden" name="nelng" value="">
  1740.            <input type="hidden" name="location_type" value="">
  1741.            <input type="hidden" name="country_sn" value="">
  1742.            <input type="hidden" name="county_sn" value="">
  1743.            <input type="hidden" name="adm_lvl_1_sn" value="">
  1744.            <input type="hidden" name="city" value="">
  1745.            <input type="hidden" name="faddress" value="">
  1746.            <div id="map-canvas-contact-sidebar"></div>
  1747.            
  1748.  
  1749.        </div>
  1750.                <span id="cat-page-type" data-type="profile"
  1751.                  data-user="21423"></span>
  1752.                        <div class="form-group">
  1753.                <label for="top-id-select"><span class="required">* </span> Select Top Category</label>
  1754.                <select id="top-id-select" name="top_id"
  1755.                        class="form-control control-group select-category-chained"
  1756.                        data-nextselect="sub-id-select" required>
  1757.                                            <option value="">Select an Option</option>
  1758.                                                                <option  value="37">Automotive</option>
  1759.                                        </select>
  1760.            </div>
  1761.                                    <div class="form-group"><label class="vertical-label bd-" for="myform-element-21">Message</label><textarea rows="4" name="lead_message" placeholder="Write a message here..." autocomplete="off" class="form-control control-group form-control" id="myform-element-21"></textarea></div><input type="hidden" name="url_from" value="/united-states/yorba-linda/automotive/ocrv-center-rv-collision-repair-shop-paint-shop">
  1762. <input type="hidden" name="checkPageType" value="profile">
  1763. <div class="control-group form-group">
  1764. <label class="control-label" for="myform-element-10" style="display: inline-block;">Get Replies from more members</label>
  1765. <div class="controls">
  1766. <label class="radio-inline" style="display: inline-block;">
  1767. <input id="myform-element-10-0" type="radio" name="additional_replies" autocomplete="off" value="1" checked="checked"> Yes
  1768. </label>
  1769. <label class="radio-inline" style="display: inline-block;">
  1770. <input id="myform-element-10-1" type="radio" name="additional_replies" autocomplete="off" value="0"> No
  1771. </label>
  1772. </div>
  1773. </div>
  1774. <div class="form-group"><input type="hidden" name="bd_hpc" autocomplete="off" value class="form-control control-group " id="myform-element-26"/></div><div class="form-group"><div class="form-group security_question_label">
  1775.            <div id="myform-captchaContainer" class="control-group">
  1776.        <div class="g-recaptcha"  id="myform-google-recaptcha"></div>
  1777.    </div>
  1778.    <small class="help-block" id="recaptcha_error" style="display:none;" data-fv-validator="notEmpty" data-fv-for="recaptcha" data-fv-result="INVALID" />The security check was not completed successfully.</small>
  1779.    <div class="clearfix bmargin"></div>
  1780.    <input type="hidden" name="recaptcha" id="myform-rcap">
  1781. </div>
  1782.    <style>
  1783.        .modal .g-recaptcha-scale, .col-md-4 .g-recaptcha-scale, .col-md-3 .g-recaptcha-scale, .col-lg-3 .g-recaptcha-scale, .col-lg-4 .g-recaptcha-scale {
  1784.            transform: scale(0.77);
  1785.            -webkit-transform: scale(0.77);
  1786.            transform-origin: 0 0;
  1787.            -webkit-transform-origin: 0 0;
  1788.            margin-bottom: -15px;
  1789.        }
  1790.  
  1791.        .modal #myform-captchaContainer, .col-md-4 #myform-captchaContainer, .col-md-3 #myform-captchaContainer, .col-lg-3 #myform-captchaContainer, .col-lg-4 #myform-captchaContainer {
  1792.            transform: scale(0.77);
  1793.            -webkit-transform: scale(0.77);
  1794.            transform-origin: 0 0;
  1795.            -webkit-transform-origin: 0 0;
  1796.            margin-bottom: -15px;
  1797.        }
  1798.    </style>
  1799.    <script type="text/javascript">
  1800.        var formID          = '';
  1801.        var currentCaptcha  = {};
  1802.        var captchaHolders  = {};
  1803.        window.addEventListener('load', () => {
  1804.            formID = document.querySelectorAll('[name="recaptcha"]');
  1805.            if (typeof formID != "undefined" && formID !== null) {
  1806.                for (let i = 0; i < formID.length; i++) {
  1807.                    let formIDForm = formID[i].closest('form');
  1808.                    if (typeof formIDForm != "undefined" && formIDForm !== null) {
  1809.                        formIDForm.addEventListener('click', reCaptchaOnFormClick, false);
  1810.                    }
  1811.                }
  1812.            }
  1813.        });
  1814.  
  1815.        function reCaptchaOnFormClick(event) {
  1816.            currentCaptchaForm  = event.srcElement.closest('form');
  1817.            var head            = document.getElementsByTagName('head')[0];
  1818.            var script          = document.createElement('script');
  1819.            script.type         = 'text/javascript';
  1820.            script.src          = 'https://www.google.com/recaptcha/api.js?onload=onloadCallback&render=explicit&hl=en';
  1821.            head.appendChild(script);
  1822.            if (typeof currentCaptchaForm != "undefined" && currentCaptchaForm !== null) {
  1823.                currentCaptchaForm.removeEventListener('click', reCaptchaOnFormClick, false);
  1824.            }
  1825.        }
  1826.  
  1827.  
  1828.        var onloadCallback = function (event) {
  1829.            var captcha = currentCaptchaForm.querySelectorAll('div[class=g-recaptcha]');
  1830.            if(captcha[0].id){
  1831.                captchaHolders[captcha[0].id] = grecaptcha.render(captcha[0].id, {
  1832.                    'sitekey': '6LfVoqYeAAAAALTktBVfZgT70cY0msGOEvZs-UAE'
  1833.                });
  1834.            }
  1835.        }
  1836.  
  1837.    </script>
  1838. <script>
  1839.    function respuesta() {
  1840.        var checkedTextArea = document.getElementsByClassName('g-recaptcha');
  1841.        var rcap = document.getElementsByTagName('recaptcha');
  1842.        for (var i = 0; i < checkedTextArea.length; i++) {
  1843.            if (checkedTextArea[i].value != '') {
  1844.                for (var index = 0; i < rcap.length; index++) {
  1845.                    rcap[index].setAttribute("value", "checked");
  1846.                }
  1847.            }
  1848.        }
  1849.    }
  1850.  
  1851.    $(document).ready(function(){
  1852.        $("#myform input[type=submit]").unbind('click');
  1853.        $("#myform input[type=submit]").click(function (event) {
  1854.  
  1855.            var formId = $(this.form).attr('id');
  1856.            var captchaHolderKey = formId + "-google-recaptcha";
  1857.  
  1858.            if (typeof captchaHolders[captchaHolderKey] != "undefined") {
  1859.                event.preventDefault();
  1860.  
  1861.                if (grecaptcha.getResponse(captchaHolders[captchaHolderKey]) === "") {
  1862.                    $("#" + formId).formValidation('validate');
  1863.                    $("#" + formId + " .security_question_label").addClass("has-error");
  1864.                    $("#" + formId + " #recaptcha_error").css("display", "block");
  1865.                    return false;
  1866.                } else {
  1867.                    $("#" + formId + " .security_question_label").removeClass("has-error");
  1868.                    $("#" + formId + " #recaptcha_error").css("display", "none");
  1869.                    respuesta();
  1870.                    $("#" + formId).submit();
  1871.                }
  1872.            }
  1873.        });
  1874.    });
  1875. </script></div><div class="form-actions"><input type="submit" value="Send Message" name class="btn btn-success btn-block btn-lg " id="myform-element-28"/></div></form><script type="text/javascript">jQuery(document).ready(function() { jQuery("#myform").bind("submit", function() {
  1876. });}); </script>        </div>
  1877.    
  1878.             <!--
  1879.  
  1880. IMPORTANT: This widget contains real Adsense code as a sample to show how this widget functions.  Please replace the current Adsense code below with your own code in order to generate revenue from this ad space.
  1881.  
  1882. -->
  1883. <a class="center-block text-center" href="https://www.adlocal.com/webdesign" target="_blank">
  1884. <img width="360" height="360" alt="Banner Ad" loading="lazy" src="/images/sites98.png">
  1885. </a>
  1886. <div class="clearfix clearfix-lg"></div>
  1887. <style type='text/css'> .col-md-3 .social_share_buttons .col-xs-3, .col-lg-3 .social_share_buttons .col-xs-3 {
  1888. transform: scale(.96);
  1889. }
  1890. .social_share_buttons .col-xs-4 {
  1891. padding: 0 5px;
  1892. }
  1893. .fbMobilePopUp {
  1894. color: #fff;
  1895. background-color: #3b5998;
  1896. padding: 2px 9px;
  1897. font-size: 11px;
  1898. font-weight: 500;
  1899. border-radius: 7%;
  1900. position: relative;
  1901. }
  1902.  
  1903. .fbMobilePopUp:hover {
  1904. color: #fff !important;
  1905. background-color: #354f87
  1906. }
  1907.  
  1908. .social_share_buttons button, .social_share_buttons .fb-share-button, .social_share_buttons span, .social_share_buttons a, .social_share_buttons iframe, .social_share_buttons .twitter-share-button, .social_share_buttons .IN-widget, .social_share_buttons .IN-bf195e49-eb86-4856-9b9f-1c8710d456be-1G9ISYhSF8XoOmdcl0yKDu {
  1909. width: 100%!important;
  1910. display: block!important;
  1911. border-radius: 100px !important;
  1912. vertical-align:top!important;
  1913. margin:0 auto!important;
  1914. white-space:nowrap!important;
  1915. color: #fff!important;
  1916. } </style><aside>
  1917.    <div class="module social_share_buttons">
  1918.        <h2 class="nomargin">
  1919.            <i class="fa fa-share-square-o fa-fw"></i> Share This Page
  1920.        </h2>
  1921.        <hr>
  1922.        <div class="row hpad">
  1923.            <div class="col-xs-4 col-sm-4 col-md-6 col-lg-4 text-center bmargin facebook_social_share_button social_share_button">
  1924.  
  1925.                                    <div class="fb-share-button" style="display:none;">
  1926.                        <a href="#" title="Facebook Share Button" class="fbMobilePopUp" onclick='showFBShare();'>
  1927.                            <i class="fa fa-facebook "></i> Share
  1928.                        </a>
  1929.                    </div>
  1930.  <i class="fa fa-circle-o-notch fa-spin spin_remove_2"></i>
  1931.                            </div>
  1932.            <div class="col-xs-4 col-sm-4 col-md-6 col-lg-4 text-center bmargin twitter_social_share_button social_share_button">
  1933.                <a title="Twitter Share Button" href="//twitter.com/share" class="twitter-share-button" data-count="vertical"></a>
  1934.                <i class="fa fa-circle-o-notch fa-spin spin_remove_2"></i>
  1935.            </div>
  1936.            <div class="col-xs-4 col-sm-4 col-md-6 col-lg-4 text-center bmargin linkedin_social_share_button social_share_button">
  1937.                <script type="IN/Share" data-counter="top" defer></script>
  1938.                <i class="fa fa-circle-o-notch fa-spin spin_remove_2"></i>
  1939.            </div>
  1940.            <div class="clear"></div>
  1941.        </div>
  1942.        <div class="clear"></div>
  1943.    </div>
  1944. </aside><style type='text/css'> .related-searches-ul {
  1945.    Max-height: 200px;
  1946.    overflow-y: auto;
  1947. } </style>    <div class="module related-members-links">
  1948.        <h3 class="nomargin">
  1949. Related Searches
  1950. </h3>
  1951. <hr>
  1952.        <ul class="list-unstyled font-sm line-height-xl related-searches-ul">
  1953.            <li class="xs-bmargin"><a href="https://www.adlocalpages.com/automotive" title="Automotive">All Automotive</a>
  1954.            <br/>
  1955.            <li class='xs-bmargin'><a href='https://www.adlocalpages.com/california/yorba-linda/automotive' title='Automotive in Yorba Linda'>Automotive in Yorba Linda</a><br/><li class='xs-bmargin'><a href='https://www.adlocalpages.com/california/automotive' title='Automotive in California'>Automotive in California</a><br/>        </ul>
  1956.    </div>
  1957. </section>        </div>
  1958.    
  1959. </div>
  1960. <div class="clearfix"></div>
  1961.        <div class="clearfix"></div>
  1962.    </div>
  1963. </div>
  1964. <!-- End Content -->
  1965. <div class="clearfix footer-clear-element clearfix-lg"></div>
  1966. <!--
  1967.  
  1968. IMPORTANT: This widget contains real Adsense code as a sample to show how this widget functions.  Please replace the current Adsense code below with your own code in order to generate revenue from this ad space.
  1969.  
  1970. -->
  1971. <div class="clearfix"></div>
  1972. <div class="content-container banner-ad-unit footer-banner-container">
  1973.  
  1974. <div class="container text-center banner-ad-unit footer-banner-ad">
  1975.  
  1976. <a class="center-block text-center" href="https://www.adlocal.com/services-1" target="_blank">
  1977. <img width="970" height="90" loading="lazy" alt="Banner Ad" src="/images/BillboardAd970x90Banner_2.png">
  1978. </a>
  1979. <div class="clearfix clearfix-lg"></div>
  1980. </div>
  1981. </div>
  1982. <div class="clearfix"></div>
  1983. <style type='text/css'> .newsletter_row input[type="email"] {
  1984.    float: none;
  1985.    margin-left: auto;
  1986.    margin-right: auto;    
  1987.    width: 62% !important;
  1988. } </style><div class="content-container newsletter_row">
  1989. <div class="container text-center vpad">
  1990. <div class="col-md-12 xs-nopad">
  1991. <a href="#" data-toggle="modal" data-target="#newsletter_subscribe_modal" class="btn btn-lg newsletter_footer_button col-xs-12 col-md-6 nofloat fpad bold">
  1992.            <div class="col-sm-6 nopad newsletter_button_left">
  1993.            Join Our Newsletter
  1994.        </div>
  1995.        <div class="col-sm-6 nopad newsletter_button_right">
  1996.            Click to Subscribe
  1997.            <i class='fa fa-chevron-circle-right fa-fw'></i>
  1998.        </div>
  1999.        
  2000. <div class="clearfix"></div>
  2001. </a>
  2002. </div>
  2003. </div>
  2004. </div><div class="footer">
  2005.    <div class="container">
  2006.        <div class="row">
  2007.            <ul class="footer_menu sm-text-center">
  2008.                <li class='col-md-5'><span id='link157'  class='head'> Ad Local Pages</span><ul><li class=''><span id='link158'  class='content'> Finding Business Owners is easy by searching our trusted network of top-rated Business Owners. Tell us what you need and receive quotes from qualified professionals in your local area.</span></li></ul></li><li class='col-md-2 col-md-offset-1'><span id='link159'  class='head'> Get Free Quotes</span><ul><li class=''><a href='/getmatched' id='link160'>Request a Professional</a></li><li class=''><a href='/search_results' id='link230'>Search the Network</a></li><li class=''><a href='/blog' id='link231'>Consumer Tips</a></li></ul></li><li class='col-md-2'><span id='link162'  class='head'> Browse Professionals</span><ul><li class=''><a href='/categories' id='link163'>Browse by Categories</a></li><li class=''><a href='/locations' id='link164'>Browse by Location</a></li></ul></li><li class='col-md-2'><span id='link165'  class='head'> Support</span><ul><li class=''><a href='/login' id='link233'>Members Login</a></li><li class=''><a href='/login/retrieval' id='link166'>Password Retrieval</a></li><li class=''><a href='/about/contact' id='link167'>Contact Us</a></li></ul></li><li class='col-md-6 col-sm-6  '><span id='link235'> <div itemscope itemtype="http://schema.org/WebSite">
  2009. <meta itemprop="name" content="Ad Local Pages" id="sitename">
  2010. <link href="//www.adlocalpages.com" itemprop="url" id="sitelink">
  2011. <div class="list-social-links">
  2012. <a class="network-icon contact" href="/about/contact" title="Contact Us Ad Local Pages">
  2013. <i class="fa fa-envelope"></i>
  2014. </a>
  2015. <a class="network-icon facebook" itemprop="sameAs" href="http://www.facebook.com.com/adlocal.agency" target="_blank" title="Ad Local Pages Facebook">
  2016. <i class="fa fa-facebook"></i>
  2017. </a>
  2018.    
  2019.      
  2020. <a class="network-icon youtube" itemprop="sameAs" href="https://www.youtube.com/watch?v=mxaTl2i8AY0" target="_blank" title="Ad Local Pages YouTube">
  2021. <i class="fa fa-youtube"></i>
  2022. </a>
  2023. <a class="network-icon instagram" itemprop="sameAs" href="https://www.instagram.com/adlocalagency" target="_blank" title="Ad Local Pages Instagram">
  2024. <i class="fa fa-instagram"></i>
  2025. </a>
  2026. <div class="clearfix"></div>
  2027. </div>
  2028. </div></span></li><li class='col-md-6 vpad '><a href='/join' id='link236'  class='btn btn_footer_get_listed btn-lg btn-block bold center sm-block'>List your Business »</a></li>            </ul>
  2029.        </div>
  2030. <div class="col-md-12 fpad fmargin small text-center footer_terms">
  2031. &copy; 2024 <a title="Ad Local Pages" href="/">
  2032. Ad Local Pages </a>
  2033. All Rights Reserved.
  2034. <div class="inline-block">
  2035. <a title="Terms of Use - Ad Local Pages" href="/about/terms">
  2036. Terms of Use
  2037. </a>
  2038. |
  2039. <a title="Privacy Policy - Ad Local Pages" href="/about/privacy">
  2040. Privacy Policy
  2041. </a>
  2042. </div>
  2043. </div>
  2044.    </div>
  2045. </div><style type='text/css'> .scrollup {
  2046.  border-radius: 3px;
  2047.  width: 40px;
  2048.  height: 40px;
  2049.  opacity: 0.4;
  2050.  position: fixed;
  2051.  bottom: 30px;
  2052.  right: 30px;
  2053.  display: none;
  2054.  background: rgba(119, 119, 119, 0.8);
  2055.  z-index: 1000000;
  2056. }
  2057. .scrollup i {
  2058.  font-size: 36px;
  2059.  color: white;
  2060.  position: relative;
  2061.  top: 0px;
  2062.  left: 10px;
  2063. } </style>            <div class="myModal modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel"
  2064.                 data-backdrop="static" data-keyboard="false">
  2065.                <div class="modal-dialog" role="document">
  2066.                    <div class="modal-content">
  2067.                        <div class="modal-body nohpad nobpad">
  2068.                            <button type="button" style="z-index:10;position:absolute;right:15px;" class="close hmargin"
  2069.                                    data-dismiss="modal">&times;
  2070.                            </button>
  2071.                                <style>
  2072.        .member-login-container:not(.modal .module) {
  2073.            width: 555px;
  2074.            max-width: 100%;
  2075.            margin-left: auto;
  2076.            margin-right: auto;
  2077.            margin-bottom:0;
  2078.            background-color: rgb(250, 250, 250)!important;
  2079.            border-color: rgb(238, 238, 238)!important;
  2080.            color: rgb(41, 41, 41)!important;
  2081.        }
  2082.        .login-register-tabs, .login-register-content {
  2083.            width: 555px!important;
  2084.            max-width: 100%;
  2085.            margin-left: auto!important;
  2086.            margin-right: auto!important;
  2087.            background-color: rgb(238, 238, 238);
  2088.        }
  2089.        .login-register-content {
  2090.            background: transparent;
  2091.            padding: 0;
  2092.            border: none;
  2093.        }
  2094.        .login-register-content h2, .login-register-content h2+hr, .login-register-content .account-menu-title {
  2095.            display: none!important;
  2096.        }
  2097.        .express_login_create_account_prefix hr {
  2098.            margin: 15px 0 10px;
  2099.        }
  2100.        .modal-content #containerFBLogin, .modal-content #containerGoogleLogin {
  2101.            margin:15px 0;
  2102.        }
  2103.  
  2104.        /* CSS When Login Form and Express Registration Rendered in Sidebar */
  2105.        .col-md-3 .bd-chat-well-container,.col-md-4 .bd-chat-well-container {
  2106.            padding: 15px 10px;
  2107.        }
  2108.        .col-md-3 .bd-chat-center-text,.col-md-4 .bd-chat-center-text {
  2109.            margin: 0;
  2110.            font-size: 20px;
  2111.            padding: 0 15px;
  2112.        }
  2113.        .col-md-3 .member-login-page-container .login-register-tabs *, .col-md-4 .member-login-page-container .login-register-tabs * {
  2114.            font-size: 12px;
  2115.            line-height: 1.2em;
  2116.            vertical-align: bottom;
  2117.        }
  2118.        .col-md-3 .member-login-page-container .login-register-tabs a, .col-md-4 .member-login-page-container .login-register-tabs a {
  2119.            padding: 5px !important;
  2120.            height: 50px;
  2121.            vertical-align: middle;
  2122.            display: table-cell !important;
  2123.            width: 1%;
  2124.        }
  2125.        .col-md-3 .member-login-page-container .login-register-content, .col-md-4  .member-login-page-container .login-register-content {
  2126.            padding: 0;
  2127.        }
  2128.        .col-md-3 .member-login-container, .col-md-4 .member-login-container {
  2129.            padding: 15px !important;
  2130.            font-size: 13px;
  2131.        }
  2132.        .col-md-3 .member-login-page-container .input-lg, .col-md-4 .member-login-page-container .input-lg {
  2133.            height: 34px;
  2134.            padding: 6px 12px;
  2135.            font-size: 14px;
  2136.        }
  2137.        .col-md-3 .member-login-page-container .security_question_label, .col-md-4 .member-login-page-container .security_question_label {
  2138.            transform: scale(.85);
  2139.            margin: -1.15em -1.15em 0;
  2140.        }
  2141.        .col-md-3 #containerFBLogin, .col-md-4 #containerFBLogin, .col-md-3 #containerGoogleLogin, .col-md-4 #containerGoogleLogin, .col-md-3 .login-cta-buttons li, .col-md-4 .login-cta-buttons li {
  2142.            width: 100%;
  2143.            display: block;
  2144.            margin-top:5px;
  2145.        }
  2146.        .col-md-3 .login-cta-buttons li, .col-md-4 .login-cta-buttons li {
  2147.            padding:0
  2148.        }
  2149.        .col-md-3 .login-cta-buttons ul.nav, .col-md-4 .login-cta-buttons ul.nav {
  2150.            margin-top: -10px;
  2151.        }
  2152.        .col-md-3 #googleAction, .col-md-3 #facebookAction, .col-md-4 #googleAction, .col-md-4 #facebookAction {
  2153.            padding: 0;
  2154.            min-height: 0;
  2155.            font-size: 14px;
  2156.            margin: 0;
  2157.        }
  2158.        .col-md-3 #googleAction img, .col-md-3 #facebookAction img, .col-md-4 #googleAction img, .col-md-4 #facebookAction img {
  2159.            height: 36px !important;
  2160.            margin-right: 5px;
  2161.            position: relative!important;
  2162.            display: inline-block;
  2163.        }
  2164.        @media only screen and (max-width: 767px) {
  2165.            .col-md-3 .member-login-page-container .login-register-tabs a, .col-md-4 .member-login-page-container .login-register-tabs a {
  2166.                display: block !important;
  2167.                width: 100%;
  2168.                line-height: 40px;
  2169.            }
  2170.  
  2171.            #containerGoogleLogin {
  2172.                text-align: center;
  2173.                margin-top: 10px;
  2174.            }
  2175.  
  2176.            #containerGoogleLogin #gBtn {
  2177.                display: inline-block;
  2178.                width: 202px;
  2179.  
  2180.            }
  2181.            #containerFBLogin .btn-facebook {
  2182.                box-sizing: border-box;
  2183.                width: 191px;
  2184.                font-size: 14px;
  2185.                position: relative;
  2186.                left: -4px;
  2187.                padding-left: 44px;
  2188.                white-space: nowrap !important;
  2189.  
  2190.            }
  2191.        }
  2192.    </style>
  2193.    <div class="row member-login-page-container">
  2194.        <div class="fpad-lg novpad">
  2195.  
  2196.            
  2197.                                    <div class="module fpad-xl member-login-container">
  2198.                        <style type="text/css">label span.required { color: #B94A48; }span.help-inline, span.help-block {font-size: .9em; }</style><form action="/api/widget/json/get/Bootstrap%20Theme%20-%20Member%20Login%20Page" id="member_login" method="post" labelwidth="100" labelpaddingtop="0.5em" enctype="multipart/form-data" form_action_type="redirect" form_action_div return_data_type="" name="member_login" class=" "><input type="hidden" name="sized" value="0" id="member_login-element-0"/><input type="hidden" name="mysql_real_escape_string_runned" value="1" id="member_login-element-1"/><input type="hidden" name="usertokenid" value="21423" id="member_login-element-2"/><input type="hidden" name="saveinfo" value="1" id="member_login-element-3"/><input type="hidden" name="vals" value="1|2" id="member_login-element-4"/><input type="hidden" name="answerqmatch" value="3" id="member_login-element-5"/><input type="hidden" name="form_source" value="%2Funited-states%2Fyorba-linda%2Fautomotive%2Focrv-center-rv-collision-repair-shop-paint-shop" id="member_login-element-6"/><input type="hidden" name="form" value="myform" id="member_login-element-7"/><input type="hidden" name="formname" value="member_login" id="member_login-element-8"/><input type="hidden" name="dowiz" value="1" id="member_login-element-9"/><input type="hidden" name="save" value="1" id="member_login-element-10"/><input type="hidden" name="url_origin_pars" value="/united-states/yorba-linda/automotive/ocrv-center-rv-collision-repair-shop-paint-shop" id="member_login-element-11"/><input type="hidden" name="action" autocomplete="off" value="login" id="member_login-element-12"/><h2 class="nomargin member-login-h2-form-title">Member Login</h2><hr><div class="form-group"><label class="vertical-label bd-email" for="member_login-element-15"><span class="required">* </span>Email Address</label><input type="email" name="email" required placeholder="name@yoursite.com" autocomplete="off" value class="form-control input-lg" id="member_login-element-15"/></div><div class="form-group"><label class="vertical-label bd-password" for="member_login-element-16"><span class="required">* </span>Password</label><input type="password" name="pass" required placeholder="Enter Password" autocomplete="off" value class="form-control input-lg" id="member_login-element-16"/></div><span class="help-block bpad bmargin notmargin"> <a href="/login/retrieval">Forgot Password? Click to Reset Password</a></span><div class="form-actions"><input type="submit" value="Login Now" name class="btn btn-primary btn-lg btn-block " id="member_login-element-18"/></div><div class="login-cta-buttons"><hr class="cta-hr"><ul class="list-inline nomargin inline-block btn-block"><li class='col-md-6 nolpad sm-nopad nav'><a href='/checkout/5' id='link239'  class='btn btn-danger btn-block sm-bmargin'>Not a Registered User? <span class="inline-block">Create Free User Account</span></a></li><li class='col-md-6 nolpad sm-nopad nav'><a href='/join' id='link240'  class='btn btn-success btn-block'>Are You a Local Business <span class="inline-block">List Your Company Now</span></a></li></ul><div class="clearfix"></div></div></form><script type="text/javascript">jQuery(document).ready(function() { jQuery("#member_login").bind("submit", function() {
  2199. });}); </script>                        <div class="clearfix"></div>
  2200.                    </div>
  2201.                
  2202.            
  2203.        </div>
  2204.    </div>
  2205.                        </div>
  2206.                    </div>
  2207.                </div>
  2208.            </div>
  2209.            
  2210.  
  2211.  
  2212.    <link rel="stylesheet" type="text/css" href="https://www.optimizecdn.com/directory/cdn/assets/bootstrap/limonte-sweetalert2/6.11.2/sweetalert2.min.css">
  2213. <script src="https://www.optimizecdn.com/directory/cdn/assets/bootstrap/limonte-sweetalert2/6.11.2/sweetalert2.min.js"></script>
  2214.  
  2215. <script>
  2216.    function clearContent(thisObj){
  2217.        var size;
  2218.        if(thisObj.hasClass('input-sm') || thisObj.parents('.input-group').hasClass('input-group-sm')){
  2219.            size = "small";
  2220.        } else if (thisObj.hasClass('input-lg') || thisObj.parents('.input-group').hasClass('large-autosuggest')){
  2221.            size = "large";
  2222.        } else {
  2223.            size = "medium";
  2224.        }
  2225.        if(!thisObj.parent().hasClass('input_wrapper')){
  2226.            if(thisObj.parent().hasClass('input-group-sm')){
  2227.                thisObj.wrap('<span class="input-group-sm input_wrapper"></span>');
  2228.            } else if (thisObj.parent().hasClass('input-group-lg')){
  2229.                thisObj.wrap('<span class="input-group-lg input_wrapper"></span>');
  2230.            } else {
  2231.                thisObj.wrap('<span class="input_wrapper"></span>');
  2232.            }
  2233.        }
  2234.        if(thisObj.val() != ""){
  2235.            if(thisObj.hasClass('googleSuggest')){
  2236.                thisObj.parent().find('.fill_location').remove();
  2237.            }
  2238.            if (!thisObj.parent().find('.clear_content').length){
  2239.                thisObj.parent().append(`<span class="clear_content ${size}"><i class="fa fa-times-circle" aria-hidden="true"></i></span>`);
  2240.                if (thisObj.hasClass("tt-input")) {
  2241.             thisObj.focus();
  2242.         }
  2243.  
  2244.            }
  2245.        }
  2246.            }
  2247.  
  2248.    $(document).on('click', '.drp-buttons .applyBtn', function(){
  2249.        clearContent($(".dateRange input"));
  2250.    });
  2251.  
  2252.    $('.sm-autosuggest input, .googleSuggest, .large-autosuggest input, .md-autosuggest input, .normal-autosuggest input, .google-writen-location, .dateRange input').keyup(function(){
  2253.        clearContent($(this));
  2254.    });
  2255.  
  2256.    $(document).ready(function(){
  2257.        $('.sm-autosuggest input, input.googleSuggest, .large-autosuggest input, .md-autosuggest input, .normal-autosuggest input, .google-writen-location, .dateRange input').each(function(){
  2258.            clearContent($(this));
  2259.        })
  2260.    })
  2261.  
  2262.    $(document).on('click', '.clear_content', function(){
  2263.        $(this).parent().find('input').val('');
  2264.        //tt-input its a class for typeahead auto-suggest
  2265.        if ($(this).parent().find('input').hasClass("tt-input")) {
  2266.            $(this).parent().find('input').typeahead('val','');
  2267.        }
  2268.        clearContent($(this).parent().find('input'));
  2269.        $(this).remove();
  2270.    });
  2271.  
  2272. $(window).on('load', function () {
  2273. setTimeout(function() {
  2274. // add missing href attribute to multi-category options in search modules
  2275. $('.bootstrap-select.show-tick .dropdown-menu a').attr('href', '#');
  2276. }, 2000);
  2277.         });
  2278. </script>
  2279.  
  2280.  
  2281.  
  2282. <a href="#" class="scrollup" title="scrollup">
  2283.    <i class="fa fa-caret-up" aria-hidden="true"></i>
  2284. </a>
  2285. <script>
  2286.        $(document).ready(function () {
  2287.  
  2288.        if ($('.navbar-default').length > 0) {
  2289.            var menu = $('.navbar-default');
  2290.            var origOffsetY = menu.offset().top;
  2291.  
  2292.            function scroll() {
  2293.  
  2294.                if ($(window).scrollTop() >= origOffsetY) {
  2295.                    $('.navbar-default').addClass('navbar-fixed-top');
  2296.                    $('.navbar-default').addClass('transparent_menu');
  2297.  
  2298.                } else {
  2299.                    $('.navbar-default').removeClass('navbar-fixed-top');
  2300.                    $('.navbar-default').removeClass('transparent_menu');
  2301.                }
  2302.            }
  2303.            document.onscroll = scroll;
  2304.        };
  2305.    });
  2306.        $(document).ready(function(){
  2307.        $('.progress .progress-bar').progressbar({
  2308.            display_text: 'fill'
  2309.        });
  2310.        $(window).scroll(function(){
  2311.  
  2312.            if ($(this).scrollTop() > 600) {
  2313.                $('.scrollup').fadeIn();
  2314.  
  2315.            } else {
  2316.                $('.scrollup').fadeOut();
  2317.            }
  2318.        });
  2319.        $('.scrollup').click(function(){
  2320.            $("html, body").animate({
  2321.                scrollTop: 0
  2322.            }, 600);
  2323.            return false;
  2324.        });
  2325.        $('#cropButton').click(function(){
  2326.            var iframe = $("#cropiFrame");
  2327.            iframe.attr("src", iframe.data("src"));
  2328.        });
  2329.    });
  2330. </script>
  2331. <script>
  2332.  
  2333. $('.view_phone_number').click(function(event){
  2334. event.preventDefault();
  2335. $(this).hide();
  2336. $('.view_phone_number_header').hide();
  2337. $('.phone_number_header').css("display","block");
  2338. $('.phone_number').css("display","block");
  2339. })
  2340.  
  2341. </script>    <script type="text/javascript">
  2342.       var vlat = 0;
  2343.        var vlon = 0;
  2344.        window.addEventListener('DOMContentLoaded', () => {
  2345.            setTimeout(()=>{
  2346.                let googleSuggestForm = document.querySelectorAll('.googleSuggest,.google-writen-location,input[name="lead_location"],.fill_location');
  2347.                if (typeof googleSuggestForm != "undefined") {
  2348.                    for (let i = 0; i < googleSuggestForm.length; i++) {
  2349.                        let closestForm = googleSuggestForm[i].closest('form');
  2350.                        if(typeof closestForm != "undefined" && closestForm != null){
  2351.                            closestForm.addEventListener('focusin', googleMapOnFormClick, false);
  2352.                        }else{
  2353.                            googleSuggestForm[i].addEventListener('input', googleMapOnFormClick, false);
  2354.                        }
  2355.  
  2356.                        if(googleSuggestForm[i].className.indexOf('fill_location') != -1){
  2357.                            googleSuggestForm[i].addEventListener('click', googleMapOnFormClick, false);
  2358.                        }
  2359.                    }
  2360.                }
  2361.            },200);
  2362.  
  2363.        });
  2364.  
  2365.        function googleMapOnFormClick() {
  2366.            let googleSuggestForm = document.querySelectorAll('.googleSuggest,.google-writen-location,input[name="lead_location"],.fill_location');
  2367.            let scriptLoaded = new Promise( (resolve,rejection) => {
  2368.                resolve('already loaded');
  2369.            });
  2370.            let mapUri ="https://maps.googleapis.com/maps/api/js?v=3.exp&libraries=places&region=US&callback=initializeG&language=en&key=AIzaSyCmn5CTc33p7UbPEHOi2C25t8j0iUAVHRM";
  2371.            if (typeof googleSuggestForm != "undefined") {
  2372.                for (let i = 0; i < googleSuggestForm.length; i++) {
  2373.                    let closestForm = googleSuggestForm[i].closest('form');
  2374.                    if(typeof closestForm != "undefined" && closestForm != null){
  2375.                        closestForm.removeEventListener('focusin', googleMapOnFormClick, false);
  2376.                    }else{
  2377.                        googleSuggestForm[i].removeEventListener('input', googleMapOnFormClick, false);
  2378.                    }
  2379.                }
  2380.            }
  2381.            let loadMapScriptAsync = function (uri) {
  2382.                return new Promise((resolve, reject) => {
  2383.                    let script = document.createElement('script');
  2384.                    script.type = 'text/javascript';
  2385.                    script.src = uri;
  2386.                    script.async = true;
  2387.                    script.onload = function () {
  2388.                        resolve("ok");
  2389.                    };
  2390.                    let head = document.getElementsByTagName('head')[0];
  2391.                    head.appendChild(script);
  2392.                });
  2393.            }
  2394.            if(typeof google == "undefined" || !google.hasOwnProperty('maps')) {
  2395.                scriptLoaded = loadMapScriptAsync(mapUri);
  2396.            } else {
  2397.                let InitG= 0;
  2398.                if (typeof initialize !== 'undefined' && typeof initialize === 'function' && InitG >0) {
  2399.                    initialize();
  2400.                }
  2401.            }
  2402.            return scriptLoaded;
  2403.        }
  2404.  
  2405.  
  2406.        function initializeG() {
  2407.            var geocoder;
  2408.            var cachedSelectedOption = [];
  2409.            let mapExists = document.querySelectorAll('[id^="map"]').length > 0;
  2410.            const functionsToInvoke = {
  2411.                setJsMap: true,
  2412.                setJsMapOverview: mapExists,
  2413.                setJsMapSR: mapExists,
  2414.                setJsMapSidebar: mapExists
  2415.            };
  2416.            if (window['maps_loaded'] !== true) {
  2417.                for (let func in functionsToInvoke) {
  2418.                    if (typeof window[func] === 'function' && functionsToInvoke[func]) {
  2419.                        window['maps_loaded'] = true;
  2420.                        window[func]();
  2421.                    }
  2422.                }
  2423.            }
  2424.            //This piece of code will create an autosuggest for every input with the class "googleSuggest"
  2425.            var counter = 1;
  2426.            var inputsArray = [];
  2427.            $(".googleSuggest").each(function () {
  2428.                //get the id from the input to be the unique identifier for each autocomplete
  2429.                var inputId = $(this).attr("id");
  2430.                var inputElement = $(this);
  2431.                inputsArray[counter] = /** @type {HTMLInputElement} */(
  2432.                    document.getElementById('' + inputId));
  2433.                var localizedMainCoutry = 'US';
  2434.                var inputOptions = {
  2435.                    fields: ['address_components', 'formatted_address', 'geometry', 'icon', 'name'],
  2436.                    types: ['geocode']
  2437.                }
  2438.                if (localizedMainCoutry != "") {
  2439.                    inputOptions.componentRestrictions = {country: localizedMainCoutry}
  2440.                }
  2441.  
  2442.                var autocomplete = new google.maps.places.Autocomplete(inputsArray[counter], inputOptions);
  2443.                google.maps.event.addListener(autocomplete, 'place_changed', function () {
  2444.                    cachedSelectedOption = [];
  2445.                    cachedSelectedOption.push(autocomplete.getPlace());
  2446.                    cachedSelectedOption[0]['typed_location'] = inputElement.val();
  2447.  
  2448.                    if (cachedSelectedOption[0]['place_id'] == undefined) {
  2449.                        cachedSelectedOption = [];
  2450.                        var emptyObj = {
  2451.                            'typed_location': ''
  2452.                        };
  2453.                        cachedSelectedOption.push(emptyObj);
  2454.                    }
  2455.                });
  2456.                //the code that prevents the submition when hit enter on a google location autocomplete item
  2457.                google.maps.event.addListener(inputsArray[counter], 'keydown', function (e) {
  2458.  
  2459.                    if (e.keyCode == 13) {
  2460.                        var pacCounter = 0;
  2461.                        //need to run a loop to check each pac container
  2462.                        $('.pac-container').each(function () {
  2463.  
  2464.                            if ($(this).css("display") != "none") {
  2465.                                pacCounter++;
  2466.                            }
  2467.                        });
  2468.                        if (pacCounter > 0) {
  2469.                            e.preventDefault();
  2470.                        }
  2471.                    }
  2472.                });
  2473.                counter++;
  2474.            });
  2475.  
  2476.            //triggers every time a form with the id website-search is trigered
  2477.            $('.website-search').submit(function (e) {
  2478.                var currentForm = $(this);
  2479.                var locationInput = $(this).find(".googleLocation");
  2480.  
  2481.                //checks if the location input is filled when submitting the search form
  2482.                if (locationInput.val() != "" && typeof locationInput.val() != 'undefined') {
  2483.                    e.preventDefault();
  2484.                    //this variable has the main country of the site
  2485.                    var countryRegion = "US";
  2486.                    var localizedSearchSetting = "1";
  2487.                    var componentRestrictions = {country: countryRegion}
  2488.                    var form = currentForm;
  2489.                    var urlGET = form.serialize();
  2490.                    var formActionUrl = form.attr("action");
  2491.                    var locationValue = locationInput.val();
  2492.  
  2493.                    //if the setting localized search is equal to 1 then the region parameter will be sent with the main country of the site
  2494.                    if (localizedSearchSetting != 1) {
  2495.                        countryRegion = "";
  2496.                        componentRestrictions ={};
  2497.                    }
  2498.                    if (cachedSelectedOption[0] == undefined) {
  2499.                        var emptyForm = {
  2500.                            'typed_location': ''
  2501.                        };
  2502.                        cachedSelectedOption.push(emptyForm);
  2503.                    }
  2504.                    if (locationValue != cachedSelectedOption[0]['typed_location']) {
  2505.                        geocoder = new google.maps.Geocoder();
  2506.                        geocoder.geocode({
  2507.                            'address': locationValue,
  2508.                            'region': countryRegion,
  2509.                            componentRestrictions
  2510.  
  2511.                        }, function (results, status) {
  2512.  
  2513.                            //if the google response of the geocoding was successful it will use that info to build the url for the new search
  2514.                            if (status == google.maps.GeocoderStatus.OK) {
  2515.                                parseInfoToSearch(results, urlGET, formActionUrl);
  2516.  
  2517.                            } else {
  2518.                                var urlPath = formActionUrl;
  2519.                                var redirect = urlPath + "?" + urlGET;
  2520.                                //will redirect the page using the new url that has been constructed
  2521.                                window.location.href = redirect;
  2522.                            }
  2523.                        });
  2524.  
  2525.                    } else {
  2526.                        parseInfoToSearch(cachedSelectedOption, urlGET, formActionUrl);
  2527.                    }
  2528.                }
  2529.            });
  2530.  
  2531.  
  2532.  
  2533.            //check if a map has been loaded
  2534.            if ($('#map-canvas').length > 0) {
  2535.                var cssHideLogo = "<style>.pac-container:after {  /* Disclaimer: not needed to show 'powered by Google' if also a Google Map is shown */background-image: none !important;height: 0px;}</style>";
  2536.                $('body').append(cssHideLogo);
  2537.            } else {
  2538.                var cssHideLogo = "<style>.pac-container:after {  /* Disclaimer: not needed to show 'powered by Google' if also a Google Map is shown */background-image: block !important;height: 16px;}</style>";
  2539.                $('body').append(cssHideLogo);
  2540.            }
  2541.  
  2542.            if (geocodeVisitorsSetting == 1 && geocodingMethod === "IP") {
  2543.                populateSearchFields();
  2544.            }
  2545.  
  2546.            if($('.googleSuggest').val() == ""){
  2547.                populateSearchFields();
  2548.            }
  2549.            
  2550.            var geocodeVisitorsSetting = '0';
  2551.            var geocodingMethod = 'HTML5';
  2552.  
  2553.            //check the advanced setting "geocode_visitor_default" if set to 1 will override the "location_value" values to the formatted desire address from the google reverse geocoding response
  2554.  
  2555.            var vlon = '';
  2556.            var vlat = '';
  2557.  
  2558.  
  2559.  
  2560.        }
  2561.        function parseInfoToSearch(results, urlGET, formActionUrl) {
  2562.            var parameters = {};
  2563.            var addressComponentsArray = [];
  2564.            if (results.length > 1) {
  2565.                for (let i = 0; i < results.length; i++) {
  2566.                    if (results[i].types[0] === 'natural_feature' ||
  2567.                        results[i].types[0] === 'airport' ||
  2568.                        results[i].types[0] === 'point_of_interest' ||
  2569.                        results[i].types[0] === 'establishment' ||
  2570.                        results[i].types[0] === 'park') {
  2571.                        results.splice(i, 1);
  2572.                    }
  2573.                }
  2574.            }
  2575.            var adComLength = results[0].address_components.length;
  2576.  
  2577.            sessionStorage.setItem("google_result",JSON.stringify(results));
  2578.  
  2579.            //loop that will build the array with the address components and will get the short name of country and administrative area level 1
  2580.            for (var i = 0; i < adComLength; i++) {
  2581.  
  2582.                if (results[0].address_components[i]['types'][0] == "country") {
  2583.                    parameters.country_sn = results[0].address_components[i]['short_name'];
  2584.                }
  2585.                if (results[0].address_components[i]['types'][0] == "administrative_area_level_1") {
  2586.                    parameters.adm_lvl_1_sn = results[0].address_components[i]['short_name'];
  2587.                }
  2588.                if (results[0].address_components[i]['types'][0] == "administrative_area_level_1") {
  2589.                    parameters.stateSearchLN = results[0].address_components[i]['long_name'];
  2590.                }
  2591.                if (results[0].address_components[i]['types'][0] == "administrative_area_level_2") {
  2592.                    parameters.county_sn = results[0].address_components[i]['short_name'];
  2593.                }
  2594.                if (results[0].address_components[i]['types'][0] == "locality" || results[0].address_components[i]['types'][0] == "colloquial_area" || results[0].address_components[i]['types'][0] == "postal_town") {
  2595.                    parameters.city = results[0].address_components[i]['long_name'];
  2596.                }
  2597.                if (results[0].address_components[i]['types'][0] == "postal_code" || results[0].address_components[i]['types'][0] == "postal_code_prefix") {
  2598.                    parameters.postal_code = results[0].address_components[i]['long_name'];
  2599.                }
  2600.            }
  2601.  
  2602.            parameters.location_type = results[0].types[0];
  2603.  
  2604.            if (parameters.adm_lvl_1_sn != '') {
  2605.                parameters.stateSearch = parameters.adm_lvl_1_sn;
  2606.            }
  2607.            if (parameters.country_sn == "GB") {
  2608.                delete parameters.adm_lvl_1_sn;
  2609.            }
  2610.  
  2611.            //will check if the response had the bounds parameters
  2612.            //if it had it will add the south west and north east parameters to the new url
  2613.            if (results[0].geometry.hasOwnProperty('bounds') || results[0].geometry.hasOwnProperty('viewport')) {
  2614.  
  2615.                if (results[0].geometry.hasOwnProperty('bounds')) {
  2616.                    var boundsResponse = results[0].geometry.bounds;
  2617.  
  2618.                } else {
  2619.                    var boundsResponse = results[0].geometry.viewport;
  2620.                }
  2621.                parameters.swlat = boundsResponse.getSouthWest().lat();
  2622.                parameters.nelat = boundsResponse.getNorthEast().lat();
  2623.                parameters.swlng = boundsResponse.getSouthWest().lng();
  2624.                parameters.nelng = boundsResponse.getNorthEast().lng();
  2625.  
  2626.                //if there were not bounds parameters in the response it will send the parameter fsearch as radius so a radius search will be performed because of lack of info for this location
  2627.            } else {
  2628.                parameters.fsearch = "radius";
  2629.            }
  2630.            var locationCenterResponse = results[0].geometry.location;
  2631.            parameters.lat = locationCenterResponse.lat();
  2632.            parameters.lng = locationCenterResponse.lng();
  2633.            parameters.faddress = results[0].formatted_address;
  2634.            parameters.place_id = results[0].place_id;
  2635.            var formatParameters = $.param(parameters);
  2636.            urlGET = urlGET + "&" + formatParameters;
  2637.            var urlPath = formActionUrl;
  2638.            var redirect = urlPath + "?" + urlGET;
  2639.            //will redirect the page using the new url that has been constructed
  2640.            window.location.href = redirect;
  2641.        }
  2642.        function populateSearchFields() {
  2643.            var prePopulateLocationSetting = '0';
  2644.            var geolocationMethod = 'HTML5';
  2645.  
  2646.            //if set to one will get the lat and lng to do reverse geocoding
  2647.            if (prePopulateLocationSetting == 1 && (geolocationMethod === "HTML5" || geolocationMethod === "IP") && (vlat !== '' && vlon !== '' && vlat != undefined && vlon != undefined && vlat != 0 && vlon != 0)) {
  2648.                var visitorLatLng = new google.maps.LatLng(parseFloat(vlat), parseFloat(vlon));
  2649.                var visitorGeocoder = new google.maps.Geocoder();
  2650.                var formattedAddress = [];
  2651.                var preFormattedStructure = {
  2652.                    "locality": "long_name",
  2653.                    "administrative_area_level_2": "long_name",
  2654.                    "administrative_area_level_1": "long_name",
  2655.                    "country": "long_name"
  2656.                };
  2657.                visitorGeocoder.geocode({'latLng': visitorLatLng}, function (results, status) {
  2658.                    //if the google response of the geocoding was successful it will use that info to build the url for the new search
  2659.                    if (status == google.maps.GeocoderStatus.OK) {
  2660.                        $.each(preFormattedStructure, function (findex, fvalue) {
  2661.                            $.each(results[0].address_components, function (rindex, rvalue) {
  2662.                                if (rvalue.types[0] == findex) {
  2663.                                    formattedAddress.push(rvalue.long_name);
  2664.                                }
  2665.                            });
  2666.                        });
  2667.                        $('.googleSuggest').each(function () {
  2668.                            if ($(this).val() == '') {
  2669.                                if (formattedAddress.length > 0) {
  2670.                                    $(this).val(formattedAddress.join(', '));
  2671.                                    clearContent($(this));
  2672.                                }
  2673.                            }
  2674.                        });
  2675.                    } else {
  2676.                        $('.googleSuggest').each(function () {
  2677.                            $(this).val('');
  2678.                        });
  2679.                    }
  2680.                });
  2681.            }
  2682.        }
  2683.        function showError(error) {
  2684.            switch (error.code) {
  2685.                case error.PERMISSION_DENIED:
  2686.                    $('.fill_location.clicked').popover({
  2687.                        content: 'Your Local browser settings have prevented location targeting',
  2688.                        container: 'body'
  2689.                    });
  2690.                    $('.fill_location.clicked').popover('toggle');
  2691.                    setTimeout(function () {
  2692.                        $('.fill_location.clicked').popover('hide');
  2693.                        $('.fill_location.clicked').removeClass('clicked');
  2694.                    }, 2000);
  2695.                    break;
  2696.                case error.POSITION_UNAVAILABLE:
  2697.                    console.log("Location information is unavailable.");
  2698.                    break;
  2699.                case error.TIMEOUT:
  2700.                    console.log("The request to get user location timed out.");
  2701.                    break;
  2702.                case error.UNKNOWN_ERROR:
  2703.                    console.log("An unknown error occurred.");
  2704.                    break;
  2705.            }
  2706.        }
  2707.        if (navigator.geolocation) {
  2708.            if ($(".googleSuggest")[0]) {
  2709.                $(document).on('click', '.fill_location', function getCXPosition() {
  2710.                    $(this).addClass('clicked');
  2711.                    var startPos;
  2712.                    navigator.geolocation.getCurrentPosition(function (position) {
  2713.                        startPos = position;
  2714.                        vlat = startPos.coords.latitude;
  2715.                        vlon = startPos.coords.longitude;
  2716.                        $.get("/api/data/html/get/data_widgets/widget_name", {
  2717.                            "vlat": vlat,
  2718.                            "vlon": vlon,
  2719.                            "name": "Website - Save Coordinates Session"
  2720.                        }).done(function (data) {
  2721.                        });
  2722.                        populateSearchFields();
  2723.                    }, showError);
  2724.                })
  2725.            }
  2726.        } else {
  2727.            console.log('Geolocation is not supported for this Browser/OS version yet.');
  2728.        }
  2729.        function getUrlParameter(sParam) {
  2730.            var sPageURL = window.location.search.substring(1);
  2731.            var sURLVariables = sPageURL.split('&');
  2732.  
  2733.            for (var i = 0; i < sURLVariables.length; i++) {
  2734.                var sParameterName = sURLVariables[i].split('=');
  2735.  
  2736.                if (sParameterName[0] == sParam) {
  2737.                    return decodeURIComponent(sParameterName[1]);
  2738.                }
  2739.            }
  2740.        }
  2741.    </script>
  2742.    <script>
  2743. $(document).ready(function(){
  2744. $('.navbar-header .navbar-toggle.main_menu').click(function(){
  2745. $('.mobile-main-menu').toggleClass('opened');
  2746. });
  2747. $('.mobile-main-menu .sidebar-nav').find('li').each(function(){
  2748. $(this).addClass('hasChildren');
  2749. if ($(this).children('ul').length > 0){
  2750. $(this).prepend('<i class="fa fa-plus" aria-hidden="true"></i>');
  2751. $(this).find('a').after('<div class="clearfix"></div>');
  2752. $(this).find('span').after('<div class="clearfix"></div>');
  2753. }
  2754. $(this).append('<div class="clearfix"></div>');
  2755. });
  2756.  
  2757. $('.mobile-main-menu .sidebar-nav li i').click(function(){
  2758. if ($(this).parent().children('ul').length > 0){
  2759. $(this).parent().toggleClass('sub_open');
  2760. }
  2761. if ($(this).hasClass('fa-plus')){
  2762. $(this).switchClass('fa-plus','fa-minus');
  2763. } else {
  2764. $(this).switchClass('fa-minus','fa-plus');
  2765. }
  2766. });
  2767. })
  2768.  
  2769. if ($(window).width() > 740 && $(window).width() < 1100) {
  2770.  
  2771. $(document).ready(function(){
  2772. $('.tablet-menu .tablet-menu-ul').find('li').each(function(){
  2773.  
  2774. if ($(this).children('ul').length > 0){
  2775. $(this).prepend('<i class="fa fa-plus tablet-fa" aria-hidden="true"></i>');
  2776. $(this).find('a').after('<div class="clearfix"></div>');
  2777. var this_link = $(this).children('a').text().replace(/[^\x00-\x7F]/g, "");;
  2778. $(this).children('a').html(this_link);
  2779. $(this).find('span').after('<div class="clearfix"></div>');
  2780. }
  2781. $(this).append('<div class="clearfix"></div>');
  2782. });
  2783.  
  2784. $('.tablet-menu .tablet-menu-ul li i').click(function(){
  2785.  
  2786. if ($(this).parent().children('ul').length > 0){
  2787. $(this).parent().toggleClass('sub_open');
  2788.  
  2789. if ($(this).siblings( "ul" ).hasClass('tablet-block')){
  2790. $(this).siblings( "ul" ).switchClass('tablet-block', 'tablet-none');
  2791. } else {
  2792. $(this).siblings( "ul" ).addClass( "tablet-block" );
  2793.  
  2794. if ($(this).siblings( "ul" ).hasClass('tablet-none')){
  2795. $(this).siblings( "ul" ).removeClass('tablet-none')
  2796. }
  2797.  
  2798. if ($(this).parent().siblings().children('ul').hasClass('tablet-block')) {
  2799. $(this).parent().siblings().children('ul').switchClass('tablet-block', 'tablet-none');
  2800. $(this).parent().siblings().children('i').switchClass('fa-minus','fa-plus');
  2801. }
  2802.  
  2803. if ($(this).parent().siblings().children('ul').children().children('ul').hasClass('tablet-block')) {
  2804. $(this).parent().siblings().children('ul').children().children('ul').switchClass('tablet-block', 'tablet-none');
  2805. $(this).parent().siblings().children('ul').children().children('i').switchClass('fa-minus','fa-plus');
  2806. }
  2807.  
  2808. if ($(this).siblings('ul').children('ul').children().children('ul').hasClass('tablet-block')) {
  2809. $(this).siblings('ul').children('ul').children().children('ul').switchClass('tablet-block', 'tablet-none');
  2810. $(this).siblings('ul').children('ul').children().children('i').switchClass('fa-minus','fa-plus');
  2811. }
  2812.  
  2813. }
  2814.  
  2815. }
  2816.  
  2817. if ($(this).hasClass('fa-plus')){
  2818. $(this).switchClass('fa-plus','fa-minus');
  2819. } else {
  2820. $(this).switchClass('fa-minus','fa-plus');
  2821. }
  2822. });
  2823. })
  2824. }
  2825. // Append unique ID attribute for mobile main menu links
  2826. $('.mobile-main-menu a,.mobile-main-menu span').attr("id", function() { return $(this).attr("id") + "-mobile" });
  2827. </script><script>
  2828. $(".member-profile-tabs ul li a").click(function() {
  2829.    tabsTop = $(".member-profile-tabs").offset().top;
  2830.    positionTop = $(window).scrollTop();
  2831.    if(tabsTop < positionTop){
  2832.        $('html, body').animate({
  2833.        scrollTop: $(".member-profile-tabs").offset().top
  2834.    }, 300);
  2835.    }
  2836. });
  2837. </script><script>
  2838.  
  2839. $('.view_phone_number_header').click(function(event){
  2840. event.preventDefault();
  2841. $(this).hide();
  2842. $('.view_phone_number').hide();
  2843. $('.phone_number').css("display","block");
  2844. $('.phone_number_header').css("display","block");
  2845. })
  2846.  
  2847. </script><script defer>
  2848.    var favoriteMode = "";
  2849.    var apiEngine = "";
  2850.    var api = 0;  // Set API to use. Default is 0
  2851.    var activeMembershipLevelEnable = "";
  2852.    var favoriteUserClickId = "";
  2853.    var bookmarkLabel = `LIKE`;
  2854.    var bookmarkCountLabel = `LIKES`;
  2855.  
  2856.    function favoriteOn(lookForAll = false) {
  2857.        $('.col-md-6.col-md-offset-3').addClass("col-md-12").removeClass('col-md-6 col-md-offset-3');
  2858.        favoriteMode = 'search';
  2859.        if ($('.sidebarenabled').data('sidebar')) {
  2860.            favoriteMode = 'detail';
  2861.            if (!$('.sidebarenabled').siblings('.postItem').data('userid')) {
  2862.                $('.sidebarenabled').siblings('.listingData').remove();
  2863.            }
  2864.        }
  2865.        favoriteUserClickId = $('.favorite').data('activeuser');
  2866.        activeMembershipLevelEnable = $('.favorite').data('activefeatureenable');
  2867.  
  2868. // Sets the API URL to use based on API value
  2869.        if (api == 0) {
  2870.            apiEngine = '/api/data/html/get/data_widgets/widget_name?name=Bootstrap%20Theme%20-%20Function%20-%20Add%20to%20Favorites%20Button';
  2871.        } else if (api == 1) {
  2872.            apiEngine = '/api/data/html/get/data_widgets/widget_name?name=Bootstrap Theme - Function - Add to Favorites Button';
  2873.        } else {
  2874.            apiEngine = '/api/widget/json/get/Bootstrap Theme - Function - Add to Favorites Button';
  2875.        }
  2876.        if (favoriteUserClickId) {
  2877.            var favoriteCounter = $('.favorite').siblings('.postItem');
  2878.            if ($('.sidebarenabled').data('sidebar') || lookForAll) {
  2879.  
  2880.                if (favoriteCounter.length == 1) {
  2881.                    var favoriteMode = 'detail';
  2882.                    var favoriteDataType = $('.sidebarenabled').siblings('.postItem').data('datatype');
  2883.                    var favoriteDataId = $('.sidebarenabled').siblings('.postItem').data('dataid');
  2884.                    var favoritePostId = $('.sidebarenabled').siblings('.postItem').data('postid');
  2885.                    var favoriteUserId = [];
  2886.                    $('.sidebarenabled').siblings('.postItem').each(function () {
  2887.                        favoriteUserId.push($(this).data('userid'));
  2888.                    });
  2889.                } else {
  2890.                    var favoriteMode = 'multiSidebar';
  2891.                    var favoriteDataType = [];
  2892.                    var favoriteDataId = [];
  2893.                    var favoritePostId = [];
  2894.                    var favoriteUserId = [];
  2895.                    $('.postItem').each(function () {
  2896.                        favoriteDataType.push($(this).data('datatype'));
  2897.                        favoriteDataId.push($(this).data('dataid'));
  2898.                        favoritePostId.push($(this).data('postid'));
  2899.                        favoriteUserId.push($(this).data('userid'));
  2900.                    });
  2901.                }
  2902.            } else {
  2903.                var favoriteMode = 'search';
  2904.                var favoriteDataType = $('.favorite').siblings('.postItem').data('datatype');
  2905.                var favoriteDataId = $('.favorite').siblings('.postItem').data('dataid');
  2906.                if (lookForAll) {
  2907.                    favoriteDataType = (favoriteDataType == 10) ? 11 : 10;
  2908.                }
  2909.                if (favoriteDataType != 10) {
  2910.                    var favoritePostId = [];
  2911.                    $('.postItem').each(function () {
  2912.                        favoritePostId.push($(this).data('postid'));
  2913.                    });
  2914.                    var favoriteUserId = $('.favorite').siblings('.postItem').data('userid');
  2915.                } else {
  2916.                    var favoriteUserId = [];
  2917.                    $('.postItem').each(function () {
  2918.                        favoriteUserId.push($(this).data('userid'));
  2919.                    });
  2920.                    var favoritePostId = $('.favorite').siblings('.postItem').data('postid');
  2921.                }
  2922.            }
  2923.            favoriteCall(favoriteUserClickId, favoriteUserId, favoriteDataType, favoriteDataId, favoritePostId, favoriteMode, 'check');
  2924.        }
  2925.    }
  2926.  
  2927.    $(document).on('click', '.favorite', function (e) {
  2928.        var favoriteUserClickId = $('.favorite').data('activeuser');
  2929.        if (favoriteUserClickId && activeMembershipLevelEnable) {
  2930.            var thisButton = $(this);
  2931.            $(thisButton).attr("disabled", true);
  2932.                        var favoriteUserClickId = $(this).data('activeuser');
  2933.            var favoriteUserId = $(this).siblings('.postItem').data('userid');
  2934.            var favoriteDataType = $(this).siblings('.postItem').data('datatype');
  2935.            var favoriteDataId = $(this).siblings('.postItem').data('dataid');
  2936.            var favoritePostId = $(this).siblings('.postItem').data('postid');
  2937.            $(this).toggleClass('favoriteActive');
  2938.            if ($(this).data('state') == 0) {
  2939.                favoriteCall(favoriteUserClickId, favoriteUserId, favoriteDataType, favoriteDataId, favoritePostId, favoriteMode, 'add');
  2940.                $(this).data('state', 1);
  2941.            } else {
  2942.                favoriteCall(favoriteUserClickId, favoriteUserId, favoriteDataType, favoriteDataId, favoritePostId, favoriteMode, 'delete');
  2943.                $(this).data('state', 0);
  2944.            }
  2945.            setTimeout(function () {
  2946.                $(thisButton).attr("disabled", false);
  2947.            }, 500);
  2948.        }
  2949.    });
  2950.  
  2951.    function toogleBookmark(node) {
  2952.        var postId = $(node).data('postid');
  2953.        var count = $(node).data('count');
  2954.        var numberNode = $(node).find("#number-" + postId);
  2955.        var textLabelNode = $(node).find("#bookmark-content");
  2956.  
  2957.        if ($(node).hasClass('favoriteActive') !== false) {
  2958.            count--;
  2959.        } else {
  2960.            count++;
  2961.        }
  2962.  
  2963.        $(node).data("count", count);
  2964.  
  2965.        if (count > 0) {
  2966.            $(textLabelNode).html(bookmarkCountLabel);
  2967.            $(numberNode).html(' (' + count + ')');
  2968.        } else {
  2969.            $(textLabelNode).html(bookmarkLabel);
  2970.            $(numberNode).html('');
  2971.        }
  2972.    }
  2973.  
  2974.    // Function that Adds, Deletes and Selects Favorites from Backend
  2975.    function favoriteCall(favoriteUserClickId, favoriteUserId, favoriteDataType, favoriteDataId, favoritePostId, favoriteMode, favoriteAction) {
  2976.        $.post(apiEngine, {
  2977.            favoriteUserClickId: favoriteUserClickId,
  2978.            favoriteUserId: favoriteUserId,
  2979.            favoriteDataType: favoriteDataType,
  2980.            favoriteDataId: favoriteDataId,
  2981.            favoritePostId: favoritePostId,
  2982.            favoriteMode: favoriteMode,
  2983.            favoriteAction: favoriteAction
  2984.        }, function (data) {
  2985.            if (api == 0) {
  2986.                var splitData = data.split('<split>');
  2987.                data = splitData[1];
  2988.            }
  2989.            if (data !== null && data !== 'null') {
  2990.                // Checks if the action 'check' was send
  2991.                if (favoriteAction == 'check' && favoriteMode != 'multiSidebar') {
  2992.                    // Checks if we are in a Detail Page
  2993.                    if (!$('.sidebarenabled').data('sidebar')) {
  2994.                        // Checks if we are viewing a Member
  2995.                        if (favoriteDataType != 10) {
  2996.                            $.each(JSON.parse(data), function (index, value) {
  2997.                                $('.postItem[data-postid="' + value + '"]').siblings('.favorite').addClass('favoriteActive');
  2998.                                $('.postItem[data-postid="' + value + '"]').siblings('.favorite').data('state', 1);
  2999.                            });
  3000.                        } else {
  3001.                            $.each(JSON.parse(data), function (index, value) {
  3002.                                $('.member_results .postItem[data-userid="' + value + '"]').siblings('.favorite').addClass('favoriteActive');
  3003.                                $('.member_results .postItem[data-userid="' + value + '"]').siblings('.favorite').data('state', 1);
  3004.                            });
  3005.                        }
  3006.                    } else {
  3007.                        // Checks if we are viewing a Member
  3008.                        if (favoriteDataType != 10) {
  3009.                            $.each(JSON.parse(data), function (index, value) {
  3010.                                $('.sidebarenabled').siblings('.favorite').addClass('favoriteActive');
  3011.                                $('.sidebarenabled').siblings('.favorite').data('state', 1);
  3012.                            });
  3013.                        } else {
  3014.                            $.each(JSON.parse(data), function (index, value) {
  3015.                                $('.sidebarenabled').siblings('.favorite').addClass('favoriteActive');
  3016.                                $('.sidebarenabled').siblings('.favorite').data('state', 1);
  3017.                            });
  3018.                        }
  3019.                    }
  3020.                } else if (favoriteAction == 'check' && favoriteMode == 'multiSidebar') {
  3021.                    let totalDataCount = JSON.parse(data);
  3022.                    if (totalDataCount) {
  3023.                        totalDataCount = totalDataCount.length;
  3024.                        for (let i = 0; i < totalDataCount; i++) {
  3025.                            if (JSON.parse(data)[i].dataQuery != 0) {
  3026.                                $('.postItem[data-postid="' + JSON.parse(data)[i].postQuery + '"][data-dataid="' + JSON.parse(data)[i].dataQuery + '"]').siblings('.favorite').addClass('favoriteActive');
  3027.                                $('.postItem[data-postid="' + JSON.parse(data)[i].postQuery + '"][data-dataid="' + JSON.parse(data)[i].dataQuery + '"]').siblings('.favorite').data('state', 1);
  3028.                            } else {
  3029.                                $('.postItem[data-userid="' + JSON.parse(data)[i].postQuery + '"]').siblings('.favorite').addClass('favoriteActive');
  3030.                                $('.postItem[data-userid="' + JSON.parse(data)[i].postQuery + '"]').siblings('.favorite').data('state', 1);
  3031.                            }
  3032.                        }
  3033.                    }
  3034.                }
  3035.            }
  3036.        });
  3037.    }
  3038.  
  3039.    // Code that runs once to show all favored posts by a registered user
  3040.  
  3041.    favoriteOn();
  3042.    favoriteOn(true);
  3043. </script><script type="text/javascript">
  3044.    let clickMoreButtons = document.getElementsByClassName('clickToLoadMoreBtn');
  3045.    let autoLoadResults = true;
  3046.    let loadMore = function () {
  3047.        let featureDCId = this.dataset.dc;
  3048.        let currentPage = this.dataset.page;
  3049.        let currentUser = this.dataset.owner;
  3050.        let replyToReviewProfilePage = this.dataset.replytoreview;
  3051.        let levId = this.dataset.lvl;
  3052.        let dataType = this.dataset.type;
  3053.        let loadReviews = null;
  3054.        if (dataType == 13) {
  3055.            loadReviews = document.querySelector('.loadReviews + .clearfix + .loadContainer');
  3056.        }
  3057.  
  3058.        this.dataset.page = parseInt(currentPage) + 1;
  3059.        this.classList.add('loadingMore');
  3060.        let currentInnerHtml = this.innerHTML;
  3061.        this.innerHTML = '<i class="fa fa-spinner fa-spin"></i> Loading...';
  3062.        let currentBTN = this;
  3063.  
  3064.        let url = `/wapi/widget`;
  3065.  
  3066.        let formData = new FormData();
  3067.        formData.append('dc_id', featureDCId);
  3068.        formData.append('currentPage', currentPage);
  3069.        formData.append('currentUser', currentUser);
  3070.        formData.append('header_type', 'html');
  3071.        formData.append('replyToReviewProfilePage', replyToReviewProfilePage);
  3072.        formData.append('levId', levId);
  3073.        formData.append('request_type', 'POST');
  3074.        formData.append('widget_name', 'Bootstrap - Search - Lazy Loader tabs');
  3075.  
  3076.        let myInit = {
  3077.            method: 'POST',
  3078.            body: formData
  3079.        };
  3080.        fetch(url, myInit)
  3081.            .then(function (response) {
  3082.                return response.text();
  3083.            }).then(function (html) {
  3084.            let parser = new DOMParser();
  3085.            let result = parser.parseFromString(html, 'text/html');
  3086.            let newResults = result.getElementById('grabHTML__js').innerHTML;
  3087.            let amountOfClicks = result.getElementById('grabHTML__js').dataset.pages;
  3088.  
  3089.            if (dataType == 13 && typeof loadReviews != 'undefined' && loadReviews != null) {
  3090.                $('.loadReviews').before(newResults); //reviews
  3091.            } else {
  3092.                $(currentBTN).parent().before(newResults);
  3093.            }
  3094.            setAmountPages(currentBTN, amountOfClicks);
  3095.            if (typeof favoriteOn == 'function') {
  3096.                favoriteOn();
  3097.            }
  3098.            if (typeof runRoyalSlider == 'function') {
  3099.                runRoyalSlider();
  3100.            }
  3101.            currentBTN.innerHTML = currentInnerHtml;
  3102.            currentBTN.classList.remove('loadingMore');
  3103.            autoLoadResults = true;
  3104.        });
  3105.    }
  3106.  
  3107.    // adding listener
  3108.    Array.from(clickMoreButtons).forEach(function (clickMoreBtnElement) {
  3109.        clickMoreBtnElement.addEventListener('click', loadMore);
  3110.  
  3111.    });
  3112.    
  3113.    function removeListenToScroll(){
  3114.        window.removeEventListener('scroll', listenToScroll);
  3115.    }
  3116.    function listenToScroll() {
  3117.        if (isElementInViewport() && autoLoadResults) {
  3118.            let btnClickMore = document.querySelector('.active .clickToLoadMoreBtn');
  3119.            if (typeof btnClickMore != 'undefined' && btnClickMore != null){
  3120.                btnClickMore.click();
  3121.            }
  3122.            autoLoadResults = false;
  3123.        }
  3124.    }
  3125.  
  3126.    function isElementInViewport() {
  3127.        let btnClickMore = document.querySelector('.active .clickToLoadMoreBtn')
  3128.        if (typeof btnClickMore != 'undefined' && btnClickMore != null) {
  3129.            const rect = btnClickMore.getBoundingClientRect();
  3130.            return (
  3131.                rect.top >= 0 &&
  3132.                rect.left >= 0 &&
  3133.                rect.bottom <= (window.innerHeight || document.documentElement.clientHeight) &&
  3134.                rect.right <= (window.innerWidth || document.documentElement.clientWidth)
  3135.            );
  3136.        }
  3137.    }
  3138.    function setAmountPages(btn, amount) {
  3139.        if (!("pages" in btn.dataset)) {
  3140.            btn.dataset.pages = parseInt(amount) - 1; // we do -1 because the just clicked
  3141.        } else {
  3142.            btn.dataset.pages = parseInt(btn.dataset.pages) - 1;
  3143.        }
  3144.        if (btn.dataset.pages <= 0) {
  3145.            btn.remove();
  3146.        }
  3147.    }
  3148.  
  3149. </script><script>
  3150.  function validate() {
  3151.    var reason='';
  3152.    form=document.sidebarform;
  3153.  
  3154.    if (form.answerq.value!=7) {
  3155.      reason=reason+'- Answer the security question';
  3156.    }
  3157.  
  3158.    if (reason!='') { reason='Please correct the following errors:\n'+reason; alert(reason); return false; }
  3159.  
  3160.  }
  3161. </script> <script>
  3162.    $('#captchaContainer').removeClass('form-control ');
  3163.    $(".website_url_field").keyup(function(){
  3164.        var fieldName = $(this).attr('name');
  3165.        $(this).val($(this).val().replace(/\s+/g, ''));
  3166.        $('#myform').formValidation('revalidateField', fieldName);
  3167.    });
  3168. </script>
  3169. <script>
  3170.    async function setJsMap() {
  3171.        let urlWapi = '/wapi/widget?widget_name=Bootstrap%20Theme%20-%20Google%20Maps%20-%20Get%20Center%20Coordinates&request_type=GET&header_type=json&action=getCenterMap';
  3172.        var localizedMainCoutry = 'US';
  3173.        if ($('#location_status').length == 0) {
  3174.            var currentLocationState = "no_location";
  3175.        } else {
  3176.            var currentLocationState = $('#location_status').data('state');
  3177.        }
  3178.        if (currentLocationState != "no_location") {
  3179.            //the maping array to know what address component types are link to which inputs on the contact details form
  3180.            var inputsArray = {
  3181.                "country_sn": {
  3182.                    "country": "short_name"
  3183.                },
  3184.                "adm_lvl_1_sn": {
  3185.                    "administrative_area_level_1": "short_name"
  3186.                },
  3187.                "county_sn": {
  3188.                    "administrative_area_level_2": "short_name"
  3189.                },
  3190.                "city":{
  3191.                    "locality": "short_name"
  3192.                }
  3193.            };
  3194.            var geoSC = new google.maps.Geocoder();
  3195.            var markerSC = '';
  3196.            var mapSC = '';
  3197.  
  3198.            var vlonLead = '';
  3199.            var vlatLead = '';
  3200.            var userLat = '33.8746366';
  3201.            var userLon = '-117.7288155';
  3202.            var geocodeVisitorsSetting = '0';
  3203.            var geocodingMethod = 'HTML5';
  3204.  
  3205.            if (vlatLead == "" && userLat != "") {
  3206.                vlatLead = userLat;
  3207.            }
  3208.            if (vlonLead == "" && userLon != "") {
  3209.                vlonLead = userLon;
  3210.            }
  3211.            if (vlatLead == "" || vlonLead == "") {
  3212.  
  3213.                await getCenterMap(urlWapi)
  3214.                    .then(response => response.json())
  3215.                    .then(data => {
  3216.                        if (data.lat) {
  3217.                            vlatLead = userLat = uLat = data.lat;
  3218.                        }
  3219.                        if (data.lon) {
  3220.                            vlonLead = userLon = uLng = data.lon;
  3221.                        }
  3222.                    });
  3223.  
  3224.  
  3225.            }
  3226.            if (currentLocationState == 'default' || currentLocationState == 'only_map') {
  3227.                //important variables
  3228.  
  3229.                //function that initializes the Map
  3230.                const mapDiv = document.getElementById("map-canvas-contact-sidebar");
  3231.  
  3232.                function initializeMap() {
  3233.  
  3234.                    if (initializeMap.alreadyUsed) {
  3235.                        return false;
  3236.                    }
  3237.                    initializeMap.alreadyUsed = true;
  3238.                    var iconImage = '/images/pin_drop.png';
  3239.                    var mapOptions = {
  3240.                        controlSize: 26,
  3241.                        mapTypeControl: false,
  3242.                        streetViewControl: false,
  3243.                        scrollwheel: false
  3244.                    }
  3245.                    mapSC = new google.maps.Map(mapDiv, mapOptions);
  3246.  
  3247.                    //if uLat and uLong are empty load the map in the center of the world
  3248.                    if (userLat == "" || userLon == "") {
  3249.                        userLat = 0;
  3250.                        userLon = 0;
  3251.                    }
  3252.                    var markerInitLatLng2 = new google.maps.LatLng(parseFloat(userLat), parseFloat(userLon));
  3253.  
  3254.                    markerSC = new google.maps.Marker({
  3255.                        draggable: true,
  3256.                        position: markerInitLatLng2,
  3257.                        map: mapSC,
  3258.                        title: "Your current location",
  3259.                        icon: iconImage
  3260.                    });
  3261.                    //if no location saved zoom will be 2
  3262.                    var mapZoom = 15;
  3263.                    if (userLat == "" || userLon == "") {
  3264.                        mapZoom = 4;
  3265.                    }
  3266.  
  3267.                    if (currentLocationState == 'default') {
  3268.                        var input = /** @type {HTMLInputElement} */(
  3269.                            document.getElementById('pac-input'))
  3270.                        var inputOptions = {
  3271.                            fields: ['address_components', 'adr_address','formatted_address', 'geometry', 'icon', 'name','place_id','plus_code','type'],
  3272.                            types: ['(regions)']
  3273.                        }
  3274.                        const language = "en";
  3275.                        if (language) {
  3276.                            inputOptions.language = language;
  3277.                        }
  3278.                        if (localizedMainCoutry) {
  3279.                            inputOptions.componentRestrictions = {country: localizedMainCoutry};
  3280.                            inputOptions.region = localizedMainCoutry;
  3281.                        }
  3282.                        var autocomplete = new google.maps.places.Autocomplete(input, inputOptions);
  3283.                        autocomplete.bindTo('bounds', mapSC);
  3284.  
  3285.                        //bind the change of the autocomplete to the make search function
  3286.                        //google.maps.event.addListener(autocomplete, 'place_changed', makeSearch);
  3287.                        google.maps.event.addListener(autocomplete, 'place_changed', (e) => {
  3288.                            if (input.value != '') {
  3289.                                const place = autocomplete.getPlace();
  3290.                                makeSearch(place)
  3291.                            } else {
  3292.                                swal(`Error`, `You can not list an empty location!`, "error");
  3293.                            }
  3294.                        });
  3295.                        //when hitting enter on the location search field prevent the submition of the form
  3296.  
  3297.                        input.addEventListener("keydown", (e) => {
  3298.                            if (e.key === "Enter") {
  3299.                                e.preventDefault();
  3300.                            }
  3301.                        });
  3302.                    }
  3303.                    mapSC.setCenter(new google.maps.LatLng(vlatLead, vlonLead));
  3304.                    mapSC.setZoom(mapZoom);
  3305.                    //load marker on the map
  3306.                    markerSC.setMap(mapSC);
  3307.  
  3308.  
  3309.                    // check for Geolocation support
  3310.                    if (geocodeVisitorsSetting == 1 && geocodingMethod == "HTML5" && vlatLead != userLat && vlonLead != userLon & uLat != 0 && uLng != 0) {
  3311.                        let markerMemberInitLatLng = new google.maps.LatLng(parseFloat(uLat), parseFloat(uLng))
  3312.                        markerSC.setPosition(markerMemberInitLatLng);
  3313.                        mapSC.setCenter(markerMemberInitLatLng);
  3314.                       // makeSearch(vlatLead, vlonLead);
  3315.                        let latlng = {
  3316.                            lat: parseFloat(markerSC.position.lat()),
  3317.                            lng: parseFloat(markerSC.position.lng()),
  3318.                        };
  3319.                        fillDataByGeoCode(latlng, 'latLng');
  3320.                    } else {
  3321.                        markerSC.setPosition(new google.maps.LatLng(vlatLead, vlonLead));
  3322.                    }
  3323.  
  3324.                    //capture the draggin marker event and update the lat and lng of the member
  3325.                    google.maps.event.addListener(markerSC, 'dragend', function (event) {
  3326.                        let markerCoordinates = markerSC.getPosition();
  3327.                        userLat = uLat = markerSC.getPosition().lat();
  3328.                        userLng = uLng = markerSC.getPosition().lng();
  3329.                        fillDataByGeoCode(markerCoordinates, 'latLng');
  3330.                    });//END dragend event listener
  3331.                }//END initialize function
  3332.                initializeMap();
  3333.                //    google.maps.event.addDomListener(window, 'load', initializeMap);
  3334.                //END if (currentLocationState == 'default' || currentLocationState == 'only_map')
  3335.            } else if (currentLocationState == 'only_input') {
  3336.  
  3337.                function initializeInput() {
  3338.  
  3339.                    const inputOptions = {
  3340.                        fields: ['address_components', 'adr_address','formatted_address', 'geometry', 'icon', 'name','place_id','plus_code','type'],
  3341.                        types: ['(regions)'],
  3342.                    }
  3343.                    const language = "en";
  3344.  
  3345.                    if (language) {
  3346.                        inputOptions.language = language;
  3347.                    }
  3348.                    if (localizedMainCoutry) {
  3349.                        inputOptions.componentRestrictions = {country: localizedMainCoutry};
  3350.                        inputOptions.region = localizedMainCoutry;
  3351.                    }
  3352.  
  3353.  
  3354.                    var change = document.getElementsByClassName("google-writen-location");
  3355.                    var searchInput = {};
  3356.                    var autocomplete = {};
  3357.                    var cachedSelectedOption = {};
  3358.                    for (var i = 0; i < change.length; i++) {
  3359.  
  3360.                        //the init of the search locations input
  3361.                        autocomplete[i] = new google.maps.places.Autocomplete(change[i], inputOptions);
  3362.                        autocomplete[i].inputId = change[i].id;
  3363.  
  3364.                        var currentLocationValue;
  3365.                        $(change[i]).keyup(function () {
  3366.                            $('input[name="lat"]').val('');
  3367.                            $('input[name="lng"]').val('');
  3368.                            $('input[name="swlat"]').val('');
  3369.                            $('input[name="swlng"]').val('');
  3370.                            $('input[name="nelat"]').val('');
  3371.                            $('input[name="nelng"]').val('');
  3372.                            $('input[name="location_type"]').val('');
  3373.                        });
  3374.                        $(change[i]).blur(function () {
  3375.                            var thisField = $(this);
  3376.                            let thisVal = this.value;
  3377.                            setTimeout(function () {
  3378.                                if (thisField.parents('div').find('[name="lat"]').val() == "") {
  3379.                                    fillDataByGeoCode(thisVal);
  3380.                                }
  3381.                            }, 300);
  3382.  
  3383.                        });
  3384.  
  3385.  
  3386.                        //bind the change of the autocomplete to the make search function
  3387.                        google.maps.event.addListener(autocomplete[i], 'place_changed', function () {
  3388.                            let place= this.getPlace();
  3389.                            makeSearch(place);
  3390.                        });
  3391.  
  3392.                        //when hitting enter on the location search field prevent the submition of the form
  3393.                        $('.google-writen-location:eq(' + i + ')').keydown(function (e) {
  3394.                            if (e.keyCode == 13) {
  3395.                                e.preventDefault();
  3396.                            }
  3397.                        });
  3398.                    }
  3399.                }//END initialize function
  3400.                initializeInput();
  3401.                //  google.maps.event.addDomListener(window, 'load', initializeInput);
  3402.  
  3403.            }
  3404.  
  3405.            //this is the function that takes a google response and fills the input location fields basing itself in the maping array
  3406.            function fillAddressFields(results) {
  3407.                var coordinatesCenter = results.geometry.location;
  3408.                var boundsResponse = "";
  3409.                $('input[name="lead_location"]').val(results['formatted_address']);
  3410.                if(results['adr_address']){
  3411.                    var faddress = results['adr_address'].replace(/<[^>]+>/g, '');
  3412.                    $('input[name="faddress"]').val(faddress);
  3413.                }
  3414.                $('input[name="lat"]').val(coordinatesCenter.lat());
  3415.                //update Lng
  3416.                $('input[name="lng"]').val(coordinatesCenter.lng());
  3417.  
  3418.                if (results.geometry.hasOwnProperty('bounds') || results.geometry.hasOwnProperty('viewport')) {
  3419.  
  3420.                    if (results.geometry.hasOwnProperty('bounds')) {
  3421.                        var boundsResponse = results.geometry.bounds;
  3422.  
  3423.  
  3424.                    } else {
  3425.                        var boundsResponse = results.geometry.viewport;
  3426.                    }
  3427.                }
  3428.                if (boundsResponse != "") {
  3429.                    //update sw
  3430.                    $('input[name="swlat"]').val(boundsResponse.getSouthWest().lat());
  3431.                    $('input[name="swlng"]').val(boundsResponse.getSouthWest().lng());
  3432.                    //update ne
  3433.                    $('input[name="nelat"]').val(boundsResponse.getNorthEast().lat());
  3434.                    $('input[name="nelng"]').val(boundsResponse.getNorthEast().lng());
  3435.                }
  3436.                //update location type
  3437.                $('input[name="location_type"]').val(results.address_components[0].types[0]);
  3438.                //loop through the maping array to get all the values from the inputs that need to be filled with the new information
  3439.                $.each(inputsArray, function (findex, fvalue) {
  3440.                    //clean each field before setting new info
  3441.                    $('input[name="' + findex + '"]').val("");
  3442.  
  3443.                    //loop that checks the second level of the array
  3444.                    $.each(fvalue, function (sindex, svalue) {
  3445.                        var flag = true;
  3446.                        //check if svalue is an object
  3447.                        if ($.type(svalue) == "object") {
  3448.                            var currentConcat = "",
  3449.                                //get length of the concat array
  3450.                                concatLength = Object.keys(svalue).length,
  3451.                                concatCounter = 0;
  3452.                            //loop on each element of the svalue elements for the address components concatenation
  3453.                            $.each(svalue, function (conkey, convalue) {
  3454.  
  3455.                                //run a loop on the address components for each svalue elements
  3456.                                $.each(results.address_components, function (inskey, insvalue) {
  3457.                                    //if the element of the svalue match, concat the result to the array currentConcat
  3458.                                    if (insvalue.types[0] == conkey) {
  3459.                                        currentConcat += insvalue[convalue] + " ";
  3460.                                        concatCounter++;
  3461.                                    }
  3462.                                });//END each on address components
  3463.                            });//END each on svalue for the address components concatenation
  3464.                            //if all the elements matched then this new location with the concatenation of address components will be the one used
  3465.                            if (concatCounter == concatLength) {
  3466.                                $('input[name="' + findex + '"]').val(currentConcat);
  3467.                                flag = false;
  3468.                                return false;
  3469.                            }
  3470.                            //if svalue is not an object the system will continue with the default computations
  3471.                        } else {
  3472.                            //run a loop on the address components for the svalue being searched
  3473.                            $.each(results.address_components, function (key, value) {
  3474.                                //if the svalue element matches it will be saved
  3475.                                if (value.types[0] == sindex) {
  3476.                                    $('input[name="' + findex + '"]').val(value[svalue]);
  3477.                                    flag = false;
  3478.                                    return false;
  3479.                                }
  3480.  
  3481.                            });//END each on the address components
  3482.                        }
  3483.                        return flag;
  3484.                    });//END each on the second level of the array
  3485.                });//END each on the first level of the array
  3486.            }//END fillAddressFields function
  3487.            //function that triggers when someone selects an option from the autocomplete
  3488.            function makeSearch(results) {
  3489.                if (results && results.address_components) {
  3490.  
  3491.                    if (currentLocationState == 'default' || currentLocationState == 'only_map') {
  3492.                        markerSC.setPosition(results.geometry.location);
  3493.                        mapSC.panTo(results.geometry.location);
  3494.                        mapSC.setZoom(16);
  3495.                    }
  3496.                    fillAddressFields(results);
  3497.                }
  3498.                else {
  3499.                    fillDataByGeoCode(results.name,'address');
  3500.                }
  3501.            }//END make search function
  3502.  
  3503.  
  3504.            if (currentLocationState == 'default' || currentLocationState == 'only_map') {
  3505.                $('#contactModal').on('shown.bs.modal', function () {
  3506.                    google.maps.event.trigger(mapSC, "resize");
  3507.                });
  3508.            }
  3509.        }//END if (currentLocationState != "no_location")
  3510.  
  3511.        function fillDataByGeoCode(info, type = 'address') {
  3512.            if(info){
  3513.                type = type.toLowerCase();
  3514.                let geocoderRequest = { address: info };
  3515.                if (type === 'latlng') {
  3516.                    geocoderRequest = { location: info};
  3517.                }
  3518.                const language = "en";
  3519.                if (language) {
  3520.                    geocoderRequest.language = language;
  3521.                }
  3522.                const mainCountry = 'US';
  3523.                if (mainCountry && type === 'address') {
  3524.                    geocoderRequest.componentRestrictions = {country: mainCountry};
  3525.                    geocoderRequest.region = mainCountry;
  3526.                }
  3527.                if (mainCountry && type === 'latlng') {
  3528.                    geocoderRequest.region = mainCountry;
  3529.                }
  3530.                geo = new google.maps.Geocoder();
  3531.                geo.geocode(geocoderRequest, function (results, status) {
  3532.  
  3533.                    if (status == google.maps.GeocoderStatus.OK) {
  3534.  
  3535.                        if (results.length > 1) {
  3536.                            for (let i = 0; i < results.length; i++) {
  3537.                                if (results[i].types[0] === 'natural_feature' ||
  3538.                                    results[i].types[0] === 'airport' ||
  3539.                                    results[i].types[0] === 'point_of_interest' ||
  3540.                                    results[i].types[0] === 'establishment' ||
  3541.                                    results[i].types[0] === 'park') {
  3542.                                    results.splice(i, 1);
  3543.                                }
  3544.                            }
  3545.                        }
  3546.                        if (mapSC != null && mapSC != '' && typeof mapSC !== "undefined" && markerSC != null && markerSC != '' && typeof markerSC !== "undefined") {
  3547.                            mapSC.panTo(results[0].geometry.location);
  3548.                            mapSC.setZoom(16);
  3549.                            markerSC.setPosition(results[0].geometry.location);
  3550.                        }
  3551.                        fillAddressFields(results[0]);
  3552.                    } else {
  3553.                        alert(status);
  3554.                    }
  3555.                });
  3556.            }
  3557.        }
  3558.        // fetch to obtain the centerOfMap
  3559.        function getCenterMap(urlWapi) {
  3560.            const response =  fetch(urlWapi, {
  3561.                method: 'GET',
  3562.                mode: 'same-origin',
  3563.                credentials: 'same-origin',
  3564.                headers: {
  3565.                    'Content-Type': 'application/json'
  3566.                },
  3567.            });
  3568.            return response
  3569.        }
  3570.    }
  3571. </script><script type="text/javascript">
  3572.    if(typeof bootstrap_contact_member_category_dropdowns_runned == "undefined"){
  3573.        var bootstrap_contact_member_category_dropdowns_runned = true;
  3574.        $(document).on('change', '.select-category-chained', function () {
  3575.            
  3576.            var input = $(this);
  3577.            var currentLevel = input.attr('name');
  3578.            var categoryId = input.val();
  3579.            var uniqueForm = $(this).closest('form').attr("id");
  3580.  
  3581.            var targetSelect = uniqueForm + " #" + input.data('nextselect');
  3582.            var enviromentVar = $('#cat-page-type').data('type');
  3583.            //empty all the children of this select
  3584.            var epmtyHtmlOptions = "";
  3585.            var defaultOptionText = 'What Service Do You Need?';
  3586.            if(defaultOptionText != ""){
  3587.                epmtyHtmlOptions += '<option value="">('+defaultOptionText+')</option>';
  3588.            }
  3589.            $('#' + targetSelect).html(epmtyHtmlOptions);
  3590.            $('#' + targetSelect).val('').change();
  3591.            
  3592.            //check if child is also parent and clean that one too
  3593.            var targetSelectElement = $('#' + targetSelect);
  3594.            var childChildSelect = targetSelectElement.data('nextselect');
  3595.  
  3596.            if (childChildSelect != "" && childChildSelect != undefined) {
  3597.                $('#' + childChildSelect).html(epmtyHtmlOptions);
  3598.                $('#' + childChildSelect).val('').change();
  3599.            }
  3600.            if (enviromentVar == "profile") {
  3601.                var userId = $('#cat-page-type').data('user');
  3602.  
  3603.            } else {
  3604.                var userId = "";
  3605.            }
  3606.            
  3607.            if (categoryId != "") {
  3608.  
  3609.                //send ajax to know the children results
  3610.                var gcaResponseArray = [];
  3611.  
  3612.                $.ajax({
  3613.                    url: "/wapi/widget",
  3614.                    type: "GET",
  3615.                    dataType: "json",
  3616.                    data: {
  3617.                        "request_type": "GET",
  3618.                        "widget_name": "Bootstrap - Contact Member Category Dropdowns",
  3619.                        "header_type": "json",
  3620.                        "user_id": userId,
  3621.                        "scope": currentLevel,
  3622.                        "category_id": categoryId,
  3623.                        "select_action": "find_children_cat"
  3624.                    },
  3625.                    success: function (data) {
  3626.                        gcaResponseArray.push(data);
  3627.                    },
  3628.                    error: function (data) {
  3629.                        console.log("error");
  3630.                        console.log(data);
  3631.                    }
  3632.                });
  3633.                var gcaInter = setInterval(function () {
  3634.  
  3635.                    if (gcaResponseArray.length == 1) {
  3636.                        clearInterval(gcaInter);
  3637.                        var htmlOptions = "";
  3638.                        var defaultOptionText = 'What Service Do You Need?';
  3639.                        if(defaultOptionText != ""){
  3640.                            htmlOptions += '<option value="">('+defaultOptionText+')</option>';
  3641.                        }
  3642.                        //construct the html options values
  3643.                        var newOptionsCounter = 0;
  3644.                        if(gcaResponseArray[0] !== null && gcaResponseArray[0]['cats']!=''){
  3645.                            $.each(gcaResponseArray[0]['cats'], function (key, value) {
  3646.                                key = key.replace('_', '');
  3647.                                htmlOptions += '<option value="' + key + '">' + value + '</option>';
  3648.                                newOptionsCounter++;
  3649.                            });
  3650.                            $('#' + targetSelect).html(htmlOptions);
  3651.                            $('#' + targetSelect).attr("disabled", false);
  3652.                            if (newOptionsCounter > 0) {
  3653.                                $('#' + targetSelect).select2("open");
  3654.                            }
  3655.                        }else{
  3656.                            $('#' + targetSelect).html('<option value="">No Options Available</option>');
  3657.                            $('#' + targetSelect).attr("disabled", true);
  3658.                            $("#" + targetSelect).select2("val", "");
  3659. if ($("#" + targetSelect).attr('data-nextselect') != "") {
  3660. let dataSelectNext = $("#" + targetSelect).attr('data-nextselect');
  3661. $('#' + dataSelectNext).html('<option value="">No Options Available</option>');
  3662. $('#' + dataSelectNext).attr("disabled", true);
  3663.                             $("#" + dataSelectNext).select2("val", "");
  3664. }
  3665.                        }
  3666.  
  3667.                    }
  3668.                }, 400);
  3669.            }
  3670.        });
  3671.        const topRequired = document.querySelector('label[for="top-id-select"] span.required');
  3672.        const subRequired = document.querySelector('label[for="sub-id-select"] span.required');
  3673.        const subSubRequired = document.querySelector('label[for="sub-sub-id-select"] span.required');
  3674.        //code to check that the categories have been submitted if the settings are enabled
  3675.        $('#myform').submit(function (e) {
  3676.            let topRequiredVal = document.getElementById('top-id-select');
  3677.            let subRequiredVal = document.getElementById('sub-id-select');
  3678.            let subSubRequiredVal = document.getElementById('sub-sub-id-select');
  3679.            if ((topRequired !== null && topRequiredVal !== null && topRequiredVal.value == '') || (subRequired !== null && subRequiredVal !== null && subRequiredVal.value == '') || (subSubRequired !== null && subSubRequiredVal !== null && subSubRequiredVal.value == '')) {
  3680.                e.preventDefault();
  3681.                e.stopPropagation();
  3682.                e.stopImmediatePropagation();
  3683.                swal(`Whoops!`, `Please select a category to submit this request` ,"error");
  3684.            }
  3685.        });
  3686.    }
  3687. </script>                <script src="https://www.optimizecdn.com/directory/cdn/bootstrap/formvalidation/current/dist/js/formValidation.min.js"></script>
  3688.                <script src="https://www.optimizecdn.com/directory/cdn/bootstrap/formvalidation/current/dist/js/framework/bootstrap.min.js"></script>
  3689.                <script type="text/javascript">
  3690.                    function decodeHtml(html) {
  3691.                        var txt = document.createElement("textarea");
  3692.                        txt.innerHTML = html;
  3693.                        return txt.value;
  3694.                    }
  3695.                </script>
  3696.                        <script type="text/javascript">
  3697.  
  3698.        var counterSubmit = 0;
  3699.        $(document).ready(function() {
  3700.            $('#myform').formValidation({"framework":"bootstrap","addOns":{"reCaptcha2":{"element":"captchaContainer","language":"en","theme":"light","siteKey":"6LfVoqYeAAAAALTktBVfZgT70cY0msGOEvZs-UAE","timeout":"120","message":"The captcha is not valid"}},"fields":{"lead_email":{"validators":{"notEmpty":{"message":"Required Field"},"emailAddress":{"message":"Please enter a valid email address"}}}}}).on('success.form.fv', function(e,fvdata) {
  3701.                
  3702.                if('myform' == 'unsubscribe_email'){
  3703.                    return true;
  3704.                }
  3705.                // Prevent form submission
  3706.                e.preventDefault();
  3707.                $form = $(e.target),
  3708.                fv = $form.data('formValidation');
  3709.                var values = $(this).serialize();
  3710.  
  3711.                
  3712.                var locationFieldCorrect = true;
  3713.  
  3714.                if($("#myform .location_required").length > 0){
  3715.                    $("#myform .location_required").each(function (index) {
  3716.                        if($(this).data('state') == 1){
  3717.                            if($('#myform input[name="lead_location"]').val() == "" || $('#myform input[name="lat"]').val() == "" || $('#myform input[name="lng"]').val() == "") {
  3718.                                locationFieldCorrect = false;
  3719.                            }
  3720.                        }
  3721.                    });
  3722.                }
  3723.  
  3724.                if(locationFieldCorrect === false){
  3725.                    //check that there is a latitude or longitude
  3726.                    swal(`Whoops!`, `The location information is required to submit this form`, "error");
  3727.                    return false;
  3728.                }
  3729.                        
  3730.  
  3731.                if (!$(this).attr("action")) {
  3732.                    var action = '';
  3733.  
  3734.                } else {
  3735.                    var action = $(this).attr("action");
  3736.                }
  3737.                if (!$(this).attr("method")) {
  3738.                    var method = 'post';
  3739.  
  3740.                } else {
  3741.                    var method = $(this).attr("method");
  3742.                }
  3743.                if (!$(this).attr("form_action_type")) {
  3744.                    var form_action_type = 'notification';
  3745.  
  3746.                } else {
  3747.                    var form_action_type = $(this).attr("form_action_type");
  3748.                }
  3749.                if (!$(this).attr("form_action_div")) {
  3750.                    var form_action_div = '#first_container';
  3751.  
  3752.                } else {
  3753.                    var form_action_div = $(this).attr("form_action_div");
  3754.                }
  3755.                if (!$(this).attr("return_data_type")) {
  3756.                    var return_data_type = 'json';
  3757.  
  3758.                } else {
  3759.                    var return_data_type = $(this).attr("return_data_type");
  3760.                }
  3761.                if ($("#myform-notification").html() != "") {
  3762.                    $("#myform-notification").remove();
  3763.                }
  3764.                if ($(this).find('input[type="submit"]').length > 0) {
  3765.                    $(this).find('input[type="submit"]').before('<div id="myform-notification" class="alert"></div>');
  3766.  
  3767.                } else {
  3768.                    $(this).prepend('<div id="myform-notification" class="alert"></div>');
  3769.                }
  3770.                var notification = $("#myform-notification");
  3771.  
  3772.                if ((form_action_type == "" || form_action_type == "default") && action.indexOf("account") >= 0) {
  3773.                    notification.html(`Processing Request...`).addClass("alert-warning");
  3774.                    setTimeout(function(){
  3775.                        fv.defaultSubmit();
  3776.                    }, 100);
  3777.                } else {
  3778.                    notification.html(`Processing Request...`).addClass("alert-warning");
  3779.                    if(counterSubmit == 0) {
  3780.                        counterSubmit++;
  3781.  
  3782.                        var fields      = $(this).serializeArray();
  3783.                        var formField   = [];
  3784.                        var processData = true;
  3785.                        var contentType = "application/x-www-form-urlencoded; charset=UTF-8";
  3786.                        
  3787.                        
  3788.  
  3789.                        if($("#myform input[type=file]").length > 0){
  3790.                            
  3791.                            var formObject  = new FormData();
  3792.                            processData     = false;
  3793.                            contentType     = false;
  3794.  
  3795.                            $(fields).each(function(index,field){
  3796.                                formField.push(field.name+"="+field.value);
  3797.                            });
  3798.  
  3799.                            values  = formField.join("&");
  3800.  
  3801.                            $(formField).each(function(index,fieldValue){
  3802.                                var fieldInfo = fieldValue.split('=');
  3803.                                formObject.append(fieldInfo[0],fieldInfo[1]);
  3804.                            });
  3805.  
  3806.                            $("#myform input[type=file]").each(function(index,node){
  3807.                                var file = this.files[0];
  3808.                                if(typeof file != "undefined"){
  3809.                                    formObject.append("file_addon["+$(node).attr('name')+"]", file, file.name);
  3810.                                }
  3811.                            });
  3812.                        }else{
  3813.                            
  3814.                            $(fields).each(function(index,field){
  3815.                                formField.push(field.name+"="+encodeURIComponent(field.value));
  3816.                            });
  3817.  
  3818.                            var formObject  = formField.join("&");
  3819.                        }
  3820.                        
  3821.                        $.ajax({
  3822.                            url: action,
  3823.                            type: method,
  3824.                            data: formObject,
  3825.                            dataType: return_data_type,
  3826.                            processData: processData,
  3827.                            contentType: contentType,
  3828.                            success: function (data) {
  3829.                                if (return_data_type == "html") {
  3830.                                    var result = 'success';
  3831.  
  3832.                                    if (!data != "") {
  3833.                                        var result_widget = data['result_widget'];
  3834.                                    }
  3835.  
  3836.                                } else {
  3837.  
  3838.  
  3839.                                    if (!data['result']) {
  3840.                                        var result = 'error';
  3841.                                    } else {
  3842.                                        var result = data['result'];
  3843.                                    }
  3844.                                    if (!data['result_widget']) {
  3845.                                        var result_widget = '';
  3846.  
  3847.                                    } else {
  3848.                                        var result_widget = data['result_widget'];
  3849.                                    }
  3850.                                }
  3851.                                if (result == "success") {
  3852.  
  3853.                                    if (!data['message']) {
  3854.                                        var message = `Your information has submitted successfully!`;
  3855.  
  3856.                                    } else {
  3857.                                        var message = data['message'];
  3858.                                    }
  3859.                                    if (!data['redirect_url']) {
  3860.                                        var redirect_url = '';
  3861.  
  3862.                                    } else {
  3863.                                        var redirect_url = data['redirect_url'];
  3864.                                    }
  3865.  
  3866.  
  3867.  
  3868.                                    if (form_action_type == "notification") {
  3869.                                        notification.html(message + '<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>')
  3870.                                            .addClass('alert-dismissible')
  3871.                                            .addClass("alert-success")
  3872.                                            .removeClass("alert-danger")
  3873.                                            .removeClass("alert-warning")
  3874.                                        
  3875.                                            
  3876.  
  3877.                                        if(notification.parents('.modal').length && 'myform' == 'whmcs_billing_address'){
  3878.                                            setTimeout(function(){
  3879.                                                notification.parents('.modal').modal('hide');
  3880.                                            }, 1000);
  3881.                                        }
  3882.  
  3883.                                    } else if (form_action_type == "widget") {
  3884.  
  3885.                                        if (result_widget != '') {
  3886.  
  3887.                                            setTimeout(function(){
  3888.                                                if(form_action_div != '.newsletter_modal_form_container'){
  3889.                                                    $("html, body").animate({ scrollTop: 0 }, 600);
  3890.                                                }                                                
  3891.                                                $(form_action_div).html(decodeHtml(result_widget)).text();
  3892.  
  3893.                                            }, 1000);
  3894.                                        }
  3895.  
  3896.                                    } else if (form_action_type == "redirect") {
  3897.  
  3898.                                        if (redirect_url == "") {
  3899.                                            redirect_url = decodeURIComponent("");
  3900.                                        }
  3901.  
  3902.                                        if (redirect_url.substring(0, 1) != "/" && redirect_url.substring(0, 1) != "h") {
  3903.                                            redirect_url = "/" + redirect_url;
  3904.                                        }
  3905.                                        current_location = "/united-states/yorba-linda/automotive/ocrv-center-rv-collision-repair-shop-paint-shop";
  3906.                                        refresh_pages_string = "/login";
  3907.                                        refresh_pages_string = refresh_pages_string.replace(/ /g,'');
  3908.                                        refresh_pages_array = refresh_pages_string.split(',');
  3909.                                        notification.html(message)
  3910.                                            .addClass("alert-success")
  3911.                                            .removeClass("alert-danger")
  3912.                                            .removeClass("alert-warning")
  3913.                                            .delay(2000).slideUp();
  3914.                                            if(action == "/api/widget/json/get/Bootstrap%20Theme%20-%20Member%20Login%20Page" && current_location.indexOf("/login") == -1 && refresh_pages_string != '' && (!refresh_pages_array.includes(current_location) || refresh_pages_string == "/login" )){
  3915.                                                                                                    window.location.href = window.location.href+'?logged';
  3916.                                                                                            } else {
  3917.                                                window.location.href = redirect_url;
  3918.                                            }
  3919.  
  3920.                                        fv.resetForm(true);
  3921.                                    }
  3922.                                    if(form_action_div != '.newsletter_modal_form_container' && 'myform' != 'whmcs_billing_address'){
  3923.                                        $('.modal-backdrop').hide();
  3924.                                    }
  3925.                                } else {
  3926.                                    if(typeof grecaptcha !== "undefined"){
  3927.                                        grecaptcha.reset();
  3928.                                    }
  3929.                                    if (!data['message']) {
  3930.                                        var message = `You entered invalid data. Please try to save again.`;
  3931.  
  3932.                                    } else {
  3933.                                        var message = data['message'];
  3934.                                    }
  3935.                                    $("#myform-notification").html(message)
  3936.                                        .addClass("alert-danger")
  3937.                                        .removeClass("alert-success")
  3938.                                        .removeClass("alert-warning")
  3939.                                        .fadeIn();
  3940.                                    fv.disableSubmitButtons(false);
  3941.                                }
  3942.                                counterSubmit = 0;
  3943.                            },
  3944.                            error: function (e) {
  3945.                                
  3946.                                if(typeof grecaptcha !== "undefined"){
  3947.                                        grecaptcha.reset();
  3948.                                        $("#myform-notification").html(`Recaptcha Error`);
  3949.                                } else {
  3950.                                    $("#myform-notification").html(`A connection error occurred while saving. Please try to save again.`);
  3951.                                }
  3952.                                $("#myform-notification").addClass("alert-warning")
  3953.                                    .removeClass("alert-success")
  3954.                                    .removeClass("alert-warning")
  3955.                                    .fadeIn();
  3956.                                counterSubmit = 0;
  3957.                            }
  3958.                        });/// End Ajax
  3959.                    }
  3960.                }//END else
  3961.            }).bind('keydown', function(event) {
  3962.  
  3963.                if (event.ctrlKey || event.metaKey) {
  3964.  
  3965.                    switch (String.fromCharCode(event.which).toLowerCase()) {
  3966.  
  3967.                        case 's':
  3968.                            $(this).submit();
  3969.                            break;
  3970.                    }
  3971.                }
  3972.            });
  3973.  
  3974.            /// This will turn any select2 that are required in the form builder to being required elements.
  3975.            $('#myform select').each(function (i, obj) {
  3976.                setTimeout(function(){
  3977.                    if ($(obj).prop("required") && $(obj).attr("style") == "display: none;") {
  3978.                        $(obj).css("z-index","-999");
  3979.                        $(obj).css("height","0");
  3980.                        $(obj).css("width","0");
  3981.                        $(obj).css("display","block");  
  3982.                        $(obj).css("position","absolute");  
  3983.                    }
  3984.                }, 3000);
  3985.            });
  3986.  
  3987.        });//END $('# echo $_SERVER[form_element_id]; ').formValidation(
  3988.    </script>
  3989.        <script>
  3990.    function showFBShare() {
  3991.        let currentURL = document.querySelector('meta[property="og:url"]').content;
  3992.        window.open(`https://www.facebook.com/sharer/sharer.php?u=${currentURL}`, `pop`, `width=600, height=400, scrollbars=no`);
  3993.    }
  3994. </script>
  3995. <script>
  3996.    var delayInMilliseconds = 300;
  3997.    if (!sessionStorage.getItem("googleTranslate") == 1) {
  3998.        sessionStorage.setItem("googleTranslate", "1");
  3999.        delayInMilliseconds = 7000;
  4000.    }
  4001.    let fbBtn = document.getElementsByClassName('fb-share-button')[0];
  4002.    if(typeof fbBtn != 'undefined' && fbBtn.dataset.layout){
  4003.        if (typeof loadFBjs == 'function') {
  4004.            loadFBjs(delayInMilliseconds);
  4005.        }
  4006.    }
  4007.  
  4008.    setTimeout(function() {
  4009.        $.when(
  4010.            $.getScript( "//platform.twitter.com/widgets.js" ),            $.getScript( "https://platform.linkedin.com/in.js?lang=en-US" ),
  4011.            $.Deferred(function( deferred ){
  4012.                $( deferred.resolve );
  4013.            })
  4014.        ).done(function(){
  4015.            $( ".spin_remove_2" ).hide();
  4016.            $( ".fb-share-button" ).show();
  4017.        });
  4018.    }, delayInMilliseconds);
  4019. </script><script>
  4020.     $('#newsletter input[name="email"]').on('keypress', function() {
  4021.        $("#newsletter > .gdpr_consent_email").show();
  4022.    });
  4023. $('#newsletter_signup_footer input[name="email"]').on('keypress', function() {
  4024.        $("#newsletter_signup_footer > .gdpr_consent_email").show();
  4025.    });
  4026. </script>        <script type="text/javascript">
  4027.  
  4028.        var counterSubmit = 0;
  4029.        $(document).ready(function() {
  4030.            $('#newsletter').formValidation({"framework":"bootstrap","addOns":{"reCaptcha2":{"element":"captchaContainer","language":"en","theme":"light","siteKey":"6LfVoqYeAAAAALTktBVfZgT70cY0msGOEvZs-UAE","timeout":"120","message":"The captcha is not valid"}},"fields":{"email":{"validators":{"notEmpty":{"message":"Required Field"},"emailAddress":{"message":"Please enter a valid email address"}}}}}).on('success.form.fv', function(e,fvdata) {
  4031.                
  4032.                if('newsletter' == 'unsubscribe_email'){
  4033.                    return true;
  4034.                }
  4035.                // Prevent form submission
  4036.                e.preventDefault();
  4037.                $form = $(e.target),
  4038.                fv = $form.data('formValidation');
  4039.                var values = $(this).serialize();
  4040.  
  4041.                
  4042.                var locationFieldCorrect = true;
  4043.  
  4044.                if($("#newsletter .location_required").length > 0){
  4045.                    $("#newsletter .location_required").each(function (index) {
  4046.                        if($(this).data('state') == 1){
  4047.                            if($('#newsletter input[name="lead_location"]').val() == "" || $('#newsletter input[name="lat"]').val() == "" || $('#newsletter input[name="lng"]').val() == "") {
  4048.                                locationFieldCorrect = false;
  4049.                            }
  4050.                        }
  4051.                    });
  4052.                }
  4053.  
  4054.                if(locationFieldCorrect === false){
  4055.                    //check that there is a latitude or longitude
  4056.                    swal(`Whoops!`, `The location information is required to submit this form`, "error");
  4057.                    return false;
  4058.                }
  4059.                        
  4060.  
  4061.                if (!$(this).attr("action")) {
  4062.                    var action = '';
  4063.  
  4064.                } else {
  4065.                    var action = $(this).attr("action");
  4066.                }
  4067.                if (!$(this).attr("method")) {
  4068.                    var method = 'post';
  4069.  
  4070.                } else {
  4071.                    var method = $(this).attr("method");
  4072.                }
  4073.                if (!$(this).attr("form_action_type")) {
  4074.                    var form_action_type = 'notification';
  4075.  
  4076.                } else {
  4077.                    var form_action_type = $(this).attr("form_action_type");
  4078.                }
  4079.                if (!$(this).attr("form_action_div")) {
  4080.                    var form_action_div = '#first_container';
  4081.  
  4082.                } else {
  4083.                    var form_action_div = $(this).attr("form_action_div");
  4084.                }
  4085.                if (!$(this).attr("return_data_type")) {
  4086.                    var return_data_type = 'json';
  4087.  
  4088.                } else {
  4089.                    var return_data_type = $(this).attr("return_data_type");
  4090.                }
  4091.                if ($("#newsletter-notification").html() != "") {
  4092.                    $("#newsletter-notification").remove();
  4093.                }
  4094.                if ($(this).find('input[type="submit"]').length > 0) {
  4095.                    $(this).find('input[type="submit"]').before('<div id="newsletter-notification" class="alert"></div>');
  4096.  
  4097.                } else {
  4098.                    $(this).prepend('<div id="newsletter-notification" class="alert"></div>');
  4099.                }
  4100.                var notification = $("#newsletter-notification");
  4101.  
  4102.                if ((form_action_type == "" || form_action_type == "default") && action.indexOf("account") >= 0) {
  4103.                    notification.html(`Processing Request...`).addClass("alert-warning");
  4104.                    setTimeout(function(){
  4105.                        fv.defaultSubmit();
  4106.                    }, 100);
  4107.                } else {
  4108.                    notification.html(`Processing Request...`).addClass("alert-warning");
  4109.                    if(counterSubmit == 0) {
  4110.                        counterSubmit++;
  4111.  
  4112.                        var fields      = $(this).serializeArray();
  4113.                        var formField   = [];
  4114.                        var processData = true;
  4115.                        var contentType = "application/x-www-form-urlencoded; charset=UTF-8";
  4116.                        
  4117.                        
  4118.  
  4119.                        if($("#newsletter input[type=file]").length > 0){
  4120.                            
  4121.                            var formObject  = new FormData();
  4122.                            processData     = false;
  4123.                            contentType     = false;
  4124.  
  4125.                            $(fields).each(function(index,field){
  4126.                                formField.push(field.name+"="+field.value);
  4127.                            });
  4128.  
  4129.                            values  = formField.join("&");
  4130.  
  4131.                            $(formField).each(function(index,fieldValue){
  4132.                                var fieldInfo = fieldValue.split('=');
  4133.                                formObject.append(fieldInfo[0],fieldInfo[1]);
  4134.                            });
  4135.  
  4136.                            $("#newsletter input[type=file]").each(function(index,node){
  4137.                                var file = this.files[0];
  4138.                                if(typeof file != "undefined"){
  4139.                                    formObject.append("file_addon["+$(node).attr('name')+"]", file, file.name);
  4140.                                }
  4141.                            });
  4142.                        }else{
  4143.                            
  4144.                            $(fields).each(function(index,field){
  4145.                                formField.push(field.name+"="+encodeURIComponent(field.value));
  4146.                            });
  4147.  
  4148.                            var formObject  = formField.join("&");
  4149.                        }
  4150.                        
  4151.                        $.ajax({
  4152.                            url: action,
  4153.                            type: method,
  4154.                            data: formObject,
  4155.                            dataType: return_data_type,
  4156.                            processData: processData,
  4157.                            contentType: contentType,
  4158.                            success: function (data) {
  4159.                                if (return_data_type == "html") {
  4160.                                    var result = 'success';
  4161.  
  4162.                                    if (!data != "") {
  4163.                                        var result_widget = data['result_widget'];
  4164.                                    }
  4165.  
  4166.                                } else {
  4167.  
  4168.  
  4169.                                    if (!data['result']) {
  4170.                                        var result = 'error';
  4171.                                    } else {
  4172.                                        var result = data['result'];
  4173.                                    }
  4174.                                    if (!data['result_widget']) {
  4175.                                        var result_widget = '';
  4176.  
  4177.                                    } else {
  4178.                                        var result_widget = data['result_widget'];
  4179.                                    }
  4180.                                }
  4181.                                if (result == "success") {
  4182.  
  4183.                                    if (!data['message']) {
  4184.                                        var message = `Your information has submitted successfully!`;
  4185.  
  4186.                                    } else {
  4187.                                        var message = data['message'];
  4188.                                    }
  4189.                                    if (!data['redirect_url']) {
  4190.                                        var redirect_url = '';
  4191.  
  4192.                                    } else {
  4193.                                        var redirect_url = data['redirect_url'];
  4194.                                    }
  4195.  
  4196.  
  4197.  
  4198.                                    if (form_action_type == "notification") {
  4199.                                        notification.html(message + '<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>')
  4200.                                            .addClass('alert-dismissible')
  4201.                                            .addClass("alert-success")
  4202.                                            .removeClass("alert-danger")
  4203.                                            .removeClass("alert-warning")
  4204.                                        
  4205.                                            
  4206.  
  4207.                                        if(notification.parents('.modal').length && 'newsletter' == 'whmcs_billing_address'){
  4208.                                            setTimeout(function(){
  4209.                                                notification.parents('.modal').modal('hide');
  4210.                                            }, 1000);
  4211.                                        }
  4212.  
  4213.                                    } else if (form_action_type == "widget") {
  4214.  
  4215.                                        if (result_widget != '') {
  4216.  
  4217.                                            setTimeout(function(){
  4218.                                                if(form_action_div != '.newsletter_modal_form_container'){
  4219.                                                    $("html, body").animate({ scrollTop: 0 }, 600);
  4220.                                                }                                                
  4221.                                                $(form_action_div).html(decodeHtml(result_widget)).text();
  4222.  
  4223.                                            }, 1000);
  4224.                                        }
  4225.  
  4226.                                    } else if (form_action_type == "redirect") {
  4227.  
  4228.                                        if (redirect_url == "") {
  4229.                                            redirect_url = decodeURIComponent("");
  4230.                                        }
  4231.  
  4232.                                        if (redirect_url.substring(0, 1) != "/" && redirect_url.substring(0, 1) != "h") {
  4233.                                            redirect_url = "/" + redirect_url;
  4234.                                        }
  4235.                                        current_location = "/united-states/yorba-linda/automotive/ocrv-center-rv-collision-repair-shop-paint-shop";
  4236.                                        refresh_pages_string = "/login";
  4237.                                        refresh_pages_string = refresh_pages_string.replace(/ /g,'');
  4238.                                        refresh_pages_array = refresh_pages_string.split(',');
  4239.                                        notification.html(message)
  4240.                                            .addClass("alert-success")
  4241.                                            .removeClass("alert-danger")
  4242.                                            .removeClass("alert-warning")
  4243.                                            .delay(2000).slideUp();
  4244.                                            if(action == "/api/widget/json/get/Bootstrap%20Theme%20-%20Member%20Login%20Page" && current_location.indexOf("/login") == -1 && refresh_pages_string != '' && (!refresh_pages_array.includes(current_location) || refresh_pages_string == "/login" )){
  4245.                                                                                                    window.location.href = window.location.href+'?logged';
  4246.                                                                                            } else {
  4247.                                                window.location.href = redirect_url;
  4248.                                            }
  4249.  
  4250.                                        fv.resetForm(true);
  4251.                                    }
  4252.                                    if(form_action_div != '.newsletter_modal_form_container' && 'newsletter' != 'whmcs_billing_address'){
  4253.                                        $('.modal-backdrop').hide();
  4254.                                    }
  4255.                                } else {
  4256.                                    if(typeof grecaptcha !== "undefined"){
  4257.                                        grecaptcha.reset();
  4258.                                    }
  4259.                                    if (!data['message']) {
  4260.                                        var message = `You entered invalid data. Please try to save again.`;
  4261.  
  4262.                                    } else {
  4263.                                        var message = data['message'];
  4264.                                    }
  4265.                                    $("#newsletter-notification").html(message)
  4266.                                        .addClass("alert-danger")
  4267.                                        .removeClass("alert-success")
  4268.                                        .removeClass("alert-warning")
  4269.                                        .fadeIn();
  4270.                                    fv.disableSubmitButtons(false);
  4271.                                }
  4272.                                counterSubmit = 0;
  4273.                            },
  4274.                            error: function (e) {
  4275.                                
  4276.                                if(typeof grecaptcha !== "undefined"){
  4277.                                        grecaptcha.reset();
  4278.                                        $("#newsletter-notification").html(`Recaptcha Error`);
  4279.                                } else {
  4280.                                    $("#newsletter-notification").html(`A connection error occurred while saving. Please try to save again.`);
  4281.                                }
  4282.                                $("#newsletter-notification").addClass("alert-warning")
  4283.                                    .removeClass("alert-success")
  4284.                                    .removeClass("alert-warning")
  4285.                                    .fadeIn();
  4286.                                counterSubmit = 0;
  4287.                            }
  4288.                        });/// End Ajax
  4289.                    }
  4290.                }//END else
  4291.            }).bind('keydown', function(event) {
  4292.  
  4293.                if (event.ctrlKey || event.metaKey) {
  4294.  
  4295.                    switch (String.fromCharCode(event.which).toLowerCase()) {
  4296.  
  4297.                        case 's':
  4298.                            $(this).submit();
  4299.                            break;
  4300.                    }
  4301.                }
  4302.            });
  4303.  
  4304.            /// This will turn any select2 that are required in the form builder to being required elements.
  4305.            $('#newsletter select').each(function (i, obj) {
  4306.                setTimeout(function(){
  4307.                    if ($(obj).prop("required") && $(obj).attr("style") == "display: none;") {
  4308.                        $(obj).css("z-index","-999");
  4309.                        $(obj).css("height","0");
  4310.                        $(obj).css("width","0");
  4311.                        $(obj).css("display","block");  
  4312.                        $(obj).css("position","absolute");  
  4313.                    }
  4314.                }, 3000);
  4315.            });
  4316.  
  4317.        });//END $('# echo $_SERVER[form_element_id]; ').formValidation(
  4318.    </script>
  4319.        <div class="modal fade" id="newsletter_subscribe_modal" tabindex="-1" role="dialog" aria-hidden="true">
  4320. <div class="modal-dialog">
  4321. <div class="modal-content">
  4322. <div class="container-fluid">
  4323. <div class="row">
  4324. <div class="col-md-12">
  4325. <br>
  4326. <button type="button" class="close" data-dismiss="modal" aria-label="Close">
  4327. <span aria-hidden="true">&times;</span>
  4328. </button>
  4329. <h3 class="nomargin">
  4330. Join Our Newsletter
  4331. </h3>
  4332. <hr>
  4333. <div class="newsletter_modal_form_container">
  4334. <style type="text/css">label span.required { color: #B94A48; }span.help-inline, span.help-block {font-size: .9em; }</style><form action="/api/widget/json/get/Bootstrap%20Theme%20-%20Module%20-%20Newsletter%20Actions" id="newsletter" method="post" labelwidth="100" labelpaddingtop="0.5em" enctype="multipart/form-data" form_action_type="widget" form_action_div=".newsletter_modal_form_container" return_data_type="" name="newsletter_modal_signup" class=" "><input type="hidden" name="sized" value="0" id="newsletter-element-0"/><input type="hidden" name="mysql_real_escape_string_runned" value="1" id="newsletter-element-1"/><input type="hidden" name="usertokenid" value="21423" id="newsletter-element-2"/><input type="hidden" name="saveinfo" value="1" id="newsletter-element-3"/><input type="hidden" name="vals" value="1|2" id="newsletter-element-4"/><input type="hidden" name="answerqmatch" value="3" id="newsletter-element-5"/><input type="hidden" name="form_source" value="%2Funited-states%2Fyorba-linda%2Fautomotive%2Focrv-center-rv-collision-repair-shop-paint-shop" id="newsletter-element-6"/><input type="hidden" name="form" value="myform" id="newsletter-element-7"/><input type="hidden" name="formname" value="newsletter_modal_signup" id="newsletter-element-8"/><input type="hidden" name="dowiz" value="1" id="newsletter-element-9"/><input type="hidden" name="save" value="1" id="newsletter-element-10"/><input type="hidden" name="url_origin_pars" value="/united-states/yorba-linda/automotive/ocrv-center-rv-collision-repair-shop-paint-shop" id="newsletter-element-11"/><input type="hidden" name="action" autocomplete="off" value="subscribe" id="newsletter-element-12"/><div class="form-group"><input type="text" name="first_name" placeholder="Name" autocomplete="off" value class="form-control control-group  form-control " id="newsletter-element-13"/></div><div class="form-group"><input type="email" name="email" required placeholder="Enter email address" autocomplete="off" value class="form-control control-group form-control" id="newsletter-element-14"/></div><div class="form-group"><div class="form-group security_question_label">
  4335.            <div id="newsletter-captchaContainer" class="control-group">
  4336.        <div class="g-recaptcha"  id="newsletter-google-recaptcha"></div>
  4337.    </div>
  4338.    <small class="help-block" id="recaptcha_error" style="display:none;" data-fv-validator="notEmpty" data-fv-for="recaptcha" data-fv-result="INVALID" />The security check was not completed successfully.</small>
  4339.    <div class="clearfix bmargin"></div>
  4340.    <input type="hidden" name="recaptcha" id="newsletter-rcap">
  4341. </div>
  4342.    <style>
  4343.        .modal .g-recaptcha-scale, .col-md-4 .g-recaptcha-scale, .col-md-3 .g-recaptcha-scale, .col-lg-3 .g-recaptcha-scale, .col-lg-4 .g-recaptcha-scale {
  4344.            transform: scale(0.77);
  4345.            -webkit-transform: scale(0.77);
  4346.            transform-origin: 0 0;
  4347.            -webkit-transform-origin: 0 0;
  4348.            margin-bottom: -15px;
  4349.        }
  4350.  
  4351.        .modal #newsletter-captchaContainer, .col-md-4 #newsletter-captchaContainer, .col-md-3 #newsletter-captchaContainer, .col-lg-3 #newsletter-captchaContainer, .col-lg-4 #newsletter-captchaContainer {
  4352.            transform: scale(0.77);
  4353.            -webkit-transform: scale(0.77);
  4354.            transform-origin: 0 0;
  4355.            -webkit-transform-origin: 0 0;
  4356.            margin-bottom: -15px;
  4357.        }
  4358.    </style>
  4359.    <script type="text/javascript">
  4360.        var formID          = '';
  4361.        var currentCaptcha  = {};
  4362.        var captchaHolders  = {};
  4363.        window.addEventListener('load', () => {
  4364.            formID = document.querySelectorAll('[name="recaptcha"]');
  4365.            if (typeof formID != "undefined" && formID !== null) {
  4366.                for (let i = 0; i < formID.length; i++) {
  4367.                    let formIDForm = formID[i].closest('form');
  4368.                    if (typeof formIDForm != "undefined" && formIDForm !== null) {
  4369.                        formIDForm.addEventListener('click', reCaptchaOnFormClick, false);
  4370.                    }
  4371.                }
  4372.            }
  4373.        });
  4374.  
  4375.        function reCaptchaOnFormClick(event) {
  4376.            currentCaptchaForm  = event.srcElement.closest('form');
  4377.            var head            = document.getElementsByTagName('head')[0];
  4378.            var script          = document.createElement('script');
  4379.            script.type         = 'text/javascript';
  4380.            script.src          = 'https://www.google.com/recaptcha/api.js?onload=onloadCallback&render=explicit&hl=en';
  4381.            head.appendChild(script);
  4382.            if (typeof currentCaptchaForm != "undefined" && currentCaptchaForm !== null) {
  4383.                currentCaptchaForm.removeEventListener('click', reCaptchaOnFormClick, false);
  4384.            }
  4385.        }
  4386.  
  4387.  
  4388.        var onloadCallback = function (event) {
  4389.            var captcha = currentCaptchaForm.querySelectorAll('div[class=g-recaptcha]');
  4390.            if(captcha[0].id){
  4391.                captchaHolders[captcha[0].id] = grecaptcha.render(captcha[0].id, {
  4392.                    'sitekey': '6LfVoqYeAAAAALTktBVfZgT70cY0msGOEvZs-UAE'
  4393.                });
  4394.            }
  4395.        }
  4396.  
  4397.    </script>
  4398. <script>
  4399.    function respuesta() {
  4400.        var checkedTextArea = document.getElementsByClassName('g-recaptcha');
  4401.        var rcap = document.getElementsByTagName('recaptcha');
  4402.        for (var i = 0; i < checkedTextArea.length; i++) {
  4403.            if (checkedTextArea[i].value != '') {
  4404.                for (var index = 0; i < rcap.length; index++) {
  4405.                    rcap[index].setAttribute("value", "checked");
  4406.                }
  4407.            }
  4408.        }
  4409.    }
  4410.  
  4411.    $(document).ready(function(){
  4412.        $("#newsletter input[type=submit]").unbind('click');
  4413.        $("#newsletter input[type=submit]").click(function (event) {
  4414.  
  4415.            var formId = $(this.form).attr('id');
  4416.            var captchaHolderKey = formId + "-google-recaptcha";
  4417.  
  4418.            if (typeof captchaHolders[captchaHolderKey] != "undefined") {
  4419.                event.preventDefault();
  4420.  
  4421.                if (grecaptcha.getResponse(captchaHolders[captchaHolderKey]) === "") {
  4422.                    $("#" + formId).formValidation('validate');
  4423.                    $("#" + formId + " .security_question_label").addClass("has-error");
  4424.                    $("#" + formId + " #recaptcha_error").css("display", "block");
  4425.                    return false;
  4426.                } else {
  4427.                    $("#" + formId + " .security_question_label").removeClass("has-error");
  4428.                    $("#" + formId + " #recaptcha_error").css("display", "none");
  4429.                    respuesta();
  4430.                    $("#" + formId).submit();
  4431.                }
  4432.            }
  4433.        });
  4434.    });
  4435. </script></div><div class="form-group"><input type="hidden" name="bd_hpc" autocomplete="off" value class="form-control control-group " id="newsletter-element-17"/></div><div class="form-actions"><input type="submit" value="Subscribe Now" name class="btn btn-success btn-block btn-lg  bold " id="newsletter-element-18"/></div><input type='hidden' name='origin' value='/united-states/yorba-linda/automotive/ocrv-center-rv-collision-repair-shop-paint-shop'></form><script type="text/javascript">jQuery(document).ready(function() { jQuery("#newsletter").bind("submit", function() {
  4436. });}); </script> </div>
  4437. <br>
  4438. </div>
  4439. </div>
  4440. </div>
  4441. </div>
  4442. </div>
  4443. </div>                <script src="https://www.optimizecdn.com/directory/cdn/bootstrap/formvalidation/current/dist/js/formValidation.min.js"></script>
  4444.                <script src="https://www.optimizecdn.com/directory/cdn/bootstrap/formvalidation/current/dist/js/framework/bootstrap.min.js"></script>
  4445.                <script type="text/javascript">
  4446.                    function decodeHtml(html) {
  4447.                        var txt = document.createElement("textarea");
  4448.                        txt.innerHTML = html;
  4449.                        return txt.value;
  4450.                    }
  4451.                </script>
  4452.                        <script type="text/javascript">
  4453.  
  4454.        var counterSubmit = 0;
  4455.        $(document).ready(function() {
  4456.            $('#member_login').formValidation({"framework":"bootstrap","fields":{"email":{"validators":{"notEmpty":{"message":"Required Field"},"emailAddress":{"message":"Please enter a valid email address"}}},"pass":{"validators":{"notEmpty":{"message":"Required Field"}}}}}).on('success.form.fv', function(e,fvdata) {
  4457.                
  4458.                if('member_login' == 'unsubscribe_email'){
  4459.                    return true;
  4460.                }
  4461.                // Prevent form submission
  4462.                e.preventDefault();
  4463.                $form = $(e.target),
  4464.                fv = $form.data('formValidation');
  4465.                var values = $(this).serialize();
  4466.  
  4467.                
  4468.                var locationFieldCorrect = true;
  4469.  
  4470.                if($("#member_login .location_required").length > 0){
  4471.                    $("#member_login .location_required").each(function (index) {
  4472.                        if($(this).data('state') == 1){
  4473.                            if($('#member_login input[name="lead_location"]').val() == "" || $('#member_login input[name="lat"]').val() == "" || $('#member_login input[name="lng"]').val() == "") {
  4474.                                locationFieldCorrect = false;
  4475.                            }
  4476.                        }
  4477.                    });
  4478.                }
  4479.  
  4480.                if(locationFieldCorrect === false){
  4481.                    //check that there is a latitude or longitude
  4482.                    swal(`Whoops!`, `The location information is required to submit this form`, "error");
  4483.                    return false;
  4484.                }
  4485.                        
  4486.  
  4487.                if (!$(this).attr("action")) {
  4488.                    var action = '';
  4489.  
  4490.                } else {
  4491.                    var action = $(this).attr("action");
  4492.                }
  4493.                if (!$(this).attr("method")) {
  4494.                    var method = 'post';
  4495.  
  4496.                } else {
  4497.                    var method = $(this).attr("method");
  4498.                }
  4499.                if (!$(this).attr("form_action_type")) {
  4500.                    var form_action_type = 'notification';
  4501.  
  4502.                } else {
  4503.                    var form_action_type = $(this).attr("form_action_type");
  4504.                }
  4505.                if (!$(this).attr("form_action_div")) {
  4506.                    var form_action_div = '#first_container';
  4507.  
  4508.                } else {
  4509.                    var form_action_div = $(this).attr("form_action_div");
  4510.                }
  4511.                if (!$(this).attr("return_data_type")) {
  4512.                    var return_data_type = 'json';
  4513.  
  4514.                } else {
  4515.                    var return_data_type = $(this).attr("return_data_type");
  4516.                }
  4517.                if ($("#member_login-notification").html() != "") {
  4518.                    $("#member_login-notification").remove();
  4519.                }
  4520.                if ($(this).find('input[type="submit"]').length > 0) {
  4521.                    $(this).find('input[type="submit"]').before('<div id="member_login-notification" class="alert"></div>');
  4522.  
  4523.                } else {
  4524.                    $(this).prepend('<div id="member_login-notification" class="alert"></div>');
  4525.                }
  4526.                var notification = $("#member_login-notification");
  4527.  
  4528.                if ((form_action_type == "" || form_action_type == "default") && action.indexOf("account") >= 0) {
  4529.                    notification.html(`Processing Request...`).addClass("alert-warning");
  4530.                    setTimeout(function(){
  4531.                        fv.defaultSubmit();
  4532.                    }, 100);
  4533.                } else {
  4534.                    notification.html(`Processing Request...`).addClass("alert-warning");
  4535.                    if(counterSubmit == 0) {
  4536.                        counterSubmit++;
  4537.  
  4538.                        var fields      = $(this).serializeArray();
  4539.                        var formField   = [];
  4540.                        var processData = true;
  4541.                        var contentType = "application/x-www-form-urlencoded; charset=UTF-8";
  4542.                        
  4543.                        
  4544.  
  4545.                        if($("#member_login input[type=file]").length > 0){
  4546.                            
  4547.                            var formObject  = new FormData();
  4548.                            processData     = false;
  4549.                            contentType     = false;
  4550.  
  4551.                            $(fields).each(function(index,field){
  4552.                                formField.push(field.name+"="+field.value);
  4553.                            });
  4554.  
  4555.                            values  = formField.join("&");
  4556.  
  4557.                            $(formField).each(function(index,fieldValue){
  4558.                                var fieldInfo = fieldValue.split('=');
  4559.                                formObject.append(fieldInfo[0],fieldInfo[1]);
  4560.                            });
  4561.  
  4562.                            $("#member_login input[type=file]").each(function(index,node){
  4563.                                var file = this.files[0];
  4564.                                if(typeof file != "undefined"){
  4565.                                    formObject.append("file_addon["+$(node).attr('name')+"]", file, file.name);
  4566.                                }
  4567.                            });
  4568.                        }else{
  4569.                            
  4570.                            $(fields).each(function(index,field){
  4571.                                formField.push(field.name+"="+encodeURIComponent(field.value));
  4572.                            });
  4573.  
  4574.                            var formObject  = formField.join("&");
  4575.                        }
  4576.                        
  4577.                        $.ajax({
  4578.                            url: action,
  4579.                            type: method,
  4580.                            data: formObject,
  4581.                            dataType: return_data_type,
  4582.                            processData: processData,
  4583.                            contentType: contentType,
  4584.                            success: function (data) {
  4585.                                if (return_data_type == "html") {
  4586.                                    var result = 'success';
  4587.  
  4588.                                    if (!data != "") {
  4589.                                        var result_widget = data['result_widget'];
  4590.                                    }
  4591.  
  4592.                                } else {
  4593.  
  4594.  
  4595.                                    if (!data['result']) {
  4596.                                        var result = 'error';
  4597.                                    } else {
  4598.                                        var result = data['result'];
  4599.                                    }
  4600.                                    if (!data['result_widget']) {
  4601.                                        var result_widget = '';
  4602.  
  4603.                                    } else {
  4604.                                        var result_widget = data['result_widget'];
  4605.                                    }
  4606.                                }
  4607.                                if (result == "success") {
  4608.  
  4609.                                    if (!data['message']) {
  4610.                                        var message = `Your information has submitted successfully!`;
  4611.  
  4612.                                    } else {
  4613.                                        var message = data['message'];
  4614.                                    }
  4615.                                    if (!data['redirect_url']) {
  4616.                                        var redirect_url = '';
  4617.  
  4618.                                    } else {
  4619.                                        var redirect_url = data['redirect_url'];
  4620.                                    }
  4621.  
  4622.  
  4623.  
  4624.                                    if (form_action_type == "notification") {
  4625.                                        notification.html(message + '<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>')
  4626.                                            .addClass('alert-dismissible')
  4627.                                            .addClass("alert-success")
  4628.                                            .removeClass("alert-danger")
  4629.                                            .removeClass("alert-warning")
  4630.                                        
  4631.                                            
  4632.  
  4633.                                        if(notification.parents('.modal').length && 'member_login' == 'whmcs_billing_address'){
  4634.                                            setTimeout(function(){
  4635.                                                notification.parents('.modal').modal('hide');
  4636.                                            }, 1000);
  4637.                                        }
  4638.  
  4639.                                    } else if (form_action_type == "widget") {
  4640.  
  4641.                                        if (result_widget != '') {
  4642.  
  4643.                                            setTimeout(function(){
  4644.                                                if(form_action_div != '.newsletter_modal_form_container'){
  4645.                                                    $("html, body").animate({ scrollTop: 0 }, 600);
  4646.                                                }                                                
  4647.                                                $(form_action_div).html(decodeHtml(result_widget)).text();
  4648.  
  4649.                                            }, 1000);
  4650.                                        }
  4651.  
  4652.                                    } else if (form_action_type == "redirect") {
  4653.  
  4654.                                        if (redirect_url == "") {
  4655.                                            redirect_url = decodeURIComponent("");
  4656.                                        }
  4657.  
  4658.                                        if (redirect_url.substring(0, 1) != "/" && redirect_url.substring(0, 1) != "h") {
  4659.                                            redirect_url = "/" + redirect_url;
  4660.                                        }
  4661.                                        current_location = "/united-states/yorba-linda/automotive/ocrv-center-rv-collision-repair-shop-paint-shop";
  4662.                                        refresh_pages_string = "/login";
  4663.                                        refresh_pages_string = refresh_pages_string.replace(/ /g,'');
  4664.                                        refresh_pages_array = refresh_pages_string.split(',');
  4665.                                        notification.html(message)
  4666.                                            .addClass("alert-success")
  4667.                                            .removeClass("alert-danger")
  4668.                                            .removeClass("alert-warning")
  4669.                                            .delay(2000).slideUp();
  4670.                                            if(action == "/api/widget/json/get/Bootstrap%20Theme%20-%20Member%20Login%20Page" && current_location.indexOf("/login") == -1 && refresh_pages_string != '' && (!refresh_pages_array.includes(current_location) || refresh_pages_string == "/login" )){
  4671.                                                                                                    window.location.href = window.location.href+'?logged';
  4672.                                                                                            } else {
  4673.                                                window.location.href = redirect_url;
  4674.                                            }
  4675.  
  4676.                                        fv.resetForm(true);
  4677.                                    }
  4678.                                    if(form_action_div != '.newsletter_modal_form_container' && 'member_login' != 'whmcs_billing_address'){
  4679.                                        $('.modal-backdrop').hide();
  4680.                                    }
  4681.                                } else {
  4682.                                    if(typeof grecaptcha !== "undefined"){
  4683.                                        grecaptcha.reset();
  4684.                                    }
  4685.                                    if (!data['message']) {
  4686.                                        var message = `You entered invalid data. Please try to save again.`;
  4687.  
  4688.                                    } else {
  4689.                                        var message = data['message'];
  4690.                                    }
  4691.                                    $("#member_login-notification").html(message)
  4692.                                        .addClass("alert-danger")
  4693.                                        .removeClass("alert-success")
  4694.                                        .removeClass("alert-warning")
  4695.                                        .fadeIn();
  4696.                                    fv.disableSubmitButtons(false);
  4697.                                }
  4698.                                counterSubmit = 0;
  4699.                            },
  4700.                            error: function (e) {
  4701.                                
  4702.                                if(typeof grecaptcha !== "undefined"){
  4703.                                        grecaptcha.reset();
  4704.                                        $("#member_login-notification").html(`Recaptcha Error`);
  4705.                                } else {
  4706.                                    $("#member_login-notification").html(`A connection error occurred while saving. Please try to save again.`);
  4707.                                }
  4708.                                $("#member_login-notification").addClass("alert-warning")
  4709.                                    .removeClass("alert-success")
  4710.                                    .removeClass("alert-warning")
  4711.                                    .fadeIn();
  4712.                                counterSubmit = 0;
  4713.                            }
  4714.                        });/// End Ajax
  4715.                    }
  4716.                }//END else
  4717.            }).bind('keydown', function(event) {
  4718.  
  4719.                if (event.ctrlKey || event.metaKey) {
  4720.  
  4721.                    switch (String.fromCharCode(event.which).toLowerCase()) {
  4722.  
  4723.                        case 's':
  4724.                            $(this).submit();
  4725.                            break;
  4726.                    }
  4727.                }
  4728.            });
  4729.  
  4730.            /// This will turn any select2 that are required in the form builder to being required elements.
  4731.            $('#member_login select').each(function (i, obj) {
  4732.                setTimeout(function(){
  4733.                    if ($(obj).prop("required") && $(obj).attr("style") == "display: none;") {
  4734.                        $(obj).css("z-index","-999");
  4735.                        $(obj).css("height","0");
  4736.                        $(obj).css("width","0");
  4737.                        $(obj).css("display","block");  
  4738.                        $(obj).css("position","absolute");  
  4739.                    }
  4740.                }, 3000);
  4741.            });
  4742.  
  4743.        });//END $('# echo $_SERVER[form_element_id]; ').formValidation(
  4744.    </script>
  4745.            <script>
  4746.        window.addEventListener('load', (event) => {
  4747.            setTimeout(() => {
  4748.                    }, 501);
  4749.        });
  4750.    </script>
  4751. <script>
  4752. function decision(message, url) {
  4753. if (confirm(message)) {
  4754. setTimeout(function () {
  4755. window.location = url;
  4756. }, 0);
  4757. }
  4758. }
  4759. </script>
  4760. <script>
  4761. // Function to add alt attributes to <img> elements without it, for better pagespeed accessibility score
  4762. document.addEventListener('DOMContentLoaded', function() {
  4763. var images = document.querySelectorAll('img:not([alt])');
  4764. Array.prototype.forEach.call(images, function(img) {
  4765. var src = img.getAttribute('src') || 'image';  // Default src to 'image' if missing
  4766. var altText = src.split('/').pop().split('?')[0].replace(/\.\w+$/, '');
  4767.  
  4768. try {
  4769. altText = decodeURIComponent(altText)
  4770. .replace(/[_\-+,.:;]+/g, ' ')
  4771. .replace(/\s+/g, ' ')
  4772. .trim();
  4773. } catch (e) {
  4774. altText = 'image';  // Fallback to 'image' if decoding fails
  4775. }
  4776.  
  4777. // Ensure altText is not empty, otherwise use 'image'
  4778. altText = altText || 'image';
  4779.  
  4780. img.setAttribute('alt', altText);
  4781. });
  4782. });
  4783. </script><style type='text/css'> select#sid[disabled], select#tid[disabled], select.combobox[disabled], select#bd-chained[disabled], select#category-chained[disabled], select.infinite-chained[disabled], select.subcategory-chained[disabled], select.search-chained[disabled], select#country-chained[disabled], select#state-chained[disabled], select#country-chained-2[disabled], select#state-chained-2[disabled], select#profession_id[disabled] {
  4784.    cursor: wait
  4785. }
  4786. select.select2-preload {
  4787.    line-height: initial;
  4788. }
  4789.  
  4790. select#sid, select#tid, select.combobox, select#bd-chained, select#category-chained, select.infinite-chained, select.subcategory-chained, select.search-chained, select#country-chained, select#state-chained, select#country-chained-2, select#state-chained-2, select#profession_id, [name^="bd_phone_country_code"] {
  4791.    -webkit-appearance: none;
  4792.    -moz-appearance: none;
  4793.    appearance: none;
  4794.    background-image: url(/images/select2ArrowDown.png) !important;
  4795.    background-repeat: no-repeat !important;
  4796.    background-size: 10px 9px !important;
  4797.    background-position: 99% 16px;
  4798.    border-radius: 6px;
  4799.    overflow: hidden;
  4800. }
  4801. .module select#sid, .module select#tid, .module select.combobox, .module select#bd-chained, .module select#category-chained, .module select.infinite-chained, .module select.subcategory-chained, .module select.search-chained, .module select#country-chained, .module select#state-chained, .module select#country-chained-2, .module select#state-chained-2, .module select#profession_id, [name^="bd_phone_country_code"] {
  4802.    background-position: 98.2% 12px;
  4803. } </style>    <!-- DROPDOWN SELECT SCRIPT -->
  4804.    <!-- Select2 CSS Included in website-styles.pkgd.min.css -->
  4805.    <!--[if lt IE 9]>
  4806.    <script defer src="https://www.optimizecdn.com/directory/cdn/assets/html5shiv/3.7.2/html5shiv.min.js"></script>
  4807.    <script defer src="https://www.optimizecdn.com/directory/cdn/bootstrap/select2/master/js/respond.min.js"></script>
  4808.    <![endif]-->
  4809.    <script>
  4810.  
  4811.        var preloaded_ttid  = false;
  4812.        var preloaded_tid   = false;
  4813.        var preloaded_sid   = false;
  4814.        var path            = window.location.pathname.replace(/\//g, "_");
  4815.  
  4816.        if (performance.navigation.type !== 2) {
  4817.            if (sessionStorage.getItem('select2_ttid'+path) !== null) {
  4818.                sessionStorage.removeItem('select2-ttid'+path);
  4819.            }
  4820.  
  4821.            if (sessionStorage.getItem('select2-tid'+path) !== null) {
  4822.                sessionStorage.removeItem('select2-tid'+path);
  4823.            }
  4824.  
  4825.            if (sessionStorage.getItem('select2-sid'+path) !== null) {
  4826.                sessionStorage.removeItem('select2-sid'+path);
  4827.            }
  4828.  
  4829.        }else if(performance.navigation.type === 2){
  4830.            if (sessionStorage.getItem('select2-ttid'+path) !== null) {
  4831.                preloaded_ttid = sessionStorage.getItem('select2-ttid'+path);
  4832.            }
  4833.  
  4834.            if (sessionStorage.getItem('select2-tid'+path) !== null) {
  4835.                preloaded_tid = sessionStorage.getItem('select2-tid'+path);
  4836.            }
  4837.  
  4838.            if (sessionStorage.getItem('select2-sid'+path) !== null) {
  4839.                preloaded_sid = sessionStorage.getItem('select2-sid'+path);
  4840.            }
  4841.        }
  4842.  
  4843.        window.addEventListener('load', () => {
  4844.            let select2Inputs = document.querySelectorAll('.select-category-chained,#sid,#tid,.combobox,#bd-chained,#category-chained,.infinite-chained,.subcategory-chained,.search-chained,select#country-chained,#state-chained,#country-chained-2,#state-chained-2,#profession_id,[name^="bd_phone_country_code"]');
  4845.            if (typeof select2Inputs != "undefined") {
  4846.                for (let i = 0; i < select2Inputs.length; i++) {
  4847.                    let inputPlaceHolder = select2Inputs[i].getAttribute('placeholder');
  4848.                    if (!select2Inputs[i].getAttribute('placeholder')) {
  4849.                        inputPlaceHolder = select2Inputs[i].getAttribute('data-placeholder');
  4850.                    }
  4851.                    let countryCode = select2Inputs[i].getAttribute('data-country-code');
  4852.                    if (select2Inputs[i].getAttribute('data-country-code') != null && countryCode > 0 && typeof isoCountries != 'undefined') {
  4853.                        for (let c = 0; c < isoCountries.length; c++) {
  4854.                            if(isoCountries[c].id == countryCode){
  4855.                                //   select2Inputs[i].querySelector('option:first-child').text = isoCountries[c].text;
  4856.                                select2Inputs[i].text = isoCountries[c].text;
  4857.                            }
  4858.                        }
  4859.  
  4860.                    }
  4861.                    if(select2Inputs[i].hasAttribute('data-country-code')){
  4862.                        inputPlaceHolder = null; //reset the input
  4863.                    }
  4864.                    if (inputPlaceHolder != '' && inputPlaceHolder !== null) {
  4865.                        select2Inputs[i].querySelector('option:first-child').text = inputPlaceHolder;
  4866.                        select2Inputs[i].style.color = "#a8a8a8";
  4867.                        if(!select2Inputs[i].querySelector('option:first-child').hasAttribute('value')){
  4868.                            select2Inputs[i].querySelector('option:first-child').value='';
  4869.                        }
  4870.                    }
  4871.                    select2Inputs[i].classList.add("select2-preload");
  4872.                    select2Inputs[i].addEventListener('mousedown', select2OnFormClick, false);
  4873.                }
  4874.            }
  4875.        });
  4876.  
  4877.        function select2OnFormClick(event = false) {
  4878.            let elemtClicked = '';
  4879.            if (event !== false) {
  4880.                event.preventDefault();
  4881.                event.stopImmediatePropagation();
  4882.                elemtClicked = event.target;
  4883.                elemtClicked.disabled = true;
  4884.            }
  4885.  
  4886.            let loadScriptAsync = function (uri) {
  4887.                return new Promise((resolve, reject) => {
  4888.                    let script = document.createElement('script');
  4889.                    script.type = 'text/javascript';
  4890.                    script.src = uri;
  4891.                    script.async = true;
  4892.                    script.onload = function () {
  4893.                        if (event !== false) {
  4894.                            elemtClicked.disabled = false;
  4895.                            select2Initialize();
  4896.                            $(elemtClicked).select2('open');
  4897.                            $(elemtClicked).on("select2-close", function () {
  4898.                                setTimeout(function() {
  4899.                                    $('.select2-container-active').removeClass('select2-container-active');
  4900.                                    $(':focus').blur();
  4901.                                }, 1);
  4902.                            });
  4903.                            if (elemtClicked.hasAttribute('data-fv-field')) {
  4904.                                if (window.getComputedStyle(elemtClicked).display === "none") {
  4905.                                    // if element is display none, the formvalition can not read
  4906.                                    elemtClicked.style.cssText = "display: block;position: absolute;visibility: hidden !important;height: 0;width: 0;opacity: 0 !important;"
  4907.                                }
  4908.                            }
  4909.                        } else {
  4910.                            select2Initialize();
  4911.                        }
  4912.                        resolve("ok");
  4913.                    };
  4914.                    let head = document.getElementsByTagName('head')[0];
  4915.                    head.appendChild(script);
  4916.                });
  4917.            }
  4918.  
  4919.            let select2Inputs = document.querySelectorAll('.select-category-chained,#sid,#tid,.combobox,#bd-chained,#category-chained,.infinite-chained,.subcategory-chained,.search-chained,select#country-chained,#state-chained,#country-chained-2,#state-chained-2,#profession_id,[name^="bd_phone_country_code"]');
  4920.  
  4921.            if (typeof select2Inputs != "undefined") {
  4922.                for (let i = 0; i < select2Inputs.length; i++) {
  4923.                    let inputPlaceHolder = select2Inputs[i].getAttribute('placeholder');
  4924.                    if (!select2Inputs[i].getAttribute('placeholder')) {
  4925.                        inputPlaceHolder = select2Inputs[i].getAttribute('data-placeholder');
  4926.                    }
  4927.                    if(select2Inputs[i].hasAttribute('data-country-code')){
  4928.                        inputPlaceHolder = null; //reset the input
  4929.                    }
  4930.                    if (inputPlaceHolder != '' && inputPlaceHolder !== null) {
  4931.                        select2Inputs[i].querySelector('option:first-child').text = '';
  4932.                    }
  4933.                    select2Inputs[i].removeEventListener('mousedown', select2OnFormClick, false);
  4934.                }
  4935.            }
  4936.            let scriptLoaded = loadScriptAsync('https://www.optimizecdn.com/directory/cdn/bootstrap/select2/3.5.2/select2.min.js?v=3.5.5');
  4937.            return scriptLoaded;
  4938.        }
  4939.  
  4940.        function select2Initialize(){
  4941.            function getSecondLevel(div,id) {
  4942.                $("#" + div).select2("data", {
  4943.                    id: "",
  4944.                    text: "Loading..."
  4945.                });
  4946.                $.ajax({
  4947.                    url : '/ajaxsearch/get-services',
  4948.                    type : "GET",
  4949.                    data : {
  4950.                        'specialty_id' : id
  4951.                    },
  4952.                    dataType: "json",
  4953.                    success : function(data) {
  4954.                        var options = '';
  4955.  
  4956.                        for (var i = 0; i < data.length; i++) {
  4957.                            options += '<option value="' + data[i].value + '">' + data[i].title + '</option>';
  4958.                        }
  4959.                        if (div == "tid"){
  4960.                            $("#ttid").select2("data", {
  4961.                                id: "",
  4962.                                text: "No options available"
  4963.                            });
  4964.  
  4965.  
  4966.                            $("#ttid").select2("enable", false);
  4967.  
  4968.                            $("#" + div).change(function () {
  4969.                                sessionStorage.setItem("select2-tid"+path,$(this).val());
  4970.                            });
  4971.                        }
  4972.                        if (data.length > 1) {
  4973.                            $("#" + div).select2("enable",true);
  4974.                            $("#" + div).html(options);
  4975.                            $("#" + div).select2("val", "");
  4976.                            
  4977.                        } else {
  4978.                            $("#"+div).select2("data", {
  4979.                                id: "",
  4980.                                text: "No options available"
  4981.                            });
  4982.                            $("#"+div).select2("val", "");
  4983.                        }
  4984.  
  4985.                        if(div == 'tid' && preloaded_tid !== false){
  4986.                            $("#" + div).select2("val", preloaded_tid);
  4987.                        }
  4988.                    }
  4989.                });
  4990.            }
  4991.            function getSecondLevelAccount(div,id) {
  4992.                $("#" + div).select2("data", {
  4993.                    id: "",
  4994.                    text: "Loading..."
  4995.                });
  4996.                $.ajax({
  4997.                    url : '/ajaxsearch/get-services',
  4998.                    type : "GET",
  4999.                    data : {
  5000.                        'specialty_id' : id
  5001.                    },
  5002.                    dataType: "json",
  5003.                    success : function(data) {
  5004.                        var options = '';
  5005.  
  5006.                        for (var i = 0; i < data.length; i++) {
  5007.                            options += '<option value="' + data[i].value + '">' + data[i].title + '</option>';
  5008.                        }
  5009.                        if (data.length > 1) {
  5010.                            $("#" + div).select2("close");
  5011.                            $("#" + div).select2("val", "");
  5012.                            $("#" + div).select2("enable",true);
  5013.                            $("#" + div).html(options);
  5014.  
  5015.                            
  5016.                        } else {
  5017.                            $("#"+div).select2("data", {
  5018.                                id: "",
  5019.                                text: "No options available"
  5020.                            });
  5021.                            $("#"+div).select2("val", "");
  5022.                        }
  5023.                    }
  5024.                });
  5025.            }
  5026.            function getThirdLevel(div,id,id2) {
  5027.                $("#"+div).select2("data", {
  5028.                    id: "",
  5029.                    text: "Loading..."
  5030.                });
  5031.  
  5032.                $.ajax({
  5033.                    url : '/ajaxsearch/get-locations',
  5034.                    type : "GET",
  5035.                    data : {
  5036.                        'specialty_id' : id,
  5037.                        'treatment_id' : id2,
  5038.                    },
  5039.                    dataType: "json",
  5040.                    success : function(data) {
  5041.                        var options = '';
  5042.  
  5043.                        for (var i = 0; i < data.length; i++) {
  5044.                            options += '<option value="' + data[i].value + '">' + data[i].title + '</option>';
  5045.                        }
  5046.                        if (data.length > 1) {
  5047.                            $("#" + div).select2("enable",true);
  5048.                            $("#" + div).html(options);
  5049.                            $("#" + div).select2("val", "");
  5050.                            
  5051.                        } else {
  5052.                            $("#"+div).select2("data", {
  5053.                                id: "",
  5054.                                text: "No options available"
  5055.                            });
  5056.                            $("#"+div).select2("val", "");
  5057.                        }
  5058.                    }
  5059.                });
  5060.            }
  5061.            var current_country = '';
  5062.            function getStateList(div,id) {
  5063.                if (id != current_country) {
  5064.  
  5065.                    $("#"+div).select2("data", {
  5066.                        id: "",
  5067.                        text: "Loading..."
  5068.                    });
  5069.                    $.ajax({
  5070.                        url : '/ajaxsearch/get-states',
  5071.                        type : "GET",
  5072.                        data : {
  5073.                            'country' : id
  5074.                        },
  5075.                        dataType: "json",
  5076.                        success : function(data) {
  5077.                            $("#" + div).html(''); // clear options
  5078.  
  5079.  
  5080.                            if (data.length > 1) {
  5081.                                var options = '';
  5082.                                for (var i = 0; i < data.length; i++) {
  5083.                                    //  options += '<option value="' + data[i].value + '">' + data[i].title + '</option>';
  5084.                                    var newOption = new Option(data[i].title, data[i].value, false, false);
  5085.                                    $("#" + div).append(newOption).trigger('change');
  5086.  
  5087.                                }
  5088.  
  5089.                                $("#" + div).select2("enable",true);
  5090.                                //$("#" + div).html(options);
  5091.                                $("#" + div).prop("disabled", false);
  5092.                                $("#" + div).select2("val", "");
  5093.                                $("#" + div).select2("open");
  5094.                            }
  5095.                        }
  5096.                    });
  5097.                } else {
  5098.                    $("#" + div).select2("val", "");
  5099.                }
  5100.            }
  5101.            function getInfinityChained(div,id) {
  5102.                $("#"+div).select2("data", {
  5103.                    id: "",
  5104.                    text: "Loading..."
  5105.                });
  5106.                $.ajax({
  5107.                    url : '/ajaxsearch/get-subcategory',
  5108.                    type : "GET",
  5109.                    data : {
  5110.                        'parent' : id
  5111.                    },
  5112.                    dataType: "json",
  5113.                    success : function(data) {
  5114.                        var options = '';
  5115.  
  5116.                        for (var i = 0; i < data.length; i++) {
  5117.                            options += '<option value="' + data[i].value + '">' + data[i].title + '</option>';
  5118.                        }
  5119.                        if (data.length > 1) {
  5120.                            $("#" + div).select2("enable",true);
  5121.                            $("#" + div).html(options);
  5122.                            if(div == 'tid' && '' != ''){
  5123.                                $("#" + div).select2("val", "");
  5124.                            } else if(div == 'tid' && preloaded_tid !== false){
  5125.                                $("#" + div).select2("val", preloaded_tid);
  5126.                            }else {
  5127.                                $("#" + div).select2("val", "");
  5128.                            }
  5129.  
  5130.  
  5131.  
  5132.                            
  5133.                        } else {
  5134.                            $("#" + div).select2("data", {
  5135.                                id: "",
  5136.                                text: "No options available"
  5137.                            });
  5138.                        }
  5139.                    }
  5140.                });
  5141.            }
  5142.            function categoryChained(div,id) {
  5143.                $("#" + div).select2("data", {
  5144.                    id: "",
  5145.                    text: "Loading..."
  5146.                });
  5147.                if(div == "tid") {
  5148.                    url_link = '/ajaxsearch/get-services'
  5149.                    data_passed = {'specialty_id' : id}
  5150.                } else {
  5151.                    url_link = '/ajaxsearch/category-list';
  5152.                    data_passed = {'parent' : id} ;
  5153.                }
  5154.  
  5155.                var selectName = $("select[next="+div+"]").prop("name");
  5156.  
  5157.  
  5158.                if( (selectName == "ttid" || selectName == "sid" || selectName == "tid") ){
  5159.  
  5160.                    sessionStorage.setItem("select2-"+selectName+path,id);
  5161.                }
  5162.  
  5163.                $.ajax({
  5164.                    url : url_link,
  5165.                    type : "GET",
  5166.                    data : data_passed,
  5167.                    dataType: "json",
  5168.                    success : function(data) {
  5169.                        var options = '';
  5170.  
  5171.                        for (var i = 0; i < data.length; i++) {
  5172.                            options += '<option value="' + data[i].value + '">' + data[i].title + '</option>';
  5173.                        }
  5174.  
  5175.                        if (data.length > 1) {
  5176.                            $("#" + div).select2("enable",true);
  5177.                            $("#" + div).html(options);
  5178.  
  5179.                            if(div == "ttid" && preloaded_ttid !== false){
  5180.                                $("#" + div).select2("val", preloaded_ttid);
  5181.                                $("#" + div).trigger('change');
  5182.                            }else if(div == "tid" && preloaded_tid !== false){
  5183.                                $("#" + div).select2("val", preloaded_tid);
  5184.                                $("#" + div).trigger('change');
  5185.                            }else{
  5186.                                $("#" + div).select2("val", "");
  5187.                            }
  5188.  
  5189.  
  5190.                            
  5191.                        } else {
  5192.                            $("#" + div).select2("data", {
  5193.                                id: "",
  5194.                                text: "No options available"
  5195.                            });
  5196.                        }
  5197.                    }
  5198.                });
  5199.            }
  5200.            function formatCountry(country) {
  5201.                if (!country.id && country.text.includes("+")) {
  5202.                    let dataCountry = country.text;
  5203.                    dataCountry = dataCountry.split('+')
  5204.                    country.code = dataCountry[0].trim();
  5205.                    country.id = dataCountry[1].trim();
  5206.                    return country;
  5207.                } else if (!country.code) {
  5208.                    return country.text;
  5209.                }
  5210.                var $country = $(
  5211.                    '<span class="flag-icon flag-icon-' + country.code.toLowerCase() + ' flag-icon-squared"></span>' +
  5212.                    '<span class="flag-text" style="margin-left:10px;">' + country.text + '</span>'
  5213.                );
  5214.                return $country;
  5215.            }
  5216.  
  5217.            let phoneCountryCode = document.querySelector("[name^='bd_phone_country_code']");
  5218.            if (typeof phoneCountryCode != 'undefined' && phoneCountryCode != null && typeof isoCountries != 'undefined') {
  5219.                $("[name^='bd_phone_country_code']").select2({
  5220.                    placeholder:`Country`,
  5221.                    data:isoCountries,
  5222.                    searchInputPlaceholder: `Enter Country Code`,
  5223.                    formatResult : formatCountry,
  5224.                    dropdownAutoWidth: true,
  5225.                    width: "resolve",
  5226.                }).on("select2-opening", function (e) {
  5227.                    if (typeof e.currentTarget.attributes['data-default-country-code'] !== "undefined") {
  5228.                        $(this).val(e.currentTarget.attributes['data-default-country-code'].value)
  5229.                            .removeAttr("data-default-country-code")
  5230.                            .trigger('change')
  5231.                            .trigger('open');
  5232.                    }
  5233.                }).change(function (e) {
  5234.                    let select2Span = $(this).attr('id');
  5235.                    if (e.val) {
  5236.                        $('#'+$(this).attr('id')+'--flag').remove();
  5237.                        $('#s2id_' + select2Span + ' a span.select2-chosen').prepend('<span class="flag-icon flag-icon-' + e.added.code.toLowerCase() + ' flag-icon-squared" style="margin-right:10px"></span>')
  5238.                    }else{
  5239.                        $('#s2id_' + select2Span + ' a span.select2-chosen').prepend('<span class="flag-icon flag-icon-' + $(this).attr('data-default-country-flag').toLowerCase() + ' flag-icon-squared" style="margin-right:10px"></span>')
  5240.                    }
  5241.                    $(this).removeAttr("data-default-country-flag");
  5242.  
  5243.                });
  5244.            }
  5245.            $("#bd-chained").select2({
  5246.                title: "Select An Option",
  5247.                placeholder: "Select An Option",
  5248.                allowClear: true,
  5249.                formatNoMatches: function () {
  5250.                    return "No matches found";
  5251.                }
  5252.            }).change(function () {
  5253.                var id = $(this).val();
  5254.                $("#tid").select2("enable",false);
  5255.                getInfinityChained("tid",id);
  5256.                            });
  5257.            $("#category-chained").select2({
  5258.                title: "Select An Option",
  5259.                placeholder: "Select An Option",
  5260.                allowClear: true
  5261.            }).change(function () {
  5262.                var id = $(this).val();
  5263.                $("#subcategory-chained").select2("enable",false);
  5264.                categoryChained("subcategory-chained",id);
  5265.                            });
  5266.  
  5267.            $(".select-category-chained").select2({
  5268.                title: "Select An Option",
  5269.                placeholder: "Select An Option",
  5270.                allowClear: true
  5271.            })
  5272.            $(".infinite-chained").select2({
  5273.                title: "Select option from list",
  5274.                placeholder: "Click to select an option",
  5275.                allowClear: true,
  5276.                formatNoMatches: function () {
  5277.                    return "No matches found";
  5278.                }
  5279.            }).change(function () {
  5280.                var id          = $(this).val();
  5281.                var attr        = $(this).attr('next');
  5282.                var selectName  = $(this).prop('name');
  5283.                if ( selectName=='ttid' || attr =='ttid' ) {
  5284.                    $("#" + attr).select2("enable",false);
  5285.                    categoryChained(attr,id);
  5286.                                        sessionStorage.setItem("select2-"+selectName+path,id);
  5287.                }
  5288.            }).on("select2-close", function () {
  5289.                setTimeout(function() {
  5290.                    $('.select2-container-active').removeClass('select2-container-active');
  5291.                    $(':focus').blur();
  5292.                }, 1);
  5293.            });
  5294.            $("#subcategory-chained").select2();
  5295.            $(".combobox").select2();
  5296.            $(".search-chained").select2();
  5297.  
  5298.            $("select#country-chained").select2({
  5299.                title: "",
  5300.                placeholder: "",
  5301.                val: "",
  5302.                allowClear: true,
  5303.                formatNoMatches: function () {
  5304.                    return "No matches found";
  5305.                }
  5306.            }).change(function () {
  5307.                var id = $(this).val();
  5308.                $("#state-chained").select2("enable",false);
  5309.                getStateList("state-chained",id);
  5310.                var state = "";
  5311.  
  5312.                if (id == "CA") {
  5313.                    state = "Province";
  5314.  
  5315.                } else if (id == "UK") {
  5316.                    state = "Region";
  5317.  
  5318.                } else if (id == "US" || id == "AU") {
  5319.                    state = "State";
  5320.  
  5321.                } else {
  5322.                    state = "Region";
  5323.                }
  5324.                $("#state-chained").prev(".control-label").text(state);
  5325.            });
  5326.            $("#state-chained").select2();
  5327.  
  5328.            $("#state-chained").on("select2-open", function(event) {
  5329.                event.preventDefault();
  5330.                var id = $("#country-chained").val();
  5331.                var count = $('#state-chained option').length;
  5332.  
  5333.                if (id != "" && count < 2) {
  5334.                    $("#state-chained").select2("enable",false);
  5335.                    getStateList("state-chained",id);
  5336.                    var state = "";
  5337.  
  5338.                    if (id == "CA") {
  5339.                        state = "Province";
  5340.  
  5341.                    } else if (id == "UK") {
  5342.                        state = "Region";
  5343.  
  5344.                    } else if (id == "US" || id == "AU") {
  5345.                        state = "State";
  5346.  
  5347.                    } else {
  5348.                        state = "Region";
  5349.                    }
  5350.                    $("#state-chained").prev(".control-label").text(state);
  5351.                }
  5352.            });
  5353.  
  5354.            $("#country-chained-2").select2({
  5355.                title: "Select Country",
  5356.                placeholder: "(select country)",
  5357.                val: "",
  5358.                allowClear: true,
  5359.                formatNoMatches: function () {
  5360.                    return "No matches found";
  5361.                }
  5362.            }).change(function () {
  5363.                var id = $(this).val();
  5364.                $("#state-chained-2").select2("enable",false);
  5365.                getStateList("state-chained-2",id);
  5366.                var state = "";
  5367.  
  5368.                if (id == "CA") {
  5369.                    state = "Province";
  5370.  
  5371.                } else if (id == "UK") {
  5372.                    state = "Region";
  5373.  
  5374.                } else if (id == "US" || id == "AU") {
  5375.                    state = "State";
  5376.  
  5377.                } else {
  5378.                    state = "Region";
  5379.                }
  5380.                $("#state-chained-2").prev(".control-label").text(state);
  5381.            });
  5382.  
  5383.            $("#state-chained-2").select2();
  5384.            $("#profession_id").select2({
  5385.                placeholder: "What Service Do You Need?",
  5386.                allowClear: true,
  5387.                formatNoMatches: function () {
  5388.                    return "No matches found";
  5389.                }
  5390.            }).change(function () {
  5391.                var id = $(this).val();
  5392.                getSecondLevelAccount("category_id",id);
  5393.                            });
  5394.                        $("#sid").select2({
  5395.                title: "Select An Option",
  5396.                placeholder: "Select An Option",
  5397.                allowClear: true,
  5398.                formatNoMatches: function () {
  5399.                    return "No matches found";
  5400.                }
  5401.            }).change(function () {
  5402.                var id = $(this).val();
  5403.                $("#tid").select2("enable",false);
  5404.                getSecondLevel("tid",id);
  5405.                $("#tid").select2("open");
  5406.                sessionStorage.setItem("select2-sid"+path,id);
  5407.            });
  5408.            $("#location_value_dropdown").select2({
  5409.                title: "(optional)",
  5410.                placeholder: "(optional)",
  5411.                allowClear: true,
  5412.                formatNoMatches: function () {
  5413.                    return "No matches found";
  5414.                }
  5415.            });
  5416.            $("#tid").select2({
  5417.                title: "Select An Option",
  5418.                placeholder: "Select An Option",
  5419.                allowClear: true,
  5420.                formatNoMatches: function () {
  5421.                    return "No matches found";
  5422.                }
  5423.                            });
  5424.            $("#location_value_dropdown").select2({
  5425.                title: "(optional)",
  5426.                placeholder: "(optional)",
  5427.                allowClear: true
  5428.            });
  5429.        }
  5430.  
  5431.        if(preloaded_ttid !== false || preloaded_tid !== false || preloaded_sid !== false){
  5432.            $(document).ready(function(){
  5433.                if(preloaded_sid !== false && $("#sid").length > 0){
  5434.                    select2OnFormClick();
  5435.                    setTimeout(() => {
  5436.                        $("#sid").select2('val', preloaded_sid);
  5437.                        $('#sid').trigger('change');
  5438.                    }, 500);
  5439.                }else if(preloaded_tid !== false && $("#sid").length <= 0){
  5440.                    select2OnFormClick();
  5441.                    setTimeout(() => {
  5442.                        $("#tid").select2('val', preloaded_tid);
  5443.                        $('#tid').trigger('change');
  5444.                    }, 500);
  5445.                }
  5446.            });
  5447.        }
  5448.    </script>
  5449. <script>
  5450.    // Function to add aria-label to <select> elements without it, for better pagespeed accessibility score
  5451.    $(document).ready(function() {
  5452.        var ariaLabelCounter = {}; // Object to keep track of aria-label counts for uniqueness
  5453.  
  5454.        // Iterate over each select element that does not have an aria-label
  5455.        $('select:not([aria-label])').each(function() {
  5456.            // Use the ID or placeholder as the base for the aria-label, stripping HTML tags
  5457.            var baseLabel = this.id || $(this).attr('placeholder') || 'select';
  5458.            baseLabel = baseLabel.replace(/<[^>]*>/g, '').trim(); // Remove HTML tags and trim
  5459.  
  5460.            // Ensure uniqueness of each aria-label
  5461.            ariaLabelCounter[baseLabel] = (ariaLabelCounter[baseLabel] || 0) + 1;
  5462.            var ariaLabel = baseLabel + '-' + ariaLabelCounter[baseLabel];
  5463.  
  5464.            // Truncate aria-label to 100 characters
  5465.            ariaLabel = ariaLabel.length > 100 ? ariaLabel.substring(0, 100) : ariaLabel;
  5466.  
  5467.            // Set the aria-label attribute to the unique label
  5468.            $(this).attr('aria-label', ariaLabel);
  5469.        });
  5470.    });
  5471. </script>
  5472. <style type='text/css'> .input-group.normal-autosuggest input,.input-group.sm-autosuggest input, .input-group.md-autosuggest input {
  5473. border-radius: 0 3px 3px 0 !important;
  5474. box-shadow: none;
  5475. }
  5476. .normal-autosuggest .twitter-typeahead, .sm-autosuggest .twitter-typeahead, .md-autosuggest .twitter-typeahead, .large-autosuggest .twitter-typeahead {
  5477. display: inline-block;
  5478. height: 25px;
  5479. position: relative;
  5480. width: 100%;
  5481. }
  5482. .input-group.normal-autosuggest .twitter-typeahead, .input-group.sm-autosuggest .twitter-typeahead, .input-group.large-autosuggest .twitter-typeahead:not(.search_box .twitter-typeahead) {
  5483. width: inherit;
  5484. }
  5485. .normal-autosuggest .twitter-typeahead .clear_content.medium{
  5486. bottom: 0px;
  5487. }
  5488. .sm-autosuggest .twitter-typeahead .clear_content.small{
  5489. bottom: -4px;
  5490. }
  5491. .md-autosuggest.input-group .twitter-typeahead .clear_content.medium  {
  5492.    bottom: -2px;
  5493. }
  5494. .md-autosuggest .twitter-typeahead {
  5495. height: 32px;
  5496. }
  5497. .md-autosuggest  .input-group-addon  + .input_wrapper .twitter-typeahead {
  5498. height: 29px;
  5499. }
  5500. .md-autosuggest-input + .clear_content.medium {
  5501.    bottom: 0px;
  5502. }
  5503. .large-autosuggest .twitter-typeahead {
  5504. height: 40px;
  5505. }
  5506. .normal-autosuggest .twitter-typeahead{
  5507. height: 34px;
  5508. }
  5509. .normal-autosuggest .twitter-typeahead .tt-hint, .sm-autosuggest .twitter-typeahead .tt-hint {
  5510. background: #fff !important;
  5511. border: 1px solid #ccc!important;
  5512. border-radius: 0 4px 4px 0;
  5513. box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset!important;
  5514. color: transparent;
  5515. left: 0;
  5516. padding: 4px 11px;
  5517. position: absolute;
  5518. top: 0;
  5519. width: 100%;
  5520. font-size:12px;
  5521. }
  5522. .normal-autosuggest.input-group-addon .fa, .sm-autosuggest .input-group-addon .fa {font-size:12px}
  5523. .md-autosuggest .twitter-typeahead .tt-hint {
  5524. height: 100%;
  5525. background: #ffffff none repeat scroll 0 0 !important;
  5526. border: 1px solid #cccccc !important;
  5527. border-radius: 0 4px 4px 0;
  5528. box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset !important;
  5529. color: rgba(0, 0, 0, 0);
  5530. left: 0;
  5531. padding: 6px 11px;
  5532. position: absolute;
  5533. top: 0;
  5534. width: 100%;
  5535. }
  5536. .large-autosuggest {background: #fff !important;border-radius:6px;}
  5537. .large-autosuggest input {width: 100%!important;box-shadow:none; border-radius: 6px;}
  5538. .input-group.large-autosuggest input,.input-group.large-autosuggest .twitter-typeahead .tt-hint {
  5539. border-radius: 0 6px 6px 0!important;
  5540. }
  5541. .large-autosuggest .twitter-typeahead .tt-hint {
  5542. background: #fff !important;
  5543. border: 1px solid #ccc!important;
  5544. border-radius: 6px;
  5545. box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset!important;
  5546. color: transparent;
  5547. left: 0;
  5548. position: absolute;
  5549. top: 0;
  5550. width: 100%;
  5551. font-size: 18px;
  5552. height: 46px;
  5553. line-height: 1.33333;
  5554. padding: 10px 15px;
  5555. }
  5556. .tt-dataset .empty-message {
  5557. display: none !important;
  5558. }
  5559. .twitter-typeahead .tt-query {background-color:#fff!important}
  5560. .input-group.large-autosuggest span:first-child .tt-hint {border-radius: 0 !important;}
  5561. span.tt-dropdown-menu {
  5562. border: 1px solid #FCFCFC;
  5563. border-radius: 5px;
  5564. box-shadow: 0 5px 10px rgba(0,0,0,.2);
  5565. width: 100% !important;
  5566. }
  5567. .tt-is-under-cursor a.suggest-link {
  5568. background: #55ACEE;
  5569. }
  5570. .tt-is-under-cursor .media-heading,
  5571. .tt-is-under-cursor .suggest-origin,
  5572. .tt-is-under-cursor .location{
  5573. color:#fff!important;
  5574. }
  5575. .tt-suggestion .media .media-body .suggest-origin {
  5576. color: rgba(45, 91, 137,0.9);
  5577. padding: 1px 0;
  5578. border-radius: 6px;
  5579. font-weight: bold;
  5580. line-height: 12px;
  5581. }
  5582. .tt-suggestion {
  5583. background: #fff;
  5584. border-bottom: 1px solid #eee;
  5585. -webkit-transition: all 0.3s ease-in-out;
  5586. -moz-transition: all 0.3s ease-in-out;
  5587. -o-transition: all 0.3s ease-in-out;
  5588. transition: all 0.3s ease-in-out;
  5589. }
  5590. body .tt-suggestions .media.br-bottom img {
  5591. max-width: 45px;
  5592. height: auto;
  5593. }
  5594. body .tt-suggestions .media-body span {
  5595. font-size: 10px;
  5596. }
  5597. body .tt-suggestions .media-body h4 {
  5598. font-size: 12px;
  5599. margin: 2px 0px;
  5600. text-transform: capitalize;
  5601. }
  5602. a.suggest-link {
  5603. padding: 5px;
  5604. display: block;
  5605. }
  5606. a.suggest-link img {
  5607. border-radius: 100px;
  5608. display: block;
  5609. margin: 0 auto;
  5610. height: 100%!important;
  5611. width: 100%;
  5612. object-fit: cover;
  5613. }
  5614. .left-suggest-col {
  5615. display: inline-block;
  5616. vertical-align: middle;
  5617. width: 44px;
  5618. height: 44px;
  5619. }
  5620. .right-suggest-col {
  5621. display: inline-block;
  5622. padding-left: 1%;
  5623. text-align: left;
  5624. vertical-align: middle;
  5625. width: calc(100% - 1% - 50px);
  5626. }
  5627. p.media-heading {
  5628. color: #333;
  5629. font-size: 12px;
  5630. font-weight: 600;
  5631. margin-bottom: 0;
  5632. }
  5633. p.suggest-origin {
  5634. font-size: 10px;
  5635. color: #333;
  5636. margin:0;
  5637. }
  5638. p.location {
  5639. color: #333;
  5640. font-size: 10px;
  5641. margin: 2px 0;
  5642. }
  5643. body .tt-is-under-cursor a.suggest-link {
  5644. background: #F7F7F7;
  5645. }
  5646. body .tt-is-under-cursor .media-heading, body .tt-is-under-cursor .suggest-origin, body .tt-is-under-cursor .location {
  5647. color: #333!important;
  5648. }
  5649. body .tt-is-under-cursor a.suggest-link[data-heading="heading"] {
  5650. background: rgb(52, 73, 94);
  5651. }
  5652. /* --- all the novalue css --- */
  5653. a.suggest-link .suggest-origin[data-state="novalue"] {
  5654. display: none;
  5655. }
  5656. a.suggest-link .location[data-state="novalue"] {
  5657. display: none;
  5658. }
  5659. a.suggest-link img[data-state="novalue"] {
  5660. display: none;
  5661. }
  5662. a.suggest-link .suggest-origin[data-state="heading"] {
  5663. display: none;
  5664. }
  5665. a.suggest-link .media-heading[data-heading="heading"] {
  5666. color:rgb(255, 255, 255)!important;
  5667. font-weight: bold;
  5668. padding: 4px;
  5669. font-size: 13px;
  5670. }
  5671. .left-suggest-col[data-photo="novalue"], .left-suggest-col[data-photo="undefined"] {
  5672. display: none;
  5673. }
  5674. .right-suggest-col[data-photo="novalue"], .right-suggest-col[data-photo="undefined"] {
  5675. width: 100%;
  5676. }
  5677. a.suggest-link[href="novalue"] {
  5678. cursor: default !important;
  5679. pointer-events: none;
  5680. }
  5681. a.suggest-link[data-heading="heading"] {
  5682. background-color: rgb(52, 73, 94);
  5683. }
  5684. div.content-shell {
  5685. overflow: inherit;
  5686. }
  5687. span.tt-dropdown-menu div {
  5688. float: none;
  5689. }
  5690. .tt-menu {
  5691. border-radius: 0 0 6px 6px;
  5692. box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
  5693. overflow: hidden;
  5694. width: 100%;
  5695. }
  5696. .tt-menu .tt-dataset {
  5697.    overflow-y: auto;
  5698.    max-height: 200px;
  5699. } </style>        <script type="text/javascript">
  5700.            
  5701.            if (typeof decodeHtml != "function") {
  5702.                function decodeHtml(html) {
  5703.                    var txt = document.createElement("textarea");
  5704.                    txt.innerHTML = html;
  5705.                    return txt.value;
  5706.                }
  5707.            }
  5708.                        function initializeTypeheadMember_search() {
  5709.                var member_searchEngine = new Bloodhound({
  5710.                    initialize: false,
  5711.                    datumTokenizer: function (d) {
  5712.                        return Bloodhound.tokenizers.whitespace(value);
  5713.                    },
  5714.                    queryTokenizer: Bloodhound.tokenizers.whitespace,
  5715.                    remote: {
  5716.                        url: `/api/suggest/json/get/1,users_data,Listings,1,1,1,1,1,3|8,data_posts,Events,1,1,1,1,1,3|9,data_posts,Job Listings,1,1,1,1,1,3|7,data_posts,Coupons,1,1,1,1,1,3|13,data_posts,Videos,1,1,1,1,1,3|5,data_posts,Audio Files,1,1,1,1,1,3|14,data_posts,Blog Articles,1,1,1,1,1,3|15,data_posts,Member Articles,1,1,1,1,1,3|6,users_portfolio_groups,Classifieds,1,1,1,1,1,3|10,users_portfolio_groups,Photo Albums,1,1,1,1,1,3|12,users_portfolio_groups,Properties,1,1,1,1,1,3|11,users_portfolio_groups,Products,1,1,1,1,1,3|88,list_professions,Main Categories,1,1,1,1,1,3|89,list_services,Sub Categories,1,1,1,1,1,3?tID=16&q=%QUERY`,
  5717.                        wildcard: '%QUERY',
  5718.                        filter: function (response) {
  5719.  
  5720.                            if (response != null) {
  5721.                                //var response = response.slice(1);
  5722.                                $.each(
  5723.                                    response, function (key, value) {
  5724.                                        response[key]['value'] = decodeHtml(value['value']);
  5725.                                        response[key]['comes_f'] = decodeHtml(value['comes_f']);
  5726.                                        response[key]['location'] = decodeHtml(value['location']);
  5727.  
  5728.                                        if (response[key]['value'].indexOf('-/-') >= 0) {
  5729.                                            var splitResult = response[key]['value'].split('-/-');
  5730.                                            response[key]['value'] = splitResult[0];
  5731.                                        }
  5732.                                    }
  5733.                                );
  5734.  
  5735.                            } else {
  5736.                                response = {error: "null"};
  5737.                            }
  5738.  
  5739.                            return response;
  5740.                        }
  5741.                    }
  5742.                });
  5743.                var member_searchDataSrc = member_searchEngine.initialize();
  5744.  
  5745.                member_searchDataSrc
  5746.                    .done(function () { /*console.log('Autosuggestions engine initialized.'); */
  5747.                    })
  5748.                    .fail(function () { /*console.log('err, something went wrong while initializing autosuggestions engine:(');*/
  5749.                    })
  5750.  
  5751.                $('.member_search').typeahead({
  5752.                        minLength:  2,
  5753.                        highlight: true,
  5754.                        hint: false                    },
  5755.                    {
  5756.                        display: 'value',
  5757.                        source: member_searchEngine.ttAdapter(),
  5758.                        limit: 10,
  5759.                        templates: {
  5760.                            empty: [
  5761.                                '<div class="empty-message">',
  5762.                                'Result not found',
  5763.                                '</div>'
  5764.                            ].join(" "),
  5765.                            notFound: [
  5766.                                '<div class="notFound-message">',
  5767.                                'Result not found',
  5768.                                '</div>'
  5769.                            ].join(" "),
  5770.                            suggestion: function (data) {
  5771.  
  5772.                                if (data == "null") {
  5773.                                    strTemplate = '<div class="empty-message">Result not found</div>';
  5774.  
  5775.                                } else {
  5776.                                    strTemplate = '<a class="suggest-link" href="' + data.link + '" data-state="' + data.link + '" data-heading="' + data.comes_f + '"> <div class="left-suggest-col" data-photo="' + data.photo + '"> <img src="' + data.photo + '" data-state="' + data.photo + '"> </div> <div class="right-suggest-col" data-photo="' + data.photo + '"> <p class="media-heading" data-state="' + data.value + '" data-heading="' + data.comes_f + '">' + data.value + '</p> <p class="suggest-origin" data-state="' + data.comes_f + '">' + data.comes_f + '</p> <p class="location" data-state="' + data.location + '">' + data.location + '</p> </div> </a> ';
  5777.  
  5778.                                    if ((data.link == undefined) || (data.link == "") || (data.link == "novalue")) {
  5779.                                        strTemplate = strTemplate.replace(/href=".*?"/, "href='#'");
  5780.                                    }
  5781.  
  5782.                                    if ((data.photo == undefined) || (data.photo == "") || (data.photo == "novalue")) {
  5783.                                        strTemplate = strTemplate.replace(/<img src=".*?>/, "");
  5784.                                    }
  5785.                                }
  5786.  
  5787.                                return strTemplate;
  5788.                            }
  5789.                        },
  5790.                    }).on('typeahead:selected', function (obj, datum) {
  5791.                    /*
  5792.                    console.log(obj);
  5793.                    console.log(datum);
  5794.                    */
  5795.                });
  5796.  
  5797.                $('.member_search').each(function () {
  5798.                    var inputWidth = $(this).outerWidth();
  5799.                    $(this).siblings('.tt-dropdown-menu').css('width', inputWidth + 'px');
  5800.                });
  5801.            }
  5802.        </script>
  5803.                <script type="text/javascript">
  5804.                        function initializeTypeheadAB() {
  5805.                var ABEngine = new Bloodhound({
  5806.                    initialize: false,
  5807.                    datumTokenizer: function (d) {
  5808.                        return Bloodhound.tokenizers.whitespace(value);
  5809.                    },
  5810.                    queryTokenizer: Bloodhound.tokenizers.whitespace,
  5811.                    remote: {
  5812.                        url: `/api/suggest/json/get/1,users_data,Listings,1,1,1,1,1,3|8,data_posts,Events,1,1,1,1,1,3|9,data_posts,Job Listings,1,1,1,1,1,3|7,data_posts,Coupons,1,1,1,1,1,3|13,data_posts,Videos,1,1,1,1,1,3|5,data_posts,Audio Files,1,1,1,1,1,3|14,data_posts,Blog Articles,1,1,1,1,1,3|15,data_posts,Member Articles,1,1,1,1,1,3|6,users_portfolio_groups,Classifieds,1,1,1,1,1,3|10,users_portfolio_groups,Photo Albums,1,1,1,1,1,3|12,users_portfolio_groups,Properties,1,1,1,1,1,3|11,users_portfolio_groups,Products,1,1,1,1,1,3|88,list_professions,Main Categories,1,1,1,1,1,5|89,list_services,Sub Categories,1,1,1,1,1,3?tID=29&q=%QUERY`,
  5813.                        wildcard: '%QUERY',
  5814.                        filter: function (response) {
  5815.  
  5816.                            if (response != null) {
  5817.                                //var response = response.slice(1);
  5818.                                $.each(
  5819.                                    response, function (key, value) {
  5820.                                        response[key]['value'] = decodeHtml(value['value']);
  5821.                                        response[key]['comes_f'] = decodeHtml(value['comes_f']);
  5822.                                        response[key]['location'] = decodeHtml(value['location']);
  5823.  
  5824.                                        if (response[key]['value'].indexOf('-/-') >= 0) {
  5825.                                            var splitResult = response[key]['value'].split('-/-');
  5826.                                            response[key]['value'] = splitResult[0];
  5827.                                        }
  5828.                                    }
  5829.                                );
  5830.  
  5831.                            } else {
  5832.                                response = {error: "null"};
  5833.                            }
  5834.  
  5835.                            return response;
  5836.                        }
  5837.                    }
  5838.                });
  5839.                var ABDataSrc = ABEngine.initialize();
  5840.  
  5841.                ABDataSrc
  5842.                    .done(function () { /*console.log('Autosuggestions engine initialized.'); */
  5843.                    })
  5844.                    .fail(function () { /*console.log('err, something went wrong while initializing autosuggestions engine:(');*/
  5845.                    })
  5846.  
  5847.                $('.AB').typeahead({
  5848.                        minLength:  3,
  5849.                        highlight: true,
  5850.                        hint: false                    },
  5851.                    {
  5852.                        display: 'value',
  5853.                        source: ABEngine.ttAdapter(),
  5854.                        limit: 5,
  5855.                        templates: {
  5856.                            empty: [
  5857.                                '<div class="empty-message">',
  5858.                                'Result not found',
  5859.                                '</div>'
  5860.                            ].join(" "),
  5861.                            notFound: [
  5862.                                '<div class="notFound-message">',
  5863.                                'Result not found',
  5864.                                '</div>'
  5865.                            ].join(" "),
  5866.                            suggestion: function (data) {
  5867.  
  5868.                                if (data == "null") {
  5869.                                    strTemplate = '<div class="empty-message">Result not found</div>';
  5870.  
  5871.                                } else {
  5872.                                    strTemplate = '<a class="suggest-link" href="' + data.link + '" data-state="' + data.link + '" data-heading="' + data.comes_f + '"> <div class="left-suggest-col" data-photo="' + data.photo + '"> <img src="' + data.photo + '" data-state="' + data.photo + '"> </div> <div class="right-suggest-col" data-photo="' + data.photo + '"> <p class="media-heading" data-state="' + data.value + '" data-heading="' + data.comes_f + '">' + data.value + '</p> <p class="suggest-origin" data-state="' + data.comes_f + '">' + data.comes_f + '</p> <p class="location" data-state="' + data.location + '">' + data.location + '</p> </div> </a> ';
  5873.  
  5874.                                    if ((data.link == undefined) || (data.link == "") || (data.link == "novalue")) {
  5875.                                        strTemplate = strTemplate.replace(/href=".*?"/, "href='#'");
  5876.                                    }
  5877.  
  5878.                                    if ((data.photo == undefined) || (data.photo == "") || (data.photo == "novalue")) {
  5879.                                        strTemplate = strTemplate.replace(/<img src=".*?>/, "");
  5880.                                    }
  5881.                                }
  5882.  
  5883.                                return strTemplate;
  5884.                            }
  5885.                        },
  5886.                    }).on('typeahead:selected', function (obj, datum) {
  5887.                    /*
  5888.                    console.log(obj);
  5889.                    console.log(datum);
  5890.                    */
  5891.                });
  5892.  
  5893.                $('.AB').each(function () {
  5894.                    var inputWidth = $(this).outerWidth();
  5895.                    $(this).siblings('.tt-dropdown-menu').css('width', inputWidth + 'px');
  5896.                });
  5897.            }
  5898.        </script>
  5899.            <script>
  5900.        let typeheadElement = '.member_search,.AB';
  5901.        let TypeheadNameListFunction = 'initializeTypeheadMember_search,initializeTypeheadAB';
  5902.        let typeheadFormElement = undefined;
  5903.        window.addEventListener('load', () => {
  5904.            if(typeheadElement.length > 1) {
  5905.                typeheadFormElement = document.querySelectorAll(typeheadElement);
  5906.            }
  5907.            if (typeof typeheadFormElement != "undefined") {
  5908.                for (let i = 0; i < typeheadFormElement.length; i++) {
  5909.                    let closestForm = typeheadFormElement[i].closest('form');
  5910.                    if (typeof closestForm != "undefined" && closestForm != null) {
  5911.                        closestForm.addEventListener('focus', typeheadFormClick, false);
  5912.                    }
  5913.                    typeheadFormElement[i].addEventListener('focus', typeheadFormClick, false);
  5914.                }
  5915.            }
  5916.        });
  5917.        function initializeTypehead(){
  5918.            let splitFunctionNames= TypeheadNameListFunction.split(',');
  5919.            for ( let funcName of splitFunctionNames)
  5920.                if (typeof funcName != 'function') {
  5921.                    window[funcName](); // execute the function
  5922.  
  5923.                }
  5924.        }
  5925.        function typeheadFormClick(event) {
  5926.  
  5927.            let head = document.getElementsByTagName('head')[0];
  5928.            let script = document.createElement('script');
  5929.            let elementClicked = event.target;
  5930.            script.type = 'text/javascript';
  5931.            script.src = "https://cdnjs.cloudflare.com/ajax/libs/corejs-typeahead/0.11.1/typeahead.bundle.min.js";
  5932.            script.onload = function () {
  5933.                initializeTypehead();
  5934.                elementClicked.focus();
  5935.            };
  5936.            head.appendChild(script);
  5937.            if (typeof typeheadFormElement != "undefined") {
  5938.                for (let i = 0; i < typeheadFormElement.length; i++) {
  5939.                    let closestForm = typeheadFormElement[i].closest('form');
  5940.                    if (typeof closestForm != "undefined" && closestForm != null) {
  5941.                        closestForm.removeEventListener('focus', typeheadFormClick, false);
  5942.                    }
  5943.                    typeheadFormElement[i].removeEventListener('focus', typeheadFormClick, false)
  5944.                }
  5945.            }
  5946.        }
  5947.  
  5948.  
  5949.    </script>
  5950.  
  5951.    <script>
  5952.    window.addEventListener('load', () => {
  5953.        let embedlyClass = document.querySelector('.fr-embedly');
  5954.        if (typeof embedlyClass != "undefined" && embedlyClass != null) {
  5955.            let embedlyURI = "https://www.optimizecdn.com/directory/cdn/assets/bootstrap/js/embedly_widget.min.js";
  5956.            let head = document.getElementsByTagName("head")[0];
  5957.            let script = document.createElement('script');
  5958.            script.type = 'text/javascript';
  5959.            script.src = embedlyURI;
  5960.            script.async = true;
  5961.            head.appendChild(script);
  5962.        }
  5963.    });
  5964. </script><script type="text/javascript" src="https://www.optimizecdn.com/directory/cdn/assets/bootstrap/jquery.lazy/1.7.9/jquery.lazy.min.js"></script><script>
  5965.                            $(function () {
  5966.                                $(".lazyloader").Lazy({
  5967.                                    afterLoad: function(element) {
  5968.                                        $(".gridView.activeView").click();
  5969.                                    }
  5970.                                });
  5971.                                
  5972.                            });
  5973.                            $("button[class*='slick'],button[id*='slick']").click(function () {
  5974.                              $(this).parents(".row").find(".lazyloader").lazy({
  5975.                                    bind: "event",
  5976.                                    delay: 0
  5977.                                });
  5978.                            });
  5979.                            $("[class*='slick'],[id*='slick']").on("swipe",function(){
  5980.                              $(this).parents(".row").find(".lazyloader").lazy({
  5981.                                    bind: "event",
  5982.                                    delay: 0
  5983.                                });
  5984.                            });
  5985.                        </script><script defer src="https://www.optimizecdn.com/directory/cdn/assets/bootstrap/js/websiteScripts.min.js?v=0.4"></script>
  5986.            </body>
  5987.        </html>
Copyright © 2002-9 Sam Ruby, Mark Pilgrim, Joseph Walton, and Phil Ringnalda