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://techdirectory.io/united-states/yorba-linda/automotive/ocrv-paint-service

  1. <!DOCTYPE HTML>
  2. <html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US">
  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/Techdirectory-favicon.png">
  13.    <link rel="icon" type="image/png" href="/images/Techdirectory-favicon.png">
  14.    <!-- Site Meta Data -->
  15.    <title>OCRV Paint &amp; Service - Automotive - Tech Directory</title>
  16.    <meta name="description" content="Connect with OCRV Paint & Service, Automotive in Yorba Linda, CA. Find OCRV Paint & Service reviews and more. ">
  17.    <meta name="keywords" content="Technology Business,Technology Businesses,OCRV Paint & Service,Tech Directory,Yorba Linda, CA,Automotive,Automotives">
  18.    <meta name="robots" content="index, follow">
  19.  
  20.    <!-- Canonical URL -->
  21. <link rel="canonical" href="https://www.techdirectory.io/united-states/yorba-linda/automotive/ocrv-paint-service">
  22. <!-- Social Media Meta Data -->
  23.    <meta property="og:type" content="website">
  24.    <meta property="og:url" content="https://www.techdirectory.io/united-states/yorba-linda/automotive/ocrv-paint-service">
  25.    <meta property="og:site_name" content="TechDirectory">
  26.    <meta property="og:title" content="OCRV Paint &amp; Service on TechDirectory">
  27.    <meta property="og:description" content="Learn about OCRV Paint & Service, Automotive in Yorba Linda, CA. Find OCRV Paint & Service reviews and more on TechDirectory.">
  28.    <meta property="og:image" content="https://www.techdirectory.io/logos/social_media/limage-172282-208-photo.jpg">
  29. <script>
  30. var siteInfoSpan=document.createElement('span');
  31. siteInfoSpan.style.cssText='position:absolute;color:transparent;width:100%;z-index:-1;height:50px;top:0;';
  32. siteInfoSpan.textContent='www.techdirectory.io - TechDirectory';
  33. document.write(siteInfoSpan.outerHTML);
  34. </script>
  35.  
  36. <!-- Preload -->
  37. <link rel="preload" as="style" href="https://www.optimizecdn.com/directory/cdn/assets/bootstrap/css/critical-styles.pkgd.min.css?v=05.14.25.38" importance="high">
  38. <link rel="preload" href="/logos/profile/limage-172282-208-photo.jpg" as="image" importance="high">
  39.    <!-- Non-Critical Stylesheet - Render Before Critical Styles -->
  40. <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=4.3.8">
  41. <noscript>
  42. <link rel="stylesheet" href="https://www.optimizecdn.com/directory/cdn/assets/bootstrap/css/non-critical-styles.pkgd.min.css">
  43. </noscript>
  44. <!-- Critical Stylesheet -->
  45. <link rel="stylesheet" href="https://www.optimizecdn.com/directory/cdn/assets/bootstrap/css/critical-styles.pkgd.min.css?v=05.14.25.38">
  46.    
  47.    <!-- Google Fonts Stylesheet -->    
  48.    <link rel="stylesheet" media="print" onload="this.onload=null;this.removeAttribute('media');" href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800,900|PT+Sans:300,400,600,700,800,900&display=swap">
  49.    <noscript>
  50.        <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800,900|PT+Sans:300,400,600,700,800,900&display=swap">
  51.    </noscript>
  52.    <!-- FontAwesome Stylesheet -->
  53.    <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">
  54.    <noscript>
  55.        <link rel="stylesheet" href="https://www.optimizecdn.com/directory/cdn/assets/bootstrap/font-awesome/css/font-awesome.min.css">
  56.    </noscript>
  57.    <!-- Critical JavaScript -->
  58.    <script src="https://www.optimizecdn.com/directory/cdn/assets/bootstrap/libraries/latest/jquery.min.js"></script>
  59. <script src="https://www.optimizecdn.com/directory/cdn/assets/bootstrap/libraries/latest/jquery-ui.min.js"></script>
  60. <script src="https://www.optimizecdn.com/directory/cdn/assets/bootstrap/libraries/latest/bootstrap.min.js"></script>
  61. <script>
  62. /* jQuery.event.special.touchstart = {
  63. setup: function( _, ns, handle ) {
  64. this.addEventListener("touchstart", handle, { passive: !ns.includes("noPreventDefault") });
  65. }
  66. }; */
  67. jQuery.event.special.touchmove = {
  68. setup: function( _, ns, handle ) {
  69. this.addEventListener("touchmove", handle, { passive: !ns.includes("noPreventDefault") });
  70. }
  71. };
  72. jQuery.event.special.wheel = {
  73. setup: function( _, ns, handle ){
  74. this.addEventListener("wheel", handle, { passive: true });
  75. }
  76. };
  77. jQuery.event.special.mousewheel = {
  78. setup: function( _, ns, handle ){
  79. this.addEventListener("mousewheel", handle, { passive: true });
  80. }
  81. };
  82. </script>
  83.    <!-- Prefetch -->
  84.    <link rel="prefetch" href="https://www.optimizecdn.com/directory/cdn/assets/bootstrap/jquery.lazy/1.7.9/jquery.lazy.min.js" as="script">
  85.    <link rel="prefetch" href="https://www.optimizecdn.com/directory/cdn/assets/bootstrap/js/websiteScripts.min.js?v=0.4" as="script">
  86. <link rel="prefetch" href="https://www.optimizecdn.com/directory/cdn/assets/bootstrap/limonte-sweetalert2/6.11.2/sweetalert2.min.css" as="style">
  87.    <link rel="prefetch" href="https://www.optimizecdn.com/directory/cdn/assets/bootstrap/limonte-sweetalert2/6.11.2/sweetalert2.min.js" as="script">
  88.  
  89.    <!-- Custom Page HEAD Content -->        <script>
  90.        function g() {
  91.            window.addEventListener('load', () => {
  92.                if (typeof initializeG === 'function') {
  93.                    initializeG();
  94.                }
  95.                            });
  96.        }
  97.    </script>
  98.    <script src="https://maps.googleapis.com/maps/api/js?v=3.exp&libraries=places&region=US&callback=g&language=en"></script>
  99.  
  100. </head>
  101.  
  102. <body class="general-session"><!--
  103. 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.
  104.  
  105. INSTEAD: If custom CSS rules are needed, add them directly into the DESIGN SETTINGS > CUSTOM CSS section.
  106. -->
  107. <style>
  108.    .upload-form-field::before {
  109.        content: "choose files";
  110.        display: inline-block;
  111.        border: 1px solid #999;
  112.        border-radius: 3px;
  113.        padding: 5px 8px;
  114.    }
  115.    #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 {
  116.        white-space: nowrap !important;
  117.    }
  118.    /* Main Website Design */
  119.    body,.modal-header,.modal-content,.modal-body,.modal-footer {
  120.        background: rgb(241, 241, 241);
  121.        color: rgb(41, 41, 41);
  122.        font-family: 'Open Sans';
  123.        font-size: 14px;
  124.    }
  125.    .select2-container .select2-choice {
  126.        font-family: 'Open Sans'!important;
  127.    }
  128.        html{
  129.        background: rgb(30, 30, 30)    }
  130.        a,a.h1,a.h2,a.h3,a.h4,a.h5,a.h6,.pricing_menu li ul li a:not(.btn) {
  131.        color: rgb(161, 210, 27);
  132.    }
  133.    a:hover, a:focus,.pricing_menu li ul li a:not(.btn):hover,.pricing_menu li ul li a:not(.btn):focus {
  134.        color: rgb(143, 203, 39);
  135.    }
  136.    .breadcrumb a{
  137.            color: rgba(0, 0, 0,0.9);
  138.    }
  139.    .breadcrumb a:hover, .breadcrumb a:focus,.breadcrumb > .active {
  140.        color: rgb(0, 0, 0);
  141.    }
  142.    .help-inline, .help-block {
  143.            color: rgba(41, 41, 41,0.5);
  144.    }
  145.    .h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
  146.        font-family: 'Open Sans';
  147.    }
  148.        /* Header Design */
  149.    .header, .mobile_website_logo img {
  150.        background: rgb(249, 250, 251);
  151.    }
  152.    .header .mini-nav li a:not(.btn):not(.network-icon), .header .mini-nav span {
  153.        color: rgb(0, 0, 0);
  154.            font-size: 14px;
  155.        }
  156.    .header .mini-nav li a:not(.btn):hover {
  157.            color: rgba(0, 0, 0,0.95);
  158.    }
  159.    .header .btn_get_listed {
  160.            background-color: rgba(151, 190, 32,0.97);
  161.        border: 1px solid rgb(151, 190, 32);
  162.        color: rgb(255, 255, 255)!important;
  163.    }
  164.    .header .btn_get_listed:hover, .header .btn_get_listed:focus {
  165.        background-color: rgb(151, 190, 32);
  166.    }
  167.    .header .btn_search {
  168.            background-color: rgba(151, 190, 32,0.97);
  169.        border: 1px solid rgb(151, 190, 32);
  170.        color: rgb(255, 255, 255);
  171.    }
  172.    .header .btn_search:hover, .header .btn_search:focus {
  173.        background-color: rgb(151, 190, 32);
  174.        color: rgb(255, 255, 255);
  175.    }
  176.  
  177.    /* Logo Design */
  178.    .logo,.logo:hover,.logo:focus {
  179.        color: rgb(255, 255, 255);
  180.        font-family: 'PT Sans';
  181.    }
  182.    .logo .slogan {
  183.        color: rgb(242, 242, 242);
  184.    }
  185.    .logo .fa {
  186.        color: rgb(161, 215, 33);
  187.        }
  188.  
  189.    /* Main Menu Design */
  190.    .member-profile-tabs > ul, .member-profile-tabs .tabs-container {
  191.        background: rgb(247, 247, 247);
  192.        position: sticky;
  193.        z-index: 1;
  194.            top: 50px;
  195.        }
  196. /* Google Translate When Main Menu Sticky Top */
  197. .skiptranslate:not([style*="display: none;"]) ~ .header .navbar-fixed-top {
  198. top: 39px;
  199. }
  200. .skiptranslate iframe, .skiptranslate:not(.skiptranslate.goog-te-gadget) {
  201. position: fixed !important;
  202. top: 0 !important;
  203. z-index: 999;
  204. }  
  205.    @media only screen and (max-width: 1100px) {
  206.        .member-profile-tabs > ul, .member-profile-tabs .tabs-container {
  207.                    top: 50px;
  208.                }
  209.    }
  210.    .header ul.nav.navbar-nav li ul {
  211.        background-color: #fafafa;
  212.    }
  213.    .header ul.nav.navbar-nav li ul li a, .header ul.nav.navbar-nav li ul li span {
  214.        color: rgb(41, 41, 41);
  215.    }
  216.    .header .navbar-default, .pagination > .active > a {
  217.        background-color: rgb(14, 14, 14);
  218.    }
  219.    .header ul.nav.navbar-nav li ul li a:hover, .header ul.nav.navbar-nav li ul li a:focus{
  220.        border-left-color: rgb(41, 41, 41);
  221.        background: rgb(41, 41, 41);
  222.        color: #fafafa;
  223.    }
  224.    .navbar-default .navbar-toggle .icon-bar {
  225.        background-color: rgb(255, 255, 255);
  226.    }
  227.    .user_sidebar, .main_menu {
  228.        color: rgb(255, 255, 255);
  229.    }
  230.    .navbar-default .navbar-nav > li > a, .navbar-default .navbar-nav > li > span  {
  231.        color: rgb(255, 255, 255);
  232.    }
  233.    .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 {
  234.        color: rgb(173, 196, 38);
  235.    }
  236.    .navbar-default .navbar-nav > li {
  237.        font-family: 'Open Sans';
  238.    }
  239.    
  240.    
  241.  
  242.    /* Footer Design */
  243.    .footer {
  244.        background-color: rgb(30, 30, 30);
  245.        display: block;
  246.    }
  247.    .footer, .footer_menu a,.footer_terms a,.footer_menu .content {
  248.        color: rgb(239, 239, 239);
  249.    }
  250.    .footer_menu a:hover, .footer_terms a:hover, .footer_menu a:focus, .footer_terms a:focus {
  251.        color: rgb(255, 255, 255);
  252.    }
  253.    .footer_menu .head {
  254.        color: rgb(255, 255, 255);
  255.    }
  256.    .btn_footer_get_listed {
  257.            background-color: rgba(162, 193, 67,0.95);
  258.        border: 1px solid rgb(162, 193, 67);
  259.        color: rgb(255, 255, 255)!important;
  260.    }
  261.    .btn_footer_get_listed:hover, .btn_footer_get_listed:focus{
  262.        background-color: rgb(162, 193, 67);
  263.    }
  264.  
  265.    /* Homepage Design */
  266.        .homepage_settings h1, .homepage_settings h2, .homepage_map h1, .homepage_map h2 {
  267.        font-family: 'Open Sans';
  268.    }
  269.    .homepage_settings h1, .homepage_map h1 {
  270.        color: rgb(255, 255, 255);
  271.            font-weight: 600;
  272.            text-align: center;
  273.    }
  274.    .homepage_settings h2, .homepage_map h2 {
  275.        color: rgb(41, 41, 41);
  276.            font-weight: 400;
  277.            text-align: center;
  278.  
  279.    }
  280.    .homepage_settings .search_box label {
  281.        color: rgb(49, 49, 49);
  282.    }
  283.    .btn_home_search, .search_box input[type=submit] {
  284.            background-color: rgba(148, 191, 16,0.97);
  285.        border: 1px solid rgb(148, 191, 16);
  286.        color: rgb(255, 255, 255);
  287.    }
  288.    .btn_home_search:hover, .btn_home_search:focus, .search_box input[type=submit]:hover, .search_box input[type=submit]:focus {
  289.        background-color: rgb(148, 191, 16);
  290.        color: rgb(255, 255, 255);
  291.    }
  292.    .homepage_settings .search_box {
  293.            background-color: rgba(255, 255, 255,0.8);
  294.    }
  295.  
  296.    /* Homepage Steps Module */
  297.    .homepage_steps {
  298.            background: none;
  299.        box-shadow: none;
  300.        padding: 0;
  301.                color: rgb(255, 255, 255);
  302.            }
  303.    .homepage_steps a.homepage_step_link,.homepage_steps a.homepage_step_link:hover,.homepage_steps a.homepage_step_link:active{
  304.        color: rgb(255, 255, 255)!important;
  305.    }
  306.    .homepage_steps .fa {
  307.        color: rgb(102, 170, 51);
  308.            background-color: rgba(102, 170, 51,0.075);
  309.    }
  310.  
  311.    /* Blog Posts Slider Settings */
  312.    #myCarousel h2 a, .carousel-caption p,#myCarousel .list-group-item h2, #myCarousel li.list-group-item h4 {
  313.            color: rgb(255, 255, 255);
  314.        }
  315.    #myCarousel .list-group-item {
  316.            background-color: rgba(14, 14, 14,0.9);
  317.        border-color: rgba(14, 14, 14,0.80);
  318.    }
  319.    #myCarousel .carousel-caption {
  320.            background-color: rgba(14, 14, 14,0.8);
  321.    }
  322.    #myCarousel .list-group, #myCarousel .carousel-inner {
  323.            background-color: rgb(14, 14, 14)        }
  324.    #myCarousel .list-group .active, #myCarousel .list-group-item:hover {
  325.            background-color: rgb(14, 14, 14)        }
  326.    #myCarousel .list-group .active h4, #myCarousel .list-group-item:hover h4{
  327.            color: rgb(173, 196, 38);
  328.        }
  329.  
  330.    /* Additional Settings */
  331.    .well blockquote {
  332.        background: rgb(241, 241, 241) none repeat scroll 0 0;
  333.        border-color: rgb(247, 247, 247);
  334.        color: rgb(41, 41, 41);
  335.        padding: 10px 20px;
  336.    }
  337.    .account-form-box form table tr td table {
  338.        background-color: transparent!important;
  339.        border: none!important;
  340.    }
  341.  
  342.    .account-form-box form table tr td table td {
  343.        background-color: transparent!important;
  344.        color: rgb(41, 41, 41)!important;
  345.        border: none!important;
  346.    }
  347.    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{
  348.        color: rgb(41, 41, 41)!important;
  349.    }
  350.    .table.dataTable > thead > tr > th, .table > thead > tr > th {
  351.        background-color: rgb(255, 255, 255);
  352.        color: rgb(85, 85, 85);
  353.        border-bottom:0;
  354.        font-weight:600;
  355.    }
  356.    table.dataTable tbody tr {
  357.        background-color: rgb(255, 255, 255)!important;
  358.    }
  359.    .table-striped.dataTable tbody > tr:nth-of-type(2n+1),.table-striped > tbody > tr:nth-of-type(2n+1) {
  360.            background-color: rgba(241, 241, 241,0.5)!important;
  361.    }
  362.    .sidemenu_panel .list-group-item{
  363.        background-color: transparent!important;
  364.        color: rgb(41, 41, 41)!important;
  365.    }
  366.    .img-thumbnail {
  367.        background-color: rgb(255, 255, 255)!important;
  368.        border: 1px solid rgb(247, 247, 247);
  369.    }
  370.    .member_admin_sidemenu p, .member_admin_sidemenu h3 {
  371.        color: rgb(41, 41, 41)!important;
  372.    }
  373.    .close {
  374.        color: rgb(41, 41, 41);
  375.        opacity: 1;
  376.    }
  377.    .member_results_header h1, .content_w_sidebar.feature-search h1, .feature_results_header h1 {
  378.        font-size:36px;
  379.        display: block;
  380.    }
  381.    .member_results_header h2, .feature_results_header h2 {
  382.        font-size:30px;
  383.        display: block;
  384.    }
  385.    .homepage_settings {
  386.        padding-top: 50px;
  387.        padding-bottom: 80px;
  388.    }
  389.    @media only screen and (max-width: 768px) {
  390.                        .member-profile-header .favorite {float:none}
  391.    }
  392.  
  393.    @media only screen and (max-width: 1100px) {
  394.        }
  395.    .views > i.fa.activeView {
  396.        background-color: rgb(14, 14, 14);
  397.        color: rgb(255, 255, 255);
  398.    }
  399.    .views > i.fa {
  400.            background-color: rgba(14, 14, 14,0.6);
  401.        color: rgb(255, 255, 255);
  402.    }
  403.    .ui-rangeSlider-label {
  404.        background-color: rgb(14, 14, 14)!important;
  405.        color: rgb(255, 255, 255)!important;
  406.    }
  407.    .pricing_menu li .title {
  408.        background: rgb(144, 183, 28);
  409.        color: rgb(255, 255, 255);
  410.    }
  411.    p.account-tip{
  412.        color: rgb(41, 41, 41);
  413.    }
  414.    .circled_number {
  415.        background: rgb(160, 187, 46);
  416.        color: rgb(255, 255, 255);
  417.    }
  418.    .pic {
  419.            background-color: rgba(148, 170, 51,0.8);
  420.        color: rgb(255, 255, 255);
  421.        background-repeat: no-repeat;
  422.        background-position: center;
  423.        }
  424.    .pic .pic-caption {
  425.            background: linear-gradient(0deg, rgba(0, 0, 0, 0) 0%,rgba(148, 170, 51,0.85) 50%);
  426.        color: rgb(255, 255, 255);
  427.    }
  428.    .slick-prev-fa i, .slick-next-fa i{
  429.        color: rgb(148, 170, 51);
  430.    }
  431.    .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{
  432.        background-color: rgb(255, 255, 255);
  433.        border-color: rgb(247, 247, 247);
  434.        color: rgb(41, 41, 41);
  435.    }
  436.    .nav-tabs > li.active > a, .nav-tabs > li.active > a:focus, .nav-tabs > li.active > a:hover {
  437.        box-shadow: 0 2px 0 0 rgb(144, 182, 36) inset;
  438.        border-top:1px solid rgb(144, 182, 36);
  439.        border-radius: 0;
  440.    }
  441.    .nav-pills > li.active a, .nav-pills > li > a:hover {
  442.        background-color: rgb(144, 182, 36)!important;
  443.        border-color: rgb(144, 182, 36)!important;
  444.        color: rgb(255, 255, 255)!important;
  445.    }
  446.    .sidemenu_panel .panel-heading {
  447.        color: rgb(41, 41, 41)!important;
  448.        background-color: rgb(255, 255, 255)!important;
  449.    }
  450.    .member-profile-tabs .nav-tabs > li:not(.active) > a, .login-register-tabs.nav-tabs > li:not(.active) > a {
  451.            background: rgba(255, 255, 255,0.5);
  452.        color:  rgb(41, 41, 41);
  453.    }
  454.    .member-profile-tabs .nav-tabs > li:not(.active) > a:hover, .login-register-tabs.nav-tabs > li:not(.active) > a:hover {
  455.            background: rgba(255, 255, 255,1);
  456.        color:  rgb(41, 41, 41);
  457.    }
  458.    .author-snapshot .well {
  459.        background-color: rgb(255, 255, 255)!important;
  460.        border-color: rgb(247, 247, 247)!important;
  461.        color: rgb(41, 41, 41)!important;
  462.    }
  463.    .nav-tabs>li>a, .nav-pills>li>a {
  464.        font-weight: 600;
  465.    }
  466.        .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{
  467.            color: rgba(41, 41, 41,0.5);
  468.    }
  469.    #service_areas_table td,#service_areas_table_wrapper label, #service_areas_table_info, #service_areas_table_paginate > a {
  470.        color: rgb(41, 41, 41) !important;
  471.    }
  472.    .popover {
  473.        background-color: rgb(255, 255, 255);
  474.        border-color: rgb(255, 255, 255);
  475.        padding:0;
  476.        text-align:left;
  477.    }
  478.    .popover-title, .popover-content {
  479.        background-color: rgb(255, 255, 255);
  480.        color: rgb(41, 41, 41);
  481.        border-color: rgb(255, 255, 255);
  482.        text-align:left;
  483.    }
  484.    .popover-content {
  485.            background-color: rgba(41, 41, 41,.05);
  486.    }
  487.    .popover.left > .arrow::after {
  488.        border-left-color: rgb(255, 255, 255)!important;
  489.    }
  490.    .popover.right > .arrow::after {
  491.        border-right-color: rgb(255, 255, 255)!important;
  492.    }
  493.    .popover.bottom > .arrow::after {
  494.        border-bottom-color: rgb(255, 255, 255)!important;
  495.    }
  496.    .popover.top > .arrow::after {
  497.        border-top-color: rgb(255, 255, 255)!important;
  498.    }
  499.    .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{
  500.        background-color: rgb(241, 241, 241);
  501.        color: rgb(41, 41, 41);
  502.    }
  503.    .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 {
  504.        border-color: rgb(247, 247, 247);
  505.    }
  506.    table.dataTable.no-footer, table.dataTable {
  507.        border: 1px solid rgb(247, 247, 247)!important;
  508.    }
  509.    .table-view li, .table-view .table-view-group > div {
  510.        border-top:1px solid rgb(247, 247, 247);
  511.    }
  512.    .table-view .table-view-group:last-child {
  513.        border-bottom:1px solid rgb(247, 247, 247);
  514.    }
  515.    .module h1, .module h2, .module h3, .module h4, .module h5 {
  516.        color: rgb(62, 62, 62);
  517.    }
  518.    .module p:not(.fr-box.fr-basic .fr-element p) {
  519.        color: rgb(41, 41, 41);
  520.    }
  521.    .pagination>.active>a {
  522.            border-color: rgba(255, 255, 255,0.2);
  523.    }
  524.    .pagination>.active>a {
  525.        color: rgb(255, 255, 255);
  526.    }
  527.    .pagination > .active > a:hover, .pagination > .active > a:focus {
  528.            border-color: rgba(255, 255, 255,0.2);
  529.        background-color: rgb(14, 14, 14);
  530.        color: rgb(255, 255, 255);
  531.    }
  532.    .pagination > li > a {
  533.        color: rgb(14, 14, 14);
  534.            border-color: rgba(14, 14, 14,0.2);
  535.        background-color: rgb(255, 255, 255);
  536.    }
  537.    .pagination > li > a:focus, .pagination > li > a:hover, .pagination > li > span:focus, .pagination > li > span:hover {
  538.        background-color: rgb(14, 14, 14);
  539.        border-color: rgb(14, 14, 14);
  540.        color: rgb(255, 255, 255);
  541.    }
  542.  
  543.    .nav-pills.nav-wizard > li a, .nav-pills.nav-wizard > li a:hover{
  544.        background-color: rgb(250, 250, 250)!important;
  545.        color: rgb(41, 41, 41)!important;
  546.    }
  547.    .member_wizard2 li.incomplete a, .member_wizard2 li.incomplete a:hover {
  548.        background-color: rgb(240, 173, 78)!important;
  549.        border-color: rgb(240, 173, 78);
  550.        color: rgb(255, 255, 255);
  551.    }
  552.    .nav-pills.nav-wizard > li.active a, .nav-pills.member_wizard > li.active:hover a {
  553.        background-color: rgb(51, 122, 183)!important;
  554.        color: rgb(255, 255, 255)!important;
  555.    }
  556.    .member_wizard2 li.completed a, .member_wizard2 li.completed a:hover {
  557.        background-color: rgb(152, 193, 67)!important;
  558.        border-color: rgb(152, 193, 67);
  559.        color: rgb(255, 255, 255);
  560.    }
  561.  
  562.        .nav-pills.nav-wizard > li.active .nav-arrow, .nav-pills.nav-wizard > li.active:hover .nav-arrow {
  563.        border-color: transparent transparent transparent rgb(51, 122, 183)!important;
  564.    }
  565.    .nav-pills.nav-wizard > li.active .nav-wedge, .nav-pills.nav-wizard > li.active:hover .nav-wedge{
  566.        border-color: rgb(51, 122, 183) rgb(51, 122, 183) rgb(51, 122, 183) transparent!important;
  567.    }
  568.    
  569.        li.completed .nav-wedge, .nav-pills.nav-wizard > li.completed:hover .nav-wedge {
  570.        border-color: rgb(171, 194, 58) rgb(171, 194, 58) rgb(171, 194, 58) transparent!important;
  571.    }
  572.    
  573.        li.incomplete .nav-wedge, .nav-pills.nav-wizard > li.incomplete:hover .nav-wedge {
  574.        border-color: rgb(250, 250, 250) rgb(250, 250, 250) rgb(250, 250, 250) transparent!important;
  575.    }
  576.    
  577.    .nav-pills.member_wizard > li.completed a, .nav-pills.member_wizard > li.completed a:hover {
  578.        background-color: rgb(171, 194, 58)!important;
  579.        color: rgb(255, 255, 255)!important;
  580.    }
  581.  
  582.    .member_wizard2 li {
  583.        color: rgb(255, 255, 255);
  584.        border-right: 10px solid rgb(241, 241, 241);
  585.    }
  586.  
  587.        li.completed .nav-arrow, .nav-pills.nav-wizard > li.completed:hover .nav-arrow {
  588.        border-color: transparent transparent transparent rgb(171, 194, 58)!important;
  589.    }
  590.    
  591.        li.incomplete .nav-arrow, .nav-pills.nav-wizard > li.incomplete:hover .nav-arrow{
  592.        border-color: transparent transparent transparent rgb(250, 250, 250)!important;
  593.    }
  594.    
  595.    /* Default Colors */
  596.    .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 {
  597.            background-color: rgba(144, 182, 36,0.95);
  598.        border-color: rgb(144, 182, 36);
  599.        color: rgb(255, 255, 255);
  600.    }
  601.    .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 {
  602.        background-color: rgb(144, 182, 36);
  603.        border-color: rgb(144, 182, 36);
  604.        color: rgb(255, 255, 255);
  605.    }
  606. .panel-primary {
  607.        background-color: rgba(144, 182, 36,0.1);
  608. border-color: rgb(144, 182, 36);
  609. }
  610.    .bg-primary,.progress-bar-primary,.module p.bg-primary,.label-primary,.badge-primary,.pricing_menu .title.bg-primary {
  611.        background-color: rgb(144, 182, 36);
  612.        color: rgb(255, 255, 255);
  613.    }
  614.    .bg-primary .badge {
  615.        background-color:rgb(255, 255, 255);
  616.        color: rgb(144, 182, 36);
  617.    }
  618.    .btn-primary.btn-outline {
  619.        background: transparent;
  620.        color: rgb(144, 182, 36);
  621.        box-shadow: 0 0 0px 1px rgb(144, 182, 36) inset;
  622.        font-weight: bold;
  623.        transition: all 250ms ease-in-out 0ms;
  624.    }
  625.    .btn-primary.btn-outline:hover {
  626.            background: rgba(144, 182, 36,0.1);
  627.    }
  628.    .alert-primary {
  629.            background-color:rgba(144, 182, 36,0.7);
  630.        border-color:rgba(144, 182, 36,0.2);
  631.            color: rgba(255, 255, 255,0.9);
  632.    }
  633. .alert-primary-subtle, .label-primary-subtle, .badge-primary-subtle {
  634. background-color: #e9f0d3;
  635. border-color: #e9f0d3;
  636. color: rgb(144, 182, 36);
  637. }
  638.    .btn.dropdown-toggle.btn-primary *, .btn-primary a {
  639.        color: rgb(255, 255, 255);
  640.    }
  641.    .text-primary{
  642.        color: rgb(144, 182, 36);
  643.    }
  644.    .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 {
  645.            background-color: rgba(60, 187, 222,0.95);
  646.        border-color: rgb(60, 187, 222);
  647.        color: rgb(255, 255, 255);
  648.    }
  649.    .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 {
  650.        background-color: rgb(60, 187, 222);
  651.        border-color: rgb(60, 187, 222);
  652.        color: rgb(255, 255, 255);
  653.    }
  654. .panel-info {
  655.        background-color: rgba(60, 187, 222,0.1);
  656. border-color: rgb(60, 187, 222);
  657. }
  658.    .bg-info,.progress-bar-info,.module p.bg-info,.label-info,.badge-info,.pricing_menu .title.bg-info {
  659.        background-color: rgb(60, 187, 222);
  660.        color: rgb(255, 255, 255);
  661.    }
  662.    .bg-info .badge {
  663.        background-color:rgb(255, 255, 255);
  664.        color: rgb(60, 187, 222);
  665.    }
  666.    .btn-info.btn-outline {
  667.        background: transparent;
  668.        color: rgb(60, 187, 222);
  669.        box-shadow: 0 0 0px 1px rgb(60, 187, 222) inset;
  670.        font-weight: bold;
  671.        transition: all 250ms ease-in-out 0ms;
  672.    }
  673.    .btn-info.btn-outline:hover {
  674.            background: rgba(60, 187, 222,0.1);
  675.    }
  676.    .alert-info {
  677.            background-color:rgba(60, 187, 222,0.7);
  678.        border-color:rgba(60, 187, 222,0.2);
  679.            color: rgba(255, 255, 255,0.9);
  680.    }
  681. .alert-info-subtle, .label-info-subtle, .badge-info-subtle {
  682. background-color: #d8f1f8;
  683. border-color: #d8f1f8;
  684. color: rgb(60, 187, 222);
  685. }
  686.    .btn.dropdown-toggle.btn-info *, .btn-info a {
  687.        color: rgb(255, 255, 255);
  688.    }
  689.    .text-info{
  690.        color: rgb(60, 187, 222);
  691.    }
  692.    .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 {
  693.            background-color: rgba(152, 193, 67,0.95);
  694.        border-color: rgb(152, 193, 67);
  695.        color: rgb(255, 255, 255);
  696.    }
  697.    .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 {
  698.        background-color: rgb(152, 193, 67);
  699.        border-color: rgb(152, 193, 67);
  700.        color: rgb(255, 255, 255);
  701.    }
  702.    .panel-success {
  703.        background-color: rgba(152, 193, 67,0.1);
  704.        border-color: rgb(152, 193, 67);
  705.    }
  706.    .bg-success,.progress-bar-success,.module p.bg-success,.label-success,.badge-success,.pricing_menu .title.bg-success {
  707.        background-color: rgb(152, 193, 67);
  708.        color: rgb(255, 255, 255);
  709.    }
  710.    .bg-success .badge {
  711.        background-color: rgb(255, 255, 255);
  712.        color: rgb(152, 193, 67);
  713.    }
  714.    .btn-success.btn-outline {
  715.        background: transparent;
  716.        color: rgb(152, 193, 67);
  717.        box-shadow: 0 0 0px 1px rgb(152, 193, 67) inset;
  718.        font-weight: bold;
  719.        transition: all 250ms ease-in-out 0ms;
  720.    }
  721.    .btn-success.btn-outline:hover {
  722.            background: rgba(152, 193, 67,0.1);
  723.    }
  724.    .alert-success {
  725.            background-color:rgba(152, 193, 67,0.7);
  726.        border-color:rgba(152, 193, 67,0.2);
  727.            color: rgba(255, 255, 255,0.9);
  728.    }
  729. .alert-success-subtle, .label-success-subtle, .badge-success-subtle {
  730. background-color: #eaf3d9;
  731. border-color: #eaf3d9;
  732. color: rgb(152, 193, 67);
  733. }
  734.    .btn.dropdown-toggle.btn-success *, .btn-success a {
  735.        color: rgb(255, 255, 255);
  736.    }
  737.    .text-success{
  738.        color: rgb(152, 193, 67);
  739.    }
  740.    .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 {
  741.            background-color: rgba(240, 173, 78,0.95);
  742.        border-color: rgb(240, 173, 78);
  743.        color: rgb(255, 255, 255);
  744.    }
  745.    .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 {
  746.        background-color: rgb(240, 173, 78);
  747.        border-color: rgb(240, 173, 78);
  748.        color: rgb(255, 255, 255);
  749.    }
  750. .panel-warning {
  751.        background-color: rgba(240, 173, 78,0.1);
  752. border-color: rgb(240, 173, 78);
  753. }
  754.    .bg-warning,.progress-bar-warning,.module p.bg-warning,.label-warning,.badge-warning,.pricing_menu .title.bg-warning {
  755.        background-color: rgb(240, 173, 78);
  756.        color: rgb(255, 255, 255);
  757.    }
  758.    .bg-warning .badge {
  759.        background-color: rgb(255, 255, 255);
  760.        color: rgb(240, 173, 78);
  761.    }
  762.    .btn-warning.btn-outline {
  763.        background: transparent;
  764.        color: rgb(240, 173, 78);
  765.        box-shadow: 0 0 0px 1px rgb(240, 173, 78) inset;
  766.        font-weight: bold;
  767.        transition: all 250ms ease-in-out 0ms;
  768.    }
  769.    .btn-warning.btn-outline:hover {
  770.            background: rgba(240, 173, 78,0.1);
  771.    }
  772.    .alert-warning {
  773.            background-color:rgba(240, 173, 78,0.7);
  774.        border-color:rgba(240, 173, 78,0.2);
  775.            color: rgba(255, 255, 255,0.9);
  776.    }
  777. .alert-warning-subtle, .label-warning-subtle, .badge-warning-subtle {
  778. background-color: #fcefdc;
  779. border-color: #fcefdc;
  780. color: rgb(240, 173, 78);
  781. }
  782.    .btn.dropdown-toggle.btn-warning *, .btn-warning a {
  783.        color: rgb(255, 255, 255);
  784.    }
  785.    .text-warning {
  786.        color: rgb(240, 173, 78);
  787.    }
  788.    .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 {
  789.            background-color: rgba(217, 83, 79,0.95);
  790.        border-color: rgb(217, 83, 79);
  791.        color: rgb(255, 255, 255);
  792.    }
  793.    .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 {
  794.        background-color: rgb(217, 83, 79);
  795.        border-color: rgb(217, 83, 79);
  796.        color: rgb(255, 255, 255);
  797.    }
  798.    .has-error .form-control {
  799.        border-color: rgb(217, 83, 79);
  800.    }
  801.    .has-error .help-block:not(.form-field-help-block), .has-error ~ .help-block:not(.form-field-help-block),.has-error .help-block:not(.form-field-help-block) a, .has-error ~ .help-block:not(.form-field-help-block) a {
  802.        background: rgb(217, 83, 79);
  803.        color: rgb(255, 255, 255) !important;
  804.    }
  805.    .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 {
  806.        color: rgb(217, 83, 79);
  807.    }
  808. .panel-danger {
  809.        background-color: rgba(217, 83, 79,0.1);
  810. border-color: rgb(217, 83, 79);
  811. }
  812.    .bg-danger,.progress-bar-danger,.module p.bg-danger,.label-danger,.badge-danger,.pricing_menu .title.bg-danger {
  813.        background-color: rgb(217, 83, 79);
  814.        color: rgb(255, 255, 255);
  815.    }
  816.    .bg-danger .badge {
  817.        background-color: rgb(255, 255, 255);
  818.        color: rgb(217, 83, 79);
  819.    }
  820.    .btn-danger.btn-outline {
  821.        background: transparent;
  822.        color: rgb(217, 83, 79);
  823.        box-shadow: 0 0 0px 1px rgb(217, 83, 79) inset;
  824.        font-weight: bold;
  825.        transition: all 250ms ease-in-out 0ms;
  826.    }
  827.    .btn-danger.btn-outline:hover {
  828.            background: rgba(217, 83, 79,0.1);
  829.    }
  830.    .alert-danger {
  831.            background-color:rgba(217, 83, 79,0.7);
  832.        border-color:rgba(217, 83, 79,0.2);
  833.            color: rgba(255, 255, 255,0.9);
  834.    }
  835. .alert-danger-subtle, .label-danger-subtle, .badge-danger-subtle {
  836. background-color: #f7dddc;
  837. border-color: #f7dddc;
  838. color: rgb(217, 83, 79);
  839. }
  840.    .btn.dropdown-toggle.btn-danger *, .btn-danger a {
  841.        color: rgb(255, 255, 255);
  842.    }
  843.    .text-danger{
  844.        color: rgb(217, 83, 79);
  845.    }
  846.    .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 {
  847.            background-color: rgba(255, 255, 255,0.95);
  848.        border-color: rgb(255, 255, 255);
  849.        color: rgb(85, 85, 85);
  850.    }
  851.    .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 {
  852.        background-color: rgb(255, 255, 255);
  853.        border-color: rgb(255, 255, 255);
  854.        color: rgb(85, 85, 85);
  855.    }
  856.    .sidemenu_panel .panel-default .panel_heading {
  857.        background-color: rgb(255, 255, 255)!important;
  858.        border-color: rgb(255, 255, 255)!important;
  859.        color: rgb(85, 85, 85)!important;
  860.    }
  861.    .panel-default, .member_accounts .panel-default {
  862. background-color: rgba(255, 255, 255,0.1);
  863. border-color: rgb(255, 255, 255);
  864. }
  865. .member_admin_sidemenu .panel-default {
  866. background-color: transparent;
  867. }
  868.    .bg-default,.progress-bar-default,.module p.bg-default,.label-default,.badge-default,.pricing_menu .title.bg-default {
  869.        background-color: rgb(255, 255, 255);
  870.        color: rgb(85, 85, 85);
  871.    }
  872.    .bg-default .badge {
  873.        background-color: rgb(85, 85, 85);
  874.        color: rgb(255, 255, 255);
  875.    }
  876.    .btn-default.btn-outline {
  877.        background: transparent;
  878.        color: rgb(255, 255, 255);
  879.        box-shadow: 0 0 0px 1px rgb(255, 255, 255) inset;
  880.        font-weight: bold;
  881.        transition: all 250ms ease-in-out 0ms;
  882.    }
  883.    .btn-default.btn-outline:hover {
  884.            background: rgba(255, 255, 255,0.1);
  885.    }
  886. .alert-default {
  887. background-color:rgb(255, 255, 255);
  888. border-color:rgb(255, 255, 255);
  889. color: rgb(85, 85, 85);
  890. }
  891. .alert-default-subtle, .label-default-subtle, .badge-default-subtle {
  892. background-color:rgba(255, 255, 255,0.5);
  893. border-color: rgba(255, 255, 255,0.5);
  894. color: rgb(85, 85, 85);
  895. }
  896.    .btn.dropdown-toggle.btn-default *, .btn-default a {
  897.        color: rgb(85, 85, 85);
  898.    }
  899.    .text-default{
  900.        color: rgb(255, 255, 255);
  901.    }
  902.    .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 {
  903.            background-color: rgba(41, 41, 41,0.95);
  904.        border: 1px solid rgb(41, 41, 41);
  905.        color: rgb(241, 241, 241);
  906.    }
  907.    .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, .panel-secondary .panel-heading {
  908.        background-color: rgb(41, 41, 41);
  909.        border: 1px solid rgb(41, 41, 41);
  910.        color: rgb(241, 241, 241);
  911.    }
  912.    .bg-secondary,.progress-bar-secondary,.module p.bg-secondary,.module p.bg-secondary:not(.fr-box.fr-basic .fr-element p),.label-secondary,.badge-secondary,.pricing_menu .title.bg-secondary {
  913.        background-color: rgb(41, 41, 41);
  914.        color: rgb(241, 241, 241);
  915.    }
  916.    .bg-secondary .badge {
  917.        background-color:rgb(241, 241, 241);
  918.        color: rgb(41, 41, 41);
  919.    }
  920.    .btn-secondary.btn-outline {
  921.        background: transparent;
  922.        color: rgb(41, 41, 41);
  923.        box-shadow: 0 0 0px 1px rgb(41, 41, 41) inset;
  924.        font-weight: bold;
  925.        transition: all 250ms ease-in-out 0ms;
  926.    }
  927.    .btn-secondary.btn-outline:hover {
  928.            background: rgba(41, 41, 41,0.1);
  929.    }
  930. .panel-secondary {
  931.        background-color: rgba(41, 41, 41,0.1);
  932. border-color: rgb(41, 41, 41);
  933. }
  934. .alert-secondary {
  935. background-color:rgb(41, 41, 41);
  936. border-color:rgb(41, 41, 41);
  937. color: rgb(241, 241, 241);
  938. }
  939. .alert-secondary-subtle, .label-secondary-subtle, .badge-secondary-subtle {
  940. background-color:rgba(41, 41, 41,0.8);
  941. border-color: rgba(41, 41, 41,0.5);
  942. color: rgb(241, 241, 241);
  943. }
  944.    .bg-body {
  945.        background: rgb(241, 241, 241);
  946.        color: rgb(41, 41, 41);
  947.    }
  948.    .bg-content-box {
  949.        background: rgb(255, 255, 255);
  950.        color: rgb(41, 41, 41);
  951.    }
  952.    .bg-content-box-border {
  953.        background: rgb(247, 247, 247);
  954.    }
  955.    .btn.dropdown-toggle.btn-secondary *, .btn-secondary a {
  956.        color: rgb(241, 241, 241);
  957.    }
  958.    .text-secondary {
  959.        color: rgb(41, 41, 41);
  960.    }
  961.    .feature-post #post-content .alert-secondary.btn-block, .feature-search .img_section .alert-secondary.btn-block, .search_result .img_section  .alert-secondary {
  962.        background-color: rgba(41, 41, 41,0.2);
  963.    }
  964.  
  965.    /* Footer Newsletter Row */
  966.    .newsletter_row .alert {
  967.        color: rgb(255, 255, 255);
  968.    }
  969.    .newsletter_row {
  970.        background-color: rgb(14, 14, 14);
  971.        color: rgb(255, 255, 255);
  972.    }
  973.    .newsletter_row input[type="submit"],.newsletter_footer_button {
  974.            background-color: rgba(167, 218, 53,0.97);
  975.        color: rgb(255, 255, 255);
  976.        border-color: rgb(167, 218, 53);
  977.    }
  978.    .newsletter_row input[type="submit"]:hover,.newsletter_row input[type="submit"]:focus,.newsletter_footer_button:hover,.newsletter_footer_button:focus {
  979.        background-color: rgb(167, 218, 53);
  980.        color: rgb(255, 255, 255);
  981.    }
  982.    .newsletter_button_left {
  983.            border-right: 1px solid rgba(255, 255, 255,0.2);
  984.    }
  985.    .newsletter_button_right {
  986.        border-left: 1px solid rgba(255, 255, 255,0.2);
  987.    }
  988.    .newsletter_row small.help-block {
  989.        background: rgb(255, 255, 255);
  990.        margin-top: -5px;
  991.        float: left;
  992.        padding: 8px;
  993.        border-radius: 1px;
  994.        color: rgb(14, 14, 14);
  995.        text-transform: capitalize;
  996.    }
  997.    .newsletter_row .has-success .checkbox,.newsletter_row .has-error .checkbox{
  998.        color: rgb(255, 255, 255);
  999.    }
  1000.    @media only screen and (max-width: 767px) {
  1001.        .newsletter_button_right,.newsletter_button_left{
  1002.            border: none;
  1003.            margin: 5px 0;
  1004.        }
  1005.    }
  1006.  
  1007.    /* Font Sizes */
  1008.  
  1009.    .navbar-default .navbar-nav > li > a, .navbar-default .navbar-nav > li > span {
  1010.        font-size: 16px;
  1011.    }
  1012.    .header .logo {
  1013.        font-size: 33px;
  1014.    }
  1015.    .homepage_title h1, .homepage_settings h1 {
  1016.        font-size: 50px;
  1017.    }
  1018.    .homepage_settings h2 {
  1019.        font-size: 28px;
  1020.    }
  1021.  
  1022.    .ui-rangeSlider-bar{
  1023.        background: rgb(148, 191, 16)!important;
  1024.    }
  1025.  
  1026.    
  1027.    
  1028.    @media only screen and (max-width: 1024px){
  1029.        .modal {margin-top: 40px;}
  1030.    }
  1031.    @media only screen and (max-width: 768px){
  1032.        .modal {margin-top: 60px;}
  1033.    }
  1034.  
  1035.    /* Calendar Styles */
  1036.  
  1037.    #cal-slide-content {
  1038.        color: rgb(85, 85, 85)!important;
  1039.        background-color: rgb(255, 255, 255)!important;
  1040.        -webkit-box-shadow: none!important;
  1041.        box-shadow: none!important;
  1042.    }
  1043.    #cal-slide-content a.event-item {
  1044.        color: rgb(85, 85, 85)!important;
  1045.        font-weight:bold!important;
  1046.    }
  1047.    #cal-slide-content a.event-item small {
  1048.        display: inline-block;
  1049.    }
  1050.    .cal-month-box, .cal-year-box, .cal-week-box {
  1051.        border: 1px solid rgb(247, 247, 247)!important;
  1052.    }
  1053.    .cal-year-box .row-fluid, .cal-month-box .cal-row-fluid {
  1054.        border-bottom: 1px solid rgb(247, 247, 247)!important;
  1055.    }
  1056.    .cal-year-box [class*="span"], .cal-month-box [class*="cal-cell"] {
  1057.        border-right: 1px solid rgb(247, 247, 247)!important;
  1058.    }
  1059.    .cal-year-box .row-fluid, .cal-row-fluid, #cal-day-box .cal-day-hour:nth-child(odd) {
  1060.        background-color: rgb(241, 241, 241)!important;
  1061.    }
  1062.    .cal-month-day span:not(.pull-right):not(.events-count-label):not(.events-label) {
  1063.        color: rgb(85, 85, 85)!important;
  1064.    }
  1065.    .cal-day-today span[data-cal-date] {
  1066.        color: rgb(41, 41, 41)!important;
  1067.    }
  1068.    .cal-year-box .row-fluid [class*="span"]:last-child, .cal-month-box .cal-row-fluid [class*="cal-cell"]:last-child {
  1069.        border: 0!important;
  1070.    }
  1071.    .cal-row-head {
  1072.        background: rgb(255, 255, 255)!important;
  1073.    }
  1074.    .day-highlight:hover, .day-highlight {
  1075.        background-color: rgb(247, 247, 247)!important;
  1076.    }
  1077.    .cal-event-list .event.pull-left {
  1078.        background-color: rgb(41, 41, 41)!important;
  1079.        opacity: 0.4;
  1080.        margin-top: 7px!important;
  1081.    }
  1082.    .cal-day-today {
  1083.        background-color: rgb(247, 247, 247)!important;
  1084.    }
  1085.    #cal-day-tick {
  1086.        border: 1px solid rgb(247, 247, 247)!important;
  1087.        background-color: rgb(247, 247, 247)!important;
  1088.    }
  1089.    .cal-day-weekend span[data-cal-date]{
  1090.        color: rgb(41, 41, 41)!important;
  1091.    }
  1092.        .rsDefault, .rsDefault .rsOverflow, .rsDefault .rsSlide, .rsDefault .rsVideoFrameHolder, .rsDefault .rsThumbs {
  1093.        background: #151515!important;
  1094.    }
  1095.    
  1096.    #first_container .favorite, #first_container .fa.favorite {
  1097.        color: #aaa;
  1098.        background: rgb(255, 255, 255);
  1099.        border: 1px solid rgb(255, 255, 255);
  1100.        white-space:nowrap!important;
  1101.    }
  1102.    #first_container .favorite span, #first_container .fa.favorite span {
  1103.        font-family: 'Open Sans';
  1104.        white-space:nowrap!important;
  1105.    }
  1106.    #first_container .favoriteActive:not(.favorite.comments-count-badge), #first_container .fa.favoriteActive:not(.favorite.comments-count-badge .fa) {
  1107.        color: #ef4770;
  1108.    }
  1109.        #first_container .favorite::after, #first_container .fa.favorite::after {
  1110.        font-family: 'Open Sans';
  1111.        margin-left: 3px;
  1112.    }
  1113.    #first_container .favorite span, #first_container .fa.favorite span{
  1114.        padding-left: 3px;
  1115.        font-family: 'Open Sans';
  1116.        font-size: 11px;
  1117.    }
  1118.    #first_container .favorite .bookmark-number, #first_container .fa.favorite .bookmark-number {
  1119.        background: #aaa;
  1120.        color:rgb(255, 255, 255);
  1121.        padding: 0 5px;
  1122.        border-radius: 100px;
  1123.        display: inline-block;
  1124.        font-weight:bold;
  1125.    }
  1126.    #first_container .favorite.favoriteActive .bookmark-number:not(.comments-count-badge .bookmark-number), #first_container .fa.favorite.favoriteActive .bookmark-number {
  1127.        background: #ef4770;
  1128.    }
  1129.    
  1130.    span.checkbox_value::after {
  1131.        content: ', ';
  1132.    }
  1133.  
  1134.    span.checkbox_value:last-child::after {
  1135.        content: '';
  1136.    }
  1137.    
  1138.    
  1139.    
  1140.  
  1141.    /*  Homepage Sections Background Color Logic */
  1142.  
  1143.    
  1144.    .homepage-section-1 {
  1145.        padding: 40px 0 40px;
  1146.    }
  1147.  
  1148.    
  1149.    .homepage-section-2 {
  1150.        padding: 40px 0 40px;
  1151.    }
  1152.  
  1153.    
  1154.    .homepage-section-3 {
  1155.        padding: 40px 0 40px;
  1156.    }
  1157.  
  1158.    
  1159.    .homepage-section-4 {
  1160.        padding: 40px 0 40px;
  1161.    }
  1162.  
  1163.    
  1164.    .homepage-section-5 {
  1165.        padding: 40px 0 40px;
  1166.    }
  1167.  
  1168.    
  1169.    .homepage-section-6 {
  1170.        padding: 40px 0 40px;
  1171.    }
  1172.  
  1173.    
  1174.    .homepage-section-7 {
  1175.        padding: 40px 0 40px;
  1176.    }
  1177.  
  1178.    
  1179.    .homepage-section-8 {
  1180.        padding: 40px 0 40px;
  1181.    }
  1182.  
  1183.    
  1184.    .homepage-section-9 {
  1185.        padding: 40px 0 40px;
  1186.    }
  1187.  
  1188.    
  1189.    .homepage-section-10 {
  1190.        padding: 40px 0 40px;
  1191.    }
  1192.  
  1193.    
  1194.    .homepage-section-11 {
  1195.        padding: 40px 0 40px;
  1196.    }
  1197.  
  1198.    
  1199.    .homepage-section-12 {
  1200.        padding: 40px 0 40px;
  1201.    }
  1202.  
  1203.    
  1204.    .homepage-section-13 {
  1205.        padding: 40px 0 40px;
  1206.    }
  1207.  
  1208.    
  1209.    .homepage-section-14 {
  1210.        padding: 40px 0 40px;
  1211.    }
  1212.  
  1213.    
  1214.    .homepage-section-15 {
  1215.        padding: 40px 0 40px;
  1216.    }
  1217.  
  1218.    
  1219.    /* Additional Settings */
  1220.  
  1221.    
  1222.    /* Streaming Widgets Title Settings */
  1223.  
  1224.    .streaming-title {
  1225.        text-align: left;
  1226.        font-size: 30px;
  1227.            font-weight: 600;
  1228.                font-family: 'Open Sans';
  1229.            padding-bottom: 0px;
  1230.    }
  1231.  
  1232.        
  1233.    .homepage-join-module .module h2:first-of-type {
  1234.        color: rgb(62, 62, 62);
  1235.    }
  1236.  
  1237.    .homepage-join-module .module{
  1238.        background: rgb(255, 255, 255);
  1239.        border-color: rgb(247, 247, 247);
  1240.    }
  1241.  
  1242.    .homepage-about-module .module h2:first-of-type {
  1243.        color: rgb(62, 62, 62);
  1244.    }
  1245.  
  1246.    .homepage-about-module .module{
  1247.        background: rgb(255, 255, 255);
  1248.        border-color: rgb(247, 247, 247);
  1249.  
  1250.    }
  1251.  
  1252.    
  1253.    
  1254.    .img-circle, .img-circle img{
  1255.        border-radius:1000px!important;
  1256.    }
  1257.  
  1258.    .img-rounded img, img.fr-dib.img-rounded{
  1259.        border-radius: 6px!important;
  1260.    }
  1261.    
  1262.    /* Google Translate Module */
  1263.        .skiptranslate iframe {position: absolute;top: -40px;}
  1264.        .skiptranslate{font-size:0}
  1265.    .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}
  1266.    .skiptranslate.goog-te-gadget span,img.goog-te-gadget-icon{display:none!important}
  1267.    .goog-te-gadget .goog-te-combo{margin-bottom:-4px}
  1268.    .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)}
  1269.    @media only screen and (max-width: 1100px) {
  1270.        .skiptranslate:not(.skiptranslate[style="display: none;"]){height:39px}
  1271.        .skiptranslate:not(.skiptranslate[style="display: none;"]) ~ .header{margin-top:10px!important}
  1272.        .skiptranslate:not(.skiptranslate[style="display: none;"]) ~ .announcement-bar{margin-top:10px}
  1273.        .skiptranslate:not(.skiptranslate[style="display: none;"]) ~ .announcement-bar ~ .header{margin-top:0!important}
  1274.        .skiptranslate:not(.skiptranslate[style="display: none;"]) ~ .header .mobile-main-menu{top:89px!important;height:calc(100% - 90px)!important}
  1275.        .skiptranslate:not(.skiptranslate[style="display: none;"]) ~ .header .navbar{top:39px}
  1276.        .skiptranslate:not(.skiptranslate[style="display: none;"]) ~ #first_container .member_sidebar.open{top: 89px;}
  1277.    }
  1278.    @media only screen and (max-width: 767px) {
  1279.        .skiptranslate:not(.skiptranslate[style="display: none;"]) ~ .announcement-bar.hidden-xs ~ .header{margin-top:10px!important}
  1280.    }
  1281.  
  1282. </style>
  1283.  
  1284. <!--GOOGLE TAG MANAGER CODE-->    <!-- ON-PAGE CSS FUNCTIONS -->
  1285.    <style type="text/css">
  1286.            </style>
  1287.    <div class="header">
  1288.            <div class="container">
  1289. <div class="row vmargin">
  1290. <div id="website_logo" class="col-md-5 tpad xs-nopad xs-hpad sm-text-center xs-bmargin header-left-container">
  1291. <a href="https://www.techdirectory.io" title="TechDirectory">
  1292. <img width="326" height="62" src="/images/TechDirectory-Logo.png" alt="TechDirectory">
  1293. </a>
  1294. <div class="clearfix"></div>
  1295. </div>
  1296. <style type='text/css'> body input.tt-hint,body input.form-control.normal-autosuggest-input.tt-query {
  1297.   background-color: white !important;
  1298. }
  1299. .input-group-sm .input-group-addon .fa {
  1300.    font-size: 15px;
  1301. } </style><div class="col-md-7 text-right sm-text-center header-right-container nolpad xs-hpad">
  1302.            <ul class="mini-nav nobmargin list-inline xs-nopad xs-tmargin vpad">
  1303.            <style type='text/css'>  div[id^="goog-"]{display: none !important;}
  1304. .goog-te-banner {
  1305.    overflow-x: auto;
  1306. } </style>    <li class="align-middle" style="min-width:137px;height:30px">
  1307.        <div id="google_translate_element" style="width:127px;float:right;opacity:0;"></div>
  1308.        <i id='spin_remove' class="fa fa-circle-o-notch fa-spin "></i>
  1309.    </li>
  1310. <li class='bmargin'><span id='link207'  class='bmargin'> </span></li><li class='bmargin norpad'><a href='/login' id='link208'  class='btn btn_get_listed bold'>Login <i class="fa fa-chevron-right lmargin"></i></a></li><li class='bmargin norpad'><a href='/get-listed' id='link210'  class='btn btn_get_listed bold'>List Your Company <i class="fa fa-chevron-right lmargin"></i></a></li>         </ul>
  1311.            <div class="clearfix"></div>
  1312.                <form action="/search_results" name="frm1" class="form-inline website-search">
  1313.                                    <div class="input-group input-group-sm bmargin sm-autosuggest">
  1314.                        <span class="input-group-addon hidden-md"><i class="fa fa-search"></i></span>
  1315.                        <input type="text"
  1316.                               placeholder="Name or Keyword" value="" name="q"
  1317.                               class="member_search form-control input-sm" autocomplete="off">
  1318.                    </div>
  1319.                                    <input type="submit" value="Search" class="btn btn-sm btn_search bmargin xs-btn-block bold">
  1320.            </form>
  1321.            </div>
  1322.            </div>
  1323.        </div>
  1324.        <style type='text/css'> .mobile-main-menu .hasChildren span a {
  1325.    padding: 0px;
  1326. }
  1327.  
  1328. .user_sidebar > img {
  1329. width: 32px;
  1330. height: 32px;
  1331. position: absolute;
  1332. z-index: 10;
  1333. border-radius: 100px;
  1334. top: -1px;
  1335. object-fit: cover;
  1336. left: -10px;
  1337. background: rgb(255, 255, 255);
  1338. }
  1339. #member_sidebar_toggle img+.fa {
  1340.    display: none;
  1341. }
  1342. .main_menu, .user_sidebar {
  1343. padding: 5px 8px;
  1344. margin-right:0;
  1345. min-height: 33.0333px;
  1346. min-width: 38.116px;
  1347. }
  1348. .main_menu i, .user_sidebar i {
  1349.    font-size: 16px;
  1350. }
  1351. .navbar-nav li {
  1352.    float: none!Important;
  1353. }
  1354. .navbar-default{
  1355.    -webkit-transition: all .6s ease-in-out;
  1356.    -moz-transition: all .6s ease-in-out;
  1357.    -o-transition: all .6s ease-in-out;
  1358.    transition: all .6s ease-in-out;
  1359. }
  1360. .transparent_menu {
  1361. background-color: rgba(14, 14, 14,0.95)!important;
  1362. }
  1363. @media only screen and (max-width: 991px) {
  1364. #popover {display: none}
  1365. }
  1366. @media only screen and (max-width: 1100px){
  1367.    .mobile-main-menu{display:block!important}
  1368.    .navbar-toggle {display: block}
  1369.    #bs-main_menu .nav {display: none!important}
  1370. }
  1371. .mobile-main-menu {
  1372.    position: fixed;
  1373.    height: calc(100% - 50px)!important;
  1374.    width: 250px;
  1375.    background: rgb(14, 14, 14);
  1376.    z-index: 99999;
  1377.    right: -250px;
  1378.    top: 50px;
  1379.    display: none;
  1380.    -webkit-transition: all .6s ease-in-out;
  1381.    -moz-transition: all .6s ease-in-out;
  1382.    -o-transition: all .6s ease-in-out;
  1383.    transition: all .6s ease-in-out;
  1384.    overflow-y: auto!important;
  1385.    overflow-x: hidden!important;
  1386. }
  1387. .mobile-main-menu ul li i {
  1388.    color: rgb(255, 255, 255);
  1389.    cursor: pointer;
  1390.    float: right;
  1391.    padding: 13px;
  1392. }
  1393.  
  1394. .mobile-main-menu.opened{
  1395.    right: 0px!important;
  1396. }
  1397.  
  1398. .mobile-main-menu ul li a, .mobile-main-menu ul li span {
  1399.    display: inline-block;
  1400.    float: left;
  1401.    -webkit-touch-callout: none;
  1402.    -webkit-user-select: none;
  1403.    -khtml-user-select: none;
  1404.    -moz-user-select: none;
  1405.    -ms-user-select: none;
  1406.    user-select: none;
  1407.    padding: 10px 0px;
  1408.    width: 80%;
  1409.    width: calc(100% - 40px);
  1410. }
  1411. .mobile-main-menu .sidebar-nav li ul {
  1412.    height: 0px;
  1413.    overflow: hidden;
  1414.    list-style: none;
  1415.    color: rgb(255, 255, 255);
  1416.    padding-left: 10px;
  1417. }
  1418. .mobile-main-menu .sidebar-nav li.sub_open > ul{
  1419.    height: 100%;
  1420. }
  1421. .mobile-main-menu ul.sidebar-nav {
  1422.    position: absolute;
  1423.    width: 250px;
  1424.    margin: 0;
  1425.    padding: 0;
  1426.    list-style: none;
  1427.    font-size: 14px;
  1428. }
  1429. .mobile-main-menu .sidebar-nav > li {
  1430.    display: block;
  1431.    line-height: 20px;
  1432.    padding: 0 15px 0 20px;
  1433. }
  1434. .mobile-main-menu .sidebar-nav li a, .mobile-main-menu .sidebar-nav li span {
  1435.    text-decoration: none;
  1436.    color: rgb(255, 255, 255);
  1437. padding-left:10px;
  1438. }
  1439. .mobile-main-menu .sidebar-nav li a i, .mobile-main-menu .sidebar-nav li span i {
  1440.    display: none;
  1441. } </style><div class="mobile-main-menu">
  1442. <ul class="sidebar-nav">
  1443. <li class=''><a href='/home' id='link1'>Home</a></li><li class=''><a href='/categories' id='link229'>Tech Companies â–¾</a><ul><li class=''><a href='/get-listed' id='link272'>Advertise Your Company</a></li><li class=''><a href='/events' id='link308'>Events</a></li><li class=''><a href='/reviews' id='link265'>Reviews</a></li></ul></li><li class=''><a href='/locations' id='link303'>Locations</a></li><li class=''><a href='/videos' id='link307'>Videos</a></li><li class=''><a href='/blog' id='link315'>Blog</a></li> </ul>
  1444. </div>
  1445. <nav class="navbar navbar-default lockedonscroll">
  1446.    <div class="container container-fluid">
  1447.  
  1448.      <div class="navbar-header">
  1449.        <button type="button" class="navbar-toggle collapsed main_menu" data-toggle="collapse" aria-label="main_menu">
  1450. <i class="fa fa-bars fa-fw"></i>
  1451.        </button>
  1452.  
  1453.        
  1454.      </div>
  1455.  
  1456.      <div class="tablet-menu collapse navbar-collapse nopad" id="bs-main_menu">
  1457.        <ul class="tablet-menu-ul nav navbar-nav nav-justified">
  1458.           <li class=''><a href='/home' id='link1'>Home</a></li><li class=''><a href='/categories' id='link229'>Tech Companies â–¾</a><ul><li class=''><a href='/get-listed' id='link272'>Advertise Your Company</a></li><li class=''><a href='/events' id='link308'>Events</a></li><li class=''><a href='/reviews' id='link265'>Reviews</a></li></ul></li><li class=''><a href='/locations' id='link303'>Locations</a></li><li class=''><a href='/videos' id='link307'>Videos</a></li><li class=''><a href='/blog' id='link315'>Blog</a></li>         </ul>
  1459.      </div>
  1460.    </div>
  1461. </nav>
  1462. <!--CSS IF MENU IS FIXED TOP-->
  1463.  
  1464. </div>
  1465. <!--
  1466.  
  1467. 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.
  1468.  
  1469. -->
  1470. <div class="container clearfix text-center banner-ad-unit above-content-banner-ad">
  1471. <div class="clearfix vmargin banner-ad-unit">
  1472. <a href="https://techbullion.com/interviews-reviews/" target="_blank"><img src="https://newswebsite.com/wp-content/uploads/2025/03/TechBullion-Banner-Ads.png" alt="interviews-reviews" /></a> </div>
  1473. <div class="clearfix"></div>
  1474. </div>
  1475. <div class="clearfix"></div><div class="clearfix"></div>
  1476. <!-- Begin  Content -->
  1477. <div id="first_container" class="content-container fr-view">
  1478.        <div class="container">
  1479.                <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.techdirectory.io' title='TechDirectory'><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 Paint & Service</li></ol>        <div class="clearfix body-content"></div>
  1480.        <style type='text/css'> a.btn.btn-warning.pull-right.bmargin.xs-nomargin {
  1481. position: relative;
  1482. z-index: 999;
  1483. } </style>
  1484. <div class="row content_w_sidebar member_profile level_3">
  1485.  
  1486.    <div class='col-md-9'><style type='text/css'> @media only screen and (max-width: 767px) {
  1487. .profile-header-write-review {
  1488. margin-top: 10px !important;
  1489. }
  1490. }
  1491. </style>
  1492. <div class="row member-profile-header">
  1493.    <div class="col-xs-12 col-sm-3 norpad text-center xs-nopad xs-bmargin profile-image">
  1494.            <a href="/united-states/yorba-linda/automotive/ocrv-paint-service/connect" title="Contact Technology Business OCRV Paint & Service">
  1495.                <img width="200" height="113" class="img-rounded" src="/logos/profile/limage-172282-208-photo.jpg" alt="Technology Business OCRV Paint & Service in Yorba Linda CA" title="Contact OCRV Paint & Service">
  1496.            </a>
  1497.            </div>
  1498.    <div class="xs-text-center col-xs-12 col-sm-9 the-header-member-main-info">
  1499.        <div class="row the-header-member-name">
  1500.            <div class="col-sm-10 norpad xs-hpad header-member-name notranslate">
  1501.                <h1 class="bold inline-block">
  1502.                    OCRV Paint & Service                </h1>
  1503. </div>
  1504. <div class='col-sm-2 text-right nolpad bmargin xs-nopad xs-text-center header-favorite-button'><span class="sidebarenabled" data-sidebar="1"></span><span class="postItem userData" data-userid="172282" data-datatype="10" data-dataid="0" data-postid="0"></span><button class="item-post-list-0 favorite fa fa-heart" data-count="" data-postid="0" data-state="0" data-activefeature="1" data-activefavorite="Basic"  data-toggle="modal" data-target="#myModal"  ><span id='bookmark-content' class='weight-bold-xxl'>SAVE</span> <span class='' id='number-0'></span></button></div>        </div>
  1505.        <div class="row the-header-member-details">
  1506.            <div class="col-sm-6 tmargin xs-nomargin">
  1507.                <p class="line-height-xl nomargin">
  1508.                    <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, CA, 92887</span>                </p>
  1509.            </div>
  1510.  
  1511.                            <div class="clearfix"></div>
  1512.            
  1513.  
  1514.                            <div class="col-sm-6 tmargin profile-header-send-message">
  1515.                    <a class="btn btn-success btn-block btn-lg" title="Contact OCRV Paint & Service" href="/united-states/yorba-linda/automotive/ocrv-paint-service/connect">
  1516.                                            <i aria-hidden="true" class="fa fa-comments-o fa-fw"></i> Send Message
  1517.                                        </a>
  1518.                </div>
  1519.            
  1520.            
  1521.            
  1522.            
  1523.        </div>
  1524.    </div>
  1525.    </div>
  1526. <div class="clearfix"></div>        <div class="clearfix"></div>
  1527.            
  1528.                
  1529.            
  1530. <div class="well  tmargin  bmargin fpad make-connection">
  1531. <span class="h3 nobmargin">
  1532. <i class="fa fa-comments-o fa-fw" aria-hidden="true"></i>
  1533. </span>
  1534. <b>MAKE A CONNECTION</b>
  1535. OCRV Paint & Service
  1536. is accepting messages:
  1537. <a class="inline-block" href="/united-states/yorba-linda/automotive/ocrv-paint-service/connect">
  1538. Send Message
  1539. </a>
  1540. </div>
  1541. <div class="clearfix"></div><div role="tabpanel" class="member-profile-tabs">
  1542.                <ul class="nav nav-tabs fpad nobpad profile-tabs-nav" role="tablist">
  1543.                                            <li class="active hideMyTab">
  1544.                                <a href="#1" rel="nofollow" aria-controls="t1" role="tab" data-toggle="tab">
  1545.                                    Overview                                </a>
  1546.                            </li>
  1547.                            <style> .hideMyTab{ display:none !important;}</style>            </ul>
  1548.                    <div class="tab-content">
  1549.                
  1550.                                <div id="1" role="tabpanel" class="tab-pane active">
  1551.                                    <style type='text/css'> ul.table-view.list-inline.xs-center-block > h2.tmargin.tpad.xs-text-center.xs-center-block.clearfix:last-child {
  1552. display:none;
  1553. } </style>                            <div class="table-view list-inline xs-center-block bmargin">
  1554.                                                <div class="clearfix"></div>
  1555.                                <h2 class="tmargin tpad xs-center-block clearfix">
  1556.                                    Contact Information                                </h2>
  1557.                                                                                    <div class="table-view-group clearfix table-display-company">
  1558.                                                                                <div class="col-sm-4 bold">
  1559.                                            Company Name                                        </div>
  1560.                                        <div class="col-sm-8">
  1561.                                            <span class="textbox textbox-company">OCRV Paint & Service</span>                                        </div>
  1562.                                                                            </div>
  1563.                                                                                <tr>
  1564.                            <th colspan="2">
  1565.                                                            </th>
  1566.                        </tr>
  1567.                                            <tr>
  1568.                            <th colspan="2">
  1569.                                    <div class="table-view-group clearfix">
  1570.      <div class="col-sm-4 bold">
  1571.        Visit Website
  1572.      </div>
  1573.      <div class="col-sm-8">
  1574.        <a itemprop="url" class="weblink" title="Website" rel="nofollow" target="_blank" href="https://ocrvpaintandservice.com">
  1575.          https://ocrvpaintandservice.com        </a>
  1576.      </div>
  1577.    </div>  
  1578.                              </th>
  1579.                        </tr>
  1580.                                            <tr>
  1581.                            <th colspan="2">
  1582.                                                            </th>
  1583.                        </tr>
  1584.                                            <tr>
  1585.                            <th colspan="2">
  1586.                                    <div class="table-view-group clearfix overview-tab-the-member-address">      
  1587.        <div class="col-sm-4 bold">
  1588.            Location
  1589.        </div>
  1590.        <div class="col-sm-8">
  1591.            <span>23281 La Palma Ave</span><br><span>Yorba Linda</span>, <span>CA</span>, <span>92887</span><br>United States        </div>
  1592.    </div>
  1593. <!-- SCHEMA FOR LOCALBUSINESS -->
  1594. <div itemscope itemtype="http://schema.org/LocalBusiness">
  1595. <meta itemprop="name" content="OCRV Paint & Service">
  1596. <meta itemprop="priceRange" content="$$">
  1597. <meta itemprop="telePhone" content="714-598-2600">
  1598. <meta itemprop="url" content="https://www.techdirectory.io/united-states/yorba-linda/automotive/ocrv-paint-service">
  1599. <meta itemprop="image" content="https://www.techdirectory.io">
  1600. <div itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
  1601. <meta itemprop="streetAddress" content="23281 La Palma Ave">
  1602. <meta itemprop="addressLocality" content="Yorba Linda">
  1603. <meta itemprop="addressRegion" content="92887">
  1604. <meta itemprop="addressCountry" content="United States of America">
  1605. </div>
  1606. <div itemprop="geo" itemscope itemtype="http://schema.org/GeoCoordinates">
  1607. <meta itemprop="latitude" content="33.87463660">
  1608. <meta itemprop="longitude" content="-117.72881550">
  1609. </div>
  1610. </div>
  1611.                            </th>
  1612.                        </tr>
  1613.                    
  1614.                            </div>
  1615.            
  1616.                                                    <div class="table-view list-inline xs-center-block bmargin">
  1617.                                                <div class="clearfix"></div>
  1618.                                <h2 class="tmargin tpad xs-center-block clearfix">
  1619.                                    Company Details                                </h2>
  1620.                                                                                    <div class="table-view-group clearfix table-display-rep_matters">
  1621.                                                                                <div class="col-sm-4 bold">
  1622.                                            Hours of Operation                                        </div>
  1623.                                        <div class="col-sm-8">
  1624.                                            <span class="textarea textarea-rep_matters">8AM-5PM</span>                                        </div>
  1625.                                                                            </div>
  1626.                                                        
  1627.                            </div>
  1628.            
  1629.                    <div class="overview-tab-about-me">                    <div class="table-view list-inline xs-center-block bmargin">
  1630.                                                <div class="clearfix"></div>
  1631.                                <h2 class="tmargin tpad xs-center-block clearfix">
  1632.                                    Write About You And Your Company                                </h2>
  1633.                                                                        <tr>
  1634.                            <th colspan="2">
  1635.                                <div class="clearfix"></div>                            </th>
  1636.                        </tr>
  1637.                                                        <div class="table-view-group clearfix table-display-about_me">
  1638.                                                                                <div class="col-sm-4 bold">
  1639.                                            <style type='text/css'> i.fa.fa-trash.fr-delete-img {
  1640.    display: none!important;
  1641. }
  1642. body .fr-modal .fr-modal-wrapper div.fr-scroller div.fr-image-list div.fr-image-container .fr-insert-img {
  1643.    left: 70%;
  1644. }
  1645. .account-form-box > div > table > tbody > tr > td {
  1646.    border: 0;
  1647. }
  1648. .bootstrap-datetimepicker-widget *:not(.active) {
  1649.    background-color: white!important;
  1650. }
  1651.  
  1652. .bootstrap-datetimepicker-widget * {
  1653.    border: 0!Important;
  1654. }
  1655.  
  1656. .bootstrap-datetimepicker-widget table td:not(.active):hover {
  1657.    background:#eee!important;
  1658. }
  1659.  
  1660. .bootstrap-datetimepicker-widget table th.day:hover {
  1661.    background:white!important;
  1662. }
  1663. .fr-popup.fr-desktop {
  1664.    z-index: 10000!important;
  1665. }
  1666.  
  1667. #dropdown-menu-linkStyle-1 [data-param1*="btn"]::before {
  1668.    content: '';
  1669.    width: 14px;
  1670.    height: 14px;
  1671.    border-radius: 20px;
  1672.    position: relative;
  1673.    top: 8px;
  1674.    left: -8px;
  1675. }
  1676.  
  1677. [data-param1*="btn-danger"]::before {
  1678.    background: rgb(217, 83, 79);
  1679. }
  1680. [data-param1*="btn-default"]::before {
  1681.    background: rgb(255, 255, 255);
  1682. }
  1683. [data-param1*="btn-info"]::before {
  1684.    background: rgb(60, 187, 222);
  1685. }
  1686. [data-param1*="btn-primary"]::before {
  1687.    background: rgb(144, 182, 36);
  1688. }
  1689. [data-param1*="btn-success"]::before {
  1690.    background: rgb(152, 193, 67);
  1691. }
  1692. [data-param1*="btn-warning"]::before {
  1693.    background: rgb(240, 173, 78);
  1694. }
  1695. .content_blocks_popup.show {
  1696.    right: 20px;
  1697.    box-shadow: -3px 3px 15px rgba(0, 0, 0, 0.25);
  1698. }
  1699. .content_blocks_popup{
  1700.    position: fixed;
  1701.    right: -300px;
  1702.    top: 50%;
  1703.    transform: translate(0%, -50%);
  1704.    z-index: 10000000;
  1705.    width: 290px;
  1706.    border: 1px solid #d7d7d7;
  1707.    background: #f5f7fa;
  1708.    border-width: 0 1px 1px;
  1709.    transition-timing-function: ease-in;
  1710.    transition: 1s;
  1711. }
  1712. .sidebar_body_open.content_blocks {
  1713.    height: 450px;
  1714.    overflow-y: auto;
  1715. }
  1716. .sidebar_section_toggle #table-header-module, .sidebar_section_toggle #table-header-module h2 {
  1717.    height: 40px;
  1718.    box-sizing: border-box;
  1719.    width: 100%;
  1720.    line-height: 40px;
  1721.    padding: 0 7px;
  1722.    font-size: 16px;
  1723.    color: #fff;
  1724. min-height: 0;
  1725. background:#253342;
  1726. }
  1727. .content_blocks .alert {
  1728.    margin: 10px 5px -5px;
  1729.    display: block;
  1730.    min-height: 30px;
  1731.    padding: 5px;
  1732. }
  1733. .draggable_blocks_container {
  1734.    padding: 15px 0;
  1735. }
  1736. .draggable_blocks_container .content-block {
  1737.    padding: 20px 10px;
  1738.    border: 1px solid #ccc;
  1739.    margin: 0 0px 10px;
  1740.    width: 100%;
  1741.    box-sizing: border-box;
  1742.    text-align: center;
  1743.    background: #fff;
  1744.    cursor: grab;
  1745.    transition: all 250ms ease-in-out;
  1746.    border-radius: 4px;
  1747.    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
  1748. }
  1749. .draggable_blocks_container .content-block:hover {
  1750.    box-shadow: 0 0 10px 0px rgba(0, 111, 187, 0.25);
  1751. }
  1752. .draggable_blocks_container .content-block-single-elements .content-block {
  1753.    width: 45%;
  1754.    display: inline-block;
  1755.    vertical-align: top;
  1756.    padding: 5px 10px 10px;
  1757. }
  1758. .draggable_blocks_container .content-block-single-elements .content-block img {
  1759.    max-height: 37px;
  1760.    box-sizing: border-box;
  1761.    width: auto;
  1762.    padding:0;
  1763. }
  1764. .draggable_blocks_container .content-block-single-elements .content-block p {
  1765.    margin: 0 0 5px;
  1766. }
  1767. .draggable_blocks_container p {
  1768.    margin: 0 0 13px;
  1769.    font-weight: bold;
  1770.    font-size: 14px;
  1771.    color: #7f8185;
  1772. }
  1773. .draggable_blocks_container .content-block-single-elements .content-block p {
  1774.    font-size: 12px;
  1775. }
  1776. .draggable_blocks_container .content-block img {
  1777.    width: 100%;
  1778. }
  1779. .draggable_blocks_container .setting_holder.accordion > ul {
  1780.    padding: 0;
  1781.    list-style: none;
  1782. }
  1783. .draggable_blocks_container .setting_holder {
  1784.    display: block;
  1785.    margin: 0;
  1786.    padding: 5px;
  1787.    vertical-align: top;
  1788.    width: 100%;
  1789.    transition: all 300ms ease 0ms;
  1790.    -moz-transition: all 300ms ease 0ms;
  1791.    -webkit-transition: all 300ms ease 0ms;
  1792.    -o-transition: all 300ms ease 0ms;
  1793.    box-sizing: border-box;
  1794. }
  1795. .draggable_blocks_container .setting_holder h2 {
  1796.    border-bottom: 1px solid #dadee2;
  1797.    font-size: 16px;
  1798.    font-weight: 600;
  1799.    margin: 0;
  1800.    padding: 5px 5px 10px;
  1801.    width: 100%;
  1802.    cursor: pointer;
  1803.    cursor: hand;
  1804.    display: block;
  1805.    box-sizing: border-box;
  1806.    outline: none;
  1807.    color: #636f7c;
  1808. }
  1809.  
  1810. .draggable_blocks_container .setting_holder h2 .fa {
  1811.    float: right;
  1812.    position: relative;
  1813.    top: 3px;
  1814. }
  1815.  
  1816. .fr-toolbar button.fr-command[data-cmd="Pre-Made Elements"] {
  1817.    background: #0091ae;
  1818.    color: #fff;
  1819.    padding: 0 12px;
  1820.    height: 26px;
  1821.    top: 5px;
  1822.    font-size: 13px;
  1823. }
  1824. .fr-toolbar button.fr-command[data-cmd="Pre-Made Elements"]:hover{
  1825.    opacity: 0.9;
  1826.    background: #0091ae;
  1827. }
  1828. button.fr-command[data-cmd="Pre-Made Elements"]:before {
  1829.    content: "\f00a";
  1830.    font-family: FontAwesome;
  1831.    margin-right: 5px;
  1832. }
  1833. .sidebar_body_open.content_blocks {
  1834.    height: 600px;
  1835.    overflow-y: auto;
  1836. }
  1837. .sidebar_section_toggle #table-header-module, .sidebar_section_toggle #table-header-module h2 {
  1838.    height: 40px;
  1839.    box-sizing: border-box;
  1840.    width: 100%;
  1841.    line-height: 40px;
  1842.    padding: 0 7px;
  1843.    font-size: 16px;
  1844.    background: #264966;
  1845. }
  1846. .content_blocks .alert {
  1847.    margin: 10px 5px -5px;
  1848.    display: block;
  1849.    min-height: 30px;
  1850.    padding: 5px;
  1851. }
  1852. .draggable_blocks_container {
  1853.    padding: 15px 0;
  1854. }
  1855. .draggable_blocks_container .content-block {
  1856.    padding: 20px 10px;
  1857.    border: 1px solid #ccc;
  1858.    margin: 0 0px 10px;
  1859.    width: 100%;
  1860.    box-sizing: border-box;
  1861.    text-align: center;
  1862.    background: #fff;
  1863.    cursor: grab;
  1864.    transition: all 250ms ease-in-out;
  1865.    border-radius: 4px;
  1866.    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
  1867. }
  1868. .draggable_blocks_container .content-block:hover {
  1869.    box-shadow: 0 0 10px 0px rgba(0, 111, 187, 0.25);
  1870. }
  1871. .draggable_blocks_container .content-block-single-elements .content-block {
  1872.    width: 45%;
  1873.    display: inline-block;
  1874.    vertical-align: top;
  1875.    padding: 5px 10px 10px;
  1876. }
  1877. .draggable_blocks_container .content-block-single-elements .content-block img {
  1878.    max-height: 37px;
  1879.    box-sizing: border-box;
  1880.    width: auto;
  1881.    padding:0;
  1882. }
  1883. .draggable_blocks_container .content-block-single-elements .content-block p {
  1884.    margin: 0 0 5px;
  1885. }
  1886. .draggable_blocks_container p {
  1887.    margin: 0 0 13px;
  1888.    font-weight: bold;
  1889.    font-size: 14px;
  1890.    color: #7f8185;
  1891. }
  1892. .draggable_blocks_container .content-block-single-elements .content-block p {
  1893.    font-size: 12px;
  1894. }
  1895. .draggable_blocks_container .content-block img {
  1896.    width: 100%;
  1897. }
  1898. .draggable_blocks_container .setting_holder.accordion > ul {
  1899.    padding: 0;
  1900.    list-style: none;
  1901. }
  1902. .draggable_blocks_container .setting_holder {
  1903.    display: block;
  1904.    margin: 0;
  1905.    padding: 5px;
  1906.    vertical-align: top;
  1907.    width: 100%;
  1908.    transition: all 300ms ease 0ms;
  1909.    -moz-transition: all 300ms ease 0ms;
  1910.    -webkit-transition: all 300ms ease 0ms;
  1911.    -o-transition: all 300ms ease 0ms;
  1912.    box-sizing: border-box;
  1913. }
  1914. .draggable_blocks_container .setting_holder h2 {
  1915.    border-bottom: 1px solid #dadee2;
  1916.    font-size: 16px;
  1917.    font-weight: 600;
  1918.    margin: 0;
  1919.    padding: 5px 5px 10px;
  1920.    width: 100%;
  1921.    cursor: pointer;
  1922.    cursor: hand;
  1923.    display: block;
  1924.    box-sizing: border-box;
  1925.    outline: none;
  1926.    color: #636f7c;
  1927. }
  1928. .draggable_blocks_container .setting_holder h2 .fa {
  1929.    float: right;
  1930.    position: relative;
  1931.    top: 3px;
  1932. }
  1933. .chat_messages #bd-chat-pmb-table_wrapper table tr th {
  1934.    white-space: nowrap !important;
  1935. } </style><style>
  1936.    /* Image styling */
  1937.    .fr-command.fr-insert-image-pexels img {
  1938.        height: 24px;
  1939.        border: none;
  1940.        margin: 8px 8px;
  1941.        background: transparent;
  1942.        vertical-align: unset;
  1943.    }
  1944.  
  1945.    /* Button styling */
  1946.    .fr-command.fr-insert-image-pexels {
  1947.        border: none;
  1948.        background: none;
  1949.        cursor: pointer;
  1950.    }
  1951.  
  1952.    .pexel .pexel-search-button[disabled],.pexel .pexel-search-button[disabled]:hover{
  1953.        cursor: not-allowed;
  1954.        color: #fff;
  1955.        background-image: none;
  1956.        opacity: .65;
  1957.        filter: alpha(opacity=65);
  1958.        -webkit-box-shadow: none;
  1959.        -moz-box-shadow: none;
  1960.        box-shadow: none;
  1961.    }
  1962.  
  1963.    /* Modal styling */
  1964.    #pexel-modal-holder .modal-header .close{
  1965.        margin-top: 5px;
  1966.        margin-right: 10px;
  1967.    }
  1968.  
  1969.    #pexel-modal-holder #pexel-image-preview > li {
  1970.        width: 18.9%;
  1971.    }
  1972.  
  1973.    #pexel-modal-holder .select-image-size{
  1974.        width:100%;
  1975.        padding:5px;
  1976.    }
  1977.  
  1978.    #pexel-modal-holder .select-image-size .btn{
  1979.        margin-top:2px;
  1980.    }
  1981.  
  1982.    #pexel-modal-holder .pexel{
  1983.        padding-bottom:60px;
  1984.    }
  1985.  
  1986.    .pexel-modal {
  1987.        overflow: hidden;
  1988.    }
  1989.  
  1990.    /* Close button styling */
  1991.    #pexelClose-1 {
  1992.        float: right;
  1993.    }
  1994.  
  1995.    /* Form element styling */
  1996.    .pexel-search-form button,
  1997.    .pexel-search-form input,
  1998.    .pexel-search-form select {
  1999.        float: left;
  2000.        font-size: 14px !important;
  2001.        height: 40px;
  2002.        line-height: 40px;
  2003.        margin-bottom: 0;
  2004.        margin-right: 10px;
  2005.        padding: 0 10px !important;
  2006.        width: 20%;
  2007.        border-radius: 4px !important;
  2008.    }
  2009.  
  2010.    /* Image container styling */
  2011.    .img-container {
  2012.        display: inline-block;
  2013.        height: 100%;
  2014.        margin: auto;
  2015.        margin-bottom: 5px;
  2016.        max-width: 100%;
  2017.        position: relative;
  2018.        vertical-align: top;
  2019.        width: 100%;
  2020.        padding: 0;
  2021.        border: none;
  2022.        overflow: hidden;
  2023.    }
  2024.  
  2025.    .img-container img {
  2026.        height: auto;
  2027.        max-width: 100%;
  2028.        vertical-align: middle;
  2029.        border: 0;
  2030.        transition: all .25s ease-in-out 0s;
  2031.    }
  2032.  
  2033.    .img-container:hover img {
  2034.        transform: scale(1.02);
  2035.    }
  2036.  
  2037.    /* Primary button styling */
  2038.    .pexel .btn-primary {
  2039.        background-color: #006fbb !important;
  2040.        border: 1px solid #006fbb !important;
  2041.        color: #fff !important;
  2042.        cursor: pointer;
  2043.    }
  2044.  
  2045.    .pexel .btn-primary:hover {
  2046.        opacity: .9;
  2047.    }
  2048.  
  2049.    /* Pexel container styling */
  2050.    .pexel {
  2051.        padding: 15px;
  2052.        position: relative;
  2053.        font-weight: 200;
  2054.        background: #e9eced;
  2055.    }
  2056.  
  2057.    /* Tabbable container styling */
  2058.    .pexel .tabbable {
  2059.        position: relative;
  2060.    }
  2061.  
  2062.    /* Image grid styling */
  2063.    #pexel-image-preview {
  2064.        overflow-y: auto;
  2065.        padding: 0;
  2066.        margin: 0 auto;
  2067.        list-style: none;
  2068.        height: calc(100vh - 215px);
  2069.    }
  2070.  
  2071.    #pexel-image-preview > li {
  2072.        background: rgba(255,255,255,.75);
  2073.        border-radius: 4px;
  2074.        padding: 7px;
  2075.        text-align: center;
  2076.        transition: all .25s ease-in-out 0s;
  2077.        vertical-align: top;
  2078.        width: 19%;
  2079.        margin: 4px 4px 8px;
  2080.        border: none;
  2081.        display: inline-block;
  2082.        line-height: 20px;
  2083.        box-sizing: border-box;
  2084.    }
  2085.  
  2086.    #pexel-image-preview > li:hover {
  2087.        background: rgba(255, 255, 255, 1);
  2088.        box-shadow: 0px 15px 30px 0px rgba(0, 0, 0, 0.1);
  2089.    }
  2090.  
  2091.    /* Alert styling */
  2092.    .alert.size-chart {
  2093.        line-height: 1.8em !important;
  2094.        margin: 0;
  2095.        border-radius: 0 !important;
  2096.        border: none;
  2097.        background: #f5f5f5;
  2098.        padding-left: 15px;
  2099.        display: inline-block;
  2100.        padding-top: 5px;
  2101.        padding-bottom: 0px;
  2102.    }
  2103.  
  2104.    .alert.size-chart span {
  2105.        background: #fff;
  2106.        border-radius: 100px;
  2107.        margin-left: 2px;
  2108.        padding: 4px 10px;
  2109.        text-shadow: none;
  2110.        border: 1px solid #ccc;
  2111.        font-size: 11px;
  2112.    }
  2113.  
  2114.    /* Select image size styling */
  2115.    .select-image-size {
  2116.        background: rgba(0, 0, 0, .5);
  2117.        color: #fff;
  2118.        padding: 10px;
  2119.        position: absolute;
  2120.        bottom: 0;
  2121.        left: 0;
  2122.        width: calc(100% - 20px);
  2123.    }
  2124.  
  2125.    .select-image-size .btn {
  2126.        font-weight: bold;
  2127.        height: 26px;
  2128.        line-height: 26px;
  2129.        line-height: 24px !important;
  2130.        margin: 0;
  2131.        padding: 0 !important;
  2132.        width: 26px;
  2133.    }
  2134.  
  2135.    .select-image-size select {
  2136.        font-size: 11px !important;
  2137.        height: 30px;
  2138.        margin: 0;
  2139.        width: 75%;
  2140.        width: calc(100% - 36px);
  2141.        min-height: auto;
  2142.        line-height: 15px;
  2143.    }
  2144.  
  2145.    .select-image-size .btn .fa {
  2146.        line-height: inherit;
  2147.    }
  2148.  
  2149.    /* Loading spinner styling */
  2150.    .loading {
  2151.        padding: 5px 8px;
  2152.        border-radius: 2px;
  2153.        position: relative;
  2154.        top: 1px;
  2155.        left: 4px;
  2156.        opacity: 0;
  2157.        transition: opacity .25s ease-in-out;
  2158.        -moz-transition: opacity .25s ease-in-out;
  2159.        -webkit-transition: opacity .25s ease-in-out;
  2160.    }
  2161.  
  2162.    /* Loading overlay styling */
  2163.    .loading-pexel {
  2164.        position: absolute;
  2165.        height: calc(100vh - 215px);
  2166.        width: 100%;
  2167.        display: none;
  2168.        background: rgb(92 88 88);
  2169.        opacity: 0.7;
  2170.        z-index: 99;
  2171.    }
  2172.  
  2173.    /* Remove focus outline on specific elements */
  2174.    select:focus,
  2175.    input[type="file"]:focus,
  2176.    input[type="radio"]:focus,
  2177.    input[type="checkbox"]:focus {
  2178.        outline: none !important;
  2179.    }
  2180.  
  2181.    /* Common button and alert styling */
  2182.    #pexel_template .btn,
  2183.    #pexel_template .btn-primary {
  2184.        font-size: 12px !important;
  2185.        border-radius: 4px !important;
  2186.        line-height: 1.4em !important;
  2187.    }
  2188.    #pexel_template .btn-dark{
  2189.        color: #fff;
  2190.        background-color: #343a40;
  2191.        border-color: #343a40;
  2192.    }
  2193.    #pexel_template .btn-dark:hover{
  2194.        color: #fff;
  2195.        background-color: #23272b;
  2196.        border-color: #1d2124;
  2197.    }
  2198.  
  2199.    /* Disabled search button styling */
  2200.    #pexel-search-button[disabled] {
  2201.        cursor: not-allowed;
  2202.    }
  2203.  
  2204.    /* Horizontal rule margin */
  2205.    .pexel hr {
  2206.        margin: 15px 0;
  2207.    }
  2208.  
  2209.    /* Footer styling */
  2210.    .media-manager-footer.pexels-footer {
  2211.        position: absolute;
  2212.        bottom: 0px;
  2213.        width: 100%;
  2214.        border: 1px solid #ddd;
  2215.        margin-top: 10px;
  2216.        padding: 10px 15px;
  2217.        background: #fff;
  2218.        font-size: 14px;
  2219.        left: 0;
  2220.        box-sizing: border-box;
  2221.        display: block;
  2222.    }
  2223.  
  2224.    .fr-popup .fr-command.fr-btn.fr-insert-image-pexels {
  2225.        border: none;
  2226.        cursor: pointer;
  2227.        padding: 0;
  2228.        width: auto !important;
  2229.    }
  2230.    .fr-popup .fr-command.fr-btn.fr-insert-image-pexels img {
  2231.        border: none;
  2232.        background: transparent;
  2233.        vertical-align: unset;
  2234.        width: auto !important;
  2235.    }
  2236.  
  2237.    /* Responsive styles */
  2238.    @media only screen and (max-width: 1268px) {
  2239.        #pexel-image-preview > li {
  2240.            width: 23%;
  2241.            width: calc(23% + 5px);
  2242.        }
  2243.    }
  2244.  
  2245.    @media only screen and (max-width: 942px) {
  2246.        #pexel-image-preview > li {
  2247.            width: 31%;
  2248.            width: calc(31% + 5px);
  2249.        }
  2250.    }
  2251.  
  2252.    @media (min-width: 1200px) {
  2253.        .pexel .row-fluid {
  2254.            width: 100%;
  2255.            *zoom: 1;
  2256.        }
  2257.    }
  2258.    .author-credit {
  2259.        font-size: 10px;
  2260.    }
  2261. </style><div id="pexel_template" style="display: none;">
  2262. <div class="pexel">
  2263.    <div class="tabbable upload-tabbable">
  2264.        <div class="pexel-search-form">
  2265.  
  2266.            <input autocomplete="off" placeholder="Find Photos by Keyword" required class="form-control" value="City" type="text" id="pexel_keyword" name="pexel_keyword"/>
  2267.                            <select class="form-control"  id="pexel_orientantion" name="pexel_orientantion">
  2268.                    <option value="all">All Orientations</option>
  2269.                    <option selected value="landscape">Horizontal</option>
  2270.                    <option value="portrait">Vertical</option>
  2271.                    <option value="square">Square</option>
  2272.                </select>
  2273.                
  2274.            
  2275.                            <select class="form-control"  id="stock_library" name="stock_library">
  2276.  
  2277.                                            <option value="pexel">Pexels Library</option>
  2278.                                                                <option value="pixbay">Pixabay Library</option>
  2279.                                                                <option value="giphy">Giphy Library</option>
  2280.                                                                <option value="unsplash">Unsplash Library</option>
  2281.                                        
  2282.                </select>
  2283.                                    <input class="btn btn-primary pexel-search-button" onclick="executeSearch(this)" value="Search Photos">
  2284.                            <input type="hidden" name="sub_folder_pexel" id="sub_folder_pexel" value="member_uploads/member_/"/>
  2285.                        <div class="clear clearfix"></div>
  2286.        </div>
  2287.        <span class="help-block" id="help-text-noun" style="display:none; font-size: 12px; font-weight: bold; color: #000; margin: 5px 0 0;">
  2288.            Fewer icons available when colors are applied. <a href="javascript:void(false);" onclick="colorReset()" style="color: #006fbb; font-weight: bold; margin-left: 5px;">
  2289.            <i class="fa fa-refresh" aria-hidden="true"></i> Reset to Black for Full Options</a>
  2290.        </span>
  2291.        <div class="clear clearfix"></div>
  2292.        <hr>
  2293.        <div class="clear clearfix"></div>
  2294.        <div class="row-fluid ff-container">
  2295.            <div class="loading-pexel grid cs-style-2 list-view0">
  2296.                <span class="loading" style="opacity: 10;display: table;top: 45%;margin: 0 auto;color: white;">
  2297.                    <span class="loading-text">Loading...</span> <i class="fa fa-circle-o-notch fa-spin fa-3x fa-fw" style="font-size: 20px;"></i>
  2298.                </span>
  2299.            </div>
  2300.            <ul class="pexel-grid" id="pexel-image-preview"></ul>
  2301.        </div>
  2302.    </div>
  2303. </div>
  2304. <div class="media-manager-footer pexels-footer" style="display:none;">
  2305.    <button id="pexel-load-more" class="sbuttonwiz7" onclick="return false;"> Load More </button>
  2306.    <a id="pexel-refeer" target="_blank" href="https://www.pexels.com" style="float:right;" class="stock_image_refeer sbuttonwiz5"> Photos Provided by Pexels <small><i class="fa fa-external-link fa-fw" aria-hidden="true"></i></small></a>
  2307.    <a id="pixbay-refeer" target="_blank" href="https://pixabay.com/" style="float:right; display:none;" class="stock_image_refeer sbuttonwiz5">Photos Provided by Pixabay <small><i class="fa fa-external-link fa-fw" aria-hidden="true"></i></small></a>
  2308.    <a id="giphy-refeer" target="_blank" href="https://giphy.com/" style="float:right; display:none;" class="stock_image_refeer sbuttonwiz5">Photos Provided by Giphy <i class="fa fa-external-link fa-fw" aria-hidden="true"></i></small></a>
  2309.    <a id="unplash-refeer" target="_blank" href="https://unplash.com/" style="float:right; display:none;" class="stock_image_refeer sbuttonwiz5"> <small><i class="fa fa-external-link fa-fw" aria-hidden="true"></i></small></a>
  2310. </div></div><script id="image-pexel-preview-template"type="text/x-handlebars-template">
  2311.    <li>
  2312.        <div class="img-container">
  2313.            <span></span>
  2314.            <img alt="bg thumbnails" class="" src="{{thumbnail}}">
  2315.            {{#if (eq library "noun")}}
  2316.            <div class="select-image-size">
  2317.                <select class="form-control pull-left" style="display:none;" id="type-options-{{id}}">
  2318.                    <option selected id="option-small-{{id}}" value="small">Small<</option>
  2319.                </select>
  2320.                <span class="icon-download-color" style="color:{{color}};background-color:{{bgColor}}">ICON COLOR</span>
  2321.                <a class="btn btn-primary pull-right" onclick="downloadImage(this)" data-id="{{id}}"> <i aria-hidden="true" class="fa fa-download fa-fw"></i></a>
  2322.                <input type="hidden" id="small-type-{{id}}" value="{{file_smalll}}">
  2323.            </div>
  2324.            {{else}}
  2325.            {{#if (eq library "giphy")}}
  2326.            <div class="select-image-size">
  2327.                <select class="form-control pull-left" style="display:none;" id="type-options-{{id}}">
  2328.                    <option selected id="option-small-{{id}}" value="small">Small</option>
  2329.                </select>
  2330.                <span class="icon-download-color" style="color:#fff;background-color:#000000"> </span>
  2331.                <a class="btn btn-primary pull-right" onclick="downloadImage(this)" data-id="{{id}}"> <i aria-hidden="true" class="fa fa-download fa-fw"></i></a>
  2332.                <input type="hidden" id="small-type-{{id}}" value="{{file_smalll}}">
  2333.            </div>
  2334.            {{else}}
  2335.            <div class="select-image-size">
  2336.                <select class="form-control pull-left" id="type-options-{{id}}">
  2337.                    <option value="">Select Size:</option>
  2338.                    <option id="option-small-{{id}}" value="small">Small</option>
  2339.                    <option id="option-medium-{{id}}" value="medium">Medium</option>
  2340.                    <option id="option-large-{{id}}" value="large">Large</option>
  2341.                </select>
  2342.                <a class="btn btn-primary pull-right" onclick="downloadImage(this)" data-id="{{id}}"> <i aria-hidden="true" class="fa fa-download fa-fw"></i></a>
  2343.                <input type="hidden" id="large-type-{{id}}" value="{{file_large}}">
  2344.                <input type="hidden" id="medium-type-{{id}}" value="{{file_medium}}">
  2345.                <input type="hidden" id="small-type-{{id}}" value="{{file_smalll}}">
  2346.            </div>
  2347.            {{/if}}
  2348.            {{/if}}
  2349.            <input type="hidden" id="color-{{id}}" value="{{bgColor}}">
  2350.            <input type="hidden" id="library-{{id}}" value="{{library}}">
  2351.        </div>
  2352.        <div class="author-credit" style="display:none;">
  2353.            Photo By <a target="_blank" href="{{author_link}}?utm_source=Brilliant%20Directories&amp;utm_medium=referral">{{author_name}}</a> on <a target="_blank" href="https://unsplash.com/?utm_source=Brilliant%20Directories&amp;utm_medium=referral">Unsplash</a>
  2354.        </div>
  2355.    </li>
  2356. </script>
  2357. <link rel='stylesheet' href='/directory/cdn/admin/js/color_picker/spectrum.css' />
  2358. <link href="/directory/cdn/admin/css/fontawesome-iconpicker.min.css" rel="stylesheet">
  2359. <script src="/directory/cdn/admin/js/fontawesome-iconpicker.js"></script>
  2360. <script type="text/javascript" src="/directory/cdn/admin/js/color_picker/spectrum.js"></script>
  2361. <link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/jquery.colorbox/1.4.33/example1/colorbox.min.css">
  2362. <script src="//cdnjs.cloudflare.com/ajax/libs/jquery.colorbox/1.4.33/jquery.colorbox-min.js"></script>
  2363. <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/handlebars.js/4.0.11/handlebars.js"></script>
  2364. <script>
  2365.    // Register the 'eq' helper
  2366.    Handlebars.registerHelper('eq', function (v1, v2) {
  2367.        return v1 === v2;
  2368.    });
  2369. </script>
  2370. <script type="text/javascript">
  2371.    var nextPage            = "";
  2372.    var parameters          = {};
  2373.    var currentPage         = 1;
  2374.    var currentKeyword      = "";
  2375.    var currentOrientation  = "";
  2376.    var modalParent         = {};
  2377.    var currentStockLibrary = "";
  2378.    var isSinglePost        = '';
  2379.    var currentColor        = "";
  2380.  
  2381.    function getContrastTextColor(r, g, b) {
  2382.        // Calculate the luminance of the color
  2383.        const luminance = 0.299 * r + 0.587 * g + 0.114 * b;
  2384.        // If the luminance is greater than 186, return black; otherwise, return white
  2385.        return luminance > 186 ? '#000' : '#fff';
  2386.    }
  2387.  
  2388.    function hexToRgb(hex) {
  2389.        // Check if hex is a valid string and is not null or undefined
  2390.        if (typeof hex !== 'string' || !hex) {
  2391.          console.error("Invalid hex value:", hex);
  2392.          return [0,0,0]; // Return a default black color, or handle it differently
  2393.        }
  2394.  
  2395.        // Remove the hash symbol if it's there
  2396.        hex = hex.replace(/^#/, '');
  2397.  
  2398.        // Parse the r, g, b values
  2399.        const bigint = parseInt(hex, 16);
  2400.        const r = (bigint >> 16) & 255;
  2401.        const g = (bigint >> 8) & 255;
  2402.        const b = bigint & 255;
  2403.  
  2404.        return [r, g, b];
  2405.    }
  2406.  
  2407.    function getContrastTextColorFromHex(hex) {
  2408.       // console.log("hex param value",hex) // Check what value is passed as parameter to this function
  2409.        const [r, g, b] = hexToRgb(hex);
  2410.        return getContrastTextColor(r, g, b);
  2411.    }
  2412.  
  2413.    function colorReset() {
  2414.        $("#color-picker").spectrum("set", "#000000");
  2415.        $("#pexel-search-button").prop("disabled","");
  2416.    }
  2417.  
  2418.    function increaseSweetAlertZindex(){
  2419.        $(".sweet-overlay").css('z-index','251000000');
  2420.        $(".sweet-alert").css('z-index','261000000');
  2421.        $(".swal2-container").css('z-index','261000000');
  2422.    }
  2423.  
  2424.    function loaderImagesShow(message){
  2425.        $(modalParent).find(".loading-text").html(message);
  2426.        $(modalParent).find(".loading-pexel").css("display","block");
  2427.    }
  2428.  
  2429.    function loaderImagesHide(){
  2430.        $(modalParent).find(".loading-pexel").css("display","none");
  2431.    }
  2432.  
  2433.    function pexelSearch(parameters){
  2434.        loaderImagesShow("Loading Images...");
  2435.  
  2436.        var url = (parameters.is_admin === true)?"/admin/pexel/search":"/pexel/search";
  2437.  
  2438.        $.ajax({
  2439.            url: url,
  2440.            dataType: "json",
  2441.            type: "GET",
  2442.            data: parameters,
  2443.            success: function(result){
  2444.                if(result.search.status == "success"){
  2445.                    var pexelResult = JSON.parse(result.search.message);
  2446.                    if(pexelResult.total_results > 0){
  2447.                        parameters["buttonColor"] = getContrastTextColorFromHex(parameters.color);
  2448.                        displayPexelResult(pexelResult,parameters);
  2449.                    }else{
  2450.                        swal({
  2451.                            title: "No Results Found",
  2452.                            text: "Try searching with another keyword.",
  2453.                            type: "",
  2454.                            showCancelButton: false,
  2455.                            confirmButtonColor: "#3085d6",
  2456.                            cancelButtonColor: "#d33",
  2457.                            confirmButtonText: "Ok",
  2458.                            cancelButtonText: "No, cancel",
  2459.                            closeOnConfirm: false,
  2460.                            closeOnCancel: true
  2461.                        });
  2462.                        increaseSweetAlertZindex();
  2463.                        $(".pexels-footer").css("display","none");
  2464.                        loaderImagesHide();
  2465.                    }
  2466.  
  2467.                }else{//no records found show error
  2468.                    swal({
  2469.                        title: "No Results Found",
  2470.                        text: "Try searching with another keyword.",
  2471.                        type: "",
  2472.                        showCancelButton: false,
  2473.                        confirmButtonColor: "#3085d6",
  2474.                        cancelButtonColor: "#d33",
  2475.                        confirmButtonText: "Ok",
  2476.                        cancelButtonText: "No, cancel",
  2477.                        closeOnConfirm: false,
  2478.                        closeOnCancel: true
  2479.                    });
  2480.                    increaseSweetAlertZindex();
  2481.                    $(".pexels-footer").css("display","none");
  2482.                    loaderImagesHide();
  2483.                }
  2484.  
  2485.                if(currentKeyword == ""){
  2486.                    currentKeyword = parameters.pexel_keyword;
  2487.                }
  2488.  
  2489.                if(currentOrientation == ""){
  2490.                    currentOrientation = parameters.pexel_orientantion;
  2491.                }
  2492.  
  2493.                currentColor        = parameters.color;
  2494.                currentStockLibrary = parameters.stock_libray
  2495.            },
  2496.            error: function(){
  2497.  
  2498.            }
  2499.        });
  2500.    }
  2501.  
  2502.    function displayPexelResult(pexelResult,parameters){
  2503.        var source      = document.getElementById("image-pexel-preview-template").innerHTML;
  2504.        var template    = Handlebars.compile(source);
  2505.        var authorFound = false;
  2506.        $.each(pexelResult.photos,function(index,image){
  2507.  
  2508.            if(parameters.stock_library != "noun"){
  2509.                if(parameters.pexel_orientantion == "square" && image.height != image.width){//no square photo
  2510.                    return true;//we skip image
  2511.                }else if(parameters.pexel_orientantion == "portrait" && image.height <= image.width){//is not horizontal
  2512.                    return true;//we skip image
  2513.                }else if(parameters.pexel_orientantion == "landscape" && image.height >= image.width){//is not vertical
  2514.                    return true;//we skip image
  2515.                }
  2516.            }
  2517.  
  2518.            var options = {
  2519.                file_large:image.src.large,
  2520.                file_smalll:image.src.medium,
  2521.                file_medium:image.src.large,
  2522.                id:image.id,
  2523.                author_link:"",
  2524.                author_name:"",
  2525.                download_link:"",
  2526.                thumbnail:image.src.thumbnail,
  2527.                library: $("#stock_library").val(),
  2528.                color:parameters.buttonColor,
  2529.                bgColor:parameters.color
  2530.            }
  2531.  
  2532.            if(options.bgColor == ""){
  2533.                options.bgColor = "#000000";
  2534.            }
  2535.  
  2536.            if(image.author){
  2537.                options.author_link = image.author.link;
  2538.                options.author_name = image.author.name;
  2539.                authorFound = true;
  2540.            }
  2541.  
  2542.            if(image.download_link){
  2543.                options.download_link = image.download_link;
  2544.            }
  2545.  
  2546.            if(image.height == image.width){
  2547.                options.file_large = image.src.large2x;
  2548.            }else if(image.height < image.width){
  2549.                options.file_large = image.src.landscape;
  2550.            }else{
  2551.                options.file_large = image.src.portrait;
  2552.            }
  2553.  
  2554.            var html = template(options);
  2555.            $(modalParent).find("#pexel-image-preview").append(html);
  2556.        });
  2557.  
  2558.        if(authorFound === true){
  2559.            $(".author-credit").css("display","block");
  2560.        }else{
  2561.            $(".author-credit").css("display","none");
  2562.        }
  2563.  
  2564.        loaderImagesHide();
  2565.  
  2566.        if(typeof pexelResult.next_page == "string"){
  2567.            nextPage = pexelResult.next_page;
  2568.            if(pexelResult.next_page_number){
  2569.                currentPage = pexelResult.next_page_number;
  2570.            }else{
  2571.                currentPage++;
  2572.            }
  2573.            $(modalParent).find(".pexels-footer").css("display","block");
  2574.        }else{
  2575.            nextPage = "";
  2576.            $(modalParent).find(".pexels-footer").css("display","none");
  2577.        }
  2578.    }
  2579.  
  2580.    function downloadImage(node){
  2581.        loaderImagesShow("Adding Image...");
  2582.        var imageId             = $(node).data('id');
  2583.        var imageType           = $(modalParent).find("#type-options-"+imageId).val();
  2584.  
  2585.        if(imageType === ""){
  2586.            swal({
  2587.                title: "Error",
  2588.                text: "You must select an image size",
  2589.                type: "error",
  2590.                showCancelButton: false,
  2591.                confirmButtonColor: "#3085d6",
  2592.                cancelButtonColor: "#d33",
  2593.                confirmButtonText: "Ok",
  2594.                closeOnCancel: true
  2595.            });
  2596.            increaseSweetAlertZindex();
  2597.            loaderImagesHide();
  2598.            return true;
  2599.        }else if($(modalParent).find("#option-"+imageType+"-"+imageId).prop("disabled") === "disabled" || typeof imageType == "object" ){
  2600.            swal({
  2601.                title: "Image Already Added",
  2602.                text: "",
  2603.                type: "",
  2604.                showCancelButton: false,
  2605.                confirmButtonColor: "#3085d6",
  2606.                cancelButtonColor: "#d33",
  2607.                confirmButtonText: "Ok",
  2608.                closeOnCancel: true
  2609.            });
  2610.            increaseSweetAlertZindex();
  2611.            loaderImagesHide();
  2612.            return true;
  2613.        }
  2614.  
  2615.        var imageFile           = $(modalParent).find("#"+imageType+"-type-"+imageId).val();
  2616.        params                  = {};
  2617.        params['widget_name']   = 'Admin - Feature - Pexel Import';
  2618.        params['request_type']  = "GET";
  2619.        params['header_type']   = "json";
  2620.        params['image']         = imageFile;
  2621.        if($("#library-"+imageId).val() != "noun"){
  2622.            params['image_name']    = $("#library-"+imageId).val().toLowerCase()+'-photo-'+imageId+'-'+imageType;
  2623.        }else{
  2624.            params['image_name']    = $("#library-"+imageId).val().toLowerCase()+'-'+$("#color-"+imageId).val().replace("#","")+'-photo-'+imageId+'-'+imageType;
  2625.        }
  2626.        params['sub_folder']    = $("#sub_folder_pexel").val();
  2627.        params['image_id']      = imageId;
  2628.        params['library']       = $("#library-"+imageId).val();
  2629.        params['color']         = $("#color-"+imageId).val();
  2630.  
  2631.  
  2632.        $.ajax({
  2633.            url: "https://www.techdirectory.io/wapi/widget",
  2634.            dataType: "json",
  2635.            type: "GET",
  2636.            data: params,
  2637.            success: function(result){
  2638.                if(result.status == "success"){
  2639.                    if($("#stock_library").val() == "unsplash"){
  2640.                        fetch($("#download-link-"+imageId).val());
  2641.                    }
  2642.                    var swalOpen = true;
  2643.                    increaseSweetAlertZindex();
  2644.                    $(modalParent).find("#option-"+imageType+"-"+imageId).prop("disabled","disabled");
  2645.                    var text = $("#option-"+imageType+"-"+imageId).text();
  2646.                    $(modalParent).find("#option-"+imageType+"-"+imageId).text("✓ Added - "+text);
  2647.                    if(currentPexelFroala && currentPexelFroala.pexelPlugin){
  2648.                        currentPexelFroala.pexelPlugin.insertImage(result.image_path_absolute);
  2649.                    }
  2650.  
  2651.                    if(currentPexelFroala === false){
  2652.                        $('#preview_img').attr('src', result.image_path_absolute);
  2653.                        $('#stock_temp_path').val(result.image_path_relative);
  2654.                        $('.emptyphoto').css("display","none");
  2655.                        $('#preview_img').css("display","block");
  2656.                        
  2657.                        // Check if file input exists before fetching
  2658.                        const fileInput = document.querySelector('input[name="userfile[]"]');
  2659.                        if (fileInput) {
  2660.                            // Create a file object from the image URL and set it to the file input
  2661.                            fetch(result.image_path_absolute)
  2662.                                .then(response => response.blob())
  2663.                                .then(blob => {
  2664.                                    const file = new File([blob], params['image_name'] + '.jpg', {type: 'image/jpeg'});
  2665.                                    const dataTransfer = new DataTransfer();
  2666.                                    dataTransfer.items.add(file);
  2667.                                    fileInput.files = dataTransfer.files;
  2668.                                    // Remove required attribute since we now have a file
  2669.                                    fileInput.removeAttribute('required');
  2670.                                    // Trigger change event for any listeners
  2671.                                    $(fileInput).trigger('change');
  2672.                                });
  2673.                        }
  2674.                            
  2675.                        $('#pexel-modal-holder').modal('hide');
  2676.                        $("#pexel_template").html("");
  2677.                    }
  2678.                }else{//import image error
  2679.                    swal({
  2680.                        title: "Error",
  2681.                        text: result.message,
  2682.                        type: "error",
  2683.                        showCancelButton: false,
  2684.                        confirmButtonColor: "#3085d6",
  2685.                        cancelButtonColor: "#d33",
  2686.                        confirmButtonText: "Ok",
  2687.                        closeOnCancel: true
  2688.                    });
  2689.                    increaseSweetAlertZindex();
  2690.                }
  2691.                loaderImagesHide();
  2692.            }
  2693.        });
  2694.    }
  2695.  
  2696.    function isnewSearch(pexelKeyword,pexelOrientation,stockLibrary,color){
  2697.  
  2698.        if(currentKeyword != pexelKeyword || currentOrientation != pexelOrientation || currentStockLibrary != stockLibrary || currentColor != color){
  2699.            return true;
  2700.        }
  2701.  
  2702.        return false;
  2703.    }
  2704.  
  2705.    function switchStockLibrary(node){
  2706.        $(".pexel-search-button").prop("disabled","");
  2707.        $("#pexel_keyword").prop("title","");
  2708.        $("#"+$(node).val()+"-refeer").css('display','inline-block');
  2709.        executeSearch(this);
  2710.    }
  2711.  
  2712.    function executeSearch(node){
  2713.        var parent              = $(node).closest('.pexel-modal');
  2714.        modalParent             = parent;
  2715.        var pexelKeyword        = $(parent).find("#pexel_keyword").val();
  2716.        pexelKeyword            = pexelKeyword.replace(/ /g, "+");
  2717.        var pexelOrientation    = $(parent).find("#pexel_orientantion").val();
  2718.        var stockLibrary        = $(parent).find("#stock_library").val();
  2719.        var color               = $(parent).find("#color-picker").val();
  2720.  
  2721.        $(parent).find(".pexel-search-button").prop("disabled","");
  2722.        $(parent).find("#pexel_keyword").prop("title","");
  2723.        $(parent).find('.stock_image_refeer').css('display','none');
  2724.        $(parent).find("#"+stockLibrary+"-refeer").css('display','inline-block');
  2725.  
  2726.        if(pexelKeyword == ""){
  2727.            swal({
  2728.                title: "Field Required",
  2729.                text: "The keyword field cannot be empty.",
  2730.                type: "",
  2731.                showCancelButton: false,
  2732.                confirmButtonColor: "#3085d6",
  2733.                cancelButtonColor: "#d33",
  2734.                confirmButtonText: "Ok",
  2735.                cancelButtonText: "No, cancel",
  2736.                closeOnConfirm: false,
  2737.                closeOnCancel: true
  2738.            });
  2739.            increaseSweetAlertZindex();
  2740.            return false;
  2741.        }
  2742.  
  2743.        if(isnewSearch(pexelKeyword,pexelOrientation,stockLibrary,color)){
  2744.            currentKeyword      = "";
  2745.            currentOrientation  = "";
  2746.            currentPage         = 1;
  2747.            currentStockLibrary = "";
  2748.            $(parent).find("#pexel-image-preview").html("");
  2749.        }else if(!isnewSearch(pexelKeyword,pexelOrientation,stockLibrary,color) && nextPage === ""){
  2750.            swal({
  2751.                title: "No Results Found",
  2752.                text: "Try searching with another keyword.",
  2753.                type: "",
  2754.                showCancelButton: false,
  2755.                confirmButtonColor: "#3085d6",
  2756.                cancelButtonColor: "#d33",
  2757.                confirmButtonText: "Ok",
  2758.                cancelButtonText: "No, cancel",
  2759.                closeOnConfirm: false,
  2760.                closeOnCancel: true
  2761.            });
  2762.            increaseSweetAlertZindex();
  2763.            return false;
  2764.        }
  2765.  
  2766.        var isAdmin = false;
  2767.  
  2768.        if($(parent).find("#is_admin").val() === "yes"){
  2769.            isAdmin = true;
  2770.        }
  2771.  
  2772.        parameters          = {
  2773.            pexel_keyword: pexelKeyword,
  2774.            pexel_orientantion: pexelOrientation,
  2775.            pexel_page:currentPage,
  2776.            stock_library:stockLibrary,
  2777.            is_admin:isAdmin,
  2778.            color:color
  2779.        };
  2780.  
  2781.        $(parent).find(".pexels-footer").css("display","none");
  2782.        $(parent).find(".pexel-search-button").prop("disabled","disabled");
  2783.        $(parent).find(".pexel-search-button").prop("title","Update Filters to Search Again");
  2784.        pexelSearch(parameters);
  2785.    }
  2786.  
  2787.    $(document).ready(function(){
  2788.        $("#color-picker").spectrum({
  2789.            preferredFormat: "hex",
  2790.            showInput: true,
  2791.            showPalette: true,
  2792.            clickoutFiresChange: true,
  2793.            palette: [["#F1F1F1","#000000","#0E0E0E"],["#90B624","#98C143","#3CBBDE"],["#F0AD4E","#D9534F","#FFFFFF"]],
  2794.            change: function(color) {
  2795.                color = color.toRgbString();
  2796.                $("#pexel-search-button").prop("disabled","");
  2797.            },
  2798.            hide: function(color) {
  2799.                color = color.toRgbString();
  2800.            },
  2801.            move: function(color) {
  2802.                color = color.toRgbString();
  2803.            }
  2804.        });
  2805.        $(".pexel .sp-replacer").css("display","none");
  2806.  
  2807.        $(modalParent).find("#pexel-load-more").click(function(){
  2808.            if(nextPage != ""){
  2809.                loaderImagesShow("Loading Images...");
  2810.                parameters.pexel_page = currentPage;
  2811.                pexelSearch(parameters);
  2812.            }
  2813.        });
  2814.  
  2815.        $(modalParent).find("#pexel_orientantion").on("change",function(){
  2816.            $("#pexel-search-button").prop("disabled","");
  2817.            $("#pexel_keyword").prop("title","");
  2818.        });
  2819.  
  2820.        $(modalParent).find("#stock_library").on("change",function(){
  2821.            if($(this).val() == "noun"){
  2822.                $(".pexel .sp-replacer").css("display","inline-block");
  2823.                $("#pexel_orientantion").css("display","none");
  2824.                $("#help-text-noun").css("display","block");
  2825.            }else{
  2826.                $(".pexel .sp-replacer").css("display","none");
  2827.                $("#pexel_orientantion").css("display","inline-block");
  2828.                $("#help-text-noun").css("display","none");
  2829.            }
  2830.            executeSearch($("#pexel-search-button"));
  2831.        });
  2832.  
  2833.        $(modalParent).find("#pexel_keyword").on("keyup",function(){
  2834.            $("#pexel-search-button").prop("disabled","");
  2835.            $("#pexel_keyword").prop("title","");
  2836.        });
  2837.    });
  2838. </script>                                        </div>
  2839.                                        <div class="col-sm-8">
  2840.                                            <span class="textarea textarea-about_me"><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;'><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-598-2600</p></span>                                        </div>
  2841.                                                                            </div>
  2842.                                                        
  2843.                            </div>
  2844.            
  2845.            <div class="clearfix"></div></div>    <div class="clearfix"></div>  <style>
  2846.   #map-canvas {
  2847.   height: 200px;
  2848.   width: 100%;
  2849.   margin: 0px;
  2850.   padding: 0px;
  2851.   border-radius:5px;
  2852.   overflow:hidden;
  2853.   }
  2854.  </style>
  2855.  <script>
  2856.  $(document).ready(function(){
  2857.      var map,map2;
  2858.      function initialize() {
  2859.                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}]}];
  2860.               var styledMap = new google.maps.StyledMapType(styles,{name: "Styled Map"});
  2861.                var myLatlng = new google.maps.LatLng(parseFloat(33.87463660),parseFloat(-117.72881550));
  2862.        var iconImage = '/images/pin_drop.png';
  2863.        var mapOptions = {
  2864.          zoom: 15,
  2865.          center: myLatlng,
  2866.          scrollwheel: false
  2867.        }
  2868.        map = new google.maps.Map(document.getElementById('map-canvas'), mapOptions);
  2869.        map2 = new google.maps.Map(document.getElementById('map-canvas2'), mapOptions);
  2870.                    map.mapTypes.set('map_style', styledMap);
  2871.            map.setMapTypeId('map_style');
  2872.            map2.mapTypes.set('map_style', styledMap);
  2873.            map2.setMapTypeId('map_style');
  2874.                var marker = new google.maps.Marker({
  2875.        position: myLatlng,
  2876.        map: map,
  2877.        icon: iconImage
  2878.        });
  2879.        var marker2 = new google.maps.Marker({
  2880.        position: myLatlng,
  2881.        map: map2,
  2882.        icon: iconImage
  2883.        });
  2884.      }
  2885.      google.maps.event.addDomListener(window, 'load', initialize);
  2886.      $('#locationModal').on('shown.bs.modal', function() {
  2887.      var currentCenter = map2.getCenter();
  2888.      google.maps.event.trigger(map2, "resize");
  2889.      map2.setCenter(currentCenter);
  2890.    });
  2891.  });
  2892.  </script>
  2893.  <style type='text/css'> #map-canvas2 {
  2894.    height: 100%;
  2895.    margin-bottom: 5px;
  2896.    width: 100%;
  2897. } </style><div class="modal fade" id="locationModal" tabindex="-1" role="dialog" aria-labelledby="locationModal" aria-hidden="true">
  2898. <div class="modal-dialog modal-lg">
  2899. <div class="modal-content">
  2900. <div class="modal-header">
  2901. <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  2902. <h4 class="modal-title">Map View</h4>
  2903. </div>
  2904.            <div class="modal-body" style="height: 350px;">
  2905. <div id="map-canvas2"></div>
  2906. </div>
  2907.            <div class="modal-footer">
  2908. <a rel="nofollow" href="https://maps.google.com/maps?daddr=23281+La+Palma+Ave++Yorba+Linda+CA+92887+United+States" type="button" rel="nofollow" target="_blank" class="btn btn-primary member-directions">Get Directions <small><i class='fa fa-external-link' aria-hidden='true'></i></small></a>
  2909. <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
  2910. </div>
  2911. </div>
  2912. </div>
  2913. </div>                                </div>
  2914.                                            </div>
  2915.            </div>    </div>
  2916.    <div class="col-sm-12 col-md-3 sidebar-section">        <section id='id' class=''><style type='text/css'> .col-md-3 .social_share_buttons .col-xs-3, .col-lg-3 .social_share_buttons .col-xs-3 {
  2917. transform: scale(.96);
  2918. }
  2919. .social_share_buttons .col-xs-4 {
  2920. padding: 0 5px;
  2921. }
  2922. .fbMobilePopUp {
  2923. color: #fff;
  2924. background-color: #3b5998;
  2925. padding: 2px 9px;
  2926. font-size: 11px;
  2927. font-weight: 500;
  2928. border-radius: 7%;
  2929. position: relative;
  2930. }
  2931.  
  2932. .fbMobilePopUp:hover {
  2933. color: #fff !important;
  2934. background-color: #354f87
  2935. }
  2936.  
  2937. .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 {
  2938. width: 100%!important;
  2939. display: block!important;
  2940. border-radius: 100px !important;
  2941. vertical-align:top!important;
  2942. margin:0 auto!important;
  2943. white-space:nowrap!important;
  2944. color: #fff!important;
  2945. } </style><aside>
  2946.    <div class="module social_share_buttons">
  2947.        <h2 class="nomargin">
  2948.            <i class="fa fa-share-square-o fa-fw"></i> Share This Page
  2949.        </h2>
  2950.        <hr>
  2951.        <div class="row hpad">
  2952.            <div class="col-xs-4 col-sm-4 col-md-6 col-lg-4 text-center bmargin facebook_social_share_button social_share_button">
  2953.  
  2954.                                    <div class="fb-share-button" style="display:none;">
  2955.                        <a href="#" title="Facebook Share Button" class="fbMobilePopUp" onclick='showFBShare();'>
  2956.                            <i class="fa fa-facebook "></i> Share
  2957.                        </a>
  2958.                    </div>
  2959.  <i class="fa fa-circle-o-notch fa-spin spin_remove_2"></i>
  2960.                            </div>
  2961.            <div class="col-xs-4 col-sm-4 col-md-6 col-lg-4 text-center bmargin twitter_social_share_button social_share_button">
  2962.                <a title="Twitter Share Button" href="//twitter.com/share" class="twitter-share-button" data-count="vertical"></a>
  2963.                <i class="fa fa-circle-o-notch fa-spin spin_remove_2"></i>
  2964.            </div>
  2965.            <div class="col-xs-4 col-sm-4 col-md-6 col-lg-4 text-center bmargin linkedin_social_share_button social_share_button">
  2966.                <script type="IN/Share" data-counter="top" defer></script>
  2967.                <i class="fa fa-circle-o-notch fa-spin spin_remove_2"></i>
  2968.            </div>
  2969.            <div class="clear"></div>
  2970.        </div>
  2971.        <div class="clear"></div>
  2972.    </div>
  2973. </aside><style type='text/css'> .related-searches-ul {
  2974. max-height: 200px;
  2975. overflow-y: auto;
  2976. }
  2977. .related-searches-ul li > a {
  2978. margin:1px 0 2px;
  2979. display:inline-block;
  2980. } </style>    <div class="module related-members-links">
  2981.        <h3 class="nomargin">
  2982. Related Searches
  2983. </h3>
  2984. <hr>
  2985.        <ul class="list-unstyled font-sm line-height-xl related-searches-ul">
  2986.            <li class="xs-bmargin"><a href="https://www.techdirectory.io/automotive" title="Automotive">All Automotive</a>
  2987.            <br/>
  2988.            <li class='xs-bmargin'><a href='https://www.techdirectory.io/united-states/california/yorba-linda/automotive' title='Automotive in Yorba Linda'>Automotive in Yorba Linda</a><br/><li class='xs-bmargin'><a href='https://www.techdirectory.io/united-states/california/automotive' title='Automotive in California'>Automotive in California</a><br/><li class='xs-bmargin'><a href='https://www.techdirectory.io/united-states/automotive' title='Automotive in US'>Automotive in United States</a><br/>        </ul>
  2989.    </div>
  2990. <!--
  2991.  
  2992. 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.
  2993.  
  2994. -->
  2995. <a href="https://techbullion.com/submit/" target="_blank"><img src="https://techannouncer.com/wp-content/uploads/2025/03/Digital-Marketing.png" alt="Submit" /></a> <div class="clearfix clearfix-lg"></div>
  2996. <!--
  2997.  
  2998. 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.
  2999.  
  3000. -->
  3001. <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
  3002. <!-- TechDirectory Vertical Responsive Ads -->
  3003. <ins class="adsbygoogle"
  3004.     style="display:block"
  3005.     data-ad-client="ca-pub-4909624562623679"
  3006.     data-ad-slot="6787643391"
  3007.     data-ad-format="auto"
  3008.     data-full-width-responsive="true"></ins>
  3009. <script>
  3010.     (adsbygoogle = window.adsbygoogle || []).push({});
  3011. </script> <div class="clearfix clearfix-lg"></div>
  3012. <!-- Structured Data Markup -->
  3013. <script type="application/ld+json">
  3014. {
  3015.    "@context": "http:\/\/schema.org",
  3016.    "@type": "NewsArticle",
  3017.    "mainEntityOfPage": {
  3018.        "@type": "WebPage",
  3019.        "@id": "\/"
  3020.    },
  3021.    "headline": "",
  3022.    "name": "",
  3023.    "author": {
  3024.        "@type": "Organization",
  3025.        "url": "\/united-states\/yorba-linda\/automotive\/ocrv-paint-service",
  3026.        "name": "OCRV Paint & Service"
  3027.    },
  3028.    "datePublished": "1970-01-01T00:00:00+00:00",
  3029.    "dateModified": "1970-01-01T00:00:00+00:00",
  3030.    "image": "\/images\/image-placeholder.jpg",
  3031.    "articleSection": null,
  3032.    "articleBody": "\"\"",
  3033.    "url": "\/",
  3034.    "publisher": {
  3035.        "@type": "Organization",
  3036.        "name": "TechDirectory",
  3037.        "logo": {
  3038.            "@type": "ImageObject",
  3039.            "url": "\/images\/TechDirectory-Logo.png"
  3040.        }
  3041.    },
  3042.    "comment": []
  3043. }</script></section>        </div>
  3044.    
  3045. </div>
  3046. <div class="clearfix"></div>
  3047.        <div class="clearfix"></div>
  3048.    </div>
  3049. </div>
  3050. <!-- End Content -->
  3051. <div class="clearfix footer-clear-element clearfix-lg"></div>
  3052. <!--
  3053.  
  3054. 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.
  3055.  
  3056. -->
  3057. <div class="clearfix"></div>
  3058. <div class="content-container banner-ad-unit footer-banner-container">
  3059.  
  3060. <div class="container text-center banner-ad-unit footer-banner-ad">
  3061.  
  3062. <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4909624562623679"
  3063.     crossorigin="anonymous"></script>
  3064. <!-- TechDirectory Horizontal Ad -->
  3065. <ins class="adsbygoogle"
  3066.     style="display:block"
  3067.     data-ad-client="ca-pub-4909624562623679"
  3068.     data-ad-slot="4256563416"
  3069.     data-ad-format="auto"
  3070.     data-full-width-responsive="true"></ins>
  3071. <script>
  3072.     (adsbygoogle = window.adsbygoogle || []).push({});
  3073. </script> <div class="clearfix clearfix-lg"></div>
  3074. </div>
  3075. </div>
  3076. <div class="clearfix"></div>
  3077. <style type='text/css'> .newsletter_row input[type="email"] {
  3078.    float: none;
  3079.    margin-left: auto;
  3080.    margin-right: auto;    
  3081.    width: 62% !important;
  3082. } </style><div class="content-container newsletter_row">
  3083. <div class="container text-center vpad">
  3084. <div class="col-md-12 xs-nopad">
  3085. <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">
  3086.            <div class="col-sm-6 nopad newsletter_button_left">
  3087.            Join Our Newsletter
  3088.        </div>
  3089.        <div class="col-sm-6 nopad newsletter_button_right">
  3090.            Click to Subscribe
  3091.            <i class='fa fa-chevron-circle-right fa-fw'></i>
  3092.        </div>
  3093.        
  3094. <div class="clearfix"></div>
  3095. </a>
  3096. </div>
  3097. </div>
  3098. </div><div class="footer">
  3099.    <div class="container">
  3100.        <div class="row">
  3101.            <ul class="footer_menu sm-text-center">
  3102.                 <li class='col-md-5'><span id='link157'  class='head'> About</span><ul><li class=''><span id='link158'  class='content'> TechDirectory.io is an Online Directory for Innovative Technologies. Search for Tech Businesses, list your Tech Business.</span></li></ul></li><li class='col-md-2 col-md-offset-1'><span id='link159'  class='head'> Website</span><ul><li class=''><a href='/about' id='link160'>How It Works</a></li><li class=''><a href='/join' id='link161'>List Your </a></li></ul></li><li class='col-md-2'><span id='link162'  class='head'> Search</span><ul><li class=''><a href='/categories' id='link163'>Browse Categories</a></li><li class=''><a href='/locations' id='link164'>Browse Locations</a></li></ul></li><li class='col-md-2'><span id='link165'  class='head'> Support</span><ul><li class=''><a href='/account/upgrade' id='link166'>Account Upgrade</a></li><li class=''><a href='/about/contact' id='link167'>Contact Us</a></li></ul></li><li class='col-md-5 vpad vmargin'><span id='link211'> <div itemscope itemtype="http://schema.org/WebSite">
  3103. <meta itemprop="name" content="TechDirectory" id="sitename">
  3104. <link href="//www.techdirectory.io" itemprop="url" id="sitelink">
  3105. <div class="list-social-links">
  3106. <a class="network-icon contact" href="/about/contact" title="Contact Us TechDirectory">
  3107. <i class="fa fa-envelope"></i>
  3108. </a>
  3109. <a class="network-icon facebook" itemprop="sameAs" href="https://www.facebook.com/TechDirectory" target="_blank" title="TechDirectory Facebook">
  3110. <i class="fa fa-facebook"></i>
  3111. </a>
  3112. <a class="network-icon image-icon twitter" itemprop="sameAs" href="https://twitter.com/TechDirectory" target="_blank" title="TechDirectory X">
  3113. <img alt="TechDirectory X" loading="lazy" class="talign img-circle" src="/images/twitterX.png" width="40" height="40">
  3114. </a>
  3115.    
  3116.      
  3117. <a class="network-icon youtube" itemprop="sameAs" href="https://www.youtube.com/@techdirectoryio" target="_blank" title="TechDirectory YouTube">
  3118. <i class="fa fa-youtube"></i>
  3119. </a>
  3120. <div class="clearfix"></div>
  3121. </div>
  3122. </div></span></li><li class='col-md-6 col-md-offset-1 vpad vmargin'><a href='/get-listed' id='link212'  class='btn btn_footer_get_listed btn-lg btn-block bold center sm-block' style='white-space:normal'>Technology Businesses - List Your Business Today »</a></li><li class='col-md-12'><a href='https://www.techbullion.com/category/technology/' id='link226'> Technology News</a></li>             </ul>
  3123.        </div>
  3124. <div class="col-md-12 fpad fmargin small text-center footer_terms">
  3125. &copy; 2025 <a title="TechDirectory" href="/">
  3126. TechDirectory </a>
  3127. All Rights Reserved.
  3128. <div class="inline-block">
  3129. <a title="Terms of Use - TechDirectory" href="/about/terms">
  3130. Terms of Use
  3131. </a>
  3132. |
  3133. <a title="Privacy Policy - TechDirectory" href="/about/privacy">
  3134. Privacy Policy
  3135. </a>
  3136. </div>
  3137. </div>
  3138.    </div>
  3139. </div><style type='text/css'> .scrollup {
  3140.  border-radius: 3px;
  3141.  width: 40px;
  3142.  height: 40px;
  3143.  opacity: 0.4;
  3144.  position: fixed;
  3145.  bottom: 30px;
  3146.  right: 30px;
  3147.  display: none;
  3148.  background: rgba(119, 119, 119, 0.8);
  3149.  z-index: 1000000;
  3150. }
  3151. .scrollup i {
  3152.  font-size: 36px;
  3153.  color: white;
  3154.  position: relative;
  3155.  top: 0px;
  3156.  left: 10px;
  3157. } </style>            <div class="myModal modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel"
  3158.                 data-backdrop="static" data-keyboard="false">
  3159.                <div class="modal-dialog" role="document">
  3160.                    <div class="modal-content">
  3161.                        <div class="modal-body nohpad nobpad">
  3162.                            <button type="button" style="z-index:10;position:absolute;right:15px;" class="close hmargin"
  3163.                                    data-dismiss="modal">&times;
  3164.                            </button>
  3165.                                <style>
  3166.        .member-login-container:not(.modal .module) {
  3167.            width: 555px;
  3168.            max-width: 100%;
  3169.            margin-left: auto;
  3170.            margin-right: auto;
  3171.            margin-bottom:0;
  3172.            background-color: rgb(255, 255, 255)!important;
  3173.            border-color: rgb(247, 247, 247)!important;
  3174.            color: rgb(41, 41, 41)!important;
  3175.        }
  3176.        .login-register-tabs, .login-register-content {
  3177.            width: 555px!important;
  3178.            max-width: 100%;
  3179.            margin-left: auto!important;
  3180.            margin-right: auto!important;
  3181.            background-color: rgb(247, 247, 247);
  3182.        }
  3183.        .login-register-content {
  3184.            background: transparent;
  3185.            padding: 0;
  3186.            border: none;
  3187.        }
  3188.        .login-register-content h2, .login-register-content h2+hr, .login-register-content .account-menu-title {
  3189.            display: none!important;
  3190.        }
  3191.        .express_login_create_account_prefix hr {
  3192.            margin: 15px 0 10px;
  3193.        }
  3194.        .modal-content #containerFBLogin, .modal-content #containerGoogleLogin {
  3195.            margin:15px 0;
  3196.        }
  3197.  
  3198.        /* CSS When Login Form and Express Registration Rendered in Sidebar */
  3199.        .col-md-3 .bd-chat-well-container,.col-md-4 .bd-chat-well-container {
  3200.            padding: 15px 10px;
  3201.        }
  3202.        .col-md-3 .bd-chat-center-text,.col-md-4 .bd-chat-center-text {
  3203.            margin: 0;
  3204.            font-size: 20px;
  3205.            padding: 0 15px;
  3206.        }
  3207.        .col-md-3 .member-login-page-container .login-register-tabs *, .col-md-4 .member-login-page-container .login-register-tabs * {
  3208.            font-size: 12px;
  3209.            line-height: 1.2em;
  3210.            vertical-align: bottom;
  3211.        }
  3212.        .col-md-3 .member-login-page-container .login-register-tabs a, .col-md-4 .member-login-page-container .login-register-tabs a {
  3213.            padding: 5px !important;
  3214.            height: 50px;
  3215.            vertical-align: middle;
  3216.            display: table-cell !important;
  3217.            width: 1%;
  3218.        }
  3219.        .col-md-3 .member-login-page-container .login-register-content, .col-md-4  .member-login-page-container .login-register-content {
  3220.            padding: 0;
  3221.        }
  3222.        .col-md-3 .member-login-container, .col-md-4 .member-login-container {
  3223.            padding: 15px !important;
  3224.            font-size: 13px;
  3225.        }
  3226.        .col-md-3 .member-login-page-container .input-lg, .col-md-4 .member-login-page-container .input-lg {
  3227.            height: 34px;
  3228.            padding: 6px 12px;
  3229.            font-size: 14px;
  3230.        }
  3231.        .col-md-3 .member-login-page-container .security_question_label, .col-md-4 .member-login-page-container .security_question_label {
  3232.            transform: scale(.85);
  3233.            margin: -1.15em -1.15em 0;
  3234.        }
  3235.        .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 {
  3236.            width: 100%;
  3237.            display: block;
  3238.            margin-top:5px;
  3239.        }
  3240.        .col-md-3 .login-cta-buttons li, .col-md-4 .login-cta-buttons li {
  3241.            padding:0
  3242.        }
  3243.        .col-md-3 .login-cta-buttons ul.nav, .col-md-4 .login-cta-buttons ul.nav {
  3244.            margin-top: -10px;
  3245.        }
  3246.        .col-md-3 #googleAction, .col-md-3 #facebookAction, .col-md-4 #googleAction, .col-md-4 #facebookAction {
  3247.            padding: 0;
  3248.            min-height: 0;
  3249.            font-size: 14px;
  3250.            margin: 0;
  3251.        }
  3252.        .col-md-3 #googleAction img, .col-md-3 #facebookAction img, .col-md-4 #googleAction img, .col-md-4 #facebookAction img {
  3253.            height: 36px !important;
  3254.            margin-right: 5px;
  3255.            position: relative!important;
  3256.            display: inline-block;
  3257.        }
  3258.        @media only screen and (max-width: 767px) {
  3259.            .col-md-3 .member-login-page-container .login-register-tabs a, .col-md-4 .member-login-page-container .login-register-tabs a {
  3260.                display: block !important;
  3261.                width: 100%;
  3262.                line-height: 40px;
  3263.            }
  3264.  
  3265.            #containerGoogleLogin {
  3266.                text-align: center;
  3267.                margin-top: 10px;
  3268.            }
  3269.            #containerGoogleLogin #gBtn {
  3270.                display: inline-block;
  3271.                width: 202px;
  3272.            }
  3273.        }
  3274.    </style>
  3275.    <div class="row member-login-page-container">
  3276.        <div class="fpad-lg novpad">
  3277.  
  3278.            
  3279.                                    <div class="module fpad-xl member-login-container">
  3280.                         <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_66" method="post" labelwidth="100" labelpaddingtop="0.5em" enctype="multipart/form-data" form_action_type="redirect" form_action_div="" return_data_type="json" name="member_login_66" class=" "><input type="hidden" name="sized" value="0" id="member_login_66-element-0"/><input type="hidden" name="mysql_real_escape_string_runned" value="1" id="member_login_66-element-1"/><input type="hidden" name="userid" value="172282" id="member_login_66-element-2"/><input type="hidden" name="form" value="myform" id="member_login_66-element-3"/><input type="hidden" name="formname" value="member_login" id="member_login_66-element-4"/><input type="hidden" name="dowiz" value="1" id="member_login_66-element-5"/><input type="hidden" name="save" value="1" id="member_login_66-element-6"/><input type="hidden" name="url_origin_pars" value="/united-states/yorba-linda/automotive/ocrv-paint-service" id="member_login_66-element-7"/><input type="hidden" name="action" autocomplete="off" value="login" id="member_login_66-element-8"/><h2>Member Login</h2><hr><div class="form-group"><label class="vertical-label bd-email" for="member_login_66-element-10">Email Address</label><div class="input-prepend input-append"><span class="add-on"><div class="input-group input-group-lg"><span class="input-group-addon"><i class="fa fa-envelope"></i></span></span><input type="email" name="email" placeholder="name@yoursite.com" autocomplete="off" value class="form-control input-lg" id="member_login_66-element-10"/><span class="add-on"></div></span></div></div><div class="form-group"><label class="vertical-label bd-password" for="member_login_66-element-11">Password</label>
  3281.                    <style>
  3282.                        #togglePassword {
  3283.                            background: none;
  3284.                            border: none;
  3285.                            cursor: pointer;
  3286.                            font-weight: bold;
  3287.                            font-size: .85em;
  3288.                            position: absolute;
  3289.                            right: 5px;
  3290.                            top: 0;
  3291.                        }
  3292.                    </style><button type="button" tabindex="-1" id="togglePassword" onclick="showPassword(this);"> <i class="fa fa-lock" aria-hidden="true"></i></button>
  3293.                <script>
  3294.                    function showPassword(node){
  3295.                        const parent = node.closest('.form-group');
  3296.                        const passwordField = parent.querySelector(`input[type='password'], input[type='text']`);
  3297.                        const isPassword = passwordField.getAttribute('type') === 'password';
  3298.                        passwordField.setAttribute('type', isPassword ? 'text' : 'password');
  3299.                        const iconHTML = isPassword ? `<i class="fa fa-unlock" aria-hidden="true"></i>` : `<i class="fa fa-lock" aria-hidden="true"></i>`;
  3300.                        node.innerHTML = iconHTML;
  3301.                    }      
  3302.               </script><div class="input-prepend input-append"><span class="add-on"><div class="input-group input-group-lg"><span class="input-group-addon"><i class="fa fa-key"></i></span></span><input type="password" name="pass" placeholder="Enter Password" autocomplete="off" value class="form-control input-lg" id="member_login_66-element-11"/><span class="add-on">  </div></span></div></div><p class="help-block bpad bmargin small" style="margin-top:-10px;">Forgot your password? <a href="/login/retrieval">Click Here</a></p><div class="form-actions"><input type="submit" value="Login Now" name class="btn btn-primary btn-lg btn-block " id="member_login_66-element-13"/></div><hr>
  3303. <div class="col-md-6">
  3304.  <a class="btn btn-danger btn-block sm-bmargin" href="/checkout/5">Not a Registered User?<span class="inline-block">Create a Free User Account »</span></a>
  3305. </div>
  3306. <div class="col-md-6">
  3307.  <a href="/join" class="btn btn-success btn-block">Are You a Technology Business?<span class="inline-block">List Your Business Now »</span></a>
  3308. </div>
  3309. <div class="clearfix"></div></form><script type="text/javascript">jQuery(document).ready(function() { jQuery("#member_login_66").bind("submit", function() {
  3310. });}); </script>                         <div class="clearfix"></div>
  3311.                    </div>
  3312.                
  3313.            
  3314.        </div>
  3315.    </div>
  3316.                        </div>
  3317.                    </div>
  3318.                </div>
  3319.            </div>
  3320.            
  3321.  
  3322.  
  3323.    <link rel="stylesheet" type="text/css" href="https://www.optimizecdn.com/directory/cdn/assets/bootstrap/limonte-sweetalert2/6.11.2/sweetalert2.min.css">
  3324. <script src="https://www.optimizecdn.com/directory/cdn/assets/bootstrap/limonte-sweetalert2/6.11.2/sweetalert2.min.js"></script>
  3325.  
  3326. <script>
  3327.    function clearContent(thisObj){
  3328.        var size;
  3329.        if(thisObj.hasClass('input-sm') || thisObj.parents('.input-group').hasClass('input-group-sm')){
  3330.            size = "small";
  3331.        } else if (thisObj.hasClass('input-lg') || thisObj.parents('.input-group').hasClass('large-autosuggest')){
  3332.            size = "large";
  3333.        } else {
  3334.            size = "medium";
  3335.        }
  3336.        if(!thisObj.parent().hasClass('input_wrapper')){
  3337.            if(thisObj.parent().hasClass('input-group-sm')){
  3338.                thisObj.wrap('<span class="input-group-sm input_wrapper"></span>');
  3339.            } else if (thisObj.parent().hasClass('input-group-lg')){
  3340.                thisObj.wrap('<span class="input-group-lg input_wrapper"></span>');
  3341.            } else {
  3342.                thisObj.wrap('<span class="input_wrapper"></span>');
  3343.            }
  3344.        }
  3345.        if(thisObj.val() != ""){
  3346.            if(thisObj.hasClass('googleSuggest')){
  3347.                thisObj.parent().find('.fill_location').remove();
  3348.            }
  3349.            if (!thisObj.parent().find('.clear_content').length){
  3350.                thisObj.parent().append(`<span class="clear_content ${size}"><i class="fa fa-times-circle" aria-hidden="true"></i></span>`);
  3351.                if (thisObj.hasClass("tt-input")) {
  3352.             thisObj.focus();
  3353.         }
  3354.  
  3355.            }
  3356.        }
  3357.                if (thisObj.hasClass('googleSuggest') && thisObj.val().length == 0) {
  3358.            thisObj.parent().append(`<span class="fill_location ${size}"><i class="fa fa-crosshairs" title="Use Current Location" aria-hidden="true"></i></span>`);
  3359.        }
  3360.        if (thisObj.val() == "" && thisObj.parent().find('.clear_content').length){
  3361.            thisObj.parent().find('.clear_content').remove();
  3362.        }
  3363.            }
  3364.  
  3365.    $(document).on('click', '.drp-buttons .applyBtn', function(){
  3366.        clearContent($(".dateRange input"));
  3367.    });
  3368.  
  3369.    $('.sm-autosuggest input, .googleSuggest, .large-autosuggest input, .md-autosuggest input, .normal-autosuggest input, .google-writen-location, .dateRange input').keyup(function(){
  3370.        clearContent($(this));
  3371.    });
  3372.  
  3373.    $(document).ready(function(){
  3374.        $('.sm-autosuggest input, input.googleSuggest, .large-autosuggest input, .md-autosuggest input, .normal-autosuggest input, .google-writen-location, .dateRange input').each(function(){
  3375.            clearContent($(this));
  3376.        })
  3377.    })
  3378.  
  3379.    $(document).on('click', '.clear_content', function(){
  3380.        $(this).parent().find('input').val('');
  3381.        //tt-input its a class for typeahead auto-suggest
  3382.        if ($(this).parent().find('input').hasClass("tt-input")) {
  3383.            $(this).parent().find('input').typeahead('val','');
  3384.        }
  3385.        clearContent($(this).parent().find('input'));
  3386.        $(this).remove();
  3387.    });
  3388.  
  3389. $(window).on('load', function () {
  3390. setTimeout(function() {
  3391. // add missing href attribute to multi-category options in search modules
  3392. $('.bootstrap-select.show-tick .dropdown-menu a').attr('href', '#');
  3393. }, 2000);
  3394.         });
  3395. </script>
  3396.  
  3397.  
  3398.  
  3399. <a href="#" class="scrollup" title="scrollup">
  3400.    <i class="fa fa-caret-up" aria-hidden="true"></i>
  3401. </a>
  3402. <script>
  3403.        $(document).ready(function () {
  3404.  
  3405.        if ($('.navbar-default').length > 0) {
  3406.            var menu = $('.navbar-default');
  3407.            var origOffsetY = menu.offset().top;
  3408.  
  3409.            function scroll() {
  3410.  
  3411.                if ($(window).scrollTop() > origOffsetY) {
  3412.                    $('.navbar-default').addClass('navbar-fixed-top');
  3413.                    $('.navbar-default').addClass('transparent_menu');
  3414.  
  3415.                } else {
  3416.                    $('.navbar-default').removeClass('navbar-fixed-top');
  3417.                    $('.navbar-default').removeClass('transparent_menu');
  3418.                }
  3419.            }
  3420.            document.onscroll = scroll;
  3421.        };
  3422.    });
  3423.        $(document).ready(function(){
  3424.        $('.progress .progress-bar').progressbar({
  3425.            display_text: 'fill'
  3426.        });
  3427.        $(window).scroll(function(){
  3428.  
  3429.            if ($(this).scrollTop() > 600) {
  3430.                $('.scrollup').fadeIn();
  3431.  
  3432.            } else {
  3433.                $('.scrollup').fadeOut();
  3434.            }
  3435.        });
  3436.        $('.scrollup').click(function(){
  3437.            $("html, body").animate({
  3438.                scrollTop: 0
  3439.            }, 600);
  3440.            return false;
  3441.        });
  3442.        $('#cropButton').click(function(){
  3443.            var iframe = $("#cropiFrame");
  3444.            iframe.attr("src", iframe.data("src"));
  3445.        });
  3446.    });
  3447. </script>
  3448. <script>
  3449. $(document).ready(function() {
  3450. // Hide the first H2 title of each .table-view.list-inline section if it is the only element inside its parent div, along with a div.clearfix, meaning "Company Details" is empty
  3451. $('.table-view.list-inline').each(function() {
  3452. var $parentDiv = $(this);
  3453. // Check if the parent div contains exactly two children: div.clearfix and h2.tmargin.tpad.xs-center-block.clearfix
  3454. if ($parentDiv.children('div.clearfix').length === 1 && $parentDiv.children('h2.tmargin.tpad.xs-center-block.clearfix').length === 1 && $parentDiv.children().length === 2) {
  3455. $parentDiv.children('h2.tmargin.tpad.xs-center-block.clearfix').attr('style', 'display: none !important;');
  3456. }
  3457. });
  3458. });
  3459. </script><script>
  3460.  
  3461. $('.view_phone_number').click(function(event){
  3462. event.preventDefault();
  3463. $(this).hide();
  3464. $('.view_phone_number_header').hide();
  3465. $('.phone_number_header').css("display","block");
  3466. $('.phone_number').css("display","block");
  3467. })
  3468.  
  3469. </script>
  3470. <link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.3.0/codemirror.min.css">
  3471. <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.3.0/codemirror.min.js"></script>
  3472. <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.3.0/mode/xml/xml.min.js"></script>
  3473.  
  3474. <script type="text/javascript" src="/directory/cdn/assets/bootstrap/js/froala_editor.pkgd.min.js"></script>
  3475.  
  3476. <script>
  3477.    var max_text_editor_size = '10';
  3478.  
  3479.    if (!max_text_editor_size) {
  3480.        max_text_editor_size = 10;
  3481.    }
  3482.  
  3483.    var imageMaxSizeSetting = 1024 * 1024 * Number(max_text_editor_size);
  3484.  
  3485.    var imageMaxSizeSetting = 1024 * 1024 * max_text_editor_size;
  3486.    var widgetName = "Bootstrap Theme - Form - Froala Editor Actions";
  3487.    var chatFroala;
  3488.    var chatFileSizeBase   = '10';
  3489.    var chatFileSize       = chatFileSizeBase * 1000000;
  3490.    var dragCallback = function (e) {
  3491.        e.dataTransfer.setData('Text', this.id);
  3492.    };
  3493.  
  3494.    /****** PEXEL VARIABLES START ********/
  3495.    var pexelExecuted = false;
  3496.    var currentHideEvent;
  3497.    var currentPexelFroala;
  3498.    var pexelModalHtml = "";
  3499.    var nextPage            = "";
  3500.    var parameters          = {};
  3501.    var currentPage         = 1;
  3502.    var currentKeyword      = "";
  3503.    var currentSize         = "";
  3504.    var currentOrientation  = "";
  3505.    var modalParent         = {};
  3506.    var replaceImage        = null;
  3507.    var currentSelection    = {};
  3508.    /****** PEXEL VARIABLES START ********/
  3509.  
  3510.    /****** PEXEL DEFINITION START ********/
  3511.    if(pexelModalHtml == ""){
  3512.        pexelModalHtml = $("#pexel_template").html();
  3513.    }
  3514.  
  3515.    $.extend(FroalaEditor.POPUP_TEMPLATES, {
  3516.        "pexel.insert": "[_BUTTONS_][_CUSTOM_LAYER_]"
  3517.    });
  3518.  
  3519.    $.extend(FroalaEditor.DEFAULTS, {
  3520.        pexelButtons: ["pexelClose"]
  3521.    });
  3522.  
  3523.    // The custom popup is defined inside a plugin (new or existing).
  3524.    FroalaEditor.PLUGINS.pexelPlugin = function(editor) {
  3525.        // Create custom popup.
  3526.        function initPopup() {
  3527.            // Popup buttons.
  3528.            var popup_buttons = ``;
  3529.            // Create the list of buttons.
  3530.            if (editor.opts.pexelButtons.length > 0) {
  3531.                popup_buttons += `<div class="fr-buttons fr-tabs el-popup">`;
  3532.                popup_buttons += `<div class="alert alert_info size-chart"> <i class="fa fa-info-circle" style="margin: 0;"></i> <b>Image Sizes:</b> <span>Large: 1200 pixels</span> <span>Medium: 650 pixels</span> <span>Small: 350 pixels</span></div>`;
  3533.                popup_buttons += editor.button.buildList(editor.opts.pexelButtons);
  3534.                popup_buttons += `</div><div class="clearx"></div>`;
  3535.            }
  3536.  
  3537.            var template = {
  3538.                buttons: popup_buttons,
  3539.                custom_layer: `<div class="pexel-modal"></div>`
  3540.            };
  3541.  
  3542.            // Create popup.
  3543.            var $popup  = editor.popups.create("pexel.insert", template);
  3544.            let popup   = $popup[0];
  3545.            currentPexelFroala = editor;
  3546.            return $popup;
  3547.        }
  3548.        // Show the popup
  3549.        function showPopup() {
  3550.            // Get the popup object defined above.
  3551.            var $popup = editor.popups.get("pexel.insert");
  3552.            // To improve performance it is best to create the popup when it is first needed
  3553.            // and not when the editor is initialized.
  3554.            if (!$popup) $popup = initPopup();
  3555.  
  3556.  
  3557.            // This will trigger the refresh event assigned to the popup.
  3558.            // Get the buttons object in order to place the popup relative to it.
  3559.            var $btn    = editor.$tb.find(`.fr-command[data-cmd="insertImage"]`);
  3560.            editor.popups.show("pexel.insert", "25%", "50%", $btn.outerHeight());
  3561.        }
  3562.        // Hide the custom popup.
  3563.        function hidePopup() {
  3564.            $("body").css("overflow","");
  3565.            $(".sweet-overlay").css("z-index","1000");
  3566.            $(".show-sweet-alert").css("z-index","2000");
  3567.            $(".swal2-container").css(`z-index`,`2000`);
  3568.            pexelExecuted       = false;
  3569.            editor.popups.hide  = currentHideEvent;
  3570.            editor.popups.hide("pexel.insert");
  3571.        }
  3572.  
  3573.        function insertImage(imagePath){
  3574.            hidePopup();
  3575.            var currentImageDownloaded = `<img class="fr-fil fr-fic fr-dib fr-draggable" '.$imageWidthAttribute.' src="` + imagePath + `" data-url=" `+ imagePath +` " loading="lazy">`;
  3576.            if($(replaceImage).length > 0){
  3577.                $(replaceImage).attr("src",imagePath);
  3578.                replaceImage = null;
  3579.            }else{
  3580.                editor.selection.restore(currentSelection);
  3581.                editor.selection.get();
  3582.                editor.html.insert(currentImageDownloaded);
  3583.            }
  3584.        }
  3585.  
  3586.        // Methods visible outside the plugin.
  3587.        return {
  3588.            showPopup: showPopup,
  3589.            hidePopup: hidePopup,
  3590.            insertImage: insertImage
  3591.        }
  3592.    }
  3593.  
  3594.    // Define your custom image insert plugin
  3595.    FroalaEditor.DefineIcon("pexelInsert", { CLASS: "pexel-icon" }); // Define an icon for your custom button (you can use a different icon).
  3596.    FroalaEditor.RegisterCommand("pexelInsert", {
  3597.        title: "Insert Pexel Image",
  3598.        focus: false,
  3599.        undo: false,
  3600.        refreshAfterCallback: false,
  3601.        type: "button",
  3602.        callback: function () {
  3603.            if(pexelExecuted === false){
  3604.                this.pexelPlugin.showPopup();
  3605.            }
  3606.        },
  3607.    });
  3608.  
  3609.    FroalaEditor.DefineIcon("pexelClose", { NAME: "close", SVG_KEY: "close" });
  3610.    FroalaEditor.RegisterCommand("pexelClose", {
  3611.        title: "Close",
  3612.        undo: false,
  3613.        focus: false,
  3614.        callback: function() {
  3615.            this.pexelPlugin.hidePopup();
  3616.        }
  3617.    });
  3618.    /****** PEXEL DEFINITION END ********/
  3619.    $(document).ready(function () {
  3620.  
  3621.        // Adding custom linkOpen command to force target blank on all openLink clicks
  3622.        FroalaEditor.DefineIcon('linkOpen', {
  3623.            NAME: 'external-link',
  3624.            FA5NAME: 'external-link-alt',
  3625.            SVG_KEY: 'openLink'
  3626.        });
  3627.        FroalaEditor.RegisterCommand('linkOpen', {
  3628.            title: 'Open Link',
  3629.            undo: false,
  3630.            refresh: function refresh($btn) {
  3631.                var link = this.link.get();
  3632.  
  3633.                if (link) {
  3634.                    $btn.removeClass('fr-hidden');
  3635.                } else {
  3636.                    $btn.addClass('fr-hidden');
  3637.                }
  3638.            },
  3639.            callback: function callback() {
  3640.                var link = this.link.get();
  3641.  
  3642.                if (link) {
  3643.                    this.o_win.open(link.href, '_blank', 'noopener');
  3644.  
  3645.                    this.popups.hide('link.edit');
  3646.                }
  3647.            },
  3648.            plugin: 'link'
  3649.        });
  3650.  
  3651.        // Code for Additional Styles Dropdown
  3652.        FroalaEditor.DefineIcon('adv_styles', {NAME: 'magic', SVG_KEY: 'fullscreen'});
  3653.        FroalaEditor.RegisterCommand('adv_styles', {
  3654.            title: 'Advanced Styles',
  3655.            type: 'dropdown',
  3656.            focus: false,
  3657.            undo: false,
  3658.            refreshAfterCallback: true,
  3659.            options: {
  3660.                'btn-block': 'Toggle Full Width',
  3661.                'btn-sm': 'Small Button',
  3662.                'btn-rg': 'Normal Button',
  3663.                'btn-lg': 'Large Button',
  3664.  
  3665.            },
  3666.            callback: function (cmd, val) {
  3667.                this.link.applyStyle(val, true);
  3668.                var n = this.$;
  3669.                var thisButtonGet = this.link.get();
  3670.                var thisButton = n(thisButtonGet);
  3671.                if(val == "btn-sm"){
  3672.                    thisButton.removeClass('btn-lg');
  3673.                    thisButton.removeClass('btn-rg');
  3674.                }
  3675.                if(val == "btn-lg"){
  3676.                    thisButton.removeClass('btn-sm');
  3677.                    thisButton.removeClass('btn-rg');
  3678.                }
  3679.                if(val== "btn-rg"){
  3680.                    thisButton.removeClass('btn-sm');
  3681.                    thisButton.removeClass('btn-lg');
  3682.                }
  3683.            },
  3684.            // Callback on refresh.
  3685.            refresh: function ($btn) {
  3686.            },
  3687.            // Callback on dropdown show.
  3688.            refreshOnShow: function ($btn, $dropdown) {
  3689.                var n = this.$;
  3690.                var thisButtonGet = this.link.get();
  3691.                var thisButton = n(thisButtonGet);
  3692.                $dropdown.find('.fr-command').each(function(){
  3693.                    var thisDropdownValue = n(this).data("param1"),
  3694.                        testHasClass = thisButton.hasClass(thisDropdownValue);
  3695.                    n(this).toggleClass("fr-active", testHasClass).attr("aria-selected", testHasClass);
  3696.                })
  3697.            }
  3698.        });
  3699.        FroalaEditor.DefineIcon('contentBlocksPopup', {NAME: 'info', SVG_KEY: 'fullscreen'});
  3700.                new FroalaEditor('.froala', {
  3701.            events: {
  3702.                'table.inserted': function (table) {
  3703.                    $('table').addClass('froala-table');
  3704.                }
  3705.            },
  3706.                                    fontSize: ['10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30', '31', '32', '33', '34', '35', '36', '37', '38', '39', '40', '41', '42', '43', '44'],
  3707.            htmlAllowedAttrs: ['.*'],
  3708.            htmlAllowedTags: ['a', 'b', 'big', 'blockquote', 'br', 'caption', 'code', 'col', 'colgroup', 'div', 'em', 'embed', 'figure', 'font', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'hr', 'i', 'iframe', 'img', 'li', 'ol', 'p', 'picture', 'pre', 'small', 'span', 'strong', 'sub', 'sup', 'table', 'tbody', 'td', 'tfoot', 'th', 'thead', 'thread', 'tr', 'tt', 'u', 'ul', 'video', 's', 'a'],
  3709.            htmlRemoveTags: ['script', 'style', 'base'],
  3710.            linkAutoPrefix: '',
  3711.            tableInsertMaxSize: 6,
  3712.            imageDefaultWidth:0,
  3713.            linkInsertButtons: ['linkBack'],
  3714.            language: 'en',
  3715.            placeholderText: `Type Something`,
  3716.            toolbarInline: false,
  3717.            heightMin: '350',
  3718.            height: '350',
  3719.            attribution: false,
  3720.            linkAttributes: {
  3721.                title: 'Title'
  3722.            },
  3723.            linkStyles: {
  3724.                'btn btn-primary': 'Button Primary',
  3725.                'btn btn-info': 'Button Info',
  3726.                'btn btn-success': 'Button Success',
  3727.                'btn btn-warning': 'Button Warning',
  3728.                'btn btn-danger': 'Button Danger',
  3729.                'btn btn-default': 'Button Default'
  3730.            },
  3731.            imageMove: false,
  3732.            videoMove: false,
  3733.            linkMultipleStyles: false,
  3734.            quickInsertEnabled: false,
  3735.            iframeStyleFiles: ['/directory/cdn/assets/bootstrap/css/froala_style.min.css','/directory/cdn/assets/bootstrap/css/theme-styles.min.css?v=1.0.01'],
  3736.            imageEditButtons: ['imageAlign', 'imageRemove', 'imageCaption', '|', 'imageLink', 'linkOpen','linkEdit', 'linkRemove', '-', 'imageAlt', 'imageSize', 'imageStyle'],
  3737.            imageStyles: {
  3738.                'square': 'Square',
  3739.                'img-rounded': 'Rounded',
  3740.                'img-circle': 'Circle'
  3741.            },
  3742.            imageMultipleStyles: false,
  3743.            codeMirrorOptions: {
  3744.                indentWithTabs: true,
  3745.                lineNumbers: true,
  3746.                lineWrapping: true,
  3747.                mode: 'text/html',
  3748.                tabMode: 'indent',
  3749.                tabSize: 4
  3750.            },
  3751.                        htmlAllowedEmptyTags: ['textarea', 'a', 'iframe', 'object', 'video', 'style', 'script', '.fa', '.fr-emoticon', '.fr-inner', 'path', 'line', 'hr','i'],
  3752.                        linkEditButtons: ['linkOpen','linkStyle', 'linkEdit', 'linkRemove'],
  3753.            videoInsertButtons: ['videoBack', '|', 'videoByURL', 'videoEmbed'],
  3754.            videoEditButtons: ['videoReplace', 'videoRemove', '|', 'videoDisplay', 'videoAlign', 'videoSize'],
  3755.            key: '7MD3aD3G3B3B4B3C2xROKLJKYHROLDXDRE1b1YYGRi1Bd1C4F4B3H2G3A15A11A12C5C1==',
  3756.            buttons: ['fullscreen', 'undo', 'redo', 'bold', 'italic', 'underline', 'fontSize', 'paragraphFormat', 'clearFormatting', 'lineHeight', 'textColor', 'backgroundColor', '|',  'align', 'formatOL', 'formatUL', 'insertTable', 'outdent', 'indent', 'insertHR', '|' , 'insertLink',  'html'],
  3757.            tableEditButtons: ['tableColumns','tableRows', 'tableCells', 'tableCellBackground','tableCellVerticalAlign', 'tableCellHorizontalAlign','tableRemove']
  3758.        });
  3759.        //default froala class backwards compatibility limited features
  3760.        new FroalaEditor('.froala-editor', {
  3761.            events: {
  3762.                'table.inserted': function (table) {
  3763.                    $('table').addClass('froala-table');
  3764.                }
  3765.            },
  3766.                                    fontSize: ['10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30', '31', '32', '33', '34', '35', '36', '37', '38', '39', '40', '41', '42', '43', '44'],
  3767.            linkAutoPrefix: '',
  3768.            tableInsertMaxSize: 6,
  3769.            linkInsertButtons: ['linkBack'],
  3770.            htmlAllowedAttrs: ['.*'],
  3771.            htmlAllowedTags: ['a', 'b', 'big', 'blockquote', 'br', 'caption', 'code', 'col', 'colgroup', 'div', 'em', 'embed', 'figure', 'font', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'hr', 'i', 'iframe', 'img', 'li', 'ol', 'p', 'picture', 'pre', 'small', 'span', 'strong', 'sub', 'sup', 'table', 'tbody', 'td', 'tfoot', 'th', 'thead', 'thread', 'tr', 'tt', 'u', 'ul', 'video', 's', 'a'],
  3772.            htmlRemoveTags: ['script', 'style', 'base'],
  3773.            language: 'en',
  3774.            placeholderText: `Type Something`,
  3775.            height: '350',
  3776.            heightMax: '355',
  3777.            iframeStyleFiles: ['/directory/cdn/assets/bootstrap/css/froala_style.min.css','/directory/cdn/assets/bootstrap/css/theme-styles.min.css?v=1.0.01'],
  3778.            imageEditButtons: ['imageAlign', 'imageRemove', 'imageCaption', '|', 'imageLink', 'linkOpen','linkEdit', 'linkRemove', '-', 'imageAlt', 'imageSize', 'imageStyle'],
  3779.            imageStyles: {
  3780.                'square': 'Square',
  3781.                'img-rounded': 'Rounded',
  3782.                'img-circle': 'Circle'
  3783.            },
  3784.                        htmlAllowedEmptyTags: ['textarea', 'a', 'iframe', 'object', 'video', 'style', 'script', '.fa', '.fr-emoticon', '.fr-inner', 'path', 'line', 'hr','i'],
  3785.                        imageMultipleStyles: false,
  3786.            key: '7MD3aD3G3B3B4B3C2xROKLJKYHROLDXDRE1b1YYGRi1Bd1C4F4B3H2G3A15A11A12C5C1==',
  3787.            lineBreakerTags: ['p', 'hr', 'ul', 'ol'],
  3788.            attribution: false,
  3789.            toolbarSticky: false,
  3790.            linkAttributes: {
  3791.                title: 'Title'
  3792.            },
  3793.  
  3794.            paragraphFormat: {
  3795.                N: 'Normal',
  3796.                H1: 'Heading 1',
  3797.                H2: 'Heading 2',
  3798.                H3: 'Heading 3',
  3799.                H4: 'Heading 4'
  3800.            },
  3801.            imagePaste: false,
  3802.            linkStyles: {
  3803.                'btn btn-primary': 'Button Primary',
  3804.                'btn btn-info': 'Button Info',
  3805.                'btn btn-success': 'Button Success',
  3806.                'btn btn-warning': 'Button Warning',
  3807.                'btn btn-danger': 'Button Danger',
  3808.                'btn btn-default': 'Button Default'
  3809.            },
  3810.            linkEditButtons: ['linkOpen','linkStyle', 'linkEdit', 'linkRemove'],
  3811.            imageMove: false,
  3812.            videoMove: false,
  3813.            linkMultipleStyles: false,
  3814.            quickInsertEnabled: false,
  3815.            toolbarButtons: ['undo', 'redo', 'bold', 'italic', 'underline', 'fontSize', 'paragraphFormat', 'lineHeight', 'textColor', 'backgroundColor', 'clearFormatting', '|',  'align', 'formatOL', 'formatUL', 'insertHR', '|' , 'insertLink' ],
  3816.            toolbarButtonsMD: ['undo', 'redo', 'bold', 'italic', 'underline', 'fontSize', 'paragraphFormat', 'lineHeight', 'textColor',  'backgroundColor', 'clearFormatting', '|',  'align', 'formatOL', 'formatUL',  'insertHR', '|' , 'insertLink' ],
  3817.            toolbarButtonsSM: ['undo', 'redo', 'bold', 'italic', 'underline', 'fontSize', 'paragraphFormat', 'lineHeight', 'textColor',  'backgroundColor', 'clearFormatting', '|',  'align', 'formatOL', 'formatUL', 'insertHR', '|' , 'insertLink' ],
  3818.            toolbarButtonsXS: ['undo', 'redo', 'bold', 'italic', 'underline', 'fontSize', 'paragraphFormat', 'lineHeight', 'textColor', 'backgroundColor', 'clearFormatting', '|',  'align', 'formatOL', 'formatUL',  'insertHR', '|' , , 'insertLink' ],
  3819.            tableEditButtons: ['tableColumns','tableRows', 'tableCells', 'tableCellBackground','tableCellVerticalAlign', 'tableCellHorizontalAlign','tableRemove'],
  3820.            imageUpload: false,
  3821.            events: {
  3822.                'drop': function (dropEvent) {
  3823.                    return false;
  3824.                },
  3825.                'contentChanged': function () {
  3826.                    const item = $('.froala-editor');
  3827.                    if ($(item).attr("required")) {
  3828.                        var form_name = $(item).closest("form").attr("id");
  3829.                        var froala_field_name=$(item).attr("name");
  3830.                        $('#'+form_name).formValidation('revalidateField', froala_field_name);
  3831.                    }
  3832.                }
  3833.            }
  3834.        });
  3835.  
  3836.        /// If the froala editor is required, make it validate
  3837.        $(window).on('load', function() {
  3838.            $('textarea[class*="froala"]').each(function(index,item) {
  3839.                if ($(item).attr("required")) {
  3840.                    $(item).attr("style","display:block;width:0px;height:0px;border:0px;margin-top:-2px;visibility:hidden");
  3841.                }
  3842.            });
  3843.        })
  3844.        //froala editor code for the admin blog features, gives the functionality of upload images, browse the /images folder and add videos
  3845.  
  3846.        window['froala-editor-admin'] = new FroalaEditor('.froala-editor-admin', {
  3847.                                    fontSize: ['10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30', '31', '32', '33', '34', '35', '36', '37', '38', '39', '40', '41', '42', '43', '44'],
  3848.            fontFamily: { "Open Sans" : "Open Sans","PT Sans" : "PT Sans",'fontsSeparator2': '----',"Arial" : "Arial","Courier" : "Courier","Georgia" : "Georgia","Times New Roman" : "Times New Roman","Trebuchet MS" : "Trebuchet MS","Verdana" : "Verdana"},
  3849.            fontFamilySelection: true,
  3850.            linkAutoPrefix: '',
  3851.            imageDefaultWidth:0,
  3852.            tableInsertMaxSize: 6,
  3853.            linkInsertButtons: ['linkBack'],
  3854.            htmlAllowedAttrs: ['.*'],
  3855.            htmlAllowedTags: ['a', 'b', 'big', 'blockquote', 'br', 'caption', 'code', 'col', 'colgroup', 'div', 'em', 'embed', 'figure', 'font', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'hr', 'i', 'iframe', 'img', 'li', 'ol', 'p', 'picture', 'pre', 'small', 'span', 'strong', 'sub', 'sup', 'table', 'tbody', 'td', 'tfoot', 'th', 'thead', 'thread', 'tr', 'tt', 'u', 'ul', 'video', 's', 'a'],
  3856.            htmlRemoveTags: ['script', 'style', 'base'],
  3857.            language: 'en',
  3858.            placeholderText: `Type Something`,
  3859.            heightMin: '350',
  3860.            height: '350',
  3861.            attribution: false,
  3862.            iframeStyleFiles: ['/directory/cdn/assets/bootstrap/css/froala_style.min.css','/directory/cdn/assets/bootstrap/css/theme-styles.min.css?v=1.0.01'],
  3863.            imageEditButtons: ['imageReplace', 'imageAlign', 'imageRemove', 'imageCaption', '|', 'imageLink', 'linkOpen','linkEdit', 'linkRemove', '-', 'imageAlt', 'imageSize', 'imageStyle'],
  3864.            imageStyles: {
  3865.                'square': 'Square',
  3866.                'img-rounded': 'Rounded',
  3867.                'img-circle': 'Circle'
  3868.            },
  3869.                        htmlAllowedEmptyTags: ['textarea', 'a', 'iframe', 'object', 'video', 'style', 'script', '.fa', '.fr-emoticon', '.fr-inner', 'path', 'line', 'hr','i'],
  3870.                        imageMultipleStyles: false,
  3871.            key: '7MD3aD3G3B3B4B3C2xROKLJKYHROLDXDRE1b1YYGRi1Bd1C4F4B3H2G3A15A11A12C5C1==',
  3872.            imageUploadParam: 'blog_image',
  3873.            imageUploadURL: '/wapi/widget?widget_name=' + widgetName + '&header_type=json&request_type=GET',
  3874.            imageUploadMethod: 'POST',
  3875.            imageUploadParams: {
  3876.                upload_scope: 'admin'
  3877.            },
  3878.            linkAttributes: {
  3879.                title: 'Title'
  3880.            },
  3881.            linkStyles: {
  3882.                'btn btn-primary': 'Button Primary',
  3883.                'btn btn-info': 'Button Info',
  3884.                'btn btn-success': 'Button Success',
  3885.                'btn btn-warning': 'Button Warning',
  3886.                'btn btn-danger': 'Button Danger',
  3887.                'btn btn-default': 'Button Default'
  3888.            },
  3889.            paragraphFormat: {
  3890.                N: 'Normal',
  3891.                H1: 'Heading 1',
  3892.                H2: 'Heading 2',
  3893.                H3: 'Heading 3',
  3894.                H4: 'Heading 4'
  3895.            },
  3896.            imageMove: false,
  3897.            toolbarSticky: false,
  3898.            videoMove: false,
  3899.            linkMultipleStyles: false,
  3900.            quickInsertEnabled: false,
  3901.            imageManagerPageSize: 20,
  3902.            imageAllowedTypes: ['jpeg', 'jpg', 'png','JPEG','JPG','PNG','webp'],
  3903.            linkEditButtons: ['linkOpen','linkStyle', 'linkEdit', 'adv_styles', 'linkRemove'],
  3904.            videoInsertButtons: ['videoBack', '|', 'videoByURL', 'videoEmbed'],
  3905.            videoEditButtons: ['videoReplace', 'videoRemove', '|', 'videoDisplay', 'videoAlign', 'videoSize'],
  3906.            toolbarButtons:{
  3907.                moreText: {
  3908.                    buttons: [ 'fontFamily', 'bold', 'italic', 'underline','strikeThrough', 'fontSize', 'textColor', 'backgroundColor', 'clearFormatting'],
  3909.                    align: 'left',
  3910.                    buttonsVisible: 9
  3911.                },
  3912.                moreParagraph: {
  3913.                    buttons: ['paragraphFormat', 'lineHeight', 'align', 'outdent', 'indent', 'formatOL', 'formatUL', 'insertTable', 'insertHR'],
  3914.                    align: 'left',
  3915.                    buttonsVisible: 9
  3916.                },
  3917.                moreRich: {
  3918.                    buttons: ['insertLink', 'insertImage', 'insertVideo', 'html'  , 'Pre-Made Elements'],
  3919.                    align: 'left',
  3920.                    buttonsVisible: 5
  3921.                },
  3922.                moreMisc:{
  3923.                    buttons: ['undo', 'redo'],
  3924.                    align: 'right'
  3925.                }
  3926.            },
  3927.            tableEditButtons: ['tableColumns','tableRows', 'tableCells', 'tableCellBackground','insertImage','tableCellVerticalAlign', 'tableCellHorizontalAlign','tableRemove'],
  3928.            imageManagerLoadURL: '/wapi/widget?widget_name=' + widgetName + '&header_type=json&request_type=GET&module_action=browse_images',
  3929.            imageManagerLoadMethod: "GET",
  3930.            imageManagerDeleteURL: false,
  3931.            imageMaxSize: imageMaxSizeSetting,
  3932.            events: {
  3933.                'table.inserted': function (table) {
  3934.                    $('table').addClass('froala-table');
  3935.                },
  3936.                'drop': function (dropEvent) {
  3937.  
  3938.                    return false;
  3939.                },
  3940.                'contentChanged': function () {
  3941.                    const item = $('.froala-editor-admin');
  3942.                    if ($(item).attr("required")) {
  3943.                        var form_name = $(item).closest("form").attr("id");
  3944.                        var froala_field_name=$(item).attr("name");
  3945.                        $('#'+form_name).formValidation('revalidateField', froala_field_name);
  3946.                    }
  3947.                }
  3948.            }
  3949.        }, function  () {
  3950.            let elementName ='froala-editor-admin'
  3951.            window[elementName].events.on('drop', function (dropEvent) {
  3952. // Focus at the current position.
  3953. window[elementName].markers.insertAtPoint(dropEvent.originalEvent);
  3954. var $marker = window[elementName].$el.find('.fr-marker');
  3955. $marker.replaceWith(FroalaEditor.MARKERS);
  3956. window[elementName].selection.restore();
  3957. // Save into undo stack the current position.
  3958. if (!window[elementName].undo.canDo()) window[elementName].undo.saveStep();
  3959. // Insert HTML.
  3960. if(dropEvent.originalEvent.dataTransfer.getData('Text')){
  3961. let randomNumber = Math.floor(Math.random() * 10000);
  3962. switch(dropEvent.originalEvent.dataTransfer.getData('Text')) {
  3963. case 'text-image-right':
  3964. insertHtml = `
  3965. <p><br></p>
  3966. <table class="froala-table" style="width: 100%;">
  3967. <tbody>
  3968. <tr>
  3969. <td style="width: 50%;">
  3970. <h2><strong>Section Title</strong></h2>
  3971. <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam odio justo, ultricies a facilisis at, dictum at augue. Morbi sem nisl, tempus eu leo ac, eleifend dignissim mi. Nulla at neque sapien. Nullam quis vestibulum dui. Nulla at neque sapien. Nullam quis vestibulum dui.<br><br>
  3972. </p>
  3973. <p><a class="btn btn-lg btn-primary" href="#" rel="noopener noreferrer">Button Link</a></p>
  3974. </td>
  3975. <td style="width: 50%;">
  3976. <img src="/images/image-placeholder.png" class="fr-dib" width="615" height="344">
  3977. </td>
  3978. </tr>
  3979. </tbody>
  3980. </table>
  3981. <p><br></p>
  3982. `;
  3983. window[elementName].html.insert(insertHtml);
  3984. break;
  3985. case 'text-image-left':
  3986. insertHtml = `
  3987. <p><br></p>
  3988. <table class="froala-table" style="width: 100%;">
  3989. <tbody>
  3990. <tr>
  3991. <td style="width: 50%;">
  3992. <img src="/images/image-placeholder.png" class="fr-dib" width="615" height="344">
  3993. </td>
  3994. <td style="width: 50%;">
  3995. <h2><strong>Section Title</strong></h2>
  3996. <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam odio justo, ultricies a facilisis at, dictum at augue. Morbi sem nisl, tempus eu leo ac, eleifend dignissim mi. Nulla at neque sapien. Nullam quis vestibulum dui. Nulla at neque sapien. Nullam quis vestibulum dui.<br><br>
  3997. </p>
  3998. <p><a class="btn btn-lg btn-primary" href="#" rel="noopener noreferrer">Button Link</a></p>
  3999. </td>
  4000. </tr>
  4001. </tbody>
  4002. </table>
  4003. <p><br></p>
  4004. `;
  4005. window[elementName].html.insert(insertHtml);
  4006. break;
  4007. case 'features-3-columns':
  4008. insertHtml = `
  4009. <p><br></p>
  4010. <table class="froala-table" style="width: 100%;">
  4011. <tbody>
  4012. <tr>
  4013. <td style="width: 33.3333%; text-align: center; vertical-align: top;">
  4014. <p><img src="/images/image-placeholder.png" class="fr-dib" width="400" height="223"></p>
  4015. <h3><strong>Section Title</strong></h3>
  4016. <p>Lorem ipsum dolor sit amet, consectetur dictum at adipiscing elit. Etiam odio justo, ultricies a facilisis at, dictum at augue ultricies.</p>
  4017. <p><a class="btn btn-lg btn-primary" href="#" rel="noopener noreferrer">Button Link</a></p>
  4018. </td>
  4019. <td style="width: 33.3333%; text-align: center; vertical-align: top;">
  4020. <p><img src="/images/image-placeholder.png" class="fr-dib" width="400" height="223"></p>
  4021. <h3><strong>Section Title</strong></h3>
  4022. <p>Lorem ipsum dolor sit amet, consectetur dictum at adipiscing elit. Etiam odio justo, ultricies a facilisis at, dictum at augue ultricies.</p>
  4023. <p><a class="btn btn-lg btn-primary" href="#" rel="noopener noreferrer">Button Link</a></p>
  4024. </td>
  4025. <td style="width: 33.3333%; text-align: center; vertical-align: top;">
  4026. <p><img src="/images/image-placeholder.png" class="fr-dib" width="400" height="223"></p>
  4027. <h3><strong>Section Title</strong></h3>
  4028. <p>Lorem ipsum dolor sit amet, consectetur dictum at adipiscing elit. Etiam odio justo, ultricies a facilisis at, dictum at augue ultricies.</p>
  4029. <p><a class="btn btn-lg btn-primary" href="#" rel="noopener noreferrer">Button Link</a></p>
  4030. </td>
  4031. </tr>
  4032. </tbody>
  4033. </table>
  4034. <p><br></p>
  4035. `;
  4036. window[elementName].html.insert(insertHtml);
  4037. break;
  4038. case 'features-4-columns':
  4039. insertHtml = `
  4040. <p><br></p>
  4041. <table class="froala-table" style="width: 100%;">
  4042. <tbody>
  4043. <tr>
  4044. <td style="width: 25%; text-align: center; vertical-align: top;">
  4045. <p><img src="/images/image-placeholder.png" class="fr-dib" width="292" height="163"></p>
  4046. <h4><strong>Section Title</strong></h4>
  4047. <p>Lorem ipsum dolor sit amet, consectetur adipiscing ultricies elit. Etiam odio justo, ultricies.</p>
  4048. <p><a class="btn btn-primary" href="#" rel="noopener noreferrer">Button Link</a></p>
  4049. </td>
  4050. <td style="width: 25%; text-align: center; vertical-align: top;">
  4051. <p><img src="/images/image-placeholder.png" class="fr-dib" width="292" height="163"></p>
  4052. <h4><strong>Section Title</strong></h4>
  4053. <p>Lorem ipsum dolor sit amet, consectetur adipiscing ultricies elit. Etiam odio justo, ultricies.</p>
  4054. <p><a class="btn btn-primary" href="#" rel="noopener noreferrer">Button Link</a></p>
  4055. </td>
  4056. <td style="width: 25%; text-align: center; vertical-align: top;">
  4057. <p><img src="/images/image-placeholder.png" class="fr-dib" width="292" height="163"></p>
  4058. <h4><strong>Section Title</strong></h4>
  4059. <p>Lorem ipsum dolor sit amet, consectetur adipiscing ultricies elit. Etiam odio justo, ultricies.</p>
  4060. <p><a class="btn btn-primary" href="#" rel="noopener noreferrer">Button Link</a></p>
  4061. </td>
  4062. <td style="width: 25%; text-align: center; vertical-align: top;">
  4063. <p><img src="/images/image-placeholder.png" class="fr-dib" width="292" height="163"></p>
  4064. <h4><strong>Section Title</strong></h4>
  4065. <p>Lorem ipsum dolor sit amet, consectetur adipiscing ultricies elit. Etiam odio justo, ultricies.</p>
  4066. <p><a class="btn btn-primary" href="#" rel="noopener noreferrer">Button Link</a></p>
  4067. </td>
  4068. </tr>
  4069. </tbody>
  4070. </table>
  4071. <p><br></p>
  4072. `;
  4073. window[elementName].html.insert(insertHtml);
  4074. break;
  4075. case 'pricing-plan-insert':
  4076. insertHtml = `
  4077. <p><br></p>
  4078. <table class="froala-table" style="width: 100%;">
  4079. <tbody>
  4080. <tr>
  4081. <td class="fpad-lg" style="width: 30%; vertical-align: top; text-align: center; background: rgb(235, 239, 243) none repeat scroll 0% 0%;">
  4082. <h2><span style="color: rgb(51, 51, 51);font-size: 36px;"><strong>Plan Name<br></strong></span></h2>
  4083. <p><span style="color: rgb(51, 51, 51);font-size: 24px;">$10/month</span></p><a class="btn btn-lg btn-primary" href="/checkout/1" rel="noopener noreferrer" target="_blank"><strong>SELECT PLAN</strong></a></td>
  4084. <td style="width: 70%; vertical-align: middle;">
  4085. <p style="line-height: 1.5;"><span style="font-size: 18px;"><span style="line-height: 1.5;">This is text about why you should join this membership plan.</span>
  4086. <br>There are many benefits and it&#39;s easy to become a member!</span></p>
  4087. <table class="froala-table" style="width: 100%;">
  4088. <tbody>
  4089. <tr>
  4090. <td class="nopad" style="width: 50%; vertical-align: top;">
  4091. <ul class="nomargin">
  4092. <li style="line-height: 2;"><strong><span style="font-size: 18px;">Feature or Benefit</span></strong></li>
  4093. <li style="line-height: 2;"><strong><span style="font-size: 18px;">Feature or Benefit</span></strong></li>
  4094. <li style="line-height: 2;"><strong><span style="font-size: 18px;">Feature or Benefit</span></strong></li>
  4095. </ul>
  4096. </td>
  4097. <td class="nopad" style="width: 50%; vertical-align: top;">
  4098. <ul class="nomargin">
  4099. <li style="line-height: 2;"><strong><span style="font-size: 18px;">Feature or Benefit</span></strong></li>
  4100. <li style="line-height: 2;"><strong><span style="font-size: 18px;">Feature or Benefit</span></strong></li>
  4101. <li style="line-height: 2;"><strong><span style="font-size: 18px;">Feature or Benefit</span></strong></li>
  4102. </ul>
  4103. </td>
  4104. </tr>
  4105. </tbody>
  4106. </table>
  4107. </td>
  4108. </tr>
  4109. </tbody>
  4110. </table>
  4111. <p><br></p>
  4112. `;
  4113. window[elementName].html.insert(insertHtml);
  4114. break;
  4115. case 'faq':
  4116. insertHtml = `
  4117. <p><br></p>
  4118. <h2 style="text-align: center;"><strong>Frequently Asked Questions</strong></h2>
  4119. <p><br></p>
  4120. <table class="froala-table" style="width: 100%;">
  4121. <tbody>
  4122. <tr>
  4123. <td style="width: 50%; vertical-align: top;">
  4124. <h3><strong>Frequently Asked Question</strong></h3>
  4125. <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam odio justo, ultricies a facilisis at, dictum at augue. Lorem ipsum dolor sit amet, consectetur adipiscing.</p>
  4126. <p><br></p>
  4127. </td>
  4128. <td style="width: 50%; vertical-align: top;">
  4129. <h3><strong>Frequently Asked Question</strong></h3>
  4130. <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam odio justo, ultricies a facilisis at, dictum at augue. Lorem ipsum dolor sit amet, consectetur adipiscing.</p>
  4131. <p><br></p>
  4132. </td>
  4133. </tr>
  4134. <tr>
  4135. <td style="width: 50%; vertical-align: top;">
  4136. <h3><strong>Frequently Asked Question</strong></h3>
  4137. <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam odio justo, ultricies a facilisis at, dictum at augue. Lorem ipsum dolor sit amet, consectetur adipiscing.</p>
  4138. <p><br></p>
  4139. </td>
  4140. <td style="width: 50%; vertical-align: top;">
  4141. <h3><strong>Frequently Asked Question</strong></h3>
  4142. <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam odio justo, ultricies a facilisis at, dictum at augue. Lorem ipsum dolor sit amet, consectetur adipiscing.</p>
  4143. <p><br></p>
  4144. </td>
  4145. </tr>
  4146. <tr>
  4147. <td style="width: 50%; vertical-align: top;">
  4148. <h3><strong>Frequently Asked Question</strong></h3>
  4149. <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam odio justo, ultricies a facilisis at, dictum at augue. Lorem ipsum dolor sit amet, consectetur adipiscing.</p>
  4150. <p><br></p>
  4151. </td>
  4152. <td style="width: 50%; vertical-align: top;">
  4153. <h3><strong>Frequently Asked Question</strong></h3>
  4154. <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam odio justo, ultricies a facilisis at, dictum at augue. Lorem ipsum dolor sit amet, consectetur adipiscing.</p>
  4155. <p><br></p>
  4156. </td>
  4157. </tr>
  4158. <tr>
  4159. <td style="width: 50%; vertical-align: top;">
  4160. <h3><strong>Frequently Asked Question</strong></h3>
  4161. <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam odio justo, ultricies a facilisis at, dictum at augue. Lorem ipsum dolor sit amet, consectetur adipiscing.</p>
  4162. </td>
  4163. <td style="width: 50%; vertical-align: top;">
  4164. <h3><strong>Frequently Asked Question</strong></h3>
  4165. <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam odio justo, ultricies a facilisis at, dictum at augue. Lorem ipsum dolor sit amet, consectetur adipiscing.</p>
  4166. </td>
  4167. </tr>
  4168. </tbody>
  4169. </table>
  4170. <p><br></p>
  4171. `;
  4172. window[elementName].html.insert(insertHtml);
  4173. break;
  4174. case 'image-insert':
  4175. insertHtml = `
  4176. <img src="/images/image-placeholder.png" class="fr-dib insert`+randomNumber+`" style="width:320px;">
  4177. `;
  4178. window[elementName].html.insert(insertHtml);
  4179. $('.insert'+randomNumber).click();
  4180. break;
  4181. case 'video-insert':
  4182. insertHtml = `
  4183. <p><span class="fr-video fr-deletable fr-fvc fr-dvi fr-draggable insert`+randomNumber+`" contenteditable="false" draggable="true"><iframe src="https://www.youtube.com/embed/8tPnX7OPo0Q?&wmode=opaque" allowfullscreen="" class="fr-draggable" width="320" height="180" frameborder="0"></iframe></span></p>
  4184. `;
  4185. window[elementName].html.insert(insertHtml);
  4186. $('.insert'+randomNumber).click();
  4187. break;
  4188. case 'button-link-insert':
  4189. insertHtml = `
  4190. <a class="btn btn-lg btn-primary insert`+randomNumber+`" href="#" rel="noopener noreferrer">Button Link</a>
  4191. `;
  4192. window[elementName].link.insert('#', 'Button Link', {'target': '_blank', 'class': 'btn btn-primary btn-lg'});
  4193. break;
  4194. case 'section-title-insert':
  4195. insertHtml = `
  4196. <h2 style="text-align: center;"><strong>Section Title</strong></h2>
  4197. `;
  4198. window[elementName].html.insert(insertHtml);
  4199. break;
  4200. case 'text-block-insert':
  4201. insertHtml = `
  4202. <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam odio justo, ultricies a facilisis at, dictum at augue. Morbi sem nisl, tempus eu leo ac, eleifend dignissim mi. Nulla at neque sapien. Nullam quis vestibulum dui. Nulla at neque sapien. Nullam quis vestibulum dui.<br><br>
  4203. </p>
  4204. `;
  4205. window[elementName].html.insert(insertHtml);
  4206. break;
  4207. case 'form-insert':
  4208. insertHtml = `
  4209. <p><br></p>
  4210. <table class="froala-table" style="width: 100%;">
  4211. <tbody>
  4212. <tr>
  4213. <td class="fpad-lg" style="width: 100%;background-color: rgb(239, 239, 239);">
  4214. <h2><strong>Contact Form</strong></h2>
  4215. <p>&lbrack;form=contact_form&rbrack;</p>
  4216. </td>
  4217. </tr>
  4218. </tbody>
  4219. </table>
  4220. <p><br></p>
  4221. `;
  4222. window[elementName].html.insert(insertHtml);
  4223. break;
  4224. case 'divider-insert':
  4225. insertHtml = `
  4226. <p style="height:0;margin:0;"><br></p>
  4227. <hr>
  4228. <p style="height:0;margin:0;"><br></p>
  4229. `;
  4230. window[elementName].html.insert(insertHtml);
  4231. break;
  4232. case 'line-break-insert':
  4233. insertHtml = `
  4234. <p style="margin:15px 0;width:100%;display:block;"><br></p>
  4235. `;
  4236. window[elementName].html.insert(insertHtml);
  4237. break;
  4238. case 'cta-bonus-block-1':
  4239. insertHtml = `
  4240. <p><br></p>
  4241. <table class="froala-table" style="width: 100%;">
  4242. <tbody>
  4243. <tr>
  4244. <td style="width: 70%; vertical-align:top;">
  4245. <h2><strong><span style="font-size: 44px;">Write a Powerful Title to Share a Message with Your Audience</span></strong></h2>
  4246. <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam odio justo, ultricies a facilisis at, dictum at augue. Morbi sem nisl, tempus eu leo ac, eleifend dignissim mi. Nulla at neque sapien. Nullam quis vestibulum dui.</p>
  4247. <p><br></p>
  4248. <table class="froala-table" style="width: 100%;">
  4249. <tbody>
  4250. <tr>
  4251. <td class="nopad" style="width: 48%;">
  4252. <p>
  4253. <a class="btn-lg btn-block btn btn-primary" href="#" rel="noopener noreferrer" target="_blank">
  4254. Button Link 1
  4255. </a>
  4256. </p>
  4257. </td>
  4258. <td class="hidden-xs" style="width: 4%;">
  4259. <br>
  4260. </td>
  4261. <td class="nopad" style="width: 48%;">
  4262. <p>
  4263. <a class="btn-lg btn-block btn btn-default" href="#" rel="noopener noreferrer" target="_blank">
  4264. Button Link 2
  4265. </a>
  4266. </p>
  4267. </td>
  4268. </tr>
  4269. </tbody>
  4270. </table>
  4271. <p><br></p>
  4272. </td>
  4273. <td style="width: 30%; vertical-align: top;"><img src="/images/graphic-placeholder-3.png" class="fr-dib" width="356" height="252"></td>
  4274. </tr>
  4275. </tbody>
  4276. </table>
  4277. <p><br></p>
  4278. `;
  4279. window[elementName].html.insert(insertHtml);
  4280. break;
  4281. case 'cta-bonus-block-2':
  4282. insertHtml = `
  4283. <p><br></p>
  4284. <table class="froala-table" style="width: 100%;">
  4285. <tbody>
  4286. <tr>
  4287. <td style="width: 30%; vertical-align: top;"><img src="/images/graphic-placeholder-3.png" class="fr-dib" width="356" height="252"></td>
  4288. <td style="width: 70%; vertical-align:top;">
  4289. <h2><strong><span style="font-size: 44px;">Write a Powerful Title to Share a Message with Your Audience</span></strong></h2>
  4290. <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam odio justo, ultricies a facilisis at, dictum at augue. Morbi sem nisl, tempus eu leo ac, eleifend dignissim mi. Nulla at neque sapien. Nullam quis vestibulum dui.</p>
  4291. <p><br></p>
  4292. <table class="froala-table" style="width: 100%;">
  4293. <tbody>
  4294. <tr>
  4295. <td class="nopad" style="width: 48%;">
  4296. <p>
  4297. <a class="btn-lg btn-block btn btn-primary" href="#" rel="noopener noreferrer" target="_blank">
  4298. Button Link 1
  4299. </a>
  4300. </p>
  4301. </td>
  4302. <td class="hidden-xs" style="width: 4%;">
  4303. <br>
  4304. </td>
  4305. <td class="nopad" style="width: 48%;">
  4306. <p>
  4307. <a class="btn-lg btn-block btn btn-default" href="#" rel="noopener noreferrer" target="_blank">
  4308. Button Link 2
  4309. </a>
  4310. </p>
  4311. </td>
  4312. </tr>
  4313. </tbody>
  4314. </table>
  4315. <p><br></p>
  4316. </td>
  4317. </tr>
  4318. </tbody>
  4319. </table>
  4320. <p><br></p>
  4321. `;
  4322. window[elementName].html.insert(insertHtml);
  4323. break;
  4324. case 'cta-bonus-block-3':
  4325. insertHtml = `
  4326. <p><br></p>
  4327. <table class="froala-table" style="width: 100%;">
  4328. <tbody>
  4329. <tr>
  4330. <td class="hidden-xs" style="width: 20%;">
  4331. <br>
  4332. </td>
  4333. <td style="width: 60%; text-align: center;">
  4334. <p><br></p>
  4335. <h2><span style="font-size: 36px;text-align: center;"><strong>Write a Powerful Title to Share a Message with Your Audience</strong></span></h2>
  4336. <p style="text-align: center;"><br>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam odio justo, ultricies a facilisis at, dictum at augue. Morbi sem nisl, tempus eu leo ac, eleifend dignissim mi. Nulla at neque sapien. Nullam quis vestibulum dui. Nulla at neque sapien. Nullam quis vestibulum dui.<br></p>
  4337. <p><br></p>
  4338. <p style="text-align: center;">
  4339. <a class="btn-lg btn btn-primary" href="#" rel="noopener noreferrer">Button Link</a>
  4340. </p>
  4341. <p><br></p>
  4342. </td>
  4343. <td class="hidden-xs" style="width: 20%;">
  4344. <br>
  4345. </td>
  4346. </tr>
  4347. </tbody>
  4348. </table>
  4349. <p><br></p>
  4350. `;
  4351. window[elementName].html.insert(insertHtml);
  4352. break;
  4353. case 'cta-bonus-block-4':
  4354. insertHtml = `
  4355. <p><br></p>
  4356. <table class="froala-table" style="width: 100%;">
  4357. <tbody>
  4358. <tr>
  4359. <td class="hidden-xs" style="width: 20%;">
  4360. <br>
  4361. </td>
  4362. <td style="width: 60%; text-align: center;">
  4363. <p><br></p>
  4364. <p style="text-align: center;">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam odio justo, ultricies a facilisis at, dictum at augue. Morbi sem nisl, tempus eu leo ac, eleifend dignissim mi. Nulla at neque sapien. Nullam quis vestibulum dui. Nulla at neque sapien. Nullam quis vestibulum dui.<br></p>
  4365. <p><br></p>
  4366. <p style="text-align: center;">
  4367. <a class="btn-lg btn btn-primary" href="#" rel="noopener noreferrer">Button Link</a>
  4368. </p>
  4369. <p><br></p>
  4370. </td>
  4371. <td class="hidden-xs" style="width: 20%;">
  4372. <br>
  4373. </td>
  4374. </tr>
  4375. </tbody>
  4376. </table>
  4377. <p><br></p>
  4378. `;
  4379. window[elementName].html.insert(insertHtml);
  4380. break;
  4381. case 'cta-bonus-block-5':
  4382. insertHtml = `
  4383. <p><br></p>
  4384. <table class="froala-table" style="width: 100%;">
  4385. <tbody>
  4386. <tr>
  4387. <td class="hidden-xs" style="width: 20%;">
  4388. <br>
  4389. </td>
  4390. <td style="width: 60%; text-align:center;">
  4391. <p><br></p>
  4392. <h2><span style="font-size: 36px;text-align: center;"><strong>Write a Powerful Title to Share a Message with Your Audience</strong></span></h2>
  4393. <p><br></p>
  4394. <p style="text-align: center;">
  4395. <a class="btn-lg btn btn-primary" href="#" rel="noopener noreferrer">Button Link</a>
  4396. </p>
  4397. <p><br></p>
  4398. </td>
  4399. <td class="hidden-xs" style="width: 20%;">
  4400. <br>
  4401. </td>
  4402. </tr>
  4403. </tbody>
  4404. </table>
  4405. <p><br></p>
  4406. `;
  4407. window[elementName].html.insert(insertHtml);
  4408. break;
  4409. case 'cta-bonus-block-6':
  4410. insertHtml = `
  4411. <p><br></p>
  4412. <table class="froala-table" style="width: 100%;">
  4413. <tbody>
  4414. <tr>
  4415. <td style="width:70%;">
  4416. <h2 style="text-align: right;"><span style="font-size: 36px;"><strong>Make a Splash with a Catchy Title</strong></span></h2>
  4417. </td>
  4418. <td style="width: 30%;">
  4419. <p><br></p>
  4420. <a class="btn-lg btn-block btn btn-primary" href="#" rel="noopener noreferrer">Button Link</a>
  4421. <p><br></p>
  4422. </td>
  4423. </tr>
  4424. </tbody>
  4425. </table>
  4426. <p><br></p>
  4427. `;
  4428. window[elementName].html.insert(insertHtml);
  4429. break;
  4430. case 'cta-bonus-block-7':
  4431. insertHtml = `
  4432. <p><br></p>
  4433. <table class="froala-table" style="width: 100%;">
  4434. <tbody>
  4435. <tr>
  4436. <td style="width: 30%;">
  4437. <p><br></p>
  4438. <a class="btn-lg btn-block btn btn-primary" href="#" rel="noopener noreferrer">Button Link</a>
  4439. <p><br></p>
  4440. </td>
  4441. <td style="width:70%;">
  4442. <h2 style="text-align: left;"><span style="font-size: 36px;"><strong>Make a Splash with a Catchy Title</strong></span></h2>
  4443. </td>
  4444. </tr>
  4445. </tbody>
  4446. </table>
  4447. <p><br></p>
  4448. `;
  4449. window[elementName].html.insert(insertHtml);
  4450. break;
  4451. case 'cta-bonus-block-8':
  4452. insertHtml = `
  4453. <p><br></p>
  4454. <h2 style="text-align: center;"><strong><span style="font-size: 36px;">The Choice Is Yours<br>Select An Option Below<br></span></strong></h2>
  4455. <p><br></p>
  4456. <table class="froala-table" style="width: 100%;">
  4457. <tbody>
  4458. <tr>
  4459. <td class="hidden-xs" style="width: 10%;">
  4460. <br>
  4461. </td>
  4462. <td style="width: 35%; text-align: center; vertical-align: top;">
  4463. <p style="text-align: center;"><img src="/images/icon-placeholder.png" class="fr-dib" style="width: 60px; height: 60px;" width="60" height="60"></p>
  4464. <h2 style="text-align: center;"><strong>Section Title</strong></h2>
  4465. <p style="text-align: center;">Lorem ipsum dolor sit amet, consectetur dictum at adipiscing elit. Etiam odio justo, ultricies a facilisis at, dictum at augue ultricies.<br><br></p>
  4466. <p style="text-align: center;"><a class="btn btn-primary btn-lg" href="#" rel="noopener noreferrer">Button Link</a></p>
  4467. <p><br></p>
  4468. </td>
  4469. <td style="width: 10%;">
  4470. <br>
  4471. </td>
  4472. <td style="width: 35%; text-align: center; vertical-align: top;">
  4473. <p style="text-align: center;"><img src="/images/icon-placeholder.png" class="fr-dib" style="width: 60px; height: 60px;" width="60" height="60"></p>
  4474. <h2 style="text-align: center;"><strong>Section Title</strong></h2>
  4475. <p style="text-align: center;">Lorem ipsum dolor sit amet, consectetur dictum at adipiscing elit. Etiam odio justo, ultricies a facilisis at, dictum at augue ultricies.<br><br></p>
  4476. <p style="text-align: center;"><a class="btn btn-primary btn-lg" href="#" rel="noopener noreferrer">Button Link</a></p>
  4477. <p><br></p>
  4478. </td>
  4479. <td class="hidden-xs" style="width: 10%;">
  4480. <br>
  4481. </td>
  4482. </tr>
  4483. </tbody>
  4484. </table>
  4485. <p><br></p>
  4486. `;
  4487. window[elementName].html.insert(insertHtml);
  4488. break;
  4489. case 'feature-bonus-block-1':
  4490. insertHtml = `
  4491. <p><br></p>
  4492. <h2 style="text-align: center;"><strong><span style="font-size: 36px;">List Your Awesome Features</span></strong></h2>
  4493. <p><br></p>
  4494. <table class="froala-table" style="width: 100%;">
  4495. <tbody>
  4496. <tr>
  4497. <td style="width: 25%;vertical-align: top;">
  4498. <h4 style="text-align: left;"><strong>Section Title</strong></h4>
  4499. <p style="text-align: left;">Lorem ipsum dolor sit amet, consectetur adipiscing ultricies elit. Etiam odio justo, ultricies.</p>
  4500. </td>
  4501. <td style="width: 25%;vertical-align: top;">
  4502. <h4 style="text-align: left;"><strong>Section Title</strong></h4>
  4503. <p style="text-align: left;">Lorem ipsum dolor sit amet, consectetur adipiscing ultricies elit. Etiam odio justo, ultricies.</p>
  4504. </td>
  4505. <td style="width: 25%;vertical-align: top;">
  4506. <h4 style="text-align: left;"><strong>Section Title</strong></h4>
  4507. <p style="text-align: left;">Lorem ipsum dolor sit amet, consectetur adipiscing ultricies elit. Etiam odio justo, ultricies.</p>
  4508. </td>
  4509. <td style="width: 25%;vertical-align: top;">
  4510. <h4 style="text-align: left;"><strong>Section Title</strong></h4>
  4511. <p style="text-align: left;">Lorem ipsum dolor sit amet, consectetur adipiscing ultricies elit. Etiam odio justo, ultricies.</p>
  4512. </td>
  4513. </tr>
  4514. <tr>
  4515. <td style="width: 25%;vertical-align: top;">
  4516. <h4 style="text-align: left;"><strong>Section Title</strong></h4>
  4517. <p style="text-align: left;">Lorem ipsum dolor sit amet, consectetur adipiscing ultricies elit. Etiam odio justo, ultricies.</p>
  4518. </td>
  4519. <td style="width: 25%;vertical-align: top;">
  4520. <h4 style="text-align: left;"><strong>Section Title</strong></h4>
  4521. <p style="text-align: left;">Lorem ipsum dolor sit amet, consectetur adipiscing ultricies elit. Etiam odio justo, ultricies.</p>
  4522. </td>
  4523. <td style="width: 25%;vertical-align: top;">
  4524. <h4 style="text-align: left;"><strong>Section Title</strong></h4>
  4525. <p style="text-align: left;">Lorem ipsum dolor sit amet, consectetur adipiscing ultricies elit. Etiam odio justo, ultricies.</p>
  4526. </td>
  4527. <td style="width: 25%;vertical-align: top;">
  4528. <h4 style="text-align: left;"><strong>Section Title</strong></h4>
  4529. <p style="text-align: left;">Lorem ipsum dolor sit amet, consectetur adipiscing ultricies elit. Etiam odio justo, ultricies.</p>
  4530. </td>
  4531. </tr>
  4532. </tbody>
  4533. </table>
  4534. <p><br></p>
  4535. `;
  4536. window[elementName].html.insert(insertHtml);
  4537. break;
  4538. case 'feature-bonus-block-2':
  4539. insertHtml = `
  4540. <p><br></p>
  4541. <h2 style="text-align: center;"><strong><span style="font-size: 36px;">List Your Awesome Features</span></strong></h2>
  4542. <p><br></p>
  4543. <table class="froala-table" style="width: 100%;">
  4544. <tbody>
  4545. <tr>
  4546. <td style="width: 25%; text-align: center; vertical-align: top;"><img src="/images/icon-holder.png" style="width: 40px; height: 40px;" class="fr-dib" width="40" height="40">
  4547. <h4 style="text-align: center;"><strong>Section Title</strong></h4>
  4548. <p style="text-align: center;">Lorem ipsum dolor sit amet, consectetur adipiscing ultricies elit.</p>
  4549. </td>
  4550. <td style="width: 25%; text-align: center; vertical-align: top;"><img src="/images/icon-holder.png" style="width: 40px; height: 40px;" class="fr-dib" width="40" height="40">
  4551. <h4 style="text-align: center;"><strong>Section Title</strong></h4>
  4552. <p style="text-align: center;">Lorem ipsum dolor sit amet, consectetur adipiscing ultricies elit.</p>
  4553. </td>
  4554. <td style="width: 25%; text-align: center; vertical-align: top;"><img src="/images/icon-holder.png" style="width: 40px; height: 40px;" class="fr-dib" width="40" height="40">
  4555. <h4 style="text-align: center;"><strong>Section Title</strong></h4>
  4556. <p style="text-align: center;">Lorem ipsum dolor sit amet, consectetur adipiscing ultricies elit.</p>
  4557. </td>
  4558. <td style="width: 25%; text-align: center; vertical-align: top;"><img src="/images/icon-holder.png" style="width: 40px; height: 40px;" class="fr-dib" width="40" height="40">
  4559. <h4 style="text-align: center;"><strong>Section Title</strong></h4>
  4560. <p style="text-align: center;">Lorem ipsum dolor sit amet, consectetur adipiscing ultricies elit.</p>
  4561. </td>
  4562. </tr>
  4563. <tr>
  4564. <td style="width: 25%; text-align: center; vertical-align: top;"><img src="/images/icon-holder.png" style="width: 40px; height: 40px;" class="fr-dib" width="40" height="40">
  4565. <h4 style="text-align: center;"><strong>Section Title</strong></h4>
  4566. <p style="text-align: center;">Lorem ipsum dolor sit amet, consectetur adipiscing ultricies elit.</p>
  4567. </td>
  4568. <td style="width: 25%; text-align: center; vertical-align: top;"><img src="/images/icon-holder.png" style="width: 40px; height: 40px;" class="fr-dib" width="40" height="40">
  4569. <h4 style="text-align: center;"><strong>Section Title</strong></h4>
  4570. <p style="text-align: center;">Lorem ipsum dolor sit amet, consectetur adipiscing ultricies elit.</p>
  4571. </td>
  4572. <td style="width: 25%; text-align: center; vertical-align: top;"><img src="/images/icon-holder.png" style="width: 40px; height: 40px;" class="fr-dib" width="40" height="40">
  4573. <h4 style="text-align: center;"><strong>Section Title</strong></h4>
  4574. <p style="text-align: center;">Lorem ipsum dolor sit amet, consectetur adipiscing ultricies elit.</p>
  4575. </td>
  4576. <td style="width: 25%; text-align: center; vertical-align: top;"><img src="/images/icon-holder.png" style="width: 40px; height: 40px;" class="fr-dib" width="40" height="40">
  4577. <h4 style="text-align: center;"><strong>Section Title</strong></h4>
  4578. <p style="text-align: center;">Lorem ipsum dolor sit amet, consectetur adipiscing ultricies elit.</p>
  4579. </td>
  4580. </tr>
  4581. </tbody>
  4582. </table>
  4583. <p><br></p>
  4584. `;
  4585. window[elementName].html.insert(insertHtml);
  4586. break;
  4587. case 'feature-bonus-block-3':
  4588. insertHtml = `
  4589. <p><br></p>
  4590. <h2 style="text-align: center;"><strong><span style="font-size: 36px;">List Your Awesome Features</span></strong></h2>
  4591. <p><br></p>
  4592. <table class="froala-table" style="width: 100%;">
  4593. <tbody>
  4594. <tr>
  4595. <td style="width: 33.3333%;vertical-align: top;">
  4596. <h4 style="text-align: left;"><strong>Section Title</strong></h4>
  4597. <p style="text-align: left;">Lorem ipsum dolor sit amet, consectetur adipiscing ultricies elit. Etiam odio justo, ultricies.</p>
  4598. </td>
  4599. <td style="width: 33.3333%;vertical-align: top;">
  4600. <h4 style="text-align: left;"><strong>Section Title</strong></h4>
  4601. <p style="text-align: left;">Lorem ipsum dolor sit amet, consectetur adipiscing ultricies elit. Etiam odio justo, ultricies.</p>
  4602. </td>
  4603. <td style="width: 33.3333%;vertical-align: top;">
  4604. <h4 style="text-align: left;"><strong>Section Title</strong></h4>
  4605. <p style="text-align: left;">Lorem ipsum dolor sit amet, consectetur adipiscing ultricies elit. Etiam odio justo, ultricies.</p>
  4606. </td>
  4607. </tr>
  4608. <tr>
  4609. <td style="width: 33.3333%;vertical-align: top;">
  4610. <h4 style="text-align: left;"><strong>Section Title</strong></h4>
  4611. <p style="text-align: left;">Lorem ipsum dolor sit amet, consectetur adipiscing ultricies elit. Etiam odio justo, ultricies.</p>
  4612. </td>
  4613. <td style="width: 33.3333%;vertical-align: top;">
  4614. <h4 style="text-align: left;"><strong>Section Title</strong></h4>
  4615. <p style="text-align: left;">Lorem ipsum dolor sit amet, consectetur adipiscing ultricies elit. Etiam odio justo, ultricies.</p>
  4616. </td>
  4617. <td style="width: 33.3333%;vertical-align: top;">
  4618. <h4 style="text-align: left;"><strong>Section Title</strong></h4>
  4619. <p style="text-align: left;">Lorem ipsum dolor sit amet, consectetur adipiscing ultricies elit. Etiam odio justo, ultricies.</p>
  4620. </td>
  4621. </tr>
  4622. </tbody>
  4623. </table>
  4624. <p><br></p>
  4625. `;
  4626. window[elementName].html.insert(insertHtml);
  4627. break;
  4628. case 'feature-bonus-block-4':
  4629. insertHtml = `
  4630. <p><br></p>
  4631. <h2 style="text-align: center;"><strong><span style="font-size: 36px;">List Your Awesome Features</span></strong></h2>
  4632. <p><br></p>
  4633. <table class="froala-table" style="width: 100%;">
  4634. <tbody>
  4635. <tr>
  4636. <td style="width: 33.3333%; text-align: center; vertical-align: top;"><img src="/images/icon-holder.png" style="width: 40px; height: 40px;" class="fr-dib" width="40" height="40">
  4637. <h4 style="text-align: center;"><strong>Section Title</strong></h4>
  4638. <p style="text-align: center;">Lorem ipsum dolor sit amet, consectetur adipiscing ultricies elit.</p>
  4639. </td>
  4640. <td style="width: 33.3333%; text-align: center; vertical-align: top;"><img src="/images/icon-holder.png" style="width: 40px; height: 40px;" class="fr-dib" width="40" height="40">
  4641. <h4 style="text-align: center;"><strong>Section Title</strong></h4>
  4642. <p style="text-align: center;">Lorem ipsum dolor sit amet, consectetur adipiscing ultricies elit.</p>
  4643. </td>
  4644. <td style="width: 33.3333%; text-align: center; vertical-align: top;"><img src="/images/icon-holder.png" style="width: 40px; height: 40px;" class="fr-dib" width="40" height="40">
  4645. <h4 style="text-align: center;"><strong>Section Title</strong></h4>
  4646. <p style="text-align: center;">Lorem ipsum dolor sit amet, consectetur adipiscing ultricies elit.</p>
  4647. </td>
  4648. </tr>
  4649. <tr>
  4650. <td style="width: 33.3333%; text-align: center; vertical-align: top;"><img src="/images/icon-holder.png" style="width: 40px; height: 40px;" class="fr-dib" width="40" height="40">
  4651. <h4 style="text-align: center;"><strong>Section Title</strong></h4>
  4652. <p style="text-align: center;">Lorem ipsum dolor sit amet, consectetur adipiscing ultricies elit.</p>
  4653. </td>
  4654. <td style="width: 33.3333%; text-align: center; vertical-align: top;"><img src="/images/icon-holder.png" style="width: 40px; height: 40px;" class="fr-dib" width="40" height="40">
  4655. <h4 style="text-align: center;"><strong>Section Title</strong></h4>
  4656. <p style="text-align: center;">Lorem ipsum dolor sit amet, consectetur adipiscing ultricies elit.</p>
  4657. </td>
  4658. <td style="width: 33.3333%; text-align: center; vertical-align: top;"><img src="/images/icon-holder.png" style="width: 40px; height: 40px;" class="fr-dib" width="40" height="40">
  4659. <h4 style="text-align: center;"><strong>Section Title</strong></h4>
  4660. <p style="text-align: center;">Lorem ipsum dolor sit amet, consectetur adipiscing ultricies elit.</p>
  4661. </td>
  4662. </tr>
  4663. </tbody>
  4664. </table>
  4665. <p><br></p>
  4666. `;
  4667. window[elementName].html.insert(insertHtml);
  4668. break;
  4669. case 'feature-bonus-block-5':
  4670. insertHtml = `
  4671. <p><br></p>
  4672. <table class="froala-table" style="width: 100%;">
  4673. <tbody>
  4674. <tr>
  4675. <td style="width: 75%;">
  4676. <h2><span style="font-size: 36px;"><strong>Tell Them About Your Awesome Features</strong></span></h2>
  4677. <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam odio justo, ultricies a facilisis at, dictum at augue. Morbi sem nisl, tempus eu leo ac, eleifend dignissim mi. Nulla at neque sapien.</p>
  4678. <p><br></p>
  4679. </td>
  4680. <td style="width: 25%;"><br></td>
  4681. </tr>
  4682. </tbody>
  4683. </table>
  4684. <table class="froala-table" style="width: 100%;">
  4685. <tbody>
  4686. <tr>
  4687. <td style="width: 25%;vertical-align: top;">
  4688. <p><img src="/images/image-placeholder.png" class="fr-dib" width="292" height="163"></p>
  4689. <h4 style="text-align: left;"><strong>Section Title</strong></h4>
  4690. <p style="text-align: left;">Lorem ipsum dolor sit amet, consectetur adipiscing ultricies elit. Etiam odio justo, ultricies. Lorem ipsum dolor sit amet, consectetur adipiscing ultricies elit.</p>
  4691. </td>
  4692. <td style="width: 25%;vertical-align: top;">
  4693. <p><img src="/images/image-placeholder.png" class="fr-dib" width="292" height="163"></p>
  4694. <h4 style="text-align: left;"><strong>Section Title</strong></h4>
  4695. <p style="text-align: left;">Lorem ipsum dolor sit amet, consectetur adipiscing ultricies elit. Etiam odio justo, ultricies. Lorem ipsum dolor sit amet, consectetur adipiscing ultricies elit.</p>
  4696. </td>
  4697. <td style="width: 25%;vertical-align: top;">
  4698. <p><img src="/images/image-placeholder.png" class="fr-dib" width="292" height="163"></p>
  4699. <h4 style="text-align: left;"><strong>Section Title</strong></h4>
  4700. <p style="text-align: left;">Lorem ipsum dolor sit amet, consectetur adipiscing ultricies elit. Etiam odio justo, ultricies. Lorem ipsum dolor sit amet, consectetur adipiscing ultricies elit.</p>
  4701. </td>
  4702. <td style="width: 25%;vertical-align: top;">
  4703. <p><img src="/images/image-placeholder.png" class="fr-dib" width="292" height="163"></p>
  4704. <h4 style="text-align: left;"><strong>Section Title</strong></h4>
  4705. <p style="text-align: left;">Lorem ipsum dolor sit amet, consectetur adipiscing ultricies elit. Etiam odio justo, ultricies. Lorem ipsum dolor sit amet, consectetur adipiscing ultricies elit.</p>
  4706. </td>
  4707. </tr>
  4708. </tbody>
  4709. </table>
  4710. <p><br></p>
  4711. `;
  4712. window[elementName].html.insert(insertHtml);
  4713. break;
  4714. case 'feature-bonus-block-6':
  4715. insertHtml = `
  4716. <p><br></p>
  4717. <table class="froala-table" style="width: 100%;">
  4718. <tbody>
  4719. <tr>
  4720. <td style="width: 66%;">
  4721. <h2><span style="font-size: 36px;"><strong>Tell Them About Your Awesome Features</strong></span></h2>
  4722. <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam odio justo, ultricies a facilisis at, dictum at augue. Morbi sem nisl, tempus eu leo ac, eleifend dignissim mi. Nulla at neque sapien.</p>
  4723. <p><br></p>
  4724. </td>
  4725. <td style="width: 33%;"><br></td>
  4726. </tr>
  4727. </tbody>
  4728. </table>
  4729. <table class="froala-table" style="width: 100%;">
  4730. <tbody>
  4731. <tr>
  4732. <td style="width: 33.3333%;vertical-align: top;">
  4733. <p><img src="/images/image-placeholder.png" class="fr-dib" width="400" height="224"></p>
  4734. <h4 style="text-align: left;"><strong>Section Title</strong></h4>
  4735. <p style="text-align: left;">Lorem ipsum sit amet, consectetur  ultricies elit. Etiam odio justo, ultricies. Lorem ipsum dolor sit, consectetur adipiscing ultricies. Etiam odio justo, ultricies.</p>
  4736. </td>
  4737. <td style="width: 33.3333%;vertical-align: top;">
  4738. <p><img src="/images/image-placeholder.png" class="fr-dib" width="400" height="224"></p>
  4739. <h4 style="text-align: left;"><strong>Section Title</strong></h4>
  4740. <p style="text-align: left;">Lorem ipsum sit amet, consectetur  ultricies elit. Etiam odio justo, ultricies. Lorem ipsum dolor sit, consectetur adipiscing ultricies. Etiam odio justo, ultricies.</p>
  4741. </td>
  4742. <td style="width: 33.3333%;vertical-align: top;">
  4743. <p><img src="/images/image-placeholder.png" class="fr-dib" width="400" height="224"></p>
  4744. <h4 style="text-align: left;"><strong>Section Title</strong></h4>
  4745. <p style="text-align: left;">Lorem ipsum dolor sit amet, consectetur adipiscing ultricies elit. Etiam odio justo, ultricies. Lorem ipsum dolor sit amet, consectetur adipiscing ultricies elit. Etiam odio justo, ultricies.</p>
  4746. </td>
  4747. </tr>
  4748. </tbody>
  4749. </table>
  4750. <p><br></p>
  4751. `;
  4752. window[elementName].html.insert(insertHtml);
  4753. break;
  4754. case 'feature-bonus-block-7':
  4755. insertHtml = `
  4756. <p><br></p>
  4757. <h2 style="text-align: center;"><span style="font-size: 44px;text-align: center;"><strong>Write a Powerful Title to Share a<br>Message with Your Audience</strong></span></h2>
  4758. <p><br></p>
  4759. <table class="froala-table" style="width: 100%;">
  4760. <tbody>
  4761. <tr>
  4762. <td style="width: 50%; text-align: center; vertical-align: middle;"><img src="/images/vertical-placeholder.png" class="fr-dib" width="352" height="617"></td>
  4763. <td style="width: 50%; vertical-align: middle;">
  4764. <h3><strong>Section Title</strong></h3>
  4765. <p style="text-align: left;"><span style="font-size: 20px;">Lorem ipsum dolor sit amet, consectetur adipiscing ultricies elit. Etiam odio justo, ultricies. Lorem ipsum dolor sit amet, consectetur adipiscing ultricies elit. Etiam odio justo, ultricies.</span></p>
  4766. <p><br><br></p>
  4767. <p><img src="https://ww2.managemydirectory.com/images/icon-holder.png" style="width: 60px; height: 60px;" class="fr-dib hidden-xs fr-fil" width="60" height="60"><span style="font-size: 20px;"><strong>Section Title</strong><br>Lorem ipsum dolor sit amet, consectetur adipiscing ultricies elit.</span></p>
  4768. <p><br><br></p>
  4769. <p><img src="https://ww2.managemydirectory.com/images/icon-holder.png" style="width: 60px; height: 60px;" class="fr-dib hidden-xs fr-fil" width="60" height="60"><span style="font-size: 20px;"><strong>Section Title</strong><br>Lorem ipsum dolor sit amet, consectetur adipiscing ultricies elit.</span></p>
  4770. </td>
  4771. </tr>
  4772. </tbody>
  4773. </table>
  4774. <p><br></p>
  4775. `;
  4776. window[elementName].html.insert(insertHtml);
  4777. break;
  4778. case 'feature-bonus-block-8':
  4779. insertHtml = `
  4780. <p><br></p>
  4781. <h2 style="text-align: center;"><span style="font-size: 44px;text-align: center;"><strong>Write a Powerful Title to Share a<br>Message with Your Audience</strong></span></h2>
  4782. <p><br></p>
  4783. <table class="froala-table" style="width: 100%;">
  4784. <tbody>
  4785. <tr>
  4786. <td style="width: 50%; vertical-align: middle;">
  4787. <h3><strong>Section Title</strong></h3>
  4788. <p style="text-align: left;"><span style="font-size: 20px;">Lorem ipsum dolor sit amet, consectetur adipiscing ultricies elit. Etiam odio justo, ultricies. Lorem ipsum dolor sit amet, consectetur adipiscing ultricies elit. Etiam odio justo, ultricies.</span></p>
  4789. <p><br><br></p>
  4790. <p><img src="https://ww2.managemydirectory.com/images/icon-holder.png" style="width: 60px; height: 60px;" class="fr-dib hidden-xs fr-fil" width="60" height="60"><span style="font-size: 20px;"><strong>Section Title</strong><br>Lorem ipsum dolor sit amet, consectetur adipiscing ultricies elit.</span></p>
  4791. <p><br><br></p>
  4792. <p><img src="https://ww2.managemydirectory.com/images/icon-holder.png" style="width: 60px; height: 60px;" class="fr-dib hidden-xs fr-fil" width="60" height="60"><span style="font-size: 20px;"><strong>Section Title</strong><br>Lorem ipsum dolor sit amet, consectetur adipiscing ultricies elit.</span></p>
  4793. </td>
  4794. <td style="width: 50%; text-align: center; vertical-align: middle;"><img src="/images/vertical-placeholder.png" class="fr-dib" width="352" height="617"></td>
  4795. </tr>
  4796. </tbody>
  4797. </table>
  4798. <p><br></p>
  4799. `;
  4800. window[elementName].html.insert(insertHtml);
  4801. break;
  4802. case 'teams-bonus-block-1':
  4803. insertHtml = `
  4804. <p><br></p>
  4805. <h2 style="text-align: center;"><span style="font-size: 44px;text-align: center;"><strong>Meet Our Team</strong></span></h2>
  4806. <p><br></p>
  4807. <table class="froala-table" style="width: 100%;">
  4808. <tbody>
  4809. <tr>
  4810. <td style="width: 33.3333%; text-align: center; vertical-align: top;">
  4811. <p><img src="/images/profile-placeholder.png" class="fr-dib img-circle" style="width: 200px;" width="200" height="198"></p>
  4812. <h3><strong>Peter Parker<br></strong></h3>
  4813. <p>Lorem ipsum dolor sit amet, consectetur</p>
  4814. </td>
  4815. <td style="width: 33.3333%; text-align: center; vertical-align: top;">
  4816. <p><img src="/images/profile-placeholder.png" class="fr-dib img-circle" style="width: 200px;" width="200" height="198"></p>
  4817. <h3><strong>Wonder Woman<br></strong></h3>
  4818. <p>Lorem ipsum dolor sit amet, consectetur</p>
  4819. </td>
  4820. <td style="width: 33.3333%; text-align: center; vertical-align: top;">
  4821. <p><img src="/images/profile-placeholder.png" class="fr-dib img-circle" style="width: 200px;" width="200" height="198"></p>
  4822. <h3><strong>Mighty Mouse<br></strong></h3>
  4823. <p>Lorem ipsum dolor sit amet, consectetur</p>
  4824. </td>
  4825. </tr>
  4826. </tbody>
  4827. </table>
  4828. <p><br></p>
  4829. `;
  4830. window[elementName].html.insert(insertHtml);
  4831. break;
  4832. case 'teams-bonus-block-2':
  4833. insertHtml = `
  4834. <p><br></p>
  4835. <h2 style="text-align: center;"><span style="font-size: 44px;text-align: center;"><strong>Meet Our Team</strong></span></h2>
  4836. <p><br></p>
  4837. <table class="froala-table" style="width: 100%;">
  4838. <tbody>
  4839. <tr>
  4840. <td style="width: 25%; text-align: center; vertical-align: top;">
  4841. <p><img src="/images/profile-placeholder.png" class="fr-dib img-circle" style="width: 150px;" width="150" height="148"></p>
  4842. <h3><strong>Peter Pan<br></strong></h3>
  4843. <p>Lorem ipsum dolor sit amet</p>
  4844. </td>
  4845. <td style="width: 25%; text-align: center; vertical-align: top;">
  4846. <p><img src="/images/profile-placeholder.png" class="fr-dib img-circle" style="width: 150px;" width="150" height="148"></p>
  4847. <h3><strong>Wonder Woman<br></strong></h3>
  4848. <p>Lorem ipsum dolor sit amet</p>
  4849. </td>
  4850. <td style="width: 25%; text-align: center; vertical-align: top;">
  4851. <p><img src="/images/profile-placeholder.png" class="fr-dib img-circle" style="width: 150px;" width="150" height="148"></p>
  4852. <h3><strong>Mighty Mouse<br></strong></h3>
  4853. <p>Lorem ipsum dolor sit amet</p>
  4854. </td>
  4855. <td style="width: 25%; text-align: center; vertical-align: top;">
  4856. <p><img src="/images/profile-placeholder.png" class="fr-dib img-circle" style="width: 150px;" width="150" height="148"></p>
  4857. <h3><strong>Mary Tyler<br></strong></h3>
  4858. <p>Lorem ipsum dolor sit amet</p>
  4859. </td>
  4860. </tr>
  4861. </tbody>
  4862. </table>
  4863. <p><br></p>
  4864. `;
  4865. window[elementName].html.insert(insertHtml);
  4866. break;
  4867. case 'teams-bonus-block-3':
  4868. insertHtml = `
  4869. <p><br></p>
  4870. <h2 style="text-align: center;"><span style="font-size: 44px;text-align: center;"><strong>Meet Our Team</strong></span></h2>
  4871. <p><br></p>
  4872. <table class="froala-table" style="width: 100%;">
  4873. <tbody>
  4874. <tr>
  4875. <td class="nopad" style="width: 10%; text-align: center; vertical-align: top;">
  4876. <p><img src="/images/profile-placeholder.png" class="fr-dib square" style="width: 200px;" width="128" height="126"></p>
  4877. </td>
  4878. <td style="width: 40%; text-align: left; vertical-align: top;">
  4879. <h3><strong>Peter Parker<br></strong></h3>
  4880. <p style="text-align: left;">
  4881. <span style="font-size: 20px;">Position</span>
  4882. <br>Lorem ipsum dolor sit amet, consectetur adipiscing ultricies elit. Etiam odio justo, ultricies. Lorem ipsum dolor sit amet.</p>
  4883. <p><br></p>
  4884. </td>
  4885. <td class="nopad" style="width: 10%; text-align: center; vertical-align: top;">
  4886. <p><img src="/images/profile-placeholder.png" class="fr-dib square" style="width: 200px;" width="128" height="126"></p>
  4887. </td>
  4888. <td style="width: 40%; text-align: left; vertical-align: top;">
  4889. <h3><strong>Peter Parker<br></strong></h3>
  4890. <p style="text-align: left;">
  4891. <span style="font-size: 20px;">Position</span>
  4892. <br>Lorem ipsum dolor sit amet, consectetur adipiscing ultricies elit. Etiam odio justo, ultricies. Lorem ipsum dolor sit amet.</p>
  4893. <p><br></p>
  4894. </td>
  4895. </tr>
  4896. <tr>
  4897. <td class="nopad" style="width: 10%; text-align: center; vertical-align: top;">
  4898. <p><img src="/images/profile-placeholder.png" class="fr-dib square" style="width: 200px;" width="128" height="126"></p>
  4899. </td>
  4900. <td style="width: 40%; text-align: left; vertical-align: top;">
  4901. <h3><strong>Peter Parker<br></strong></h3>
  4902. <p style="text-align: left;">
  4903. <span style="font-size: 20px;">Position</span>
  4904. <br>Lorem ipsum dolor sit amet, consectetur adipiscing ultricies elit. Etiam odio justo, ultricies. Lorem ipsum dolor sit amet.</p>
  4905. <p><br></p>
  4906. </td>
  4907. <td class="nopad" style="width: 10%; text-align: center; vertical-align: top;">
  4908. <p><img src="/images/profile-placeholder.png" class="fr-dib square" style="width: 200px;" width="128" height="126"></p>
  4909. </td>
  4910. <td style="width: 40%; text-align: left; vertical-align: top;">
  4911. <h3><strong>Peter Parker<br></strong></h3>
  4912. <p style="text-align: left;">
  4913. <span style="font-size: 20px;">Position</span>
  4914. <br>Lorem ipsum dolor sit amet, consectetur adipiscing ultricies elit. Etiam odio justo, ultricies. Lorem ipsum dolor sit amet.</p>
  4915. <p><br></p>
  4916. </td>
  4917. </tr>
  4918. </tbody>
  4919. </table>
  4920. <p><br></p>
  4921. `;
  4922. window[elementName].html.insert(insertHtml);
  4923. break;
  4924. case 'teams-bonus-block-4':
  4925. insertHtml = `
  4926. <p><br></p>
  4927. <h2 style="text-align: center;"><span style="font-size: 44px;text-align: center;"><strong>Meet Our Team</strong></span></h2>
  4928. <p><br></p>
  4929. <table class="froala-table" style="width: 100%;">
  4930. <tbody>
  4931. <tr>
  4932. <td class="nopad" style="width: 10%; text-align: center; vertical-align: top;">
  4933. <p><img src="/images/profile-placeholder.png" class="fr-dib square" style="width: 200px;" width="128" height="126"></p>
  4934. </td>
  4935. <td style="width: 40%; text-align: left; vertical-align: top;">
  4936. <h3><strong>Peter Parker<br></strong></h3>
  4937. <p style="text-align: left;">
  4938. <span style="font-size: 20px;">Position</span>
  4939. <br>Lorem ipsum dolor sit amet, consectetur adipiscing ultricies elit. Etiam odio justo, ultricies. Lorem ipsum dolor sit amet.</p>
  4940. <p><br></p>
  4941. </td>
  4942. <td class="nopad" style="width: 10%; text-align: center; vertical-align: top;">
  4943. <p><img src="/images/profile-placeholder.png" class="fr-dib square" style="width: 200px;" width="128" height="126"></p>
  4944. </td>
  4945. <td style="width: 40%; text-align: left; vertical-align: top;">
  4946. <h3><strong>Peter Parker<br></strong></h3>
  4947. <p style="text-align: left;">
  4948. <span style="font-size: 20px;">Position</span>
  4949. <br>Lorem ipsum dolor sit amet, consectetur adipiscing ultricies elit. Etiam odio justo, ultricies. Lorem ipsum dolor sit amet.</p>
  4950. <p><br></p>
  4951. </td>
  4952. </tr>
  4953. <tr>
  4954. <td class="nopad" style="width: 10%; text-align: center; vertical-align: top;">
  4955. <p><img src="/images/profile-placeholder.png" class="fr-dib square" style="width: 200px;" width="128" height="126"></p>
  4956. </td>
  4957. <td style="width: 40%; text-align: left; vertical-align: top;">
  4958. <h3><strong>Peter Parker<br></strong></h3>
  4959. <p style="text-align: left;">
  4960. <span style="font-size: 20px;">Position</span>
  4961. <br>Lorem ipsum dolor sit amet, consectetur adipiscing ultricies elit. Etiam odio justo, ultricies. Lorem ipsum dolor sit amet.</p>
  4962. <p><br></p>
  4963. </td>
  4964. <td class="nopad" style="width: 10%; text-align: center; vertical-align: top;">
  4965. <p><img src="/images/profile-placeholder.png" class="fr-dib square" style="width: 200px;" width="128" height="126"></p>
  4966. </td>
  4967. <td style="width: 40%; text-align: left; vertical-align: top;">
  4968. <h3><strong>Peter Parker<br></strong></h3>
  4969. <p style="text-align: left;">
  4970. <span style="font-size: 20px;">Position</span>
  4971. <br>Lorem ipsum dolor sit amet, consectetur adipiscing ultricies elit. Etiam odio justo, ultricies. Lorem ipsum dolor sit amet.</p>
  4972. <p><br></p>
  4973. </td>
  4974. </tr>
  4975. <tr>
  4976. <td class="nopad" style="width: 10%; text-align: center; vertical-align: top;">
  4977. <p><img src="/images/profile-placeholder.png" class="fr-dib square" style="width: 200px;" width="128" height="126"></p>
  4978. </td>
  4979. <td style="width: 40%; text-align: left; vertical-align: top;">
  4980. <h3><strong>Peter Parker<br></strong></h3>
  4981. <p style="text-align: left;">
  4982. <span style="font-size: 20px;">Position</span>
  4983. <br>Lorem ipsum dolor sit amet, consectetur adipiscing ultricies elit. Etiam odio justo, ultricies. Lorem ipsum dolor sit amet.</p>
  4984. <p><br></p>
  4985. </td>
  4986. <td class="nopad" style="width: 10%; text-align: center; vertical-align: top;">
  4987. <p><img src="/images/profile-placeholder.png" class="fr-dib square" style="width: 200px;"  width="128" height="126"></p>
  4988. </td>
  4989. <td style="width: 40%; text-align: left; vertical-align: top;">
  4990. <h3><strong>Peter Parker<br></strong></h3>
  4991. <p style="text-align: left;">
  4992. <span style="font-size: 20px;">Position</span>
  4993. <br>Lorem ipsum dolor sit amet, consectetur adipiscing ultricies elit. Etiam odio justo, ultricies. Lorem ipsum dolor sit amet.</p>
  4994. <p><br></p>
  4995. </td>
  4996. </tr>
  4997. </tbody>
  4998. </table>
  4999. <p><br></p>
  5000. `;
  5001. window[elementName].html.insert(insertHtml);
  5002. break;
  5003. case 'teams-bonus-block-5':
  5004. insertHtml = `
  5005. <p><br></p>
  5006. <h2 style="text-align: center;"><span style="font-size: 44px;text-align: center;"><strong>Meet Our Team</strong></span></h2>
  5007. <p><br></p>
  5008. <table class="froala-table" style="width: 100%;">
  5009. <tbody>
  5010. <tr>
  5011. <td style="width: 25%; text-align: center; vertical-align: top;">
  5012. <p><img src="/images/profile-placeholder.png" class="fr-dib img-circle" style="width: 150px;" width="150" height="148"></p>
  5013. <h3><strong>Peter Pan<br></strong></h3>
  5014. <p>Lorem ipsum dolor sit amet</p>
  5015. </td>
  5016. <td style="width: 25%; text-align: center; vertical-align: top;">
  5017. <p><img src="/images/profile-placeholder.png" class="fr-dib img-circle" style="width: 150px;" width="150" height="148"></p>
  5018. <h3><strong>Wonder Woman<br></strong></h3>
  5019. <p>Lorem ipsum dolor sit amet</p>
  5020. </td>
  5021. <td style="width: 25%; text-align: center; vertical-align: top;">
  5022. <p><img src="/images/profile-placeholder.png" class="fr-dib img-circle" style="width: 150px;" width="150" height="148"></p>
  5023. <h3><strong>Mighty Mouse<br></strong></h3>
  5024. <p>Lorem ipsum dolor sit amet</p>
  5025. </td>
  5026. <td style="width: 25%; text-align: center; vertical-align: top;">
  5027. <p><img src="/images/profile-placeholder.png" class="fr-dib img-circle" style="width: 150px;" width="150" height="148"></p>
  5028. <h3><strong>Mary Tyler<br></strong></h3>
  5029. <p>Lorem ipsum dolor sit amet</p>
  5030. </td>
  5031. </tr>
  5032. <tr>
  5033. <td style="width: 25%; text-align: center; vertical-align: top;">
  5034. <p><img src="/images/profile-placeholder.png" class="fr-dib img-circle" style="width: 150px;" width="150" height="148"></p>
  5035. <h3><strong>Peter Pan<br></strong></h3>
  5036. <p>Lorem ipsum dolor sit amet</p>
  5037. </td>
  5038. <td style="width: 25%; text-align: center; vertical-align: top;">
  5039. <p><img src="/images/profile-placeholder.png" class="fr-dib img-circle" style="width: 150px;" width="150" height="148"></p>
  5040. <h3><strong>Wonder Woman<br></strong></h3>
  5041. <p>Lorem ipsum dolor sit amet</p>
  5042. </td>
  5043. <td style="width: 25%; text-align: center; vertical-align: top;">
  5044. <p><img src="/images/profile-placeholder.png" class="fr-dib img-circle" style="width: 150px;" width="150" height="148"></p>
  5045. <h3><strong>Mighty Mouse<br></strong></h3>
  5046. <p>Lorem ipsum dolor sit amet</p>
  5047. </td>
  5048. <td style="width: 25%; text-align: center; vertical-align: top;">
  5049. <p><img src="/images/profile-placeholder.png" class="fr-dib img-circle" style="width: 150px;" width="150" height="148"></p>
  5050. <h3><strong>Mary Tyler<br></strong></h3>
  5051. <p>Lorem ipsum dolor sit amet</p>
  5052. </td>
  5053. </tr>
  5054. </tbody>
  5055. </table>
  5056. <p><br></p>
  5057. `;
  5058. window[elementName].html.insert(insertHtml);
  5059. break;
  5060. case 'content-bonus-block-1':
  5061. insertHtml = `
  5062. <p><br></p>
  5063. <table class="froala-table" style="width: 100%;">
  5064. <tbody>
  5065. <tr>
  5066. <td style="width: 40%; text-align: center; vertical-align: middle;"><img src="/images/graphic-placeholder-2.png" class="fr-dib"  width="485" height="263"></td>
  5067. <td style="width: 60%; vertical-align: middle;">
  5068. <table class="froala-table" style="width: 100%;">
  5069. <tbody>
  5070. <tr>
  5071. <td style="width: 100.0000%;">
  5072. <h2><strong>Section Title</strong></h2>
  5073. <p>Lorem ipsum dolor sit amet, adipiscing ultricies elit. Etiam odio justo, ultricies. Lorem ipsum dolor sit amet. Etiam odio justo, ultricies. Etiam odio justo, ultricies. Lorem ipsum dolor sit amet, consectetur adipiscing ultricies . Etiam odio justo, ultricies.</p>
  5074. <p><br></p>
  5075. </td>
  5076. </tr>
  5077. </tbody>
  5078. </table>
  5079. <table class="froala-table" style="width: 100%;">
  5080. <tbody>
  5081. <tr>
  5082. <td style="width: 50.0000%;">
  5083. <p><strong><span style="font-size: 20px;">Section Title</span></strong>
  5084. <br>Lorem ipsum dolor sit amet, consectetur adipiscing ultricies elit. Etiam odio justo, consectetur adipiscing ultricies elit.</p>
  5085. </td>
  5086. <td style="width: 50.0000%;">
  5087. <p><strong><span style="font-size: 20px;">Section Title</span></strong>
  5088. <br>Lorem ipsum dolor sit amet, consectetur adipiscing ultricies elit. Etiam odio justo, consectetur adipiscing ultricies elit.</p>
  5089. </td>
  5090. </tr>
  5091. </tbody>
  5092. </table>
  5093. </td>
  5094. </tr>
  5095. </tbody>
  5096. </table>
  5097. <p><br></p>
  5098. `;
  5099. window[elementName].html.insert(insertHtml);
  5100. break;
  5101. case 'content-bonus-block-2':
  5102. insertHtml = `
  5103. <p><br></p>
  5104. <h2 style="text-align: center;"><strong><span style="font-size: 36px;">This Is Your Captivating Title<br></span></strong></h2>
  5105. <h3 style="text-align: center;"><strong>And This Sub-Heading Explains More About The Section Below</strong></h3>
  5106. <p><br></p>
  5107. <table class="froala-table" style="width: 100%;">
  5108. <tbody>
  5109. <tr>
  5110. <td style="width: 10%;"><br></td>
  5111. <td style="width: 40%; text-align: center; vertical-align: top;">
  5112. <p style="text-align: center;"><img src="/images/graphic-placeholder-2.png" class="fr-dib" style="width: 200px;" width="200" height="107"></p>
  5113. <h2 style="text-align: center;"><strong>Section Title</strong></h2>
  5114. <p style="text-align: center;">Lorem ipsum dolor sit amet, consectetur dictum at adipiscing elit. Etiam odio justo, ultricies a facilisis at, dictum at augue.
  5115. <br>
  5116. <br>
  5117. </p>
  5118. <p style="text-align: center;"><a class="btn btn-primary btn-lg" href="#" rel="noopener noreferrer">Button Link</a></p>
  5119. <p><br></p>
  5120. </td>
  5121. <td style="width: 40%; text-align: center; vertical-align: top;">
  5122. <p style="text-align: center;"><img src="/images/graphic-placeholder-2.png" class="fr-dib" style="width: 200px;" width="200" height="107"></p>
  5123. <h2 style="text-align: center;"><strong>Section Title</strong></h2>
  5124. <p style="text-align: center;">Lorem ipsum dolor sit amet, consectetur dictum at adipiscing elit. Etiam odio justo, ultricies a facilisis at, dictum at augue.
  5125. <br>
  5126. <br>
  5127. </p>
  5128. <p style="text-align: center;"><a class="btn btn-primary btn-lg" href="#" rel="noopener noreferrer">Button Link</a></p>
  5129. <p><br></p>
  5130. </td>
  5131. <td style="width: 10%;"><br></td>
  5132. </tr>
  5133. </tbody>
  5134. </table>
  5135. <p><br></p>
  5136. `;
  5137. window[elementName].html.insert(insertHtml);
  5138. break;
  5139. case 'content-bonus-block-3':
  5140. insertHtml = `
  5141. <p><br></p>
  5142. <table class="froala-table" style="width: 100%;">
  5143. <tbody>
  5144. <tr>
  5145. <td style="width: 33.3333%;vertical-align: top;">
  5146. <h4><strong>Section Title</strong></h4>
  5147. <p>Lorem ipsum dolor sit amet, adipiscing ultricies elit. Etiam odio justo, ultricies. Lorem ipsum dolor sit amet, consectetur adipiscing ultricies elit. Etiam odio justo, ultricies. Lorem ipsum dolor sit amet, consectetur adipiscing ultricies elit. Etiam odio justo, ultricies.</p>
  5148. <p><a href="#"><strong><span style="font-size: 18px;">Learn More</span></strong></a></p>
  5149. </td>
  5150. <td style="width: 33.3333%;vertical-align: top;">
  5151. <h4><strong>Section Title</strong></h4>
  5152. <p>Lorem ipsum dolor sit amet, adipiscing ultricies elit. Etiam odio justo, ultricies. Lorem ipsum dolor sit amet, consectetur adipiscing ultricies elit. Etiam odio justo, ultricies. Lorem ipsum dolor sit amet, consectetur adipiscing ultricies elit. Etiam odio justo, ultricies. </p>
  5153. <p><a href="#"><strong><span style="font-size: 18px;">Learn More</span></strong></a></p>
  5154. </td>
  5155. <td style="width: 33.3333%;vertical-align: top;">
  5156. <p style="text-align: center;"><img src="/images/graphic-placeholder-2.png" class="fr-dib" width="400" height="216"></p>
  5157. </td>
  5158. </tr>
  5159. </tbody>
  5160. </table>
  5161. <p><br></p>
  5162. `;
  5163. window[elementName].html.insert(insertHtml);
  5164. break;
  5165. case 'content-bonus-block-4':
  5166. insertHtml = `
  5167. <p><br></p>
  5168. <table class="froala-table" style="width: 100%;">
  5169. <tbody>
  5170. <tr>
  5171. <td class="hidden-xs" style="width: 20%;"><br></td>
  5172. <td style="width: 60%; text-align: center;">
  5173. <p style="text-align: center;">
  5174. <img src="/images/icon-placeholder.png" style="width: 60px; height: 60px;" class="fr-fic fr-dii" width="60" height="60">
  5175. </p>
  5176. <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam odio justo, ultricies a facilisis at, dictum at augue. Morbi sem nisl, tempus eu leo ac, eleifend dignissim mi. Nulla at neque sapien. Nullam quis vestibulum dui. Nulla at neque sapien. Nullam quis vestibulum dui.</p>
  5177. </td>
  5178. <td class="hidden-xs" style="width: 20%;"><br></td>
  5179. </tr>
  5180. </tbody>
  5181. </table>
  5182. <p><br></p>
  5183. `;
  5184. window[elementName].html.insert(insertHtml);
  5185. break;
  5186. case 'content-bonus-block-5':
  5187. insertHtml = `
  5188. <p><br></p>
  5189. <table class="froala-table" style="width: 100%;">
  5190. <tbody>
  5191. <tr>
  5192. <td style="width: 50%; text-align: center; vertical-align: middle;"><img src="/images/graphic-placeholder-2.png" class="fr-dib" width="615" height="333"></td>
  5193. <td class="fpad-xl" style="width: 50%; text-align: center; vertical-align: middle;"><img src="/images/icon-holder.png" style="width: 60px; height: 60px;" class="fr-dib" width="60" height="60">
  5194. <h2><strong>Section Title</strong></h2>
  5195. <p>Lorem ipsum dolor sit amet, consectetur adipiscing ultricies elit. Etiam odio justo, ultricies. Lorem ipsum dolor sit amet, consectetur adipiscing ultricies elit. Etiam odio justo, ultricies. Lorem ipsum dolor sit amet, consectetur adipiscing ultricies elit. Lorem ipsum dolor sit amet, consectetur odio justo, ultricies.</p>
  5196. <p><a href="#"><strong><span style="font-size: 18px;">Learn More</span></strong></a></p>
  5197. </td>
  5198. </tr>
  5199. </tbody>
  5200. </table>
  5201. <p><br></p>
  5202. `;
  5203. window[elementName].html.insert(insertHtml);
  5204. break;
  5205. case 'content-bonus-block-6':
  5206. insertHtml = `
  5207. <p><br></p>
  5208. <table class="froala-table" style="width: 100%;">
  5209. <tbody>
  5210. <tr>
  5211. <td class="fpad-xl" style="width: 50%; text-align: center; vertical-align: middle;"><img src="/images/icon-holder.png" style="width: 60px; height: 60px;" class="fr-dib" width="60" height="60">
  5212. <h2><strong>Section Title</strong></h2>
  5213. <p>Lorem ipsum dolor sit amet, adipiscing ultricies elit. Etiam odio justo, ultricies. Lorem ipsum dolor sit amet, consectetur adipiscing ultricies elit. Etiam odio justo, ultricies. Lorem ipsum dolor sit amet, consectetur adipiscing ultricies elit. Lorem ipsum dolor sit amet, consectetur odio justo, ultricies.</p>
  5214. <p><a href="#"><strong><span style="font-size: 18px;">Learn More</span></strong></a></p>
  5215. </td>
  5216. <td style="width: 50%; text-align: center; vertical-align: middle;"><img src="/images/graphic-placeholder-2.png" class="fr-dib" width="615" height="333"></td>
  5217. </tr>
  5218. </tbody>
  5219. </table>
  5220. <p><br></p>
  5221. `;
  5222. window[elementName].html.insert(insertHtml);
  5223. break;
  5224. case 'content-bonus-block-7':
  5225. insertHtml = `
  5226. <p><br></p>
  5227. <h2 style="text-align: center;"><span style="font-size: 36px;text-align: center;"><strong>Learn More About Us</strong></span></h2>
  5228. <p><br></p>
  5229. <table class="froala-table" style="width: 100%;">
  5230. <tbody>
  5231. <tr>
  5232. <td class="hidden-xs" style="width: 10%;">
  5233. <br>
  5234. </td>
  5235. <td style="width: 40%; vertical-align: top;">
  5236. <p>Lorem ipsum dolor sit amet, consectetur adipiscing ultricies elit. Etiam odio justo, ultricies. Lorem ipsum dolor sit amet, consectetur adipiscing ultricies elit. Etiam odio justo, ultricies. Lorem ipsum dolor sit amet, consectetur adipiscing ultricies elit. Lorem ipsum dolor sit amet, consectetur odio justo, ultricies odio justo, ultricies.</p>
  5237. <p><a href="#"><strong><span style="font-size: 18px;">Learn More</span></strong></a></p>
  5238. </td>
  5239. <td style="width: 40%; vertical-align: top;">
  5240. <p>Lorem ipsum dolor sit amet, consectetur adipiscing ultricies elit. Etiam odio justo, ultricies. Lorem ipsum dolor sit amet, consectetur adipiscing ultricies elit. Etiam odio justo, ultricies. Lorem ipsum dolor sit amet, consectetur adipiscing ultricies elit. Lorem ipsum dolor sit amet, consectetur odio justo, ultricies odio justo, ultricies.</p>
  5241. <p><a href="#"><strong><span style="font-size: 18px;">Learn More</span></strong></a></p>
  5242. </td>
  5243. <td class="hidden-xs" style="width: 10%;">
  5244. <br>
  5245. </td>
  5246. </tr>
  5247. </tbody>
  5248. </table>
  5249. <p><br></p>
  5250. `;
  5251. window[elementName].html.insert(insertHtml);
  5252. break;
  5253. case 'content-bonus-block-8':
  5254. insertHtml = `
  5255. <p><br></p>
  5256. <table class="froala-table" style="width: 100%;">
  5257. <tbody>
  5258. <tr>
  5259. <td class="fpad-xl" style="width: 50%; vertical-align: middle;">
  5260. <h3><strong>Section Title</strong></h3>
  5261. <p>Lorem ipsum dolor sit amet, adipiscing ultricies elit Lorem ipsum dolor sit amet, consectetur adipiscing ultricies elit.</p>
  5262. <p><br></p>
  5263. <h3><strong>Section Title</strong></h3>
  5264. <p>Lorem ipsum dolor sit amet, adipiscing ultricies elit Lorem ipsum dolor sit amet, consectetur adipiscing ultricies elit.</p>
  5265. <p><br></p>
  5266. <h3><strong>Section Title</strong></h3>
  5267. <p>Lorem ipsum dolor sit amet, adipiscing ultricies elit Lorem ipsum dolor sit amet, consectetur adipiscing ultricies elit.</p>
  5268. </td>
  5269. <td class="fpad-xl" style="width: 50%; text-align: center; vertical-align: middle;"><img src="/images/graphic-placeholder-2.png" class="fr-dib" width="585" height="317"></td>
  5270. </tr>
  5271. </tbody>
  5272. </table>
  5273. <p><br></p>
  5274. `;
  5275. window[elementName].html.insert(insertHtml);
  5276. break;
  5277. case 'content-bonus-block-9':
  5278. insertHtml = `
  5279. <p><br></p>
  5280. <table class="froala-table" style="width: 100%;">
  5281. <tbody>
  5282. <tr>
  5283. <td class="fpad-xl" style="width: 50%; text-align: center; vertical-align: middle;"><img src="/images/graphic-placeholder-2.png" class="fr-dib" width="585" height="317"></td>
  5284. <td class="fpad-xl" style="width: 50%; vertical-align: middle;">
  5285. <h3><strong>Section Title</strong></h3>
  5286. <p>Lorem ipsum dolor sit amet, adipiscing ultricies elit Lorem ipsum dolor sit amet, consectetur adipiscing ultricies elit.</p>
  5287. <p><br></p>
  5288. <h3><strong>Section Title</strong></h3>
  5289. <p>Lorem ipsum dolor sit amet, adipiscing ultricies elit Lorem ipsum dolor sit amet, consectetur adipiscing ultricies elit.</p>
  5290. <p><br></p>
  5291. <h3><strong>Section Title</strong></h3>
  5292. <p>Lorem ipsum dolor sit amet, adipiscing ultricies elit Lorem ipsum dolor sit amet, consectetur adipiscing ultricies elit.</p>
  5293. </td>
  5294. </tr>
  5295. </tbody>
  5296. </table>
  5297. <p><br></p>
  5298. `;
  5299. window[elementName].html.insert(insertHtml);
  5300. break;
  5301. default:
  5302. }
  5303. // Save into undo stack the changes.
  5304. window[elementName].undo.saveStep();
  5305. // Stop event propagation.
  5306. dropEvent.preventDefault();
  5307. dropEvent.stopPropagation();
  5308. return false;
  5309. }
  5310. }, true);
  5311.        });
  5312.        //froala editor code for the members that includes a feature to upload images to /images/member-uploads where the member can upload but can not browse the folder
  5313.        new FroalaEditor('.froala-editor-user-upload', {
  5314.  
  5315.                                    fontSize: ['10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30', '31', '32', '33', '34', '35', '36', '37', '38', '39', '40', '41', '42', '43', '44'],
  5316.            linkAutoPrefix: '',
  5317.            tableInsertMaxSize: 6,
  5318.            imageDefaultWidth: 0,
  5319.            linkInsertButtons: ['linkBack'],
  5320.            htmlAllowedAttrs: ['.*'],
  5321.            htmlAllowedTags: ['a', 'b', 'big', 'blockquote', 'br', 'caption', 'code', 'col', 'colgroup', 'div', 'em', 'embed', 'figure', 'font', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'hr', 'i', 'iframe', 'img', 'li', 'ol', 'p', 'picture', 'pre', 'small', 'span', 'strong', 'sub', 'sup', 'table', 'tbody', 'td', 'tfoot', 'th', 'thead', 'thread', 'tr', 'tt', 'u', 'ul', 'video', 's', 'a'],
  5322.            htmlRemoveTags: ['script', 'style', 'base'],
  5323.            language: 'en',
  5324.            placeholderText: `Type Something`,
  5325.            heightMin: '350',
  5326.            height: '350',
  5327.                        htmlAllowedEmptyTags: ['textarea', 'a', 'iframe', 'object', 'video', 'style', 'script', '.fa', '.fr-emoticon', '.fr-inner', 'path', 'line', 'hr','i'],
  5328.                        iframeStyleFiles: ['/directory/cdn/assets/bootstrap/css/froala_style.min.css','/directory/cdn/assets/bootstrap/css/theme-styles.min.css?v=1.0.01'],
  5329.            imageEditButtons: ['imageAlign', 'imageRemove', 'imageCaption', '|', 'imageLink', 'linkOpen','linkEdit', 'linkRemove', '-', 'imageAlt', 'imageSize', 'imageStyle'],
  5330.            imageStyles: {
  5331.                'square': 'Square',
  5332.                'img-rounded': 'Rounded',
  5333.                'img-circle': 'Circle'
  5334.            },
  5335.            imageMultipleStyles: false,
  5336.            key: '7MD3aD3G3B3B4B3C2xROKLJKYHROLDXDRE1b1YYGRi1Bd1C4F4B3H2G3A15A11A12C5C1==',
  5337.            attribution: false,
  5338.            imageUploadParam: 'blog_image',
  5339.            imageUploadURL: '/wapi/widget?widget_name=' + widgetName + '&header_type=json&request_type=GET',
  5340.            imageUploadMethod: 'POST',
  5341.            imageUploadParams: {
  5342.                upload_scope: 'member'
  5343.            },
  5344.            linkAttributes: {
  5345.                title: 'Title'
  5346.            },
  5347.            toolbarSticky: false,
  5348.            linkStyles: {
  5349.                'btn btn-primary': 'Button Primary',
  5350.                'btn btn-info': 'Button Info',
  5351.                'btn btn-success': 'Button Success',
  5352.                'btn btn-warning': 'Button Warning',
  5353.                'btn btn-danger': 'Button Danger',
  5354.                'btn btn-default': 'Button Default'
  5355.            },
  5356.            paragraphFormat: {
  5357.                N: 'Normal',
  5358.                H1: 'Heading 1',
  5359.                H2: 'Heading 2',
  5360.                H3: 'Heading 3',
  5361.                H4: 'Heading 4'
  5362.            },
  5363.            imageMove: false,
  5364.            videoMove: false,
  5365.            linkMultipleStyles: false,
  5366.            quickInsertEnabled: false,
  5367.            toolbarButtons: ['undo', 'redo', 'bold', 'italic', 'underline', 'fontSize', 'paragraphFormat',  'lineHeight', 'textColor', 'backgroundColor', 'clearFormatting',  'align', 'formatOL', 'formatUL', 'insertTable', 'outdent', 'indent', 'insertHR',  'insertLink', 'insertImage', 'insertVideo',  'html'],
  5368.            imageAllowedTypes: ['jpeg', 'jpg', 'png','JPEG','JPG','PNG','webp'],
  5369.            imageInsertButtons: ['imageBack', '|', 'imageUpload', 'imageByURL'],
  5370.            linkEditButtons: ['linkOpen','linkStyle', 'linkEdit', 'adv_styles', 'linkRemove'],            videoInsertButtons: ['videoBack', '|', 'videoByURL', 'videoEmbed'],
  5371.            videoEditButtons: ['videoReplace', 'videoRemove', '|', 'videoDisplay', 'videoAlign', 'videoSize'],
  5372.            tableEditButtons: ['tableColumns','tableRows', 'tableCells', 'tableCellBackground','insertImage','tableCellVerticalAlign', 'tableCellHorizontalAlign','tableRemove'],
  5373.            imageMaxSize: imageMaxSizeSetting,
  5374.            events: {
  5375.                'table.inserted': function (table) {
  5376.                    $('table').addClass('froala-table');
  5377.                },
  5378.                'contentChanged': function () {
  5379.                    const item = $('.froala-editor-user-upload');
  5380.                    if ($(item).attr("required")) {
  5381.                        var form_name = $(item).closest("form").attr("id");
  5382.                        var froala_field_name=$(item).attr("name");
  5383.                        $('#'+form_name).formValidation('revalidateField', froala_field_name);
  5384.                    }
  5385.                }
  5386.            }
  5387.        })
  5388.        var  chatObjParams = {
  5389.            language: 'en',
  5390.            placeholderText: `Type your message here...`,
  5391.            pasteDeniedTags: ['div', 'iframe','span','h1','h2','h3','h3','h4','h5','b','strong','section'],
  5392.            pastePlain: true,
  5393.                        pluginsEnabled: ['image', 'emoticons','file'],
  5394.                        fileAllowedTypes: ['application/pdf'],
  5395.            fileUpload: true,
  5396.            fileMaxSize: chatFileSize,     // Set max file size to 10MB.
  5397.            toolbarInline: false,
  5398.            heightMin: '150',
  5399.            heightMax: '400',
  5400.            toolbarSticky: false,
  5401.            attribution: false,
  5402.            linkAttributes: {
  5403.                title: 'Title'
  5404.            },
  5405.            linkStyles: {
  5406.                'btn btn-primary': 'Button Primary',
  5407.                'btn btn-info': 'Button Info',
  5408.                'btn btn-success': 'Button Success',
  5409.                'btn btn-warning': 'Button Warning',
  5410.                'btn btn-danger': 'Button Danger',
  5411.                'btn btn-default': 'Button Default'
  5412.            },
  5413.            imageMove: false,
  5414.            videoMove: false,
  5415.            quickInsertEnabled: false,
  5416.            iframeStyleFiles: ['/directory/cdn/assets/bootstrap/css/froala_style.min.css','/directory/cdn/assets/bootstrap/css/theme-styles.min.css?v=1.0.01'],
  5417.            imageEditButtons: ['imageAlign', 'imageRemove'],
  5418.            imageInsertButtons: ['imageBack', '|', 'imageUpload', 'imageByURL'],
  5419.            imageUploadParam: 'blog_image',
  5420.            imageUploadURL: '/wapi/widget?widget_name=' + widgetName + '&header_type=json&request_type=GET',
  5421.            imageUploadMethod: 'POST',
  5422.            imageUploadParams: {
  5423.                upload_scope: 'member'
  5424.            },
  5425.                        key: '7MD3aD3G3B3B4B3C2xROKLJKYHROLDXDRE1b1YYGRi1Bd1C4F4B3H2G3A15A11A12C5C1==',
  5426.            toolbarButtons: ['insertImage'],
  5427.            events: {
  5428.                'contentChanged': function () {
  5429.                    const item = $('.chat-froala');
  5430.                    if ($(item).attr("required")) {
  5431.                        var form_name = $(item).closest("form").attr("id");
  5432.                        var froala_field_name=$(item).attr("name");
  5433.                        $('#'+form_name).formValidation('revalidateField', froala_field_name);
  5434.                    }
  5435.                    if ($('.bd-chat-pmb-reply-form-container .fr-file').length > 2 && chatObjParams.fileUpload) { // only allow 2 pdf by thread
  5436.                        chatFroala.destroy();
  5437.                        chatObjParams.fileUpload = false;
  5438.                        chatObjParams.toolbarButtons = ['insertImage', ];
  5439.                        chatFroala = new FroalaEditor('.chat-froala', chatObjParams);
  5440.                    } else if ($('.bd-chat-pmb-reply-form-container .fr-file').length < 3 && !chatObjParams.fileUpload) {
  5441.                        chatFroala.destroy();
  5442.                        chatObjParams.fileUpload = true;
  5443.                        chatObjParams.toolbarButtons = ['insertImage', 'insertFile', ];
  5444.                        chatFroala = new FroalaEditor('.chat-froala', chatObjParams);
  5445.                    }
  5446.                },
  5447.                'file.error': function (error, response) {
  5448.                    // No link in upload response.
  5449.                    if (error.code == 2) {
  5450.                        //  error.message = 'No Special Character For PDF Name '
  5451.                    }
  5452.                    // File too text-large.
  5453.                    else if (error.code == 5) {
  5454.                        // error.message = 'PDF size less than 10MB'
  5455.                    }
  5456.                    // Invalid file type.
  5457.                    else if (error.code == 6) {
  5458.                        //error.message = 'Only PDF'
  5459.                    }
  5460.                    chatFroala.popups.areVisible()
  5461.                        .find('.fr-file-progress-bar-layer.fr-error .fr-message')
  5462.                        .text(error.message);
  5463.                },
  5464.                'commands.after': function (cmd) {
  5465.                    if (cmd === 'imageAlt') {
  5466.                        $('.fr-image-alt-layer').closest('.fr-popup').removeClass('fr-hidden');
  5467.                        // Add additional logic here, e.g., focus on the input field, log actions, etc.
  5468.                    }else if(cmd === 'imageSize'){
  5469.                        $('.fr-image-size-layer').closest('.fr-popup').removeClass('fr-hidden');
  5470.                    }
  5471.                },
  5472.                            }
  5473.        }
  5474.        chatFroala = new FroalaEditor('.chat-froala',chatObjParams);
  5475.        new FroalaEditor('.text-only-froala', {
  5476.            fileUpload: false,
  5477.            imagePaste: false,
  5478.            imageUpload: false,
  5479.            language: 'en',
  5480.            placeholderText: `Type your message here...`,
  5481.            pastePlain: true,
  5482.            toolbarInline: false,
  5483.            heightMin: '200',
  5484.            heightMax: '350',
  5485.            linkAlwaysBlank: true,
  5486.            quickInsertEnabled: false,
  5487.            htmlRemoveTags: [],
  5488.            attribution: false,
  5489.            linkAttributes: {
  5490.                title: 'Title'
  5491.            },
  5492.            imageMove: false,
  5493.            iframeStyleFiles: ['/directory/cdn/assets/bootstrap/css/froala_style.min.css','/directory/cdn/assets/bootstrap/css/theme-styles.min.css?v=1.0.01'],
  5494.            videoMove: false,
  5495.            toolbarButtons: [],
  5496.            key: '7MD3aD3G3B3B4B3C2xROKLJKYHROLDXDRE1b1YYGRi1Bd1C4F4B3H2G3A15A11A12C5C1==',
  5497.            events: {
  5498.                'contentChanged': function () {
  5499.                    const item = $('.text-only-froala');
  5500.                    if ($(item).attr("required")) {
  5501.                        var form_name = $(item).closest("form").attr("id");
  5502.                        var froala_field_name=$(item).attr("name");
  5503.                        $('#'+form_name).formValidation('revalidateField', froala_field_name);
  5504.                    }
  5505.                },
  5506.                            }
  5507.        });
  5508.            });
  5509. </script>    <!-- Google tag (gtag.js) -->
  5510.    <script async src="https://www.googletagmanager.com/gtag/js?id=G-X2HBVCP18L"></script>
  5511.    <script>
  5512.        window.dataLayer = window.dataLayer || [];
  5513.        function gtag(){dataLayer.push(arguments);}
  5514.        gtag('js', new Date());
  5515.        gtag('config', 'G-X2HBVCP18L');
  5516.    </script>
  5517.  
  5518.        <script type="text/javascript">
  5519.            var vlat        = 0;
  5520.            var vlon        = 0;
  5521.            var isSubmit    = false;
  5522.            var cityTypes       = [
  5523.                'colloquial_area',
  5524.                'locality',
  5525.                'sublocality',
  5526.                'sublocality_level_1',
  5527.                'sublocality_level_2',
  5528.                'sublocality_level_3',
  5529.                'sublocality_level_4',
  5530.                'sublocality_level_5',
  5531.                'neighborhood',
  5532.                'political',
  5533.                'ward',
  5534.                'postal_town'
  5535.            ];
  5536.  
  5537.            var postalTypes = [
  5538.                'postal_code',
  5539.                'postal_code_prefix',
  5540.                'postal_code_suffix',
  5541.                'street_number',
  5542.                'premise',
  5543.                'subpremise',
  5544.                'route',
  5545.                'intersection',
  5546.                'street_address',
  5547.                'floor',
  5548.                'room',
  5549.                'post_box',
  5550.                'delivery_address'
  5551.            ];
  5552.  
  5553.            var isSubmitting = false;
  5554.            window.cachedSelectedOption = [{ 'typed_location': '' }];
  5555.            window.isSubmittingMainSearch = false;
  5556.  
  5557.            document.addEventListener('DOMContentLoaded', () => {
  5558.                let isSubmitting = false; // Add flag at the top level
  5559.  
  5560.                setTimeout(()=>{
  5561.                    let googleSuggestForm = document.querySelectorAll('.googleSuggest,.google-writen-location,input[name="lead_location"],.fill_location');
  5562.                    if (typeof googleSuggestForm != "undefined") {
  5563.                        for (let i = 0; i < googleSuggestForm.length; i++) {
  5564.                            let closestForm = googleSuggestForm[i].closest('form');
  5565.                            if(typeof closestForm != "undefined" && closestForm != null){
  5566.                                closestForm.addEventListener('focusin', googleMapOnFormClick, false);
  5567.  
  5568.                            }else{
  5569.                                googleSuggestForm[i].addEventListener('input', googleMapOnFormClick, false);
  5570.                            }
  5571.                                googleSuggestForm[i].addEventListener('click', googleMapOnFormClick, false);
  5572.                            }
  5573.                        }
  5574.                },200);
  5575.  
  5576.                $('.website-search button[type=submit]').click(async function (e) {
  5577.                    e.preventDefault(); // Prevent the default submit action
  5578.                    await googleMapOnFormClick();
  5579.                    $(this).closest('form').submit();
  5580.                });
  5581.            });
  5582.  
  5583.            function googleMapOnFormClick() {
  5584.                return new Promise((resolve, reject) => {
  5585.                    window.isSubmittingMainSearch = false;
  5586.                    let googleSuggestForm = document.querySelectorAll('.googleSuggest, .google-writen-location, input[name="lead_location"], .fill_location');
  5587.                    let mapUri = "https://maps.googleapis.com/maps/api/js?v=3.exp&libraries=places&region=US&callback=initializeG&language=en";
  5588.                    
  5589.                    let loadMapScriptAsync = function (uri) {
  5590.                        return new Promise((resolve, reject) => {
  5591.                            let script = document.createElement('script');
  5592.                            script.type = 'text/javascript';
  5593.                            script.src = uri;
  5594.                            script.async = true;
  5595.                            script.onload = function () {
  5596.                                resolve("ok");
  5597.                            };
  5598.                            script.onerror = function () {
  5599.                                reject("Failed to load Google Maps script.");
  5600.                            };
  5601.                            document.head.appendChild(script);
  5602.                        });
  5603.                    };
  5604.  
  5605.                    if (typeof google === "undefined" || !google.hasOwnProperty('maps')) {
  5606.                        loadMapScriptAsync(mapUri)
  5607.                            .then(() => {
  5608.                                resolve();
  5609.                            })
  5610.                            .catch((error) => {
  5611.                                console.error(error);
  5612.                                reject();
  5613.                            });
  5614.                    } else {
  5615.                        resolve();
  5616.                    }
  5617.                });
  5618.            }
  5619.  
  5620.            function initializeG() {
  5621.                var geocoder;
  5622.                window.cachedSelectedOption = [{ 'typed_location': '' }];
  5623.                let mapExists = document.querySelectorAll('[id^="map"]').length > 0;
  5624.                const functionsToInvoke = {
  5625.                    setJsMap: true,
  5626.                    setJsMapOverview: mapExists,
  5627.                    setJsMapSR: mapExists,
  5628.                    setJsMapSidebar: mapExists
  5629.                };
  5630.                if (window['maps_loaded'] !== true) {
  5631.                    for (let func in functionsToInvoke) {
  5632.                        if (typeof window[func] === 'function' && functionsToInvoke[func]) {
  5633.                            window['maps_loaded'] = true;
  5634.                            window[func]();
  5635.                        }
  5636.                    }
  5637.                }
  5638.                //This piece of code will create an autosuggest for every input with the class "googleSuggest"
  5639.                var counter = 1;
  5640.                var inputsArray = [];
  5641.                $(".googleSuggest").each(function () {
  5642.                    //get the id from the input to be the unique identifier for each autocomplete
  5643.                    var inputId = $(this).attr("id");
  5644.                    var inputElement = $(this);
  5645.                    inputsArray[counter] = /** @type {HTMLInputElement} */(
  5646.                        document.getElementById('' + inputId));
  5647.                    const mainCountry = '';
  5648.                    const inputOptions = {
  5649.                        fields: ['address_components', 'adr_address','formatted_address', 'geometry', 'icon', 'name','place_id','plus_code','type'],
  5650.                        types: ['geocode']
  5651.                    }
  5652.                    const language = "en";
  5653.  
  5654.                    if (language) {
  5655.                        inputOptions.language = language;
  5656.                    }
  5657.                    if (mainCountry) {
  5658.                        inputOptions.componentRestrictions = {country: mainCountry};
  5659.                        inputOptions.region = mainCountry;
  5660.                    }
  5661.  
  5662.                    var autocomplete = new google.maps.places.Autocomplete(inputsArray[counter], inputOptions);
  5663.                    google.maps.event.addListener(autocomplete, 'place_changed', function () {
  5664.  
  5665.                        cachedSelectedOption = [];
  5666.                        cachedSelectedOption.push(autocomplete.getPlace());
  5667.  
  5668.                        cachedSelectedOption[0]['typed_location'] = inputElement.val();
  5669.                       /* if(cachedSelectedOption[0]['adr_address']){
  5670.                            let cleanLocation = cachedSelectedOption[0]['adr_address'].replace(/<[^>]*>/g, '');
  5671.                            cachedSelectedOption[0]['typed_location'] = cleanLocation;
  5672.                            inputElement.val(cleanLocation);
  5673.                        }*/
  5674.                        if (cachedSelectedOption[0]['address_components'] == undefined) {
  5675.                            cachedSelectedOption = [];
  5676.                            var emptyObj = {
  5677.                                'typed_location': ''
  5678.                            };
  5679.                            cachedSelectedOption.push(emptyObj);
  5680.                        }
  5681.                    });
  5682.                    //the code that prevents the submition when hit enter on a google location autocomplete item
  5683.                    inputElement.keydown( function (e) {
  5684.                        if (e.keyCode == 13) {
  5685.                            var pacCounter = 0;
  5686.                            //need to run a loop to check each pac container
  5687.                            $('.pac-container').each(function () {
  5688.  
  5689.                                if ($(this).css("display") != "none") {
  5690.                                    pacCounter++;
  5691.                                }
  5692.                            });
  5693.                            if (pacCounter > 0) {
  5694.                                e.preventDefault();
  5695.                            }
  5696.                        }
  5697.                    });
  5698.                    counter++;
  5699.                });
  5700.  
  5701.                //triggers every time a form with the id website-search is trigered
  5702.                $('.website-search').submit(function (e) {
  5703.                    if (window.isSubmittingMainSearch) {
  5704.                        console.log('Preventing double submission');
  5705.                        e.preventDefault();
  5706.                        return false;
  5707.                    }
  5708.  
  5709.                    var currentForm = $(this);
  5710.                    var locationInput = $(this).find(".googleLocation");
  5711.                    var $submitButton = currentForm.find('input[type=submit], button[type=submit]');
  5712.  
  5713.  
  5714.                    if (locationInput.val() != "" && typeof locationInput.val() != 'undefined') {
  5715.  
  5716.                        // Set submitting flag
  5717.                        window.isSubmittingMainSearch = true;
  5718.                        $submitButton.prop('disabled', true);
  5719.  
  5720.                        e.preventDefault();
  5721.                        //this variable has the main country of the site
  5722.                        var form = currentForm;
  5723.                        var urlGET = form.serialize();
  5724.                        var formActionUrl = form.attr("action");
  5725.                        var locationValue = locationInput.val();
  5726.  
  5727.  
  5728.  
  5729.                        const mainCountry = '';
  5730.                        const inputOptions = {
  5731.                            address:locationValue
  5732.                        }
  5733.                        const language = "en";
  5734.  
  5735.                        if (language) {
  5736.                            inputOptions.language = language;
  5737.                        }
  5738.                        if (mainCountry) {
  5739.                            inputOptions.componentRestrictions = {country: mainCountry};
  5740.                            inputOptions.region = mainCountry;
  5741.                        }
  5742.  
  5743.                        if (typeof cachedSelectedOption == 'undefined') {
  5744.                            var emptyForm = {
  5745.                                'typed_location': ''
  5746.                            };
  5747.                            cachedSelectedOption.push(emptyForm);
  5748.                        }
  5749.  
  5750.                        if (locationValue != cachedSelectedOption[0]['typed_location']) {
  5751.                            geocoder = new google.maps.Geocoder();
  5752.                            geocoder.geocode(inputOptions, function (results, status) {
  5753.  
  5754.                                //if the google response of the geocoding was successful it will use that info to build the url for the new search
  5755.                                if (status == google.maps.GeocoderStatus.OK) {
  5756.                                    parseInfoToSearch(results, urlGET, formActionUrl);
  5757.  
  5758.                                } else {
  5759.                                    var urlPath = formActionUrl;
  5760.                                    var redirect = urlPath + "?" + urlGET;
  5761.                                    //will redirect the page using the new url that has been constructed
  5762.                                    window.location.href = redirect;
  5763.                                }
  5764.                            });
  5765.  
  5766.                        } else {
  5767.                            parseInfoToSearch(cachedSelectedOption, urlGET, formActionUrl);
  5768.                        }
  5769.                    }
  5770.                });
  5771.  
  5772.                //check if a map has been loaded
  5773.                if ($('#map-canvas').length > 0) {
  5774.                    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>";
  5775.                    $('body').append(cssHideLogo);
  5776.                } else {
  5777.                    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>";
  5778.                    $('body').append(cssHideLogo);
  5779.                }
  5780.  
  5781.                if (geocodeVisitorsSetting == 1 && geocodingMethod === "IP") {
  5782.                    populateSearchFields();
  5783.                }
  5784.  
  5785.                if($('.googleSuggest').val() == ""){
  5786.                    populateSearchFields();
  5787.                }
  5788.                
  5789.                var geocodeVisitorsSetting = '1';
  5790.                var geocodingMethod = 'HTML5';
  5791.  
  5792.                //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
  5793.  
  5794.                var vlon = '';
  5795.                var vlat = '';
  5796.            }
  5797.  
  5798.            function switchPlaceID(placeId,urlGET, formActionUrl) {
  5799.                let request = {
  5800.                    placeId: placeId,
  5801.                    fields: ['address_components', 'adr_address', 'formatted_address', 'geometry', 'icon', 'name', 'place_id', 'plus_code', 'type'],
  5802.                };
  5803.  
  5804.                let service = new google.maps.places.PlacesService(document.createElement('div'));
  5805.                service.getDetails(request, function(place, status) {
  5806.                    if (status === google.maps.places.PlacesServiceStatus.OK) {
  5807.                        let dataArray = [];
  5808.                        dataArray.push(place);
  5809.                        parseInfoToSearch(dataArray, urlGET, formActionUrl);
  5810.                    } else {
  5811.                        console.error('Place details request failed with status:', status);
  5812.                    }
  5813.                });
  5814.            }
  5815.  
  5816.            function parseInfoToSearch(results, urlGET, formActionUrl) {
  5817.                var urlSearchParams = new URLSearchParams(urlGET);
  5818.                var parameters = {};
  5819.                var addressComponentsArray = [];
  5820.                if (results.length > 1) {
  5821.                    if(urlSearchParams.get("location_value")?.toLowerCase() === "nebraska" && results.length === 2){
  5822.                        let tempResult = results[0];
  5823.                        results[0] = results[1];
  5824.                        results[1] = tempResult;
  5825.                    }
  5826.                    for (let i = 0; i < results.length; i++) {
  5827.                        if (results[i].types[0] === 'natural_feature' ||
  5828.                            results[i].types[0] === 'airport' ||
  5829.                            results[i].types[0] === 'point_of_interest' ||
  5830.                            results[i].types[0] === 'establishment' ||
  5831.                            results[i].types[0] === 'park') {
  5832.                            results.splice(i, 1);
  5833.                        }
  5834.                    }
  5835.                }
  5836.                var adComLength = results[0].address_components.length;
  5837.  
  5838.                if(results[0].place_id == 'ChIJmQrivHKsQjQR4MIK3c41aj8'){
  5839.                    switchPlaceID('ChIJi73bYWusQjQRgqQGXK260bw',urlGET, formActionUrl);
  5840.                    return;
  5841.                }
  5842.                sessionStorage.setItem("google_result",JSON.stringify(results));
  5843.  
  5844.                
  5845.                var foundPostalType     = results[0].types.find(type => postalTypes.includes(type));
  5846.                var foundCityType       = results[0].types.find(type => cityTypes.includes(type));
  5847.  
  5848.                //loop that will build the array with the address components and will get the short name of country and administrative area level 1
  5849.                for (var i = 0; i < adComLength; i++) {
  5850.  
  5851.                    if (results[0].address_components[i]['types'][0] == "country") {
  5852.                        parameters.country_sn = results[0].address_components[i]['short_name'];
  5853.                    }
  5854.                    if (results[0].address_components[i]['types'][0] == "administrative_area_level_1") {
  5855.                        parameters.adm_lvl_1_sn = results[0].address_components[i]['short_name'];
  5856.                    }
  5857.                    if (results[0].address_components[i]['types'][0] == "administrative_area_level_1") {
  5858.                        parameters.stateSearchLN = results[0].address_components[i]['long_name'];
  5859.                    }
  5860.                    if (results[0].address_components[i]['types'][0] == "administrative_area_level_2") {
  5861.                        parameters.county_sn = results[0].address_components[i]['short_name'];
  5862.                    }
  5863.                    if ($.inArray(results[0].address_components[i]['types'][0], cityTypes) !== -1 && (foundCityType || foundPostalType ) ) {
  5864.                        parameters.city = results[0].address_components[i]['long_name'];
  5865.                    }
  5866.                    if (results[0].address_components[i]['types'][0] == "postal_code" || results[0].address_components[i]['types'][0] == "postal_code_prefix") {
  5867.                        parameters.postal_code = results[0].address_components[i]['long_name'];
  5868.                    }
  5869.                }
  5870.  
  5871.                parameters.location_type = results[0].types[0];
  5872.  
  5873.                if (parameters.adm_lvl_1_sn != '') {
  5874.                    parameters.stateSearch = parameters.adm_lvl_1_sn;
  5875.                }
  5876.                if (parameters.country_sn == "GB") {
  5877.                    delete parameters.adm_lvl_1_sn;
  5878.                }
  5879.  
  5880.                //will check if the response had the bounds parameters
  5881.                //if it had it will add the south west and north east parameters to the new url
  5882.                if (results[0].geometry.hasOwnProperty('bounds') || results[0].geometry.hasOwnProperty('viewport')) {
  5883.  
  5884.                    if (results[0].geometry.hasOwnProperty('bounds')) {
  5885.                        var boundsResponse = results[0].geometry.bounds;
  5886.  
  5887.                    } else {
  5888.                        var boundsResponse = results[0].geometry.viewport;
  5889.                    }
  5890.                    parameters.swlat = boundsResponse.getSouthWest().lat();
  5891.                    parameters.nelat = boundsResponse.getNorthEast().lat();
  5892.                    parameters.swlng = boundsResponse.getSouthWest().lng();
  5893.                    parameters.nelng = boundsResponse.getNorthEast().lng();
  5894.  
  5895.                    //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
  5896.                } else {
  5897.                    parameters.fsearch = "radius";
  5898.                }
  5899.                var locationCenterResponse = results[0].geometry.location;
  5900.                parameters.lat = locationCenterResponse.lat();
  5901.                parameters.lng = locationCenterResponse.lng();
  5902.                parameters.faddress = results[0].formatted_address;
  5903.                parameters.place_id = results[0].place_id;
  5904.                var formatParameters = $.param(parameters);
  5905.                urlGET = urlGET + "&" + formatParameters;
  5906.                var urlPath = formActionUrl;
  5907.                var redirect = urlPath + "?" + urlGET;
  5908.                //will redirect the page using the new url that has been constructed
  5909.                window.location.href = redirect;
  5910.            }
  5911.            function populateSearchFields() {
  5912.                var prePopulateLocationSetting = '1';
  5913.                var geolocationMethod = 'HTML5';
  5914.  
  5915.                //if set to one will get the lat and lng to do reverse geocoding
  5916.                if (prePopulateLocationSetting == 1 && (geolocationMethod === "HTML5" || geolocationMethod === "IP") && (vlat !== '' && vlon !== '' && vlat != undefined && vlon != undefined && vlat != 0 && vlon != 0)) {
  5917.                    var visitorLatLng = new google.maps.LatLng(parseFloat(vlat), parseFloat(vlon));
  5918.                    var visitorGeocoder = new google.maps.Geocoder();
  5919.                    var formattedAddress = [];
  5920.                    var preFormattedStructure = {
  5921.                        "locality": "long_name",
  5922.                        "administrative_area_level_2": "long_name",
  5923.                        "administrative_area_level_1": "long_name",
  5924.                        "country": "long_name"
  5925.                    };
  5926.                    visitorGeocoder.geocode({'latLng': visitorLatLng}, function (results, status) {
  5927.                        //if the google response of the geocoding was successful it will use that info to build the url for the new search
  5928.                        if (status == google.maps.GeocoderStatus.OK) {
  5929.                            $.each(preFormattedStructure, function (findex, fvalue) {
  5930.                                $.each(results[0].address_components, function (rindex, rvalue) {
  5931.                                    if (rvalue.types[0] == findex) {
  5932.                                        formattedAddress.push(rvalue.long_name);
  5933.                                    }
  5934.                                });
  5935.                            });
  5936.                            $('.googleSuggest').each(function () {
  5937.                                if ($(this).val() == '') {
  5938.                                    if (formattedAddress.length > 0) {
  5939.                                        $(this).val(formattedAddress.join(', '));
  5940.                                        clearContent($(this));
  5941.                                    }
  5942.                                }
  5943.                            });
  5944.                        } else {
  5945.                            $('.googleSuggest').each(function () {
  5946.                                $(this).val('');
  5947.                            });
  5948.                        }
  5949.                    });
  5950.                }
  5951.            }
  5952.            function showError(error) {
  5953.                switch (error.code) {
  5954.                    case error.PERMISSION_DENIED:
  5955.                        $('.fill_location.clicked').popover({
  5956.                            content: 'Your Local browser settings have prevented location targeting',
  5957.                            container: 'body'
  5958.                        });
  5959.                        $('.fill_location.clicked').popover('toggle');
  5960.                        setTimeout(function () {
  5961.                            $('.fill_location.clicked').popover('hide');
  5962.                            $('.fill_location.clicked').removeClass('clicked');
  5963.                        }, 2000);
  5964.                        break;
  5965.                    case error.POSITION_UNAVAILABLE:
  5966.                        break;
  5967.                    case error.TIMEOUT:
  5968.                        break;
  5969.                    case error.UNKNOWN_ERROR:
  5970.                        break;
  5971.                }
  5972.            }
  5973.            if (navigator.geolocation) {
  5974.                if ($(".googleSuggest")[0]) {
  5975.                    $(document).on('click', '.fill_location', function getCXPosition() {
  5976.                        $(this).addClass('clicked');
  5977.                        var startPos;
  5978.                        navigator.geolocation.getCurrentPosition(function (position) {
  5979.                            startPos = position;
  5980.                            vlat = startPos.coords.latitude;
  5981.                            vlon = startPos.coords.longitude;
  5982.                            $.get("/api/data/html/get/data_widgets/widget_name", {
  5983.                                "vlat": vlat,
  5984.                                "vlon": vlon,
  5985.                                "name": "Website - Save Coordinates Session"
  5986.                            }).done(function (data) {
  5987.                            });
  5988.                            populateSearchFields();
  5989.                        }, showError);
  5990.                    })
  5991.                }
  5992.            } else {
  5993.                console.log('Geolocation is not supported for this Browser/OS version yet.');
  5994.            }
  5995.            function getUrlParameter(sParam) {
  5996.                var sPageURL = window.location.search.substring(1);
  5997.                var sURLVariables = sPageURL.split('&');
  5998.  
  5999.                for (var i = 0; i < sURLVariables.length; i++) {
  6000.                    var sParameterName = sURLVariables[i].split('=');
  6001.  
  6002.                    if (sParameterName[0] == sParam) {
  6003.                        return decodeURIComponent(sParameterName[1]);
  6004.                    }
  6005.                }
  6006.            }
  6007.        </script>
  6008.            <script type="text/javascript">
  6009.                function googleTranslateElementInit() {
  6010.            let spinIcon = document.getElementById('spin_remove');
  6011.            if (typeof spinIcon !== `undefined` && spinIcon != null) {
  6012.                spinIcon.remove();
  6013.            }
  6014.            new google.translate.TranslateElement({
  6015.                    pageLanguage: 'en',
  6016.                                        includedLanguages: 'af,am,ar,az,be,bg,bn,bs,ca,co,cs,cy,da,de,el,eo,es,et,eu,fa,fi,fr,fy,ga,gd,gl,gu,ha,haw,hi,hr,ht,hu,hy,id,ig,is,it,iw,ja,jw,ka,kk,km,kn,ko,ku,ky,la,lo,lt,lv,mg,mi,mk,ml,mn,mr,ms,mt,ne,nl,no,ny,pa,pl,ps,pt,ro,ru,sd,si,sk,sl,sn,so,sq,sr,st,su,sv,sw,ta,te,tg,th,tl,tr,uk,ur,uz,vi,xh,yi,yo,zh-CN,zh-TW,zu',
  6017.                                        autoDisplay: false,
  6018.                    layout: google.translate.TranslateElement.InlineLayout.HORIZONTAL
  6019.                },
  6020.                'google_translate_element');
  6021.            $('#google_translate_element').delay(9000).css("opacity", "1");
  6022.                    }
  6023.  
  6024.  
  6025.        function loadGoogleTranslate() {
  6026.            let head = document.getElementsByTagName('head')[0];
  6027.            let script = document.createElement('script');
  6028.            script.type = 'text/javascript';
  6029.            script.src = "//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit";
  6030.            head.appendChild(script);
  6031.        }
  6032.  
  6033.        if (!sessionStorage.getItem("googleTranslate") == 1) {
  6034.            window.addEventListener('load', (e) => {
  6035.                let alreadyLoaded = false;
  6036.                let loadingByTime = setTimeout(function () {
  6037.                    if (!alreadyLoaded) {
  6038.                        alreadyLoaded = true;
  6039.                        loadGoogleTranslate();
  6040.                    }
  6041.                }, 8000);
  6042.                window.addEventListener('scroll', initOnScroll, false);
  6043.                function initOnScroll() {
  6044.                    clearTimeout(loadingByTime);
  6045.                    if (!alreadyLoaded) {
  6046.                        alreadyLoaded = true;
  6047.                        loadGoogleTranslate();
  6048.                    }
  6049.                    window.removeEventListener('scroll', initOnScroll,false);
  6050.                }
  6051.                if (document.cookie.indexOf('googtrans=') !== -1) {
  6052.                    if (!alreadyLoaded) {
  6053.                        alreadyLoaded = true;
  6054.                        loadGoogleTranslate();
  6055.                    }
  6056.                }
  6057.                sessionStorage.setItem("googleTranslate", "1");
  6058.            });
  6059.  
  6060.        } else {
  6061.            loadGoogleTranslate()
  6062.        }
  6063.    </script>
  6064. <script>
  6065. $(document).ready(function(){
  6066. $('.navbar-header .navbar-toggle.main_menu').click(function(){
  6067. $('.mobile-main-menu').toggleClass('opened');
  6068. });
  6069. $('.mobile-main-menu .sidebar-nav').find('li').each(function(){
  6070. $(this).addClass('hasChildren');
  6071. if ($(this).children('ul').length > 0){
  6072. $(this).prepend('<i class="fa fa-plus" aria-hidden="true"></i>');
  6073. $(this).find('a').after('<div class="clearfix"></div>');
  6074. $(this).find('span').after('<div class="clearfix"></div>');
  6075. }
  6076. $(this).append('<div class="clearfix"></div>');
  6077. });
  6078.  
  6079. $('.mobile-main-menu .sidebar-nav li i').click(function(){
  6080. if ($(this).parent().children('ul').length > 0){
  6081. $(this).parent().toggleClass('sub_open');
  6082. }
  6083. if ($(this).hasClass('fa-plus')){
  6084. $(this).switchClass('fa-plus','fa-minus');
  6085. } else {
  6086. $(this).switchClass('fa-minus','fa-plus');
  6087. }
  6088. });
  6089. })
  6090.  
  6091. if ($(window).width() > 740 && $(window).width() < 1100) {
  6092.  
  6093. $(document).ready(function(){
  6094. $('.tablet-menu .tablet-menu-ul').find('li').each(function(){
  6095.  
  6096. if ($(this).children('ul').length > 0){
  6097. $(this).prepend('<i class="fa fa-plus tablet-fa hidden-sm hidden-md hidden-lg" aria-hidden="true"></i>');
  6098. $(this).find('a').after('<div class="clearfix"></div>');
  6099. var this_link = $(this).children('a').text().replace(/[^\x00-\x7F]/g, "");;
  6100. $(this).children('a').html(this_link);
  6101. $(this).find('span').after('<div class="clearfix"></div>');
  6102. }
  6103. $(this).append('<div class="clearfix"></div>');
  6104. });
  6105.  
  6106. $('.tablet-menu .tablet-menu-ul li i').click(function(){
  6107.  
  6108. if ($(this).parent().children('ul').length > 0){
  6109. $(this).parent().toggleClass('sub_open');
  6110.  
  6111. if ($(this).siblings( "ul" ).hasClass('tablet-block')){
  6112. $(this).siblings( "ul" ).switchClass('tablet-block', 'tablet-none');
  6113. } else {
  6114. $(this).siblings( "ul" ).addClass( "tablet-block" );
  6115.  
  6116. if ($(this).siblings( "ul" ).hasClass('tablet-none')){
  6117. $(this).siblings( "ul" ).removeClass('tablet-none')
  6118. }
  6119.  
  6120. if ($(this).parent().siblings().children('ul').hasClass('tablet-block')) {
  6121. $(this).parent().siblings().children('ul').switchClass('tablet-block', 'tablet-none');
  6122. $(this).parent().siblings().children('i').switchClass('fa-minus','fa-plus');
  6123. }
  6124.  
  6125. if ($(this).parent().siblings().children('ul').children().children('ul').hasClass('tablet-block')) {
  6126. $(this).parent().siblings().children('ul').children().children('ul').switchClass('tablet-block', 'tablet-none');
  6127. $(this).parent().siblings().children('ul').children().children('i').switchClass('fa-minus','fa-plus');
  6128. }
  6129.  
  6130. if ($(this).siblings('ul').children('ul').children().children('ul').hasClass('tablet-block')) {
  6131. $(this).siblings('ul').children('ul').children().children('ul').switchClass('tablet-block', 'tablet-none');
  6132. $(this).siblings('ul').children('ul').children().children('i').switchClass('fa-minus','fa-plus');
  6133. }
  6134.  
  6135. }
  6136.  
  6137. }
  6138.  
  6139. if ($(this).hasClass('fa-plus')){
  6140. $(this).switchClass('fa-plus','fa-minus');
  6141. } else {
  6142. $(this).switchClass('fa-minus','fa-plus');
  6143. }
  6144. });
  6145. })
  6146. }
  6147. // Append unique ID attribute for mobile main menu links
  6148. $('.mobile-main-menu a,.mobile-main-menu span').attr("id", function() { return $(this).attr("id") + "-mobile" });
  6149. </script><script>
  6150. $(".member-profile-tabs ul li a").click(function() {
  6151.    tabsTop = $(".member-profile-tabs").offset().top;
  6152.    positionTop = $(window).scrollTop();
  6153.    if(tabsTop < positionTop){
  6154.        $('html, body').animate({
  6155.        scrollTop: $(".member-profile-tabs").offset().top
  6156.    }, 300);
  6157.    }
  6158. });
  6159. </script><script>
  6160.  
  6161. $('.view_phone_number_header').click(function(event){
  6162. event.preventDefault();
  6163. $(this).hide();
  6164. $('.view_phone_number').hide();
  6165. $('.phone_number').css("display","block");
  6166. $('.phone_number_header').css("display","block");
  6167. })
  6168.  
  6169. </script><script defer>
  6170.    var favoriteMode = "";
  6171.    var apiEngine = "";
  6172.    var api = 0;  // Set API to use. Default is 0
  6173.    var activeMembershipLevelEnable = "";
  6174.    var favoriteUserClickId = "";
  6175.    var bookmarkLabel = `SAVE`;
  6176.    var bookmarkCountLabel = `SAVES`;
  6177.    var currentButton;
  6178.  
  6179.    function favoriteOn(lookForAll = false) {
  6180.        $('.col-md-6.col-md-offset-3').addClass("col-md-12").removeClass('col-md-6 col-md-offset-3');
  6181.        favoriteMode = 'search';
  6182.        if ($('.sidebarenabled').data('sidebar')) {
  6183.            favoriteMode = 'detail';
  6184.            if (!$('.sidebarenabled').siblings('.postItem').data('userid')) {
  6185.                $('.sidebarenabled').siblings('.listingData').remove();
  6186.            }
  6187.        }
  6188.        favoriteUserClickId = $('.favorite').data('activeuser');
  6189.        activeMembershipLevelEnable = $('.favorite').data('activefeatureenable');
  6190.  
  6191. // Sets the API URL to use based on API value
  6192.        if (api == 0) {
  6193.            apiEngine = '/api/data/html/get/data_widgets/widget_name?name=Bootstrap%20Theme%20-%20Function%20-%20Add%20to%20Favorites%20Button';
  6194.        } else if (api == 1) {
  6195.            apiEngine = '/api/data/html/get/data_widgets/widget_name?name=Bootstrap Theme - Function - Add to Favorites Button';
  6196.        } else {
  6197.            apiEngine = '/api/widget/json/get/Bootstrap Theme - Function - Add to Favorites Button';
  6198.        }
  6199.        if (favoriteUserClickId) {
  6200.            var favoriteCounter = $('.favorite').siblings('.postItem');
  6201.            if ($('.sidebarenabled').data('sidebar') || lookForAll) {
  6202.  
  6203.                if (favoriteCounter.length == 1) {
  6204.                    var favoriteMode = 'detail';
  6205.                    var favoriteDataType = $('.sidebarenabled').siblings('.postItem').data('datatype');
  6206.                    var favoriteDataId = $('.sidebarenabled').siblings('.postItem').data('dataid');
  6207.                    var favoritePostId = $('.sidebarenabled').siblings('.postItem').data('postid');
  6208.                    var favoriteUserId = [];
  6209.                    $('.sidebarenabled').siblings('.postItem').each(function () {
  6210.                        favoriteUserId.push($(this).data('userid'));
  6211.                    });
  6212.                } else {
  6213.                    var favoriteMode = 'multiSidebar';
  6214.                    var favoriteDataType = [];
  6215.                    var favoriteDataId = [];
  6216.                    var favoritePostId = [];
  6217.                    var favoriteUserId = [];
  6218.                    $('.postItem').each(function () {
  6219.                        favoriteDataType.push($(this).data('datatype'));
  6220.                        favoriteDataId.push($(this).data('dataid'));
  6221.                        favoritePostId.push($(this).data('postid'));
  6222.                        favoriteUserId.push($(this).data('userid'));
  6223.                    });
  6224.                }
  6225.            } else {
  6226.                var favoriteMode = 'search';
  6227.                var favoriteDataType = $('.favorite').siblings('.postItem').data('datatype');
  6228.                var favoriteDataId = $('.favorite').siblings('.postItem').data('dataid');
  6229.                if (lookForAll) {
  6230.                    favoriteDataType = (favoriteDataType == 10) ? 11 : 10;
  6231.                }
  6232.                if (favoriteDataType != 10) {
  6233.                    var favoritePostId = [];
  6234.                    $('.postItem').each(function () {
  6235.                        favoritePostId.push($(this).data('postid'));
  6236.                    });
  6237.                    var favoriteUserId = $('.favorite').siblings('.postItem').data('userid');
  6238.                } else {
  6239.                    var favoriteUserId = [];
  6240.                    $('.postItem').each(function () {
  6241.                        favoriteUserId.push($(this).data('userid'));
  6242.                    });
  6243.                    var favoritePostId = $('.favorite').siblings('.postItem').data('postid');
  6244.                }
  6245.            }
  6246.            favoriteCall(favoriteUserClickId, favoriteUserId, favoriteDataType, favoriteDataId, favoritePostId, favoriteMode, 'check');
  6247.        }
  6248.    }
  6249.  
  6250.    $(document).on('click', '.favorite', function (e) {
  6251.        var favoriteUserClickId = $('.favorite').data('activeuser');
  6252.        if (favoriteUserClickId && activeMembershipLevelEnable) {
  6253.            var thisButton = $(this);
  6254.            currentButton = thisButton;
  6255.            $(thisButton).attr("disabled", true);
  6256.                        var favoriteUserClickId = $(this).data('activeuser');
  6257.            var favoriteUserId = $(this).siblings('.postItem').data('userid');
  6258.            var favoriteDataType = $(this).siblings('.postItem').data('datatype');
  6259.            var favoriteDataId = $(this).siblings('.postItem').data('dataid');
  6260.            var favoritePostId = $(this).siblings('.postItem').data('postid');
  6261.            $(this).toggleClass('favoriteActive');
  6262.            if ($(this).data('state') == 0) {
  6263.                favoriteCall(favoriteUserClickId, favoriteUserId, favoriteDataType, favoriteDataId, favoritePostId, favoriteMode, 'add');
  6264.                $(this).data('state', 1);
  6265.            } else {
  6266.                favoriteCall(favoriteUserClickId, favoriteUserId, favoriteDataType, favoriteDataId, favoritePostId, favoriteMode, 'delete');
  6267.                $(this).data('state', 0);
  6268.            }
  6269.            setTimeout(function () {
  6270.                $(thisButton).attr("disabled", false);
  6271.            }, 500);
  6272.        }
  6273.    });
  6274.  
  6275.    function toogleBookmark(node) {
  6276.        var postId = $(node).data('postid');
  6277.        var count = $(node).data('count');
  6278.        var numberNode = $(node).find("#number-" + postId);
  6279.        var textLabelNode = $(node).find("#bookmark-content");
  6280.  
  6281.        if ($(node).hasClass('favoriteActive') !== false) {
  6282.            count--;
  6283.        } else {
  6284.            count++;
  6285.        }
  6286.  
  6287.        $(node).data("count", count);
  6288.  
  6289.        if (count > 0) {
  6290.            $(textLabelNode).html(bookmarkCountLabel);
  6291.            $(numberNode).html(' (' + count + ')');
  6292.        } else {
  6293.            $(textLabelNode).html(bookmarkLabel);
  6294.            $(numberNode).html('');
  6295.        }
  6296.    }
  6297.  
  6298.    // Function that Adds, Deletes and Selects Favorites from Backend
  6299.    function favoriteCall(favoriteUserClickId, favoriteUserId, favoriteDataType, favoriteDataId, favoritePostId, favoriteMode, favoriteAction) {
  6300.        $.post(apiEngine, {
  6301.            favoriteUserClickId: favoriteUserClickId,
  6302.            favoriteUserId: favoriteUserId,
  6303.            favoriteDataType: favoriteDataType,
  6304.            favoriteDataId: favoriteDataId,
  6305.            favoritePostId: favoritePostId,
  6306.            favoriteMode: favoriteMode,
  6307.            favoriteAction: favoriteAction
  6308.        }, function (data) {
  6309.            if (api == 0) {
  6310.                var splitData = data.split('<split>');
  6311.                data = splitData[1];
  6312.            }
  6313.  
  6314.            if(favoriteAction == "add" && data == "save_favorite_error"){
  6315.                $(currentButton).trigger('click');
  6316.                swal({
  6317.                    type:"warning",
  6318.                    title: `Action Unavailable`,
  6319.                    html: `Your account is currently not ACTIVE. <br> Only ACTIVE accounts can perform this action.`,
  6320.                });
  6321.            }
  6322.            
  6323.            if (data !== null && data !== 'null') {
  6324.                // Checks if the action 'check' was send
  6325.                if (favoriteAction == 'check' && favoriteMode != 'multiSidebar') {
  6326.                    // Checks if we are in a Detail Page
  6327.                    if (!$('.sidebarenabled').data('sidebar')) {
  6328.                        // Checks if we are viewing a Member
  6329.                        if (favoriteDataType != 10) {
  6330.                            $.each(JSON.parse(data), function (index, value) {
  6331.                                $('.postItem[data-postid="' + value + '"]').siblings('.favorite').addClass('favoriteActive');
  6332.                                $('.postItem[data-postid="' + value + '"]').siblings('.favorite').data('state', 1);
  6333.                            });
  6334.                        } else {
  6335.                            $.each(JSON.parse(data), function (index, value) {
  6336.                                $('.member_results .postItem[data-userid="' + value + '"]').siblings('.favorite').addClass('favoriteActive');
  6337.                                $('.member_results .postItem[data-userid="' + value + '"]').siblings('.favorite').data('state', 1);
  6338.                            });
  6339.                        }
  6340.                    } else {
  6341.                        // Checks if we are viewing a Member
  6342.                        if (favoriteDataType != 10) {
  6343.                            $.each(JSON.parse(data), function (index, value) {
  6344.                                $('.sidebarenabled').siblings('.favorite').addClass('favoriteActive');
  6345.                                $('.sidebarenabled').siblings('.favorite').data('state', 1);
  6346.                            });
  6347.                        } else {
  6348.                            $.each(JSON.parse(data), function (index, value) {
  6349.                                $('.sidebarenabled').siblings('.favorite').addClass('favoriteActive');
  6350.                                $('.sidebarenabled').siblings('.favorite').data('state', 1);
  6351.                            });
  6352.                        }
  6353.                    }
  6354.                } else if (favoriteAction == 'check' && favoriteMode == 'multiSidebar') {
  6355.                    let totalDataCount = JSON.parse(data);
  6356.                    if (totalDataCount) {
  6357.                        totalDataCount = totalDataCount.length;
  6358.                        for (let i = 0; i < totalDataCount; i++) {
  6359.                            if (JSON.parse(data)[i].dataQuery != 0) {
  6360.                                $('.postItem[data-postid="' + JSON.parse(data)[i].postQuery + '"][data-dataid="' + JSON.parse(data)[i].dataQuery + '"]').siblings('.favorite').addClass('favoriteActive');
  6361.                                $('.postItem[data-postid="' + JSON.parse(data)[i].postQuery + '"][data-dataid="' + JSON.parse(data)[i].dataQuery + '"]').siblings('.favorite').data('state', 1);
  6362.                            } else {
  6363.                                $('.postItem[data-userid="' + JSON.parse(data)[i].postQuery + '"]').siblings('.favorite').addClass('favoriteActive');
  6364.                                $('.postItem[data-userid="' + JSON.parse(data)[i].postQuery + '"]').siblings('.favorite').data('state', 1);
  6365.                            }
  6366.                        }
  6367.                    }
  6368.                }
  6369.            }
  6370.        });
  6371.    }
  6372.  
  6373.    // Code that runs once to show all favored posts by a registered user
  6374.  
  6375.    favoriteOn();
  6376.    favoriteOn(true);
  6377. </script><script></script>
  6378. <script>
  6379.    function showFBShare() {
  6380.        let currentURL = document.querySelector('meta[property="og:url"]').content;
  6381.        window.open(`https://www.facebook.com/sharer/sharer.php?u=${currentURL}`, `pop`, `width=600, height=400, scrollbars=no`);
  6382.    }
  6383. </script>
  6384. <script>
  6385.    var delayInMilliseconds = 300;
  6386.    if (!sessionStorage.getItem("googleTranslate") == 1) {
  6387.        sessionStorage.setItem("googleTranslate", "1");
  6388.        delayInMilliseconds = 7000;
  6389.    }
  6390.    let fbBtn = document.getElementsByClassName('fb-share-button')[0];
  6391.    if(typeof fbBtn != 'undefined' && fbBtn.dataset.layout){
  6392.        if (typeof loadFBjs == 'function') {
  6393.            loadFBjs(delayInMilliseconds);
  6394.        }
  6395.    }
  6396.  
  6397.    setTimeout(function() {
  6398.        $.when(
  6399.            $.getScript( "//platform.twitter.com/widgets.js" ),            $.getScript( "https://platform.linkedin.com/in.js?lang=en-US" ),
  6400.            $.Deferred(function( deferred ){
  6401.                $( deferred.resolve );
  6402.            })
  6403.        ).done(function(){
  6404.            $( ".spin_remove_2" ).hide();
  6405.            $( ".fb-share-button" ).show();
  6406.        });
  6407.    }, delayInMilliseconds);
  6408. </script><script>
  6409.    $('#captchaContainer').removeClass('form-control ');
  6410.    $(".website_url_field").keyup(function(){
  6411.        var fieldName = $(this).attr('name');
  6412.        $(this).val($(this).val().replace(/\s+/g, ''));
  6413.        $('#myform').formValidation('revalidateField', fieldName);
  6414.    });
  6415. </script>
  6416. <script>
  6417.     $('#newsletter input[name="email"]').on('keypress', function() {
  6418.        $("#newsletter > .gdpr_consent_email").show();
  6419.    });
  6420. $('#newsletter_signup_footer input[name="email"]').on('keypress', function() {
  6421.        $("#newsletter_signup_footer > .gdpr_consent_email").show();
  6422.    });
  6423. </script>                <script src="https://www.optimizecdn.com/directory/cdn/bootstrap/formvalidation/current/dist/js/formValidation.min.js"></script>
  6424.                <script src="https://www.optimizecdn.com/directory/cdn/bootstrap/formvalidation/current/dist/js/framework/bootstrap.min.js"></script>
  6425.                <script type="text/javascript">
  6426.                    function decodeHtml(html) {
  6427.                        var txt = document.createElement("textarea");
  6428.                        txt.innerHTML = html;
  6429.                        return txt.value;
  6430.                    }
  6431.                </script>
  6432.                        <script type="text/javascript">
  6433.  
  6434.        var counterSubmit = 0;
  6435.        $(document).ready(function() {
  6436.            $(`form[name='newsletter_modal_signup_380']`).formValidation({"framework":"bootstrap","addOns":{"reCaptcha2":{"element":"captchaContainer","language":"en","theme":"light","siteKey":"6LeW4w8UAAAAAOldQ6hNXLhb9VBoUl4UYszeKGuf","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) {
  6437.                
  6438.                if('newsletter_modal_signup' == 'unsubscribe_email'){
  6439.                    return true;
  6440.                }
  6441.                // Prevent form submission
  6442.                e.preventDefault();
  6443.                $form = $(e.target),
  6444.                fv = $form.data('formValidation');
  6445.                var values = $(this).serialize();
  6446.  
  6447.                
  6448.                var locationFieldCorrect = true;
  6449.  
  6450.                if($("#newsletter_modal_signup_380 .location_required").length > 0){
  6451.                    $("#newsletter_modal_signup_380 .location_required").each(function (index) {
  6452.                        if($(this).data('state') == 1){
  6453.                            if($('#newsletter_modal_signup_380 input[name="lead_location"]').val() == "" || $('#newsletter_modal_signup_380 input[name="lat"]').val() == "" || $('#newsletter_modal_signup_380 input[name="lng"]').val() == "") {
  6454.                                locationFieldCorrect = false;
  6455.                            }
  6456.                        }
  6457.                    });
  6458.                }
  6459.  
  6460.                if(locationFieldCorrect === false){
  6461.                    //check that there is a latitude or longitude
  6462.                    swal(`Whoops!`, `The location information is required to submit this form`, "error");
  6463.                    return false;
  6464.                }
  6465.                        
  6466.  
  6467.                if (!$(this).attr("action")) {
  6468.                    var action = '';
  6469.  
  6470.                } else {
  6471.                    var action = $(this).attr("action");
  6472.                }
  6473.                if (!$(this).attr("method")) {
  6474.                    var method = 'post';
  6475.  
  6476.                } else {
  6477.                    var method = $(this).attr("method");
  6478.                }
  6479.                if (!$(this).attr("form_action_type")) {
  6480.                    var form_action_type = 'notification';
  6481.  
  6482.                } else {
  6483.                    var form_action_type = $(this).attr("form_action_type");
  6484.                }
  6485.                if (!$(this).attr("form_action_div")) {
  6486.                    var form_action_div = '#first_container';
  6487.  
  6488.                } else {
  6489.                    var form_action_div = $(this).attr("form_action_div");
  6490.                }
  6491.                if (!$(this).attr("return_data_type")) {
  6492.                    var return_data_type = 'json';
  6493.  
  6494.                } else {
  6495.                    var return_data_type = $(this).attr("return_data_type");
  6496.                }
  6497.                if ($("#newsletter_modal_signup_380-notification").html() != "") {
  6498.                    $("#newsletter_modal_signup_380-notification").remove();
  6499.                }
  6500.                if ($(this).find('input[type="submit"]').length > 0) {
  6501.                    $(this).find('input[type="submit"]').before('<div id="newsletter_modal_signup_380-notification" class="alert"></div>');
  6502.  
  6503.                } else {
  6504.                    $(this).prepend('<div id="newsletter_modal_signup_380-notification" class="alert"></div>');
  6505.                }
  6506.                var notification = $("#newsletter_modal_signup_380-notification");
  6507.  
  6508.                if ((form_action_type == "" || form_action_type == "default") && action.indexOf("account") >= 0) {
  6509.                    notification.html(`Processing Request...`).addClass("alert-warning");
  6510.                    setTimeout(function(){
  6511.                        fv.defaultSubmit();
  6512.                    }, 100);
  6513.                } else {
  6514.                    notification.html(`Processing Request...`).addClass("alert-warning");
  6515.                    if(counterSubmit == 0) {
  6516.                        counterSubmit++;
  6517.  
  6518.                        var fields      = $(this).serializeArray();
  6519.                        var formField   = [];
  6520.                        var processData = true;
  6521.                        var contentType = "application/x-www-form-urlencoded; charset=UTF-8";
  6522.                        
  6523.                        
  6524.  
  6525.                        if($("#newsletter_modal_signup_380 input[type=file]").length > 0){
  6526.                            
  6527.                            var formObject  = new FormData();
  6528.                            processData     = false;
  6529.                            contentType     = false;
  6530.  
  6531.                            $(fields).each(function(index,field){
  6532.                                formField.push(field.name+"="+field.value);
  6533.                            });
  6534.  
  6535.                            values  = formField.join("&");
  6536.  
  6537.                            $(formField).each(function(index,fieldValue){
  6538.                                var fieldInfo = fieldValue.split('=');
  6539.                                formObject.append(fieldInfo[0],fieldInfo[1]);
  6540.                            });
  6541.  
  6542.                            $("#newsletter_modal_signup_380 input[type=file]").each(function(index,node){
  6543.                                var file = this.files[0];
  6544.                                if(typeof file != "undefined"){
  6545.                                    formObject.append("file_addon["+$(node).attr('name')+"]", file, file.name);
  6546.                                }
  6547.                            });
  6548.                        }else{
  6549.                            
  6550.                            $(fields).each(function(index,field){
  6551.                                formField.push(field.name+"="+encodeURIComponent(field.value));
  6552.                            });
  6553.  
  6554.                            var formObject  = formField.join("&");
  6555.                        }
  6556.                        
  6557.                        $.ajax({
  6558.                            url: action,
  6559.                            type: method,
  6560.                            data: formObject,
  6561.                            dataType: return_data_type,
  6562.                            processData: processData,
  6563.                            contentType: contentType,
  6564.                            success: function (data) {
  6565.                                if (return_data_type == "html") {
  6566.                                    var result = 'success';
  6567.  
  6568.                                    if (!data != "") {
  6569.                                        var result_widget = data['result_widget'];
  6570.                                    }
  6571.  
  6572.                                } else {
  6573.  
  6574.  
  6575.                                    if (!data['result']) {
  6576.                                        var result = 'error';
  6577.                                    } else {
  6578.                                        var result = data['result'];
  6579.                                    }
  6580.                                    if (!data['result_widget']) {
  6581.                                        var result_widget = '';
  6582.  
  6583.                                    } else {
  6584.                                        var result_widget = data['result_widget'];
  6585.                                    }
  6586.                                }
  6587.                                if (result == "success") {
  6588.  
  6589.                                    if (!data['message']) {
  6590.                                        var message = `Your information has submitted successfully!`;
  6591.  
  6592.                                    } else {
  6593.                                        var message = data['message'];
  6594.                                    }
  6595.                                    if (!data['redirect_url']) {
  6596.                                        var redirect_url = '';
  6597.  
  6598.                                    } else {
  6599.                                        var redirect_url = data['redirect_url'];
  6600.                                    }
  6601.  
  6602.  
  6603.  
  6604.                                    if (form_action_type == "notification") {
  6605.                                        notification.html(message + '<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>')
  6606.                                            .addClass('alert-dismissible')
  6607.                                            .addClass("alert-success")
  6608.                                            .removeClass("alert-danger")
  6609.                                            .removeClass("alert-warning")
  6610.                                        
  6611.                                            
  6612.  
  6613.                                        if(notification.parents('.modal').length && 'newsletter_modal_signup_380' == 'whmcs_billing_address'){
  6614.                                            setTimeout(function(){
  6615.                                                notification.parents('.modal').modal('hide');
  6616.                                            }, 1000);
  6617.                                        }
  6618.  
  6619.                                    } else if (form_action_type == "widget") {
  6620.  
  6621.                                        if (result_widget != '') {
  6622.  
  6623.                                            setTimeout(function(){
  6624.                                                if(form_action_div != '.newsletter_modal_form_container'){
  6625.                                                    $("html, body").animate({ scrollTop: 0 }, 600);
  6626.                                                }                                                
  6627.                                                $(form_action_div).html(decodeHtml(result_widget)).text();
  6628.  
  6629.                                            }, 1000);
  6630.                                        }
  6631.  
  6632.                                    } else if (form_action_type == "redirect") {
  6633.  
  6634.                                        if (redirect_url == "") {
  6635.                                            redirect_url = decodeURIComponent("");
  6636.                                        }
  6637.  
  6638.                                        if (redirect_url.substring(0, 1) != "/" && redirect_url.substring(0, 1) != "h") {
  6639.                                            redirect_url = "/" + redirect_url;
  6640.                                        }
  6641.                                        current_location = "/united-states/yorba-linda/automotive/ocrv-paint-service";
  6642.                                        refresh_pages_string = "/login";
  6643.                                        refresh_pages_string = refresh_pages_string.replace(/ /g,'');
  6644.                                        refresh_pages_array = refresh_pages_string.split(',');
  6645.                                        notification.html(message)
  6646.                                            .addClass("alert-success")
  6647.                                            .removeClass("alert-danger")
  6648.                                            .removeClass("alert-warning")
  6649.                                            .delay(2000).slideUp();
  6650.                                            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" )){
  6651.                                                                                                    window.location.href = window.location.href+'?logged';
  6652.                                                                                            } else {
  6653.                                                window.location.href = redirect_url;
  6654.                                            }
  6655.  
  6656.                                        fv.resetForm(true);
  6657.                                    }
  6658.                                    if(form_action_div != '.newsletter_modal_form_container' && 'newsletter_modal_signup_380' != 'whmcs_billing_address'){
  6659.                                        $('.modal-backdrop').hide();
  6660.                                    }
  6661.                                } else {
  6662.                                    if(typeof grecaptcha !== "undefined"){
  6663.                                        grecaptcha.reset();
  6664.                                    }
  6665.                                    if (!data['message']) {
  6666.                                        var message = `You entered invalid data. Please try to save again.`;
  6667.  
  6668.                                    } else {
  6669.                                        var message = data['message'];
  6670.                                    }
  6671.                                    $("#newsletter_modal_signup_380-notification").html(message)
  6672.                                        .addClass("alert-danger")
  6673.                                        .removeClass("alert-success")
  6674.                                        .removeClass("alert-warning")
  6675.                                        .fadeIn();
  6676.                                    fv.disableSubmitButtons(false);
  6677.                                }
  6678.                                counterSubmit = 0;
  6679.                            },
  6680.                            error: function (e) {
  6681.                                
  6682.                                if(typeof grecaptcha !== "undefined"){
  6683.                                        grecaptcha.reset();
  6684.                                        $("#newsletter_modal_signup_380-notification").html(`Recaptcha Error`);
  6685.                                } else {
  6686.                                    $("#newsletter_modal_signup_380-notification").html(`A connection error occurred while saving. Please try to save again.`);
  6687.                                }
  6688.                                $("#newsletter_modal_signup_380-notification").addClass("alert-warning")
  6689.                                    .removeClass("alert-success")
  6690.                                    .removeClass("alert-warning")
  6691.                                    .fadeIn();
  6692.                                counterSubmit = 0;
  6693.                            }
  6694.                        });/// End Ajax
  6695.                    }
  6696.                }//END else
  6697.            }).bind('keydown', function(event) {
  6698.  
  6699.                if (event.ctrlKey || event.metaKey) {
  6700.  
  6701.                    switch (String.fromCharCode(event.which).toLowerCase()) {
  6702.  
  6703.                        case 's':
  6704.                            $(this).submit();
  6705.                            break;
  6706.                    }
  6707.                }
  6708.            });
  6709.  
  6710.            /// This will turn any select2 that are required in the form builder to being required elements.
  6711.            $('#newsletter_modal_signup_380 select').each(function (i, obj) {
  6712.                setTimeout(function(){
  6713.                    if ($(obj).prop("required") && $(obj).attr("style") == "display: none;") {
  6714.                        $(obj).css("z-index","-999");
  6715.                        $(obj).css("height","0");
  6716.                        $(obj).css("width","0");
  6717.                        $(obj).css("display","block");  
  6718.                        $(obj).css("position","absolute");  
  6719.                    }
  6720.                }, 3000);
  6721.            });
  6722.  
  6723.        });//END $('# echo $_SERVER[form_element_id]; ').formValidation(
  6724.    </script>
  6725.        <div class="modal fade" id="newsletter_subscribe_modal" tabindex="-1" role="dialog" aria-hidden="true">
  6726. <div class="modal-dialog">
  6727. <div class="modal-content">
  6728. <div class="container-fluid">
  6729. <div class="row">
  6730. <div class="col-md-12">
  6731. <br>
  6732. <button type="button" class="close" data-dismiss="modal" aria-label="Close">
  6733. <span aria-hidden="true">&times;</span>
  6734. </button>
  6735. <h3 class="nomargin">
  6736. Join Our Newsletter
  6737. </h3>
  6738. <hr>
  6739. <div class="newsletter_modal_form_container">
  6740. <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_modal_signup_380" 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_380" class=" "><input type="hidden" name="sized" value="0" id="newsletter_modal_signup_380-element-0"/><input type="hidden" name="mysql_real_escape_string_runned" value="1" id="newsletter_modal_signup_380-element-1"/><input type="hidden" name="userid" value="172282" id="newsletter_modal_signup_380-element-2"/><input type="hidden" name="form" value="myform" id="newsletter_modal_signup_380-element-3"/><input type="hidden" name="formname" value="newsletter_modal_signup" id="newsletter_modal_signup_380-element-4"/><input type="hidden" name="dowiz" value="1" id="newsletter_modal_signup_380-element-5"/><input type="hidden" name="save" value="1" id="newsletter_modal_signup_380-element-6"/><input type="hidden" name="url_origin_pars" value="/united-states/yorba-linda/automotive/ocrv-paint-service" id="newsletter_modal_signup_380-element-7"/><input type="hidden" name="action" autocomplete="off" value="subscribe" id="newsletter_modal_signup_380-element-8"/><div class="form-group"><input type="text" name="first_name" placeholder="Name" autocomplete="off" value class="form-control control-group  form-control " id="newsletter_modal_signup_380-element-9"/></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_modal_signup_380-element-10"/></div><div class="form-group"><div class="form-group security_question_label">
  6741.            <div id="newsletter_modal_signup_380-captchaContainer" class="control-group">
  6742.        <div class="g-recaptcha"  id="newsletter_modal_signup_380-google-recaptcha"></div>
  6743.    </div>
  6744.    <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>
  6745.    <div class="clearfix bmargin"></div>
  6746.    <input type="hidden" name="recaptcha" id="newsletter_modal_signup_380-rcap">
  6747. </div>
  6748.    <style>
  6749.        .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 {
  6750.            transform: scale(0.77);
  6751.            -webkit-transform: scale(0.77);
  6752.            transform-origin: 0 0;
  6753.            -webkit-transform-origin: 0 0;
  6754.            margin-bottom: -15px;
  6755.        }
  6756.  
  6757.        .modal #newsletter_modal_signup_380-captchaContainer, .col-md-4 #newsletter_modal_signup_380-captchaContainer, .col-md-3 #newsletter_modal_signup_380-captchaContainer, .col-lg-3 #newsletter_modal_signup_380-captchaContainer, .col-lg-4 #newsletter_modal_signup_380-captchaContainer {
  6758.            transform: scale(0.77);
  6759.            -webkit-transform: scale(0.77);
  6760.            transform-origin: 0 0;
  6761.            -webkit-transform-origin: 0 0;
  6762.            margin-bottom: -15px;
  6763.        }
  6764.    </style>
  6765.    <script type="text/javascript">
  6766.        var formID          = '';
  6767.        var currentCaptcha  = {};
  6768.        var captchaHolders  = {};
  6769.        if(typeof formsFound == "undefined"){
  6770.            var formsFound      = {};
  6771.            window.addEventListener('load', () => {
  6772.                formID = document.querySelectorAll('[name="recaptcha"]');
  6773.                if (typeof formID != "undefined" && formID !== null) {
  6774.                    for (let i = 0; i < formID.length; i++) {
  6775.                        let formIDForm      = formID[i].closest('form');
  6776.                        let captchaHolder   = formIDForm.querySelector(".g-recaptcha");
  6777.  
  6778.                        if (typeof formsFound[formIDForm.id] != "undefined") {
  6779.                            formsFound[formIDForm.id]['counter']++;
  6780.                        }else{
  6781.                            formsFound[formIDForm.id] = {'counter' : 1};
  6782.                        }
  6783.  
  6784.                        formIDForm.setAttribute('data-counter', formsFound[formIDForm.id]['counter']);
  6785.                        captchaHolder.setAttribute('id',captchaHolder.id+'-'+formsFound[formIDForm.id]['counter']);
  6786.  
  6787.                        if (typeof formIDForm != "undefined" && formIDForm !== null) {
  6788.                            formIDForm.addEventListener('click', reCaptchaOnFormClick, false);
  6789.                        }
  6790.                    }
  6791.                }
  6792.            });
  6793.        }
  6794.  
  6795.        function reCaptchaOnFormClick(event) {
  6796.            currentCaptchaForm  = event.srcElement.closest('form');
  6797.            var head            = document.getElementsByTagName('head')[0];
  6798.            var script          = document.createElement('script');
  6799.            script.type         = 'text/javascript';
  6800.            script.src          = 'https://www.google.com/recaptcha/api.js?onload=onloadCallback&render=explicit&hl=en';
  6801.            head.appendChild(script);
  6802.            if (typeof currentCaptchaForm != "undefined" && currentCaptchaForm !== null) {
  6803.                currentCaptchaForm.removeEventListener('click', reCaptchaOnFormClick, false);
  6804.            }
  6805.        }
  6806.  
  6807.  
  6808.        var onloadCallback = function (event) {
  6809.            var captcha = currentCaptchaForm.querySelectorAll('div[class=g-recaptcha]');
  6810.            if(captcha[0].id){
  6811.                captchaHolders[captcha[0].id] = grecaptcha.render(captcha[0].id, {
  6812.                    'sitekey': '6LeW4w8UAAAAAOldQ6hNXLhb9VBoUl4UYszeKGuf'
  6813.                });
  6814.            }
  6815.        }
  6816.  
  6817.    </script>
  6818. <script>
  6819.    function respuesta() {
  6820.        var checkedTextArea = document.getElementsByClassName('g-recaptcha');
  6821.        var rcap = document.getElementsByTagName('recaptcha');
  6822.        for (var i = 0; i < checkedTextArea.length; i++) {
  6823.            if (checkedTextArea[i].value != '') {
  6824.                for (var index = 0; i < rcap.length; index++) {
  6825.                    rcap[index].setAttribute("value", "checked");
  6826.                }
  6827.            }
  6828.        }
  6829.    }
  6830.  
  6831.    $(document).ready(function(){
  6832.        $("#newsletter_modal_signup_380 input[type=submit]").unbind('click');
  6833.        $("#newsletter_modal_signup_380 input[type=submit]").click(function (event) {
  6834.  
  6835.            var formId = $(this.form).attr('id');
  6836.            var captchaHolderKey = formId + "-google-recaptcha-" +$(this.form).data('counter');
  6837.  
  6838.            if (typeof captchaHolders[captchaHolderKey] != "undefined") {
  6839.                event.preventDefault();
  6840.  
  6841.                if (grecaptcha.getResponse(captchaHolders[captchaHolderKey]) === "") {
  6842.                    $("#" + formId).formValidation('validate');
  6843.                    $("#" + formId + " .security_question_label").addClass("has-error");
  6844.                    $("#" + formId + " #recaptcha_error").css("display", "block");
  6845.                    return false;
  6846.                } else {
  6847.                    $("#" + formId + " .security_question_label").removeClass("has-error");
  6848.                    $("#" + formId + " #recaptcha_error").css("display", "none");
  6849.                    respuesta();
  6850.                    $("#" + formId).submit();
  6851.                }
  6852.            }
  6853.        });
  6854.    });
  6855. </script></div><div class="form-group"><input type="hidden" name="bd_hpc" autocomplete="off" value class="form-control control-group " id="newsletter_modal_signup_380-element-13"/></div><div class="form-actions"><input type="submit" value="Subscribe Now" name class="btn btn-success btn-block btn-lg  bold " id="newsletter_modal_signup_380-element-14"/></div><input type='hidden' name='origin' value='/united-states/yorba-linda/automotive/ocrv-paint-service'></form><script type="text/javascript">jQuery(document).ready(function() { jQuery("#newsletter_modal_signup_380").bind("submit", function() {
  6856. });}); </script> </div>
  6857. <br>
  6858. </div>
  6859. </div>
  6860. </div>
  6861. </div>
  6862. </div>
  6863. </div>        <script type="text/javascript">
  6864.  
  6865.        var counterSubmit = 0;
  6866.        $(document).ready(function() {
  6867.            $(`form[name='member_login_66']`).formValidation({"framework":"bootstrap","fields":{"email":{"validators":{"emailAddress":{"message":"Please enter a valid email address"}}}}}).on('success.form.fv', function(e,fvdata) {
  6868.                
  6869.                if('member_login' == 'unsubscribe_email'){
  6870.                    return true;
  6871.                }
  6872.                // Prevent form submission
  6873.                e.preventDefault();
  6874.                $form = $(e.target),
  6875.                fv = $form.data('formValidation');
  6876.                var values = $(this).serialize();
  6877.  
  6878.                
  6879.                var locationFieldCorrect = true;
  6880.  
  6881.                if($("#member_login_66 .location_required").length > 0){
  6882.                    $("#member_login_66 .location_required").each(function (index) {
  6883.                        if($(this).data('state') == 1){
  6884.                            if($('#member_login_66 input[name="lead_location"]').val() == "" || $('#member_login_66 input[name="lat"]').val() == "" || $('#member_login_66 input[name="lng"]').val() == "") {
  6885.                                locationFieldCorrect = false;
  6886.                            }
  6887.                        }
  6888.                    });
  6889.                }
  6890.  
  6891.                if(locationFieldCorrect === false){
  6892.                    //check that there is a latitude or longitude
  6893.                    swal(`Whoops!`, `The location information is required to submit this form`, "error");
  6894.                    return false;
  6895.                }
  6896.                        
  6897.  
  6898.                if (!$(this).attr("action")) {
  6899.                    var action = '';
  6900.  
  6901.                } else {
  6902.                    var action = $(this).attr("action");
  6903.                }
  6904.                if (!$(this).attr("method")) {
  6905.                    var method = 'post';
  6906.  
  6907.                } else {
  6908.                    var method = $(this).attr("method");
  6909.                }
  6910.                if (!$(this).attr("form_action_type")) {
  6911.                    var form_action_type = 'notification';
  6912.  
  6913.                } else {
  6914.                    var form_action_type = $(this).attr("form_action_type");
  6915.                }
  6916.                if (!$(this).attr("form_action_div")) {
  6917.                    var form_action_div = '#first_container';
  6918.  
  6919.                } else {
  6920.                    var form_action_div = $(this).attr("form_action_div");
  6921.                }
  6922.                if (!$(this).attr("return_data_type")) {
  6923.                    var return_data_type = 'json';
  6924.  
  6925.                } else {
  6926.                    var return_data_type = $(this).attr("return_data_type");
  6927.                }
  6928.                if ($("#member_login_66-notification").html() != "") {
  6929.                    $("#member_login_66-notification").remove();
  6930.                }
  6931.                if ($(this).find('input[type="submit"]').length > 0) {
  6932.                    $(this).find('input[type="submit"]').before('<div id="member_login_66-notification" class="alert"></div>');
  6933.  
  6934.                } else {
  6935.                    $(this).prepend('<div id="member_login_66-notification" class="alert"></div>');
  6936.                }
  6937.                var notification = $("#member_login_66-notification");
  6938.  
  6939.                if ((form_action_type == "" || form_action_type == "default") && action.indexOf("account") >= 0) {
  6940.                    notification.html(`Processing Request...`).addClass("alert-warning");
  6941.                    setTimeout(function(){
  6942.                        fv.defaultSubmit();
  6943.                    }, 100);
  6944.                } else {
  6945.                    notification.html(`Processing Request...`).addClass("alert-warning");
  6946.                    if(counterSubmit == 0) {
  6947.                        counterSubmit++;
  6948.  
  6949.                        var fields      = $(this).serializeArray();
  6950.                        var formField   = [];
  6951.                        var processData = true;
  6952.                        var contentType = "application/x-www-form-urlencoded; charset=UTF-8";
  6953.                        
  6954.                        
  6955.  
  6956.                        if($("#member_login_66 input[type=file]").length > 0){
  6957.                            
  6958.                            var formObject  = new FormData();
  6959.                            processData     = false;
  6960.                            contentType     = false;
  6961.  
  6962.                            $(fields).each(function(index,field){
  6963.                                formField.push(field.name+"="+field.value);
  6964.                            });
  6965.  
  6966.                            values  = formField.join("&");
  6967.  
  6968.                            $(formField).each(function(index,fieldValue){
  6969.                                var fieldInfo = fieldValue.split('=');
  6970.                                formObject.append(fieldInfo[0],fieldInfo[1]);
  6971.                            });
  6972.  
  6973.                            $("#member_login_66 input[type=file]").each(function(index,node){
  6974.                                var file = this.files[0];
  6975.                                if(typeof file != "undefined"){
  6976.                                    formObject.append("file_addon["+$(node).attr('name')+"]", file, file.name);
  6977.                                }
  6978.                            });
  6979.                        }else{
  6980.                            
  6981.                            $(fields).each(function(index,field){
  6982.                                formField.push(field.name+"="+encodeURIComponent(field.value));
  6983.                            });
  6984.  
  6985.                            var formObject  = formField.join("&");
  6986.                        }
  6987.                        
  6988.                        $.ajax({
  6989.                            url: action,
  6990.                            type: method,
  6991.                            data: formObject,
  6992.                            dataType: return_data_type,
  6993.                            processData: processData,
  6994.                            contentType: contentType,
  6995.                            success: function (data) {
  6996.                                if (return_data_type == "html") {
  6997.                                    var result = 'success';
  6998.  
  6999.                                    if (!data != "") {
  7000.                                        var result_widget = data['result_widget'];
  7001.                                    }
  7002.  
  7003.                                } else {
  7004.  
  7005.  
  7006.                                    if (!data['result']) {
  7007.                                        var result = 'error';
  7008.                                    } else {
  7009.                                        var result = data['result'];
  7010.                                    }
  7011.                                    if (!data['result_widget']) {
  7012.                                        var result_widget = '';
  7013.  
  7014.                                    } else {
  7015.                                        var result_widget = data['result_widget'];
  7016.                                    }
  7017.                                }
  7018.                                if (result == "success") {
  7019.  
  7020.                                    if (!data['message']) {
  7021.                                        var message = `Your information has submitted successfully!`;
  7022.  
  7023.                                    } else {
  7024.                                        var message = data['message'];
  7025.                                    }
  7026.                                    if (!data['redirect_url']) {
  7027.                                        var redirect_url = '';
  7028.  
  7029.                                    } else {
  7030.                                        var redirect_url = data['redirect_url'];
  7031.                                    }
  7032.  
  7033.  
  7034.  
  7035.                                    if (form_action_type == "notification") {
  7036.                                        notification.html(message + '<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>')
  7037.                                            .addClass('alert-dismissible')
  7038.                                            .addClass("alert-success")
  7039.                                            .removeClass("alert-danger")
  7040.                                            .removeClass("alert-warning")
  7041.                                        
  7042.                                            
  7043.  
  7044.                                        if(notification.parents('.modal').length && 'member_login_66' == 'whmcs_billing_address'){
  7045.                                            setTimeout(function(){
  7046.                                                notification.parents('.modal').modal('hide');
  7047.                                            }, 1000);
  7048.                                        }
  7049.  
  7050.                                    } else if (form_action_type == "widget") {
  7051.  
  7052.                                        if (result_widget != '') {
  7053.  
  7054.                                            setTimeout(function(){
  7055.                                                if(form_action_div != '.newsletter_modal_form_container'){
  7056.                                                    $("html, body").animate({ scrollTop: 0 }, 600);
  7057.                                                }                                                
  7058.                                                $(form_action_div).html(decodeHtml(result_widget)).text();
  7059.  
  7060.                                            }, 1000);
  7061.                                        }
  7062.  
  7063.                                    } else if (form_action_type == "redirect") {
  7064.  
  7065.                                        if (redirect_url == "") {
  7066.                                            redirect_url = decodeURIComponent("");
  7067.                                        }
  7068.  
  7069.                                        if (redirect_url.substring(0, 1) != "/" && redirect_url.substring(0, 1) != "h") {
  7070.                                            redirect_url = "/" + redirect_url;
  7071.                                        }
  7072.                                        current_location = "/united-states/yorba-linda/automotive/ocrv-paint-service";
  7073.                                        refresh_pages_string = "/login";
  7074.                                        refresh_pages_string = refresh_pages_string.replace(/ /g,'');
  7075.                                        refresh_pages_array = refresh_pages_string.split(',');
  7076.                                        notification.html(message)
  7077.                                            .addClass("alert-success")
  7078.                                            .removeClass("alert-danger")
  7079.                                            .removeClass("alert-warning")
  7080.                                            .delay(2000).slideUp();
  7081.                                            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" )){
  7082.                                                                                                    window.location.href = window.location.href+'?logged';
  7083.                                                                                            } else {
  7084.                                                window.location.href = redirect_url;
  7085.                                            }
  7086.  
  7087.                                        fv.resetForm(true);
  7088.                                    }
  7089.                                    if(form_action_div != '.newsletter_modal_form_container' && 'member_login_66' != 'whmcs_billing_address'){
  7090.                                        $('.modal-backdrop').hide();
  7091.                                    }
  7092.                                } else {
  7093.                                    if(typeof grecaptcha !== "undefined"){
  7094.                                        grecaptcha.reset();
  7095.                                    }
  7096.                                    if (!data['message']) {
  7097.                                        var message = `You entered invalid data. Please try to save again.`;
  7098.  
  7099.                                    } else {
  7100.                                        var message = data['message'];
  7101.                                    }
  7102.                                    $("#member_login_66-notification").html(message)
  7103.                                        .addClass("alert-danger")
  7104.                                        .removeClass("alert-success")
  7105.                                        .removeClass("alert-warning")
  7106.                                        .fadeIn();
  7107.                                    fv.disableSubmitButtons(false);
  7108.                                }
  7109.                                counterSubmit = 0;
  7110.                            },
  7111.                            error: function (e) {
  7112.                                
  7113.                                if(typeof grecaptcha !== "undefined"){
  7114.                                        grecaptcha.reset();
  7115.                                        $("#member_login_66-notification").html(`Recaptcha Error`);
  7116.                                } else {
  7117.                                    $("#member_login_66-notification").html(`A connection error occurred while saving. Please try to save again.`);
  7118.                                }
  7119.                                $("#member_login_66-notification").addClass("alert-warning")
  7120.                                    .removeClass("alert-success")
  7121.                                    .removeClass("alert-warning")
  7122.                                    .fadeIn();
  7123.                                counterSubmit = 0;
  7124.                            }
  7125.                        });/// End Ajax
  7126.                    }
  7127.                }//END else
  7128.            }).bind('keydown', function(event) {
  7129.  
  7130.                if (event.ctrlKey || event.metaKey) {
  7131.  
  7132.                    switch (String.fromCharCode(event.which).toLowerCase()) {
  7133.  
  7134.                        case 's':
  7135.                            $(this).submit();
  7136.                            break;
  7137.                    }
  7138.                }
  7139.            });
  7140.  
  7141.            /// This will turn any select2 that are required in the form builder to being required elements.
  7142.            $('#member_login_66 select').each(function (i, obj) {
  7143.                setTimeout(function(){
  7144.                    if ($(obj).prop("required") && $(obj).attr("style") == "display: none;") {
  7145.                        $(obj).css("z-index","-999");
  7146.                        $(obj).css("height","0");
  7147.                        $(obj).css("width","0");
  7148.                        $(obj).css("display","block");  
  7149.                        $(obj).css("position","absolute");  
  7150.                    }
  7151.                }, 3000);
  7152.            });
  7153.  
  7154.        });//END $('# echo $_SERVER[form_element_id]; ').formValidation(
  7155.    </script>
  7156.            <script>
  7157.        window.addEventListener('load', (event) => {
  7158.            setTimeout(() => {
  7159.                    }, 501);
  7160.        });
  7161.    </script>
  7162. <script>
  7163. function decision(message, url) {
  7164. if (confirm(message)) {
  7165. setTimeout(function () {
  7166. window.location = url;
  7167. }, 0);
  7168. }
  7169. }
  7170. </script>
  7171. <script>
  7172. // Function to add alt, width, and height attributes to <img> elements without them
  7173. function addAttributesToImages() {
  7174. var images = document.querySelectorAll('img:not([alt]), img:not([width]), img:not([height])');
  7175. Array.prototype.forEach.call(images, function(img) {
  7176. // Add alt attribute if missing
  7177. if (!img.hasAttribute('alt')) {
  7178. var src = img.getAttribute('src') || 'image';  // Default src to 'image' if missing
  7179. var altText = src.split('/').pop().split('?')[0].replace(/\.\w+$/, '');
  7180.  
  7181. try {
  7182. altText = decodeURIComponent(altText)
  7183. .replace(/[_\-+,.:;]+/g, ' ')
  7184. .replace(/\s+/g, ' ')
  7185. .trim();
  7186. } catch (e) {
  7187. altText = 'image';  // Fallback to 'image' if decoding fails
  7188. }
  7189.  
  7190. // Ensure altText is not empty, otherwise use 'image'
  7191. altText = altText || 'image';
  7192.  
  7193. img.setAttribute('alt', altText);
  7194. }
  7195.  
  7196. // Add width and height attributes if missing
  7197. if (!img.hasAttribute('width') || !img.hasAttribute('height')) {
  7198. // Handle SVG differently
  7199. if (img.src.endsWith('.svg')) {
  7200. // For SVG, use the viewBox to set width and height, if available
  7201. fetch(img.src)
  7202. .then(response => response.text())
  7203. .then(svgText => {
  7204. var parser = new DOMParser();
  7205. var svgDoc = parser.parseFromString(svgText, "image/svg+xml");
  7206. var svgElement = svgDoc.querySelector('svg');
  7207. if (svgElement) {
  7208. var viewBox = svgElement.getAttribute('viewBox');
  7209. if (viewBox) {
  7210. var viewBoxValues = viewBox.split(' ');
  7211. var width = viewBoxValues[2];
  7212. var height = viewBoxValues[3];
  7213.  
  7214. if (!img.hasAttribute('width')) {
  7215. img.setAttribute('width', width);
  7216. }
  7217. if (!img.hasAttribute('height')) {
  7218. img.setAttribute('height', height);
  7219. }
  7220. }
  7221. }
  7222. });
  7223. } else {
  7224. // For non-SVG images, use natural dimensions
  7225. var tempImg = new Image();
  7226. tempImg.src = img.src;
  7227. tempImg.onload = function() {
  7228. if (!img.hasAttribute('width')) {
  7229. img.setAttribute('width', tempImg.naturalWidth);
  7230. }
  7231. if (!img.hasAttribute('height')) {
  7232. img.setAttribute('height', tempImg.naturalHeight);
  7233. }
  7234. };
  7235. }
  7236. }
  7237. });
  7238. }
  7239.  
  7240. document.addEventListener('DOMContentLoaded', function() {
  7241. // Run the function initially to catch images already in the DOM
  7242. addAttributesToImages();
  7243.  
  7244. // Create a MutationObserver to monitor the DOM for added/changed images
  7245. var observer = new MutationObserver(function(mutations) {
  7246. mutations.forEach(function(mutation) {
  7247. if (mutation.addedNodes.length > 0 || mutation.type === 'attributes') {
  7248. addAttributesToImages();  // Add alt, width, and height attributes to any newly added or modified images
  7249. }
  7250. });
  7251. });
  7252.  
  7253. // Start observing the document body for changes
  7254. observer.observe(document.body, {
  7255. childList: true, // Watch for added or removed nodes
  7256. subtree: true, // Watch the entire subtree
  7257. attributes: true, // Watch for attribute changes
  7258. attributeFilter: ['src'] // Specifically watch for changes in the 'src' attribute
  7259. });
  7260. });
  7261. </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] {
  7262.    cursor: wait
  7263. }
  7264. select.select2-preload {
  7265.    line-height: initial;
  7266. }
  7267.  
  7268. 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"] {
  7269.    -webkit-appearance: none;
  7270.    -moz-appearance: none;
  7271.    appearance: none;
  7272.    background-image: url(/images/select2ArrowDown.png) !important;
  7273.    background-repeat: no-repeat !important;
  7274.    background-size: 10px 9px !important;
  7275.    background-position: 99% 16px;
  7276.    border-radius: 6px;
  7277.    overflow: hidden;
  7278. }
  7279. .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"] {
  7280.    background-position: 98.2% 12px;
  7281. } </style>    <!-- DROPDOWN SELECT SCRIPT -->
  7282.    <!-- Select2 CSS Included in website-styles.pkgd.min.css -->
  7283.    <!--[if lt IE 9]>
  7284.    <script defer src="https://www.optimizecdn.com/directory/cdn/assets/html5shiv/3.7.2/html5shiv.min.js"></script>
  7285.    <script defer src="https://www.optimizecdn.com/directory/cdn/bootstrap/select2/master/js/respond.min.js"></script>
  7286.    <![endif]-->
  7287.    <script>
  7288.  
  7289.        var preloaded_ttid  = false;
  7290.        var preloaded_tid   = false;
  7291.        var preloaded_sid   = false;
  7292.        var path            = window.location.pathname.replace(/\//g, "_");
  7293.  
  7294.        if (performance.navigation.type !== 2) {
  7295.            if (sessionStorage.getItem('select2_ttid'+path) !== null) {
  7296.                sessionStorage.removeItem('select2-ttid'+path);
  7297.            }
  7298.  
  7299.            if (sessionStorage.getItem('select2-tid'+path) !== null) {
  7300.                sessionStorage.removeItem('select2-tid'+path);
  7301.            }
  7302.  
  7303.            if (sessionStorage.getItem('select2-sid'+path) !== null) {
  7304.                sessionStorage.removeItem('select2-sid'+path);
  7305.            }
  7306.  
  7307.        }else if(performance.navigation.type === 2){
  7308.            if (sessionStorage.getItem('select2-ttid'+path) !== null) {
  7309.                preloaded_ttid = sessionStorage.getItem('select2-ttid'+path);
  7310.            }
  7311.  
  7312.            if (sessionStorage.getItem('select2-tid'+path) !== null) {
  7313.                preloaded_tid = sessionStorage.getItem('select2-tid'+path);
  7314.            }
  7315.  
  7316.            if (sessionStorage.getItem('select2-sid'+path) !== null) {
  7317.                preloaded_sid = sessionStorage.getItem('select2-sid'+path);
  7318.            }
  7319.        }
  7320.  
  7321.        window.addEventListener('load', () => {
  7322.            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"]');
  7323.            if (typeof select2Inputs != "undefined") {
  7324.                for (let i = 0; i < select2Inputs.length; i++) {
  7325.                    let inputPlaceHolder = select2Inputs[i].getAttribute('placeholder');
  7326.                    if (!select2Inputs[i].getAttribute('placeholder')) {
  7327.                        inputPlaceHolder = select2Inputs[i].getAttribute('data-placeholder');
  7328.                    }
  7329.                    let countryCode = select2Inputs[i].getAttribute('data-country-code');
  7330.                    if (select2Inputs[i].getAttribute('data-country-code') != null && countryCode > 0 && typeof isoCountries != 'undefined') {
  7331.                        for (let c = 0; c < isoCountries.length; c++) {
  7332.                            if(isoCountries[c].id == countryCode){
  7333.                                //   select2Inputs[i].querySelector('option:first-child').text = isoCountries[c].text;
  7334.                                select2Inputs[i].text = isoCountries[c].text;
  7335.                            }
  7336.                        }
  7337.  
  7338.                    }
  7339.                    if(select2Inputs[i].hasAttribute('data-country-code')){
  7340.                        inputPlaceHolder = null; //reset the input
  7341.                    }
  7342.                    if (inputPlaceHolder != '' && inputPlaceHolder !== null) {
  7343.                        select2Inputs[i].querySelector('option:first-child').text = inputPlaceHolder;
  7344.                        select2Inputs[i].style.color = "#a8a8a8";
  7345.                        if(!select2Inputs[i].querySelector('option:first-child').hasAttribute('value')){
  7346.                            select2Inputs[i].querySelector('option:first-child').value='';
  7347.                        }
  7348.                    }
  7349.                    select2Inputs[i].classList.add("select2-preload");
  7350.                    select2Inputs[i].addEventListener('mousedown', select2OnFormClick, false);
  7351.                }
  7352.            }
  7353.        });
  7354.  
  7355.        function select2OnFormClick(event = false) {
  7356.            let elemtClicked = '';
  7357.            if (event !== false) {
  7358.                event.preventDefault();
  7359.                event.stopImmediatePropagation();
  7360.                elemtClicked = event.target;
  7361.                elemtClicked.disabled = true;
  7362.            }
  7363.  
  7364.            let loadScriptAsync = function (uri) {
  7365.                return new Promise((resolve, reject) => {
  7366.                    let script = document.createElement('script');
  7367.                    script.type = 'text/javascript';
  7368.                    script.src = uri;
  7369.                    script.async = true;
  7370.                    script.onload = function () {
  7371.                        if (event !== false) {
  7372.                            elemtClicked.disabled = false;
  7373.                            select2Initialize();
  7374.                            $(elemtClicked).select2('open');
  7375.                            $(elemtClicked).on("select2-close", function () {
  7376.                                setTimeout(function() {
  7377.                                    $('.select2-container-active').removeClass('select2-container-active');
  7378.                                    $(':focus').blur();
  7379.                                }, 1);
  7380.                            });
  7381.                            if (elemtClicked.hasAttribute('data-fv-field')) {
  7382.                                if (window.getComputedStyle(elemtClicked).display === "none") {
  7383.                                    // if element is display none, the formvalition can not read
  7384.                                    elemtClicked.style.cssText = "display: block;position: absolute;visibility: hidden !important;height: 0;width: 0;opacity: 0 !important;"
  7385.                                }
  7386.                            }
  7387.                        } else {
  7388.                            select2Initialize();
  7389.                        }
  7390.                        resolve("ok");
  7391.                    };
  7392.                    let head = document.getElementsByTagName('head')[0];
  7393.                    head.appendChild(script);
  7394.                });
  7395.            }
  7396.  
  7397.            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"]');
  7398.  
  7399.            if (typeof select2Inputs != "undefined") {
  7400.                for (let i = 0; i < select2Inputs.length; i++) {
  7401.                    let inputPlaceHolder = select2Inputs[i].getAttribute('placeholder');
  7402.                    if (!select2Inputs[i].getAttribute('placeholder')) {
  7403.                        inputPlaceHolder = select2Inputs[i].getAttribute('data-placeholder');
  7404.                    }
  7405.                    if(select2Inputs[i].hasAttribute('data-country-code')){
  7406.                        inputPlaceHolder = null; //reset the input
  7407.                    }
  7408.                    if (inputPlaceHolder != '' && inputPlaceHolder !== null) {
  7409.                        select2Inputs[i].querySelector('option:first-child').text = '';
  7410.                    }
  7411.                    select2Inputs[i].removeEventListener('mousedown', select2OnFormClick, false);
  7412.                }
  7413.            }
  7414.            let scriptLoaded = loadScriptAsync('https://www.optimizecdn.com/directory/cdn/bootstrap/select2/3.5.2/select2.min.js?v=3.5.5');
  7415.            return scriptLoaded;
  7416.        }
  7417.  
  7418.        function select2Initialize(){
  7419.            function getSecondLevel(div,id) {
  7420.                $("#" + div).select2("data", {
  7421.                    id: "",
  7422.                    text: "Loading..."
  7423.                });
  7424.                $.ajax({
  7425.                    url : '/ajaxsearch/get-services',
  7426.                    type : "GET",
  7427.                    data : {
  7428.                        'specialty_id' : id
  7429.                    },
  7430.                    dataType: "json",
  7431.                    success : function(data) {
  7432.                        var options = '';
  7433.  
  7434.                        for (var i = 0; i < data.length; i++) {
  7435.                            options += '<option value="' + data[i].value + '">' + data[i].title + '</option>';
  7436.                        }
  7437.                        if (div == "tid"){
  7438.                            $("#ttid").select2("data", {
  7439.                                id: "",
  7440.                                text: "No options available"
  7441.                            });
  7442.  
  7443.  
  7444.                            $("#ttid").select2("enable", false);
  7445.  
  7446.                            $("#" + div).change(function () {
  7447.                                sessionStorage.setItem("select2-tid"+path,$(this).val());
  7448.                            });
  7449.                        }
  7450.                        if (data.length > 1) {
  7451.                            $("#" + div).select2("enable",true);
  7452.                            $("#" + div).html(options);
  7453.                            $("#" + div).select2("val", "");
  7454.                                                        $("#" + div).select2("open");
  7455.                            
  7456.                        } else {
  7457.                            $("#"+div).select2("data", {
  7458.                                id: "",
  7459.                                text: "No options available"
  7460.                            });
  7461.                            $("#"+div).select2("val", "");
  7462.                        }
  7463.  
  7464.                        if(div == 'tid' && preloaded_tid !== false){
  7465.                            $("#" + div).select2("val", preloaded_tid);
  7466.                        }
  7467.                    }
  7468.                });
  7469.            }
  7470.            function getSecondLevelAccount(div,id) {
  7471.                $("#" + div).select2("data", {
  7472.                    id: "",
  7473.                    text: "Loading..."
  7474.                });
  7475.                $.ajax({
  7476.                    url : '/ajaxsearch/get-services',
  7477.                    type : "GET",
  7478.                    data : {
  7479.                        'specialty_id' : id
  7480.                    },
  7481.                    dataType: "json",
  7482.                    success : function(data) {
  7483.                        var options = '';
  7484.  
  7485.                        for (var i = 0; i < data.length; i++) {
  7486.                            options += '<option value="' + data[i].value + '">' + data[i].title + '</option>';
  7487.                        }
  7488.                        if (data.length > 1) {
  7489.                            $("#" + div).select2("close");
  7490.                            $("#" + div).select2("val", "");
  7491.                            $("#" + div).select2("enable",true);
  7492.                            $("#" + div).html(options);
  7493.  
  7494.                            
  7495.                        } else {
  7496.                            $("#"+div).select2("data", {
  7497.                                id: "",
  7498.                                text: "No options available"
  7499.                            });
  7500.                            $("#"+div).select2("val", "");
  7501.                        }
  7502.                    }
  7503.                });
  7504.            }
  7505.            function getThirdLevel(div,id,id2) {
  7506.                $("#"+div).select2("data", {
  7507.                    id: "",
  7508.                    text: "Loading..."
  7509.                });
  7510.  
  7511.                $.ajax({
  7512.                    url : '/ajaxsearch/get-locations',
  7513.                    type : "GET",
  7514.                    data : {
  7515.                        'specialty_id' : id,
  7516.                        'treatment_id' : id2,
  7517.                    },
  7518.                    dataType: "json",
  7519.                    success : function(data) {
  7520.                        var options = '';
  7521.  
  7522.                        for (var i = 0; i < data.length; i++) {
  7523.                            options += '<option value="' + data[i].value + '">' + data[i].title + '</option>';
  7524.                        }
  7525.                        if (data.length > 1) {
  7526.                            $("#" + div).select2("enable",true);
  7527.                            $("#" + div).html(options);
  7528.                            $("#" + div).select2("val", "");
  7529.                                                        $("#" + div).select2("open");
  7530.                            
  7531.                        } else {
  7532.                            $("#"+div).select2("data", {
  7533.                                id: "",
  7534.                                text: "No options available"
  7535.                            });
  7536.                            $("#"+div).select2("val", "");
  7537.                        }
  7538.                    }
  7539.                });
  7540.            }
  7541.            var current_country = '';
  7542.            function getStateList(div,id) {
  7543.                if (id != current_country) {
  7544.  
  7545.                    $("#"+div).select2("data", {
  7546.                        id: "",
  7547.                        text: "Loading..."
  7548.                    });
  7549.                    $.ajax({
  7550.                        url : '/ajaxsearch/get-states',
  7551.                        type : "GET",
  7552.                        data : {
  7553.                            'country' : id
  7554.                        },
  7555.                        dataType: "json",
  7556.                        success : function(data) {
  7557.                            $("#" + div).html(''); // clear options
  7558.  
  7559.  
  7560.                            if (data.length > 1) {
  7561.                                var options = '';
  7562.                                for (var i = 0; i < data.length; i++) {
  7563.                                    //  options += '<option value="' + data[i].value + '">' + data[i].title + '</option>';
  7564.                                    var newOption = new Option(data[i].title, data[i].value, false, false);
  7565.                                    $("#" + div).append(newOption).trigger('change');
  7566.  
  7567.                                }
  7568.  
  7569.                                $("#" + div).select2("enable",true);
  7570.                                //$("#" + div).html(options);
  7571.                                $("#" + div).prop("disabled", false);
  7572.                                $("#" + div).select2("val", "");
  7573.                                                                $("#" + div).select2("open");
  7574.                                                            }
  7575.                        }
  7576.                    });
  7577.                } else {
  7578.                    $("#" + div).select2("val", "");
  7579.                }
  7580.            }
  7581.            function getInfinityChained(div,id) {
  7582.                $("#"+div).select2("data", {
  7583.                    id: "",
  7584.                    text: "Loading..."
  7585.                });
  7586.                $.ajax({
  7587.                    url : '/ajaxsearch/get-subcategory',
  7588.                    type : "GET",
  7589.                    data : {
  7590.                        'parent' : id
  7591.                    },
  7592.                    dataType: "json",
  7593.                    success : function(data) {
  7594.                        var options = '';
  7595.  
  7596.                        for (var i = 0; i < data.length; i++) {
  7597.                            options += '<option value="' + data[i].value + '">' + data[i].title + '</option>';
  7598.                        }
  7599.                        if (data.length > 1) {
  7600.                            $("#" + div).select2("enable",true);
  7601.                            $("#" + div).html(options);
  7602.                            if(div == 'tid' && '' != ''){
  7603.                                $("#" + div).select2("val", "");
  7604.                            } else if(div == 'tid' && preloaded_tid !== false){
  7605.                                $("#" + div).select2("val", preloaded_tid);
  7606.                            }else {
  7607.                                $("#" + div).select2("val", "");
  7608.                            }
  7609.  
  7610.  
  7611.  
  7612.                                                        $("#" + div).select2("open");
  7613.                            
  7614.                        } else {
  7615.                            $("#" + div).select2("data", {
  7616.                                id: "",
  7617.                                text: "No options available"
  7618.                            });
  7619.                        }
  7620.                    }
  7621.                });
  7622.            }
  7623.            function categoryChained(div,id) {
  7624.                $("#" + div).select2("data", {
  7625.                    id: "",
  7626.                    text: "Loading..."
  7627.                });
  7628.                if(div == "tid") {
  7629.                    url_link = '/ajaxsearch/get-services'
  7630.                    data_passed = {'specialty_id' : id}
  7631.                } else {
  7632.                    url_link = '/ajaxsearch/category-list';
  7633.                    data_passed = {'parent' : id} ;
  7634.                }
  7635.  
  7636.                var selectName = $("select[next="+div+"]").prop("name");
  7637.  
  7638.  
  7639.                if( (selectName == "ttid" || selectName == "sid" || selectName == "tid") ){
  7640.  
  7641.                    sessionStorage.setItem("select2-"+selectName+path,id);
  7642.                }
  7643.  
  7644.                $.ajax({
  7645.                    url : url_link,
  7646.                    type : "GET",
  7647.                    data : data_passed,
  7648.                    dataType: "json",
  7649.                    success : function(data) {
  7650.                        var options = '';
  7651.  
  7652.                        for (var i = 0; i < data.length; i++) {
  7653.                            options += '<option value="' + data[i].value + '">' + data[i].title + '</option>';
  7654.                        }
  7655.  
  7656.                        if (data.length > 1) {
  7657.                            $("#" + div).select2("enable",true);
  7658.                            $("#" + div).html(options);
  7659.  
  7660.                            if(div == "ttid" && preloaded_ttid !== false){
  7661.                                $("#" + div).select2("val", preloaded_ttid);
  7662.                                $("#" + div).trigger('change');
  7663.                            }else if(div == "tid" && preloaded_tid !== false){
  7664.                                $("#" + div).select2("val", preloaded_tid);
  7665.                                $("#" + div).trigger('change');
  7666.                            }else{
  7667.                                $("#" + div).select2("val", "");
  7668.                            }
  7669.  
  7670.  
  7671.                                                        $("#" + div).select2("open");
  7672.                            
  7673.                        } else {
  7674.                            $("#" + div).select2("data", {
  7675.                                id: "",
  7676.                                text: "No options available"
  7677.                            });
  7678.                        }
  7679.                    }
  7680.                });
  7681.            }
  7682.            function formatCountry(country) {
  7683.                if (!country.id && country.text.includes("+")) {
  7684.                    let dataCountry = country.text;
  7685.                    dataCountry = dataCountry.split('+')
  7686.                    country.code = dataCountry[0].trim();
  7687.                    country.id = dataCountry[1].trim();
  7688.                    return country;
  7689.                } else if (!country.code) {
  7690.                    return country.text;
  7691.                }
  7692.                var $country = $(
  7693.                    '<span class="flag-icon flag-icon-' + country.code.toLowerCase() + ' flag-icon-squared"></span>' +
  7694.                    '<span class="flag-text" style="margin-left:10px;">' + country.text + '</span>'
  7695.                );
  7696.                return $country;
  7697.            }
  7698.  
  7699.            let phoneCountryCode = document.querySelector("[name^='bd_phone_country_code']");
  7700.            if (typeof phoneCountryCode != 'undefined' && phoneCountryCode != null && typeof isoCountries != 'undefined') {
  7701.                $("[name^='bd_phone_country_code']").select2({
  7702.                    placeholder:`Country`,
  7703.                    data:isoCountries,
  7704.                    searchInputPlaceholder: `Enter Country Code`,
  7705.                    formatResult : formatCountry,
  7706.                    dropdownAutoWidth: true,
  7707.                    width: "resolve",
  7708.                }).on("select2-opening", function (e) {
  7709.                    if (typeof e.currentTarget.attributes['data-default-country-code'] !== "undefined") {
  7710.                        $(this).val(e.currentTarget.attributes['data-default-country-code'].value)
  7711.                            .removeAttr("data-default-country-code")
  7712.                            .trigger('change')
  7713.                            .trigger('open');
  7714.                    }
  7715.                }).change(function (e) {
  7716.                    let select2Span = $(this).attr('id');
  7717.                    if (e.val) {
  7718.                        $('#'+$(this).attr('id')+'--flag').remove();
  7719.                        $('#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>')
  7720.                    }else{
  7721.                        $('#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>')
  7722.                    }
  7723.                    $(this).removeAttr("data-default-country-flag");
  7724.  
  7725.                });
  7726.            }
  7727.            $("#bd-chained").select2({
  7728.                title: "Select An Option",
  7729.                placeholder: "Select An Option",
  7730.                allowClear: true,
  7731.                formatNoMatches: function () {
  7732.                    return "No matches found";
  7733.                }
  7734.            }).change(function () {
  7735.                var id = $(this).val();
  7736.                $("#tid").select2("enable",false);
  7737.                getInfinityChained("tid",id);
  7738.                                $("#tid").select2("open");
  7739.                            });
  7740.            $("#category-chained").select2({
  7741.                title: "Select An Option",
  7742.                placeholder: "Select An Option",
  7743.                allowClear: true
  7744.            }).change(function () {
  7745.                var id = $(this).val();
  7746.                $("#subcategory-chained").select2("enable",false);
  7747.                categoryChained("subcategory-chained",id);
  7748.                                $("#subcategory-chained").select2("open");
  7749.                            });
  7750.  
  7751.            $(".select-category-chained").select2({
  7752.                title: "Select An Option",
  7753.                placeholder: "Select An Option",
  7754.                allowClear: true
  7755.            })
  7756.            $(".infinite-chained").select2({
  7757.                title: "Select option from list",
  7758.                placeholder: "Click to select an option",
  7759.                allowClear: true,
  7760.                formatNoMatches: function () {
  7761.                    return "No matches found";
  7762.                }
  7763.            }).change(function () {
  7764.                var id          = $(this).val();
  7765.                var attr        = $(this).attr('next');
  7766.                var selectName  = $(this).prop('name');
  7767.                if ( selectName=='ttid' || attr =='ttid' ) {
  7768.                    $("#" + attr).select2("enable",false);
  7769.                    categoryChained(attr,id);
  7770.                                        $("#" + attr).select2("open");
  7771.                                        sessionStorage.setItem("select2-"+selectName+path,id);
  7772.                }
  7773.            }).on("select2-close", function () {
  7774.                setTimeout(function() {
  7775.                    $('.select2-container-active').removeClass('select2-container-active');
  7776.                    $(':focus').blur();
  7777.                }, 1);
  7778.            });
  7779.            $("#subcategory-chained").select2();
  7780.            $(".combobox").select2();
  7781.            $(".search-chained").select2();
  7782.  
  7783.            $("select#country-chained").select2({
  7784.                title: "",
  7785.                placeholder: "",
  7786.                val: "",
  7787.                allowClear: true,
  7788.                formatNoMatches: function () {
  7789.                    return "No matches found";
  7790.                }
  7791.            }).change(function () {
  7792.                var id = $(this).val();
  7793.                $("#state-chained").select2("enable",false);
  7794.                getStateList("state-chained",id);
  7795.                var state = "";
  7796.  
  7797.                if (id == "CA") {
  7798.                    state = "Province";
  7799.  
  7800.                } else if (id == "UK") {
  7801.                    state = "Region";
  7802.  
  7803.                } else if (id == "US" || id == "AU") {
  7804.                    state = "State";
  7805.  
  7806.                } else {
  7807.                    state = "Region";
  7808.                }
  7809.                $("#state-chained").prev(".control-label").text(state);
  7810.            });
  7811.            $("#state-chained").select2();
  7812.  
  7813.            $("#state-chained").on("select2-open", function(event) {
  7814.                event.preventDefault();
  7815.                var id = $("#country-chained").val();
  7816.                var count = $('#state-chained option').length;
  7817.  
  7818.                if (id != "" && count < 2) {
  7819.                    $("#state-chained").select2("enable",false);
  7820.                    getStateList("state-chained",id);
  7821.                    var state = "";
  7822.  
  7823.                    if (id == "CA") {
  7824.                        state = "Province";
  7825.  
  7826.                    } else if (id == "UK") {
  7827.                        state = "Region";
  7828.  
  7829.                    } else if (id == "US" || id == "AU") {
  7830.                        state = "State";
  7831.  
  7832.                    } else {
  7833.                        state = "Region";
  7834.                    }
  7835.                    $("#state-chained").prev(".control-label").text(state);
  7836.                }
  7837.            });
  7838.  
  7839.            $("#country-chained-2").select2({
  7840.                title: "Select Country",
  7841.                placeholder: "(select country)",
  7842.                val: "",
  7843.                allowClear: true,
  7844.                formatNoMatches: function () {
  7845.                    return "No matches found";
  7846.                }
  7847.            }).change(function () {
  7848.                var id = $(this).val();
  7849.                $("#state-chained-2").select2("enable",false);
  7850.                getStateList("state-chained-2",id);
  7851.                var state = "";
  7852.  
  7853.                if (id == "CA") {
  7854.                    state = "Province";
  7855.  
  7856.                } else if (id == "UK") {
  7857.                    state = "Region";
  7858.  
  7859.                } else if (id == "US" || id == "AU") {
  7860.                    state = "State";
  7861.  
  7862.                } else {
  7863.                    state = "Region";
  7864.                }
  7865.                $("#state-chained-2").prev(".control-label").text(state);
  7866.            });
  7867.  
  7868.            $("#state-chained-2").select2();
  7869.            $("#profession_id").select2({
  7870.                placeholder: "Select From List",
  7871.                allowClear: true,
  7872.                formatNoMatches: function () {
  7873.                    return "No matches found";
  7874.                }
  7875.            }).change(function () {
  7876.                var id = $(this).val();
  7877.                getSecondLevelAccount("category_id",id);
  7878.                                $("#category_id").select2("open");
  7879.                            });
  7880.                        $("#sid").select2({
  7881.                title: "Select An Option",
  7882.                placeholder: "Select An Option",
  7883.                allowClear: true,
  7884.                formatNoMatches: function () {
  7885.                    return "No matches found";
  7886.                }
  7887.            }).change(function () {
  7888.                var id = $(this).val();
  7889.                $("#tid").select2("enable",false);
  7890.                getSecondLevel("tid",id);
  7891.                $("#tid").select2("open");
  7892.                sessionStorage.setItem("select2-sid"+path,id);
  7893.            });
  7894.            $("#location_value_dropdown").select2({
  7895.                title: "(optional)",
  7896.                placeholder: "(optional)",
  7897.                allowClear: true,
  7898.                formatNoMatches: function () {
  7899.                    return "No matches found";
  7900.                }
  7901.            });
  7902.            $("#tid").select2({
  7903.                title: "Select An Option",
  7904.                placeholder: "Select An Option",
  7905.                allowClear: true,
  7906.                formatNoMatches: function () {
  7907.                    return "No matches found";
  7908.                }
  7909.                            });
  7910.            $("#location_value_dropdown").select2({
  7911.                title: "(optional)",
  7912.                placeholder: "(optional)",
  7913.                allowClear: true
  7914.            });
  7915.        }
  7916.  
  7917.        if(preloaded_ttid !== false || preloaded_tid !== false || preloaded_sid !== false){
  7918.            $(document).ready(function(){
  7919.                if(preloaded_sid !== false && $("#sid").length > 0){
  7920.                    select2OnFormClick();
  7921.                    setTimeout(() => {
  7922.                        $("#sid").select2('val', preloaded_sid);
  7923.                        $('#sid').trigger('change');
  7924.                    }, 500);
  7925.                }else if(preloaded_tid !== false && $("#sid").length <= 0){
  7926.                    select2OnFormClick();
  7927.                    setTimeout(() => {
  7928.                        $("#tid").select2('val', preloaded_tid);
  7929.                        $('#tid').trigger('change');
  7930.                    }, 500);
  7931.                }
  7932.            });
  7933.        }
  7934.    </script>
  7935. <script>
  7936.    // Function to add aria-label to <select> elements without it, for better pagespeed accessibility score
  7937.    $(document).ready(function() {
  7938.        var ariaLabelCounter = {}; // Object to keep track of aria-label counts for uniqueness
  7939.  
  7940.        // Iterate over each select element that does not have an aria-label
  7941.        $('select:not([aria-label])').each(function() {
  7942.            // Use the ID or placeholder as the base for the aria-label, stripping HTML tags
  7943.            var baseLabel = this.id || $(this).attr('placeholder') || 'select';
  7944.            baseLabel = baseLabel.replace(/<[^>]*>/g, '').trim(); // Remove HTML tags and trim
  7945.  
  7946.            // Ensure uniqueness of each aria-label
  7947.            ariaLabelCounter[baseLabel] = (ariaLabelCounter[baseLabel] || 0) + 1;
  7948.            var ariaLabel = baseLabel + '-' + ariaLabelCounter[baseLabel];
  7949.  
  7950.            // Truncate aria-label to 100 characters
  7951.            ariaLabel = ariaLabel.length > 100 ? ariaLabel.substring(0, 100) : ariaLabel;
  7952.  
  7953.            // Set the aria-label attribute to the unique label
  7954.            $(this).attr('aria-label', ariaLabel);
  7955.        });
  7956.    });
  7957. </script>
  7958. <style type='text/css'> .input-group.normal-autosuggest input,.input-group.sm-autosuggest input, .input-group.md-autosuggest input {
  7959. border-radius: 0 3px 3px 0 !important;
  7960. box-shadow: none;
  7961. }
  7962. .normal-autosuggest .twitter-typeahead, .sm-autosuggest .twitter-typeahead, .md-autosuggest .twitter-typeahead, .large-autosuggest .twitter-typeahead {
  7963. display: inline-block;
  7964. height: 25px;
  7965. position: relative;
  7966. width: 100%;
  7967. }
  7968. .input-group.normal-autosuggest .twitter-typeahead, .input-group.sm-autosuggest .twitter-typeahead, .input-group.large-autosuggest .twitter-typeahead:not(.search_box .twitter-typeahead) {
  7969. width: inherit;
  7970. }
  7971. .normal-autosuggest .twitter-typeahead .clear_content.medium{
  7972. bottom: 0px;
  7973. }
  7974. .sm-autosuggest .twitter-typeahead .clear_content.small{
  7975. bottom: -4px;
  7976. }
  7977. .md-autosuggest.input-group .twitter-typeahead .clear_content.medium  {
  7978.    bottom: -2px;
  7979. }
  7980. .md-autosuggest .twitter-typeahead {
  7981. height: 32px;
  7982. }
  7983. .md-autosuggest  .input-group-addon  + .input_wrapper .twitter-typeahead {
  7984. height: 29px;
  7985. }
  7986. .md-autosuggest-input + .clear_content.medium {
  7987.    bottom: 0px;
  7988. }
  7989. .large-autosuggest .twitter-typeahead {
  7990. height: 40px;
  7991. }
  7992. .normal-autosuggest .twitter-typeahead{
  7993. height: 34px;
  7994. }
  7995. .normal-autosuggest .twitter-typeahead .tt-hint, .sm-autosuggest .twitter-typeahead .tt-hint {
  7996. background: #fff !important;
  7997. border: 1px solid #ccc!important;
  7998. border-radius: 0 4px 4px 0;
  7999. box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset!important;
  8000. color: transparent;
  8001. left: 0;
  8002. padding: 4px 11px;
  8003. position: absolute;
  8004. top: 0;
  8005. width: 100%;
  8006. font-size:12px;
  8007. }
  8008. .normal-autosuggest.input-group-addon .fa, .sm-autosuggest .input-group-addon .fa {font-size:12px}
  8009. .md-autosuggest .twitter-typeahead .tt-hint {
  8010. height: 100%;
  8011. background: #ffffff none repeat scroll 0 0 !important;
  8012. border: 1px solid #cccccc !important;
  8013. border-radius: 0 4px 4px 0;
  8014. box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset !important;
  8015. color: rgba(0, 0, 0, 0);
  8016. left: 0;
  8017. padding: 6px 11px;
  8018. position: absolute;
  8019. top: 0;
  8020. width: 100%;
  8021. }
  8022. .large-autosuggest {background: #fff !important;border-radius:6px;}
  8023. .large-autosuggest input {width: 100%!important;box-shadow:none; border-radius: 6px;}
  8024. .input-group.large-autosuggest input,.input-group.large-autosuggest .twitter-typeahead .tt-hint {
  8025. border-radius: 0 6px 6px 0!important;
  8026. }
  8027. .large-autosuggest .twitter-typeahead .tt-hint {
  8028. background: #fff !important;
  8029. border: 1px solid #ccc!important;
  8030. border-radius: 6px;
  8031. box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset!important;
  8032. color: transparent;
  8033. left: 0;
  8034. position: absolute;
  8035. top: 0;
  8036. width: 100%;
  8037. font-size: 18px;
  8038. height: 46px;
  8039. line-height: 1.33333;
  8040. padding: 10px 15px;
  8041. }
  8042. .tt-dataset .empty-message {
  8043. display: none !important;
  8044. }
  8045. .twitter-typeahead .tt-query {background-color:#fff!important}
  8046. .input-group.large-autosuggest span:first-child .tt-hint {border-radius: 0 !important;}
  8047. span.tt-dropdown-menu {
  8048. border: 1px solid #FCFCFC;
  8049. border-radius: 5px;
  8050. box-shadow: 0 5px 10px rgba(0,0,0,.2);
  8051. width: 100% !important;
  8052. }
  8053. .tt-is-under-cursor a.suggest-link {
  8054. background: #55ACEE;
  8055. }
  8056.  
  8057. .tt-is-under-cursor .media-heading,
  8058. .tt-is-under-cursor .suggest-origin,
  8059. .tt-is-under-cursor .location{
  8060. color:#fff!important;
  8061. }
  8062. .tt-suggestion .media .media-body .suggest-origin {
  8063. color: rgba(45, 91, 137,0.9);
  8064. padding: 1px 0;
  8065. border-radius: 6px;
  8066. font-weight: bold;
  8067. line-height: 12px;
  8068. }
  8069. .tt-suggestion {
  8070. background: #fff;
  8071. border-bottom: 1px solid #eee;
  8072. -webkit-transition: all 0.3s ease-in-out;
  8073. -moz-transition: all 0.3s ease-in-out;
  8074. -o-transition: all 0.3s ease-in-out;
  8075. transition: all 0.3s ease-in-out;
  8076. }
  8077. body .tt-suggestions .media.br-bottom img {
  8078. max-width: 45px;
  8079. height: auto;
  8080. }
  8081. body .tt-suggestions .media-body span {
  8082. font-size: 10px;
  8083. }
  8084. body .tt-suggestions .media-body h4 {
  8085. font-size: 12px;
  8086. margin: 2px 0px;
  8087. text-transform: capitalize;
  8088. }
  8089. a.suggest-link {
  8090. padding: 5px;
  8091. display: block;
  8092. }
  8093. a.suggest-link img {
  8094. border-radius: 100px;
  8095. display: block;
  8096. margin: 0 auto;
  8097. height: 100%!important;
  8098. width: 100%;
  8099. object-fit: cover;
  8100. }
  8101. .left-suggest-col {
  8102. display: inline-block;
  8103. vertical-align: middle;
  8104. width: 44px;
  8105. height: 44px;
  8106. }
  8107. .right-suggest-col {
  8108. display: inline-block;
  8109. padding-left: 1%;
  8110. text-align: left;
  8111. vertical-align: middle;
  8112. width: calc(100% - 1% - 50px);
  8113. }
  8114. p.media-heading {
  8115. color: #333;
  8116. font-size: 12px;
  8117. font-weight: 600;
  8118. margin-bottom: 0;
  8119. }
  8120. p.suggest-origin {
  8121. font-size: 10px;
  8122. color: #333;
  8123. margin:0;
  8124. }
  8125. p.location {
  8126. color: #333;
  8127. font-size: 10px;
  8128. margin: 2px 0;
  8129. }
  8130. body .tt-is-under-cursor a.suggest-link {
  8131. background: #F7F7F7;
  8132. }
  8133. body .tt-is-under-cursor .media-heading, body .tt-is-under-cursor .suggest-origin, body .tt-is-under-cursor .location {
  8134. color: #333!important;
  8135. }
  8136. a.suggest-link[data-heading="heading"] {
  8137. pointer-events: none;
  8138.   cursor: default;
  8139.   text-decoration: none;
  8140. }
  8141. body .tt-is-under-cursor a.suggest-link[data-heading="heading"] {
  8142. background: rgb(14, 14, 14);
  8143. }
  8144. /* --- all the novalue css --- */
  8145. a.suggest-link .suggest-origin[data-state="novalue"] {
  8146. display: none;
  8147. }
  8148. a.suggest-link .location[data-state="novalue"] {
  8149. display: none;
  8150. }
  8151. a.suggest-link img[data-state="novalue"] {
  8152. display: none;
  8153. }
  8154. a.suggest-link .suggest-origin[data-state="heading"] {
  8155. display: none;
  8156. }
  8157. a.suggest-link .media-heading[data-heading="heading"] {
  8158. color:rgb(255, 255, 255)!important;
  8159. font-weight: bold;
  8160. padding: 4px;
  8161. font-size: 13px;
  8162. }
  8163. .left-suggest-col[data-photo="novalue"], .left-suggest-col[data-photo="undefined"] {
  8164. display: none;
  8165. }
  8166. .right-suggest-col[data-photo="novalue"], .right-suggest-col[data-photo="undefined"] {
  8167. width: 100%;
  8168. }
  8169. a.suggest-link[href="novalue"] {
  8170. cursor: default !important;
  8171. pointer-events: none;
  8172. }
  8173. a.suggest-link[data-heading="heading"] {
  8174. background-color: rgb(14, 14, 14);
  8175. }
  8176. div.content-shell {
  8177. overflow: inherit;
  8178. }
  8179. span.tt-dropdown-menu div {
  8180. float: none;
  8181. }
  8182. .tt-menu {
  8183. border-radius: 0 0 6px 6px;
  8184. box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
  8185. overflow: hidden;
  8186. width: 100%;
  8187. z-index: 150 !important;
  8188. }
  8189. .tt-menu .tt-dataset {
  8190.    overflow-y: auto;
  8191.    max-height: 200px;
  8192. } </style>        <script type="text/javascript">
  8193.            
  8194.            if (typeof decodeHtml != "function") {
  8195.                function decodeHtml(html) {
  8196.                    var txt = document.createElement("textarea");
  8197.                    txt.innerHTML = html;
  8198.                    return txt.value;
  8199.                }
  8200.            }
  8201.                        function initializeTypeheadMember_search() {
  8202.                var member_searchEngine = new Bloodhound({
  8203.                    initialize: false,
  8204.                    datumTokenizer: function (d) {
  8205.                        return Bloodhound.tokenizers.whitespace(value);
  8206.                    },
  8207.                    queryTokenizer: Bloodhound.tokenizers.whitespace,
  8208.                    remote: {
  8209.                        url: `/api/suggest/json/get/14,users_data,Listings,1,1,1,1,0,3|88,list_professions,Main Categories,1,0,0,0,0,3|89,list_services,Sub Categories,1,0,0,0,0,3?tID=1&q=%QUERY`,
  8210.                        wildcard: '%QUERY',
  8211.                        filter: function (response) {
  8212.  
  8213.                            if (response != null) {
  8214.                                //var response = response.slice(1);
  8215.                                $.each(
  8216.                                    response, function (key, value) {
  8217.                                        response[key]['value'] = decodeHtml(value['value']);
  8218.                                        response[key]['comes_f'] = decodeHtml(value['comes_f']);
  8219.                                        response[key]['location'] = decodeHtml(value['location']);
  8220.  
  8221.                                        if (response[key]['value'].indexOf('-/-') >= 0) {
  8222.                                            var splitResult = response[key]['value'].split('-/-');
  8223.                                            response[key]['value'] = splitResult[0];
  8224.                                        }
  8225.                                    }
  8226.                                );
  8227.  
  8228.                            } else {
  8229.                                response = {error: "null"};
  8230.                            }
  8231.  
  8232.                            return response;
  8233.                        }
  8234.                    }
  8235.                });
  8236.                var member_searchDataSrc = member_searchEngine.initialize();
  8237.  
  8238.                member_searchDataSrc
  8239.                    .done(function () { /*console.log('Autosuggestions engine initialized.'); */
  8240.                    })
  8241.                    .fail(function () { /*console.log('err, something went wrong while initializing autosuggestions engine:(');*/
  8242.                    })
  8243.  
  8244.                $('.member_search').typeahead({
  8245.                        minLength:  2,
  8246.                        highlight: true,
  8247.                        hint: false                    },
  8248.                    {
  8249.                        display: 'value',
  8250.                        source: member_searchEngine.ttAdapter(),
  8251.                        limit: 10,
  8252.                        templates: {
  8253.                            empty: [
  8254.                                '<div class="empty-message">',
  8255.                                'Result not found',
  8256.                                '</div>'
  8257.                            ].join(" "),
  8258.                            notFound: [
  8259.                                '<div class="notFound-message">',
  8260.                                'Result not found',
  8261.                                '</div>'
  8262.                            ].join(" "),
  8263.                            suggestion: function (data) {
  8264.  
  8265.                                if (data == "null") {
  8266.                                    strTemplate = '<div class="empty-message">Result not found</div>';
  8267.  
  8268.                                } else {
  8269.                                    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> ';
  8270.  
  8271.                                    if ((data.link == undefined) || (data.link == "") || (data.link == "novalue")) {
  8272.                                        strTemplate = strTemplate.replace(/href=".*?"/, "href='#'");
  8273.                                    }
  8274.  
  8275.                                    if ((data.photo == undefined) || (data.photo == "") || (data.photo == "novalue")) {
  8276.                                        strTemplate = strTemplate.replace(/<img src=".*?>/, "");
  8277.                                    }
  8278.                                }
  8279.  
  8280.                                return strTemplate;
  8281.                            }
  8282.                        },
  8283.                    }).on('typeahead:selected', function (obj, datum) {
  8284.                    /*
  8285.                    console.log(obj);
  8286.                    console.log(datum);
  8287.                    */
  8288.                });
  8289.  
  8290.                $('.member_search').each(function () {
  8291.                    var inputWidth = $(this).outerWidth();
  8292.                    $(this).siblings('.tt-dropdown-menu').css('width', inputWidth + 'px');
  8293.                });
  8294.            }
  8295.        </script>
  8296.            <script>
  8297.        let typeheadElement = '.member_search';
  8298.        let TypeheadNameListFunction = 'initializeTypeheadMember_search';
  8299.        let typeheadFormElement = undefined;
  8300.        window.addEventListener('load', () => {
  8301.            if(typeheadElement.length > 1) {
  8302.                typeheadFormElement = document.querySelectorAll(typeheadElement);
  8303.            }
  8304.            if (typeof typeheadFormElement != "undefined") {
  8305.                for (let i = 0; i < typeheadFormElement.length; i++) {
  8306.                    let closestForm = typeheadFormElement[i].closest('form');
  8307.                    if (typeof closestForm != "undefined" && closestForm != null) {
  8308.                        closestForm.addEventListener('focus', typeheadFormClick, false);
  8309.                    }
  8310.                    typeheadFormElement[i].addEventListener('focus', typeheadFormClick, false);
  8311.                }
  8312.            }
  8313.        });
  8314.        function initializeTypehead(){
  8315.            let splitFunctionNames= TypeheadNameListFunction.split(',');
  8316.            for ( let funcName of splitFunctionNames)
  8317.                if (typeof funcName != 'function') {
  8318.                    window[funcName](); // execute the function
  8319.  
  8320.                }
  8321.        }
  8322.        function typeheadFormClick(event) {
  8323.  
  8324.            let head = document.getElementsByTagName('head')[0];
  8325.            let script = document.createElement('script');
  8326.            let elementClicked = event.target;
  8327.            script.type = 'text/javascript';
  8328.            script.src = "https://cdnjs.cloudflare.com/ajax/libs/corejs-typeahead/0.11.1/typeahead.bundle.min.js";
  8329.            script.onload = function () {
  8330.                initializeTypehead();
  8331.                elementClicked.focus();
  8332.            };
  8333.            head.appendChild(script);
  8334.            if (typeof typeheadFormElement != "undefined") {
  8335.                for (let i = 0; i < typeheadFormElement.length; i++) {
  8336.                    let closestForm = typeheadFormElement[i].closest('form');
  8337.                    if (typeof closestForm != "undefined" && closestForm != null) {
  8338.                        closestForm.removeEventListener('focus', typeheadFormClick, false);
  8339.                    }
  8340.                    typeheadFormElement[i].removeEventListener('focus', typeheadFormClick, false)
  8341.                }
  8342.            }
  8343.        }
  8344.  
  8345.  
  8346.    </script>
  8347.  
  8348.    <script>
  8349.    window.addEventListener('load', () => {
  8350.        let embedlyClass = document.querySelector('.fr-embedly');
  8351.        if (typeof embedlyClass != "undefined" && embedlyClass != null) {
  8352.            let embedlyURI = "https://www.optimizecdn.com/directory/cdn/assets/bootstrap/js/embedly_widget.min.js";
  8353.            let head = document.getElementsByTagName("head")[0];
  8354.            let script = document.createElement('script');
  8355.            script.type = 'text/javascript';
  8356.            script.src = embedlyURI;
  8357.            script.async = true;
  8358.            head.appendChild(script);
  8359.        }
  8360.    });
  8361. </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>
  8362.                            $(function () {
  8363.                                $(".lazyloader").Lazy({
  8364.                                    afterLoad: function(element) {
  8365.                                        $(".gridView.activeView").click();
  8366.                                    }
  8367.                                });
  8368.                                
  8369.                            });
  8370.                            $("button[class*='slick'],button[id*='slick']").click(function () {
  8371.                              $(this).parents(".row").find(".lazyloader").lazy({
  8372.                                    bind: "event",
  8373.                                    delay: 0
  8374.                                });
  8375.                            });
  8376.                            $("[class*='slick'],[id*='slick']").on("swipe",function(){
  8377.                              $(this).parents(".row").find(".lazyloader").lazy({
  8378.                                    bind: "event",
  8379.                                    delay: 0
  8380.                                });
  8381.                            });
  8382.                        </script><script defer src="https://www.optimizecdn.com/directory/cdn/assets/bootstrap/js/websiteScripts.min.js?v=0.4"></script>
  8383.            </body>
  8384.        </html>
Copyright © 2002-9 Sam Ruby, Mark Pilgrim, Joseph Walton, and Phil Ringnalda