{"id":393597,"date":"2023-08-22T16:18:22","date_gmt":"2023-08-22T16:18:22","guid":{"rendered":"https:\/\/venturacounty.gov\/?page_id=393597"},"modified":"2023-08-22T23:15:22","modified_gmt":"2023-08-22T23:15:22","slug":"directory-county-non-county-entities","status":"publish","type":"page","link":"https:\/\/venturacounty.gov\/es\/government\/directory-county-non-county-entities\/","title":{"rendered":"Directorio - Entidades condales y no condales"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"393597\" class=\"elementor elementor-393597\" data-elementor-post-type=\"page\">\n\t\t\t\t<div class=\"elementor-element elementor-element-363cae5 e-flex e-con-boxed e-con e-parent\" data-id=\"363cae5\" data-element_type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t<div class=\"elementor-element elementor-element-7ae7644 e-flex e-con-boxed e-con e-child\" data-id=\"7ae7644\" data-element_type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t<div class=\"elementor-element elementor-element-b137974 e-flex e-con-boxed e-con e-child\" data-id=\"b137974\" data-element_type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t<div class=\"elementor-element elementor-element-22ed49d e-flex e-con-boxed e-con e-child\" data-id=\"22ed49d\" data-element_type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t<div class=\"elementor-element elementor-element-e600d0e e-flex e-con-boxed e-con e-child\" data-id=\"e600d0e\" data-element_type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t<div class=\"elementor-element elementor-element-e013e44 e-flex e-con-boxed e-con e-child\" data-id=\"e013e44\" data-element_type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-a54e374 elementor-widget elementor-widget-image\" data-id=\"a54e374\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"\/government\/\">\n\t\t\t\t\t\t\t<img decoding=\"async\" width=\"357\" height=\"75\" src=\"https:\/\/venturacounty.gov\/wp-content\/uploads\/2023\/07\/government-header.png\" class=\"attachment-large size-large wp-image-84\" alt=\"Government\" srcset=\"https:\/\/venturacounty.gov\/wp-content\/uploads\/2023\/07\/government-header.png 357w, https:\/\/venturacounty.gov\/wp-content\/uploads\/2023\/07\/government-header-300x63.png 300w\" sizes=\"(max-width: 357px) 100vw, 357px\" \/>\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-949f6f1 e-flex e-con-boxed e-con e-parent\" data-id=\"949f6f1\" data-element_type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t<div class=\"elementor-element elementor-element-5e31600 e-flex e-con-boxed e-con e-child\" data-id=\"5e31600\" data-element_type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-da475d8 elementor-nav-menu--dropdown-tablet elementor-nav-menu__text-align-aside elementor-nav-menu--toggle elementor-nav-menu--burger elementor-widget elementor-widget-nav-menu\" data-id=\"da475d8\" data-element_type=\"widget\" data-settings=\"{&quot;layout&quot;:&quot;horizontal&quot;,&quot;submenu_icon&quot;:{&quot;value&quot;:&quot;&lt;i class=\\&quot;fas fa-caret-down\\&quot;&gt;&lt;\\\/i&gt;&quot;,&quot;library&quot;:&quot;fa-solid&quot;},&quot;toggle&quot;:&quot;burger&quot;}\" data-widget_type=\"nav-menu.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t<nav aria-label=\"Menu\" class=\"elementor-nav-menu--main elementor-nav-menu__container elementor-nav-menu--layout-horizontal e--pointer-background e--animation-fade\">\n\t\t\t\t<ul id=\"menu-1-da475d8\" class=\"elementor-nav-menu\"><li class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-108\"><a href=\"https:\/\/venturacounty.gov\/es\/government\/\" class=\"elementor-item\">Government<\/a><\/li>\n<li class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-107\"><a href=\"https:\/\/venturacounty.gov\/es\/business-services\/\" class=\"elementor-item\">Business Services<\/a><\/li>\n<li class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-110\"><a href=\"https:\/\/venturacounty.gov\/es\/environment\/\" class=\"elementor-item\">Environment<\/a><\/li>\n<li class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-119\"><a href=\"https:\/\/venturacounty.gov\/es\/health-and-human-services\/\" class=\"elementor-item\">Health &#038; Human Services<\/a><\/li>\n<li class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-118\"><a href=\"https:\/\/venturacounty.gov\/es\/emergency-services\/\" class=\"elementor-item\">Emergency Services<\/a><\/li>\n<li class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-117\"><a href=\"https:\/\/venturacounty.gov\/es\/residents\/\" class=\"elementor-item\">Residents<\/a><\/li>\n<li class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-121\"><a href=\"https:\/\/venturacounty.gov\/es\/visitors\/\" class=\"elementor-item\">Visitors<\/a><\/li>\n<li class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-123\"><a href=\"https:\/\/venturacounty.gov\/es\/government\/email-us\/\" class=\"elementor-item\">Contact Us<\/a><\/li>\n<\/ul>\t\t\t<\/nav>\n\t\t\t\t\t<div class=\"elementor-menu-toggle\" role=\"button\" tabindex=\"0\" aria-label=\"Menu Toggle\" aria-expanded=\"false\">\n\t\t\t<i aria-hidden=\"true\" role=\"presentation\" class=\"elementor-menu-toggle__icon--open eicon-menu-bar\"><\/i><i aria-hidden=\"true\" role=\"presentation\" class=\"elementor-menu-toggle__icon--close eicon-close\"><\/i>\t\t<\/div>\n\t\t\t\t\t<nav class=\"elementor-nav-menu--dropdown elementor-nav-menu__container\" aria-hidden=\"true\">\n\t\t\t\t<ul id=\"menu-2-da475d8\" class=\"elementor-nav-menu\"><li class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-108\"><a href=\"https:\/\/venturacounty.gov\/es\/government\/\" class=\"elementor-item\" tabindex=\"-1\">Government<\/a><\/li>\n<li class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-107\"><a href=\"https:\/\/venturacounty.gov\/es\/business-services\/\" class=\"elementor-item\" tabindex=\"-1\">Business Services<\/a><\/li>\n<li class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-110\"><a href=\"https:\/\/venturacounty.gov\/es\/environment\/\" class=\"elementor-item\" tabindex=\"-1\">Environment<\/a><\/li>\n<li class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-119\"><a href=\"https:\/\/venturacounty.gov\/es\/health-and-human-services\/\" class=\"elementor-item\" tabindex=\"-1\">Health &#038; Human Services<\/a><\/li>\n<li class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-118\"><a href=\"https:\/\/venturacounty.gov\/es\/emergency-services\/\" class=\"elementor-item\" tabindex=\"-1\">Emergency Services<\/a><\/li>\n<li class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-117\"><a href=\"https:\/\/venturacounty.gov\/es\/residents\/\" class=\"elementor-item\" tabindex=\"-1\">Residents<\/a><\/li>\n<li class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-121\"><a href=\"https:\/\/venturacounty.gov\/es\/visitors\/\" class=\"elementor-item\" tabindex=\"-1\">Visitors<\/a><\/li>\n<li class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-123\"><a href=\"https:\/\/venturacounty.gov\/es\/government\/email-us\/\" class=\"elementor-item\" tabindex=\"-1\">Contact Us<\/a><\/li>\n<\/ul>\t\t\t<\/nav>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-5a97add e-flex e-con-boxed e-con e-parent\" data-id=\"5a97add\" data-element_type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t<div class=\"elementor-element elementor-element-25fc199 e-flex e-con-boxed e-con e-child\" data-id=\"25fc199\" data-element_type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-c258a6f elementor-widget elementor-widget-heading\" data-id=\"c258a6f\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h1 class=\"elementor-heading-title elementor-size-default\">Directory: County &amp; Non-County Entities<\/h1>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-729b9fb elementor-widget-divider--view-line elementor-widget elementor-widget-divider\" data-id=\"729b9fb\" data-element_type=\"widget\" data-widget_type=\"divider.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-divider\">\n\t\t\t<span class=\"elementor-divider-separator\">\n\t\t\t\t\t\t<\/span>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-ea2242c elementor-widget elementor-widget-html\" data-id=\"ea2242c\" data-element_type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div id=\"result\" style=\"margin: 100px\">\n    <div style=\"text-align: center\">\n        <div style=\"margin-bottom:10px\">\n            Directory: County & Non-County Entities<br \/>\n            Please select a listing below to display address and phone numbers.\n        <\/div>\n        <select title=\"County and Non-County Entities Directory\" id=\"departmentList\" disabled>\n            <option id=\"optLoading\">Loading Directory - Please Wait<\/option>\n        <\/select>\n    <\/div>\n\n    <div id=\"loading\">\n        <i class=\"fa fa-spinner fa-spin fa-2x fa-fw\"> <\/i>\n        <p>\n            Loading\n        <\/p>\n    <\/div>\n\n    <div id=\"address\"><\/div>\n    <div id=\"directoryTable\">\n\n    <\/div>\n    <div id=\"jsonData\"><\/div>\n<\/div>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-928db04 elementor-widget elementor-widget-html\" data-id=\"928db04\" data-element_type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\n<script id=\"listingTemplate\" type=\"text\/x-custom-template\">\n        <div class=\"department {rowType}\">\n            <div class=\"departmentName\">{name}<\/div><div class=\"departmentPhone\">{phoneNumber}<\/div>\n        <\/div>\n    <\/script>\n\n    <script id=\"listingHeaderTemplate\" type=\"text\/x-custom-template\">\n        <div class=\"departmentHeader\">\n            <div class=\"departmentName\">Description<\/div><div class=\"departmentPhone\">Phone<\/div>\n        <\/div>\n    <\/script>\n\n    <script id=\"addressTemplate\" type=\"text\/x-custom-template\">\n        <div id=\"addressContainer\">\n            <div>{description}<\/div>\n            <div id=\"streetAddress\">{streetAddress1} {streetAddress2}<\/div>\n            <div id=\"regionInfo\">{city} {state}, {zip}<\/div>\n        <\/div>\n    <\/script>\n\n    <script id=\"addressSimpleTemplate\" type=\"text\/x-custom-template\">\n        <div id=\"addressContainer\">\n            <div>{description}<\/div>\n        <\/div>\n    <\/script>\n\n    <script>\n        var $ = jQuery.noConflict();\n        var departmentAddress;\n        var departmentListing;\n\n        function LoadDepartments() {\n            $(\"#loading\").show();\n            $(\"#departmentList\").prop(\"disabled\", true);\n\n            $.get(\"https:\/\/www.venturacounty.gov\/wp-json\/vc-department-directory\/v1\/directory\", function (data) {\n                $('#departmentList').empty();\n                $('#departmentList').append('<option value=\"\">-SELECT-<\/option>');\n\n                $.each(data, function (i, d) {\n                    $('#departmentList').append('<option value=\"' + d.cost_center_code + '\">' + d.descrip + '<\/option>');\n                });\n                $(\"#departmentList\").prop(\"disabled\", false);\n                $(\"#loading\").hide();\n            });\n        }\n\n        function GetDepartmentListing(department) {\n            $.get(\"https:\/\/www.venturacounty.gov\/wp-json\/vc-department-directory\/v1\/department\", { dept: department }, function (data) {\n                departmentListing = data;\n                PopulateDepartmentInformation();\n            });\n        }\n\n        function GetDepartmentAddress(department) {\n            $.get(\"https:\/\/www.venturacounty.gov\/wp-json\/vc-department-directory\/v1\/address\", { dept: department }, function (data) {\n                departmentAddress = data[0];\n                PopulateDepartmentInformation();\n            });\n        }\n\n        function PopulateDepartmentInformation() {\n            if (departmentAddress !== undefined && departmentListing !== undefined) {\n                var address = $(\"#address\");\n                var directoryTable = $(\"#directoryTable\");\n                var template;\n                var addressTemplate;\n                var phoneNumber;\n                var rowType;\n                var header = $('#listingHeaderTemplate').html();\n                \n                if (departmentAddress.street_address != undefined && departmentAddress.street_address != '') {\n                    addressTemplate = $('#addressTemplate').html();\n                    addressTemplate = addressTemplate.replace(\"{description}\", departmentAddress.descrip)\n                    addressTemplate = addressTemplate.replace(\"{streetAddress1}\", departmentAddress.street_address).replace(\"{streetAddress2}\", departmentAddress.street_address2)\n                    addressTemplate = addressTemplate.replace(\"{city}\", departmentAddress.city).replace(\"{state}\", departmentAddress.state).replace(\"{zip}\", departmentAddress.zip);\n                }\n                else {\n                    addressTemplate = $('#addressSimpleTemplate').html();\n                    addressTemplate = addressTemplate.replace(\"{description}\", departmentAddress.descrip)\n                }\n\n                address.append(addressTemplate);\n\n                directoryTable.append(header);\n\n                $.each(departmentListing, function (i, data) {\n                    template = $('#listingTemplate').html();\n                    phoneNumber = data.area_code + data.phone_nbr;\n                    if (phoneNumber != \"\") {\n                        phoneNumber = '(' + phoneNumber.substr(0, 3) + ') ' + phoneNumber.substr(3, 3) + '-' + phoneNumber.substr(6, 4)\n                    }\n                    if (data.indentation_level == 0) {\n                        rowType = 'mainDepartment'\n                    }\n                    else {\n                        rowType = 'subDepartment';\n                    }\n                    template = template.replace(\"{name}\", data.print_descrip).replace(\"{phoneNumber}\", phoneNumber).replace(\"{rowType}\", rowType);\n                    directoryTable.append(template);\n                });\n\n                $(\"#loading\").hide();\n                $(\"#departmentList\").prop(\"disabled\", false);\n\n                departmentAddress = undefined;\n                departmentListing = undefined;\n            }\n        }\n\n        $('#departmentList').change(function () {\n            if (this.value != '') {\n                $(\"#loading\").show();\n                $(\"#departmentList\").prop(\"disabled\", true);\n                $(\"#address\").empty();\n                $(\"#directoryTable\").empty();\n                GetDepartmentListing(this.value);\n                GetDepartmentAddress(this.value);\n            }\n        });\n\n       \n\n        $(document).ready(function () {\n            LoadDepartments();\n        });\n\n        var template = $('#hidden-template').html();\n\n    <\/script>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Directorio: Entidades locales y no locales Directorio: Entidades provinciales y no provinciales Seleccione una de las siguientes opciones para ver la direcci\u00f3n y los n\u00fameros de tel\u00e9fono. Cargando Directorio - Por favor espere Cargando<\/p>","protected":false},"author":5,"featured_media":0,"parent":95,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_relevanssi_hide_post":"","_relevanssi_hide_content":"","_relevanssi_pin_for_all":"","_relevanssi_pin_keywords":"","_relevanssi_unpin_keywords":"","_relevanssi_related_keywords":"","_relevanssi_related_include_ids":"","_relevanssi_related_exclude_ids":"","_relevanssi_related_no_append":"","_relevanssi_related_not_related":"","_relevanssi_related_posts":"","_relevanssi_noindex_reason":"","footnotes":""},"categories":[7],"tags":[],"class_list":["post-393597","page","type-page","status-publish","hentry","category-government"],"_links":{"self":[{"href":"https:\/\/venturacounty.gov\/es\/wp-json\/wp\/v2\/pages\/393597","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/venturacounty.gov\/es\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/venturacounty.gov\/es\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/venturacounty.gov\/es\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/venturacounty.gov\/es\/wp-json\/wp\/v2\/comments?post=393597"}],"version-history":[{"count":0,"href":"https:\/\/venturacounty.gov\/es\/wp-json\/wp\/v2\/pages\/393597\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/venturacounty.gov\/es\/wp-json\/wp\/v2\/pages\/95"}],"wp:attachment":[{"href":"https:\/\/venturacounty.gov\/es\/wp-json\/wp\/v2\/media?parent=393597"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/venturacounty.gov\/es\/wp-json\/wp\/v2\/categories?post=393597"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/venturacounty.gov\/es\/wp-json\/wp\/v2\/tags?post=393597"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}