{"id":12,"date":"2021-07-28T08:26:21","date_gmt":"2021-07-28T08:26:21","guid":{"rendered":"https:\/\/showcase-parking.phq.ils\/?page_id=12"},"modified":"2021-07-30T07:17:21","modified_gmt":"2021-07-30T07:17:21","slug":"startseite","status":"publish","type":"page","link":"https:\/\/showcase.parkinghq.com\/","title":{"rendered":"Startseite"},"content":{"rendered":"<style>\n\tdiv#ilogs-parking-search-container {\r\n\tbackground-color: #de5920;\r\n}\r\ndiv#ilogs-bottom-bar {\r\n\tbackground-color: #de5920;\r\n}\r\ndiv.car_icon {\r\n\tbackground-color: #de5920 !important;\r\n}\r\n.btn-toogle.active {\r\n\tbackground: black !important;\r\n}\r\n.btn-toogle:hover.active {\r\n\tbackground: #de5920 !important;\r\n\tborder: solid 1px #fff !important;\r\n\tcolor:#fff !important;\r\n}\r\n.btn-toogle:hover {\r\n\tbackground: #de5920 !important;\r\n\tborder: solid 1px #fff !important;\r\n\tcolor:#fff !important;\r\n}\r\n\r\ndiv.facilities_container div.facility.hover {\r\n\tborder: solid 1px #00223f !important;\r\n\tbackground-color: #de5920;\r\n}\r\ndiv.facilities_container div.facility.selected_facility {\r\n\tborder: solid 1px #00223f !important;\r\n\tbackground-color: #de5920;\r\n}\r\n\r\n.btn-ilogs {\r\n\tbackground-color:#de5920 !important;\r\n\tborder: solid 1px #de5920 !important;\r\n}\r\n.btn-ilogs:hover {\r\n\ttext-decoration:none;\r\n\tbackground-color:#de5920  !important;\r\n\tborder: solid 1px #00223f !important;\r\n}\r\ndiv.facilities_container div.facility.selected_facility .btn-ilogs {\r\n\tcolor:#fff !important;\r\n}\r\ndiv.facilities_container div.facility.hover .btn-ilogs {\r\n\tcolor:black!important;\r\n}\r\n\r\ndiv.filter_icons img {\r\n\tbackground-color:#fff  !important;\r\n\tborder:none !important;\r\n}\r\n\r\na.btn-ilogs {\r\n  white-space: nowrap;\r\n  overflow: hidden;\r\n  text-overflow: ellipsis;\r\n}\r\n\r\n.marker_reservable {\r\n\tbackground-color: #de5920;\r\n\tborder: solid 2px #e8ad2f;\r\n\tborder-radius: 4px;\r\n\t&.selected {\r\n\t\t.marker_content {\r\n\t\t\tpadding: 5px;\r\n\t\t\tbackground-color: #e8ad2f;\r\n\t\t\ttext-shadow: 1px 1px 3px rgba(0, 0, 0, 0.85);\r\n\t\t}\r\n\t}\r\n\t&:after {\r\n    \tcontent:'';\r\n    \tposition: absolute;\r\n    \ttop: 100%;\r\n    \tleft: 50%;\r\n    \tmargin-left: -10px;\r\n    \twidth: 0;\r\n    \theight: 0;\r\n    \tborder-top: solid 10px #e8ad2f;\r\n\t\tborder-left: solid 10px transparent;\r\n\t\tborder-right: solid 10px transparent;\r\n\t}\r\n\t.marker_content {\r\n    \tposition:relative;\r\n    \tmin-width: 30px;\r\n    \tpadding: 3px;\r\n    \tcolor:#ffffff;\r\n    \tfont-size: 14px;\r\n    \twidth: 100%;\r\n    \tline-height: 14px;\r\n    \tfont-weight: bold;\r\n    \ttext-align: center;\r\n\t}\r\n}\r\n\r\n\r\n.marker_open {\r\n\tbackground-color: #de5920;\r\n\tborder: solid 2px #454545;\r\n\tborder-radius: 4px;\r\n\t&.selected {\r\n\t\t.marker_content {\r\n\t\t\tpadding: 5px;\r\n\t\t\tbackground-color: #e8ad2f;\r\n\t\t\ttext-shadow: 1px 1px 3px rgba(0, 0, 0, 0.85);\r\n\t\t}\r\n\t}\r\n\t&:after {\r\n    \tcontent:'';\r\n    \tposition: absolute;\r\n    \ttop: 100%;\r\n    \tleft: 50%;\r\n    \tmargin-left: -10px;\r\n    \twidth: 0;\r\n    \theight: 0;\r\n    \tborder-top: solid 10px #454545;\r\n\t\tborder-left: solid 10px transparent;\r\n\t\tborder-right: solid 10px transparent;\r\n\t}\r\n\t.marker_content {\r\n    \tposition:relative;\r\n    \tmin-width: 30px;\r\n    \tpadding: 3px;\r\n    \tcolor:#ffffff;\r\n    \tfont-size: 14px;\r\n    \twidth: 100%;\r\n    \tline-height: 14px;\r\n    \tfont-weight: bold;\r\n    \ttext-align: center;\r\n\t}\r\n}\n<\/style>\n<div class=\"bootstrap-grid-ilogs\">\n\t<div class=\"container-fluid\" id=\"iLogs-parking_container\">\n\t    <div class=\"row\">\n\t        <div class=\"col-12 col-sm-4 col-md-4 col-xl-3 d-none d-sm-block\" id=\"iLogs-parking_side_container\" style=\"height: 800px\">\n\t\t        <div id=\"ilogs-parking-search-container\">\n\t\t\t        <div class=\"row header\">\n\t\t\t\t        <div class=\"col-12\">\n\t\t\t\t\t        <h1><div class=\"car_icon\"><i class=\"fa fa-car\" aria-hidden=\"true\"><\/i><\/div>Find a Parking Space:<\/h1>\n\t\t\t\t        <\/div>\n\t\t\t        <\/div>\n\t          \t\t\n\t\t\t\t\t<form method=\"get\" action=\"https:\/\/showcase.parkinghq.com\/\" id=\"ilogs-parking-searchform\" class=\"ilogs-parking-searchform\">\n\t\t\t\t\t\t<input type=\"hidden\" name=\"reset\" value=\"0\"\/>\n\t\t\t\t\t\t<input type=\"hidden\" name=\"action\" value=\"search\"\/>\n\t\t\t\t\t\t<input type=\"hidden\" name=\"type\" value=\"\"\/>\n\t\t\t\t\t\t<div class=\"row\">\n\t\t\t\t\t\t\t<div class=\"col-12 form_group_text\">Search<\/div>\n\t\t\t\t\t\t\t<div class=\"col-12\">\n\t\t\t\t\t\t\t\t<input name=\"locationsearch\" id=\"search\" type=\"text\" value=\"\" class=\"maxwidth\" placeholder=\"Where do you want to go?\" aria-required=\"true\" aria-invalid=\"false\">\n\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<div class=\"row dates\">\n\t\t\t\t\t\t\t<div class=\"col-6 startdate\">\n\t\t\t\t\t\t\t\t<input name=\"period_from\" id=\"period_from\" placeholder=\"Start\" type=\"text\" autocomplete=\"off\" \/>\n\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t<div class=\"col-6 enddate\">\n\t\t\t\t\t\t\t\t<input name=\"period_to\" id=\"period_to\" placeholder=\"End\" type=\"text\" autocomplete=\"off\" \/>\n\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<div class=\"row togglebuttons\">\n\t\t\t\t\t\t\t<div class=\"col-6 monthly\">\n\t\t\t\t\t\t\t\t<button type=\"button\" value=\"monthly\" id=\"button_monthly\" class=\"btn btn-toogle btn-block btn-large\"><i class=\"fa fa fa-calendar-check-o\" aria-hidden=\"true\"><\/i> Search Monthly<\/button>\n\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t<div class=\"col-6 daily\">\n\t\t\t\t\t\t\t\t<button type=\"button\" value=\"daily\" id=\"button_daily\" class=\"btn btn-toogle btn-block btn-large\"><i class=\"fa fa fa-calendar-check-o\" aria-hidden=\"true\"><\/i> Search Daily<\/button>\n\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<div class=\"row filters\">\n\t\t\t\t\t\t\t<div class=\"col-3 filter_text\" style=\"text-align: left;\"><a href=\"#\" class=\"openmodalfilter\"><i class=\"fa fa-filter\" aria-hidden=\"true\"><\/i> Filter<\/a><\/div>\n\t\t\t\t\t\t\t<div class=\"col-5 filter_icons\">&nbsp;<\/div>\n\t\t\t\t\t\t\t<div class=\"col-4 text-right filter_clear\"><!-- <a  href=\"#\" class=\"btn btn-ilogs btn-xs openmodalfilter\"><i class=\"fa fa-filter\" aria-hidden=\"true\"><\/i><\/a> --><a href=\"#\" class=\"clearfilter\" style=\"display: none;\"><i class=\"fa fa-times-circle-o icon\" aria-hidden=\"true\"><\/i> Clear filter<\/a><\/div>\n\t\t\t\t\t\t\t<div class=\"collapse modaldialog bootstrap-grid-ilogs\" style=\"display: none;\">\n\t\t\t\t\t\t\t\t<!-- <div class=\"row\">\n\t\t\t\t\t\t\t\t\t<div class=\"col-9\">Hide unavailable parking spaces<\/div>\n\t\t\t\t\t\t\t\t\t<div class=\"col-3 text-right \"><input type=\"checkbox\" name=\"notavailable\" class=\"filter\" value=\"1\" \/><\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t<div class=\"row\">\n\t\t\t\t\t\t\t\t\t<div class=\"col-9\">Hide non-bookable parking spaces<\/div>\n\t\t\t\t\t\t\t\t\t<div class=\"col-3 text-right \"><input type=\"checkbox\" name=\"notreservable\" class=\"filter\" value=\"1\" \/><\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t<hr\/>-->\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<!-- <div class=\"row buttons\">\n\t\t\t\t\t\t\t<div class=\"col-12 col-sm-6\">\n\t\t\t\t\t\t\t\t<a href=\"https:\/\/showcase.parkinghq.com\/?reset=1\" class=\"btn btn-ilogs btn-block btn-large\" role=\"button\"><i class=\"fa fa-window-close-o\" aria-hidden=\"true\"><\/i> Reset<\/a><\/div>\n\t\t\t\t\t\t\t<div class=\"col-12 col-sm-6\"><button type=\"submit\" value=\"submit\" name=\"submit\" class=\"btn btn-ilogs btn-block btn-large\"><i class=\"fa fa-search\" aria-hidden=\"true\"><\/i> Search<\/button>\n\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div> -->\n\t\t\t\t\t<\/form>\n\t\t\t\t<\/div>\n\t\t\t\t<div id=\"ajax_list_container\">\n\t\n\t<div class=\"count\">Could not find any parking spaces<\/div>\n\t\n\t<div class=\"listcontainer facilities_container\">\n\t\t\n\t\t\n\t\n\t\t\n\t<\/div>\n<\/div>\n\t        <\/div>\n\t        <div class=\"col-12 col-sm-8 col-md-8 col-xl-9\" id=\"iLogs-parking_map_container\">\n\t          <div id=\"ilogsmap\" style=\"height: 800px\"><\/div>\n\t          <div id=\"marker_desc\">\n\t\t          <div class=\"marker_reservable\"><div class=\"marker_content\">P<\/div><\/div>\n\t\t          <span>Reservable<\/span>\n\t\t          <!--<div class=\"marker_open\"><div class=\"marker_content\">P<\/div><\/div>\n\t\t          <span>Not reservable<\/span>-->\n\t\t          <div class=\"marker_closed\"><div class=\"marker_content\">P<\/div><\/div>\n\t\t          <span>Closed<\/span>\n\t          <\/div>\n\t          <div id=\"mview_switch\" class=\"d-block d-sm-none container-fluid\">\n\t\t          <div class=\"mview\">\n\t\t          <a href=\"#\" class=\"btn btn-ilogs btn-xs showmap\"><i class=\"fa fa-globe\" aria-hidden=\"true\"><\/i> Map<\/a>\n\t\t          <a href=\"#\" class=\"btn btn-ilogs btn-xs showlist\"><i class=\"fa fa-list\" aria-hidden=\"true\"><\/i> List<\/a>\n\t\t          <\/div>\n\t          <\/div>\n\t          <div id=\"search_container\" class=\"d-block d-sm-none container-fluid\">\n\t\t          \t<div class=\"mcontainer\">\n\t\t\t          \t<form method=\"get\" action=\"https:\/\/showcase.parkinghq.com\/\" id=\"ilogs-parking-mobile-searchform\" class=\"bosch-parking-searchform\">\n\t\t\t\t\t  \t\t<input type=\"hidden\" name=\"reset\" value=\"0\"\/>\n\t\t\t\t\t  \t\t<input type=\"hidden\" name=\"action\" value=\"search\"\/>\n\t\t\t\t\t  \t\t<input type=\"hidden\" name=\"type\" value=\"\"\/>\n\t\t\t\t\t  \t\t<div class=\"row\">\n\t\t\t\t\t  \t\t\t<div class=\"col-12 col_search\">\n\t\t\t\t\t  \t\t\t\t<input name=\"locationsearch\" id=\"mobilesearch\" type=\"text\" value=\"\" class=\"maxwidth\" placeholder=\"Where do you want to go?\" aria-required=\"true\" aria-invalid=\"false\" style=\"width: 100%;\">\n\t\t\t\t\t  \t\t\t<\/div>\n\t\t\t\t\t  \t\t<\/div>\n\t\t\t\t\t  \t\t\n\t\t\t\t\t  \t\t<div class=\"row dates\">\n\t\t\t\t\t\t\t\t<div class=\"col-6 startdate\">\n\t\t\t\t\t\t\t\t\t<input name=\"period_from\" id=\"mobile_period_from\" placeholder=\"Start\" type=\"text\" autocomplete=\"off\" \/>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t<div class=\"col-6 enddate\">\n\t\t\t\t\t\t\t\t\t<input name=\"period_to\" id=\"mobile_period_to\" placeholder=\"End\" type=\"text\" autocomplete=\"off\" \/>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t  \t\t\n\t\t\t\t\t  \t\t<div class=\"row togglebuttons\">\n\t\t\t\t\t\t\t\t<div class=\"col-6 monthly\">\n\t\t\t\t\t\t\t\t\t<button type=\"button\" value=\"monthly\" id=\"mbutton_monthly\" class=\"btn btn-toogle btn-block btn-large\"><i class=\"fa fa fa-calendar-check-o\" aria-hidden=\"true\"><\/i> Search Monthly<\/button>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t<div class=\"col-6 daily\">\n\t\t\t\t\t\t\t\t\t<button type=\"button\" value=\"daily\" id=\"mbutton_daily\" class=\"btn btn-toogle btn-block btn-large\"><i class=\"fa fa fa-calendar-check-o\" aria-hidden=\"true\"><\/i> Search Daily<\/button>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t  \t\t\n\t\t\t\t\t  \t\t\n\t\t\t\t\t  \t\t<div class=\"row\" style=\"margin-top: 10px;\">\n\t\t\t\t\t\t\t\t<div class=\"col-12 \">\n\t\t\t\t\t\t\t\t\t<a  href=\"#\" class=\"btn btn-ilogs btn-xs btn-block openmodalfilter\"><i class=\"fa fa-filter\" aria-hidden=\"true\"><\/i> Filter<\/a>\n\t\t\t\t\t\t\t\t\t<a href=\"#\" class=\"btn btn-ilogs btn-xs btn-block clearfilter\" style=\"display: none;\"><i class=\"fa fa-times-circle-o icon\" aria-hidden=\"true\"><\/i> Clear filter<\/a>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t          \t<\/form>\n\t\t          \t<\/div>\n\t          <\/div>\n\t        <\/div>\n\t    <\/div>\n\t<\/div>\n\t<div id=\"detailmodal\" data-iziModal-icon=\"icon-home\"> <!-- data-iziModal-fullscreen=\"true\"    data-iziModal-subtitle=\"Subtitle\"  data-iziModal-icon=\"icon-home\" -->\n\t    <!-- Modal content -->\n\t<\/div>\n\t<div id=\"mapinfomodal\" data-iziModal-icon=\"icon-home\"> <!-- data-iziModal-fullscreen=\"true\"    data-iziModal-subtitle=\"Subtitle\"  data-iziModal-icon=\"icon-home\" -->\n\t    <!-- Modal content -->\n\t<\/div>\n\t<div id=\"errormodal\" data-iziModal-icon=\"icon-home\"> <!-- data-iziModal-fullscreen=\"true\"    data-iziModal-subtitle=\"Subtitle\"  data-iziModal-icon=\"icon-home\" -->\n\t    <!-- Modal content -->\n\t<\/div>\n<\/div>\n<div id=\"ilogs-bottom-bar\"> Powered By <a href=\"https:\/\/www.ilogs.com\/en\/\" target=\"_blank\" >iLogs ParkingHQ Suite &reg;<\/a><\/div>\n<script type=\"text\/javascript\">\n\t\/\/<![CDATA[\n\t\/\/var j=jQuery;\n\t\/\/jQuery.noConflict();\n\t\/\/]]>\n<\/script>\n<script type=\"text\/javascript\">\n\t\/\/<![CDATA[\n\t\n\tvar updateQueryStringParam = function (key, value) {\n\t\n\t    var baseUrl = [location.protocol, '\/\/', location.host, location.pathname].join(''),\n\t        urlQueryString = document.location.search,\n\t        newParam = key + '=' + value,\n\t        params = '?' + newParam;\n\t\n\t    \/\/ If the \"search\" string exists, then build params from it\n\t    if (urlQueryString) {\n\t\n\t        updateRegex = new RegExp('([\\?&])' + key + '[^&]*');\n\t        removeRegex = new RegExp('([\\?&])' + key + '=[^&;]+[&;]?');\n\t\n\t        if( typeof value == 'undefined' || value == null || value == '' ) { \/\/ Remove param if value is empty\n\t\n\t            params = urlQueryString.replace(removeRegex, \"$1\");\n\t            params = params.replace( \/[&;]$\/, \"\" );\n\t\n\t        } else if (urlQueryString.match(updateRegex) !== null) { \/\/ If param exists already, update it\n\t\n\t            params = urlQueryString.replace(updateRegex, \"$1\" + newParam);\n\t\n\t        } else { \/\/ Otherwise, add it to end of query string\n\t\n\t            params = urlQueryString + '&' + newParam;\n\t\n\t        }\n\t    }\n\t    window.history.replaceState({}, \"\", baseUrl + params);\n\t};\t\n\t\n\t\n\tvar w = jQuery(window).width();\n\tvar mobile = false;\n\tvar domready = false;\n\tif(w<=768) {\n\t\tmobile = true;\n\t}\n\t\n\tvar requested_error = '';\n\tvar ipcp_date_from = '';\n\tvar ipcp_date_to = '';\n\t\n\tvar baseurl = \"https:\/\/showcase.parkinghq.com\/\";\n\tvar pluginurl = \"https:\/\/showcase.parkinghq.com\/wp-content\/plugins\/ilogs-parking\";\n\tvar ajaxurl = \"https:\/\/showcase.parkinghq.com\/wp-admin\/admin-ajax.php\";\n\tvar container_height = \"800px\";\n\tvar container_height_autosize = 1;\n\tvar container_autosize_subtract = 100;\n\tcontainer_height = container_height.substring(0, container_height.length-2);\n\t\n\tvar cachedPricelist = false;\n\t\n\tfunction addZero(i) {\n    \tif (i < 10) {\n        \ti = \"0\" + i;\n    \t}\n\t\treturn i;\n\t}\n\tjQuery(window).unload(function(){\n\t\tconsole.log(\"unReady\");\n\t});\n\tjQuery(document).ready(function($) {\n\t\tconsole.log(\"Ready\");\n\t\t\n\t\t\n\t\tif (requested_error.length) {\t\t\n\t\t\tvar error_messages = requested_error.split(\";\");\n\t\t\tvar emessage = \"\";\n\t\t\tfor (var i = 0; i < error_messages.length; i++) {\n\t\t\t\temessage = emessage + \"&bull; \" + error_messages[i] + \"<br\/>\";\n\t\t\t}\t  \n\t\t\tjQuery(\"div#errormodal\").iziModal({\n    \t\t\ttitle: 'Error',\n\t\t\t\theaderColor: '#d9534f',\n\t\t\t\tcloseOnEscape: true,\n\t\t\t\tzindex: 40999,\n\t\t\t\tpadding: 20,\n\t\t\t\tbodyOverflow: true,\n\t\t\t\tonOpening: function(modal){\n\t\t\t\t\tjQuery(\"div#errormodal .iziModal-content\").html(emessage);\n\t\t\t\t},\n\t\t\t\tonClosed: function() {\n\t\t\t\t\tjQuery('div#errormodal').iziModal('destroy');\n\t\t\t\t},\n\t\t\t});\n\t\t\tjQuery('div#errormodal').iziModal('open');\n\t\t\tupdateQueryStringParam( 'errormsg', null );\n\t\t}\n\t\t\n\t\t\n\t\t\/\/ new Button toggle\n\t\tjQuery( \"#button_monthly\" ).click(function() {\n\t\t\tjQuery( \"#button_daily\" ).removeClass( \"active\" );\n\t\t\tif(!jQuery( \"#button_monthly\" ).hasClass( \"active\" )) {\n\t\t\t\tjQuery( \"#button_monthly\" ).addClass( \"active\" );\n\t\t\t\tjQuery('input[name=type]').val('monthly');\n\t\t\t\tdocument.cookie = \"ilogs_parking.type=monthly; expires=\"+ new Date(new Date().getTime()+(15*60)*1000).toGMTString()+ \"; path=\/\";\n\t\t\t}\n\t\t\tsearchByMapBound();\n\t\t});\n\t\tjQuery( \"#button_daily\" ).click(function() {\n\t\t\tjQuery( \"#button_monthly\" ).removeClass( \"active\" );\n\t\t\tif(!jQuery( \"#button_daily\" ).hasClass( \"active\" )) {\n\t\t\t\tjQuery( \"#button_daily\" ).addClass( \"active\" );\n\t\t\t\tjQuery('input[name=type]').val('daily');\n\t\t\t\tdocument.cookie = \"ilogs_parking.type=daily; expires=\"+ new Date(new Date().getTime()+(15*60)*1000).toGMTString()+ \"; path=\/\";\n\t\t\t}\n\t\t\tsearchByMapBound();\n\t\t});\n\t\t\n\t\tjQuery( \"#mbutton_monthly\" ).click(function() {\n\t\t\tjQuery( \"#mbutton_daily\" ).removeClass( \"active\" );\n\t\t\tif(!jQuery( \"#mbutton_monthly\" ).hasClass( \"active\" )) {\n\t\t\t\tjQuery( \"#mbutton_monthly\" ).addClass( \"active\" );\n\t\t\t\tjQuery('input[name=type]').val('monthly');\n\t\t\t\tdocument.cookie = \"ilogs_parking.type=monthly; expires=\"+ new Date(new Date().getTime()+(15*60)*1000).toGMTString()+ \"; path=\/\";\n\t\t\t}\n\t\t\tsearchByMapBound();\n\t\t});\n\t\tjQuery( \"#mbutton_daily\" ).click(function() {\n\t\t\tjQuery( \"#mbutton_monthly\" ).removeClass( \"active\" );\n\t\t\tif(!jQuery( \"#mbutton_daily\" ).hasClass( \"active\" )) {\n\t\t\t\tjQuery( \"#mbutton_daily\" ).addClass( \"active\" );\n\t\t\t\tjQuery('input[name=type]').val('daily');\n\t\t\t\tdocument.cookie = \"ilogs_parking.type=daily; expires=\"+ new Date(new Date().getTime()+(15*60)*1000).toGMTString()+ \"; path=\/\";\n\t\t\t}\n\t\t\tsearchByMapBound();\n\t\t});\n\t\t\n\t\t\n\t\t\/\/toogle buttons\n\t\t\/*jQuery( \"#button_monthly\" ).click(function() {\n\t\t\tjQuery('input[name=type]').val('');\n\t\t\tjQuery( \"#button_daily\" ).removeClass( \"active\" );\n\t\t\tif(jQuery( \"#button_monthly\" ).hasClass( \"active\" )) {\n\t\t\t\tjQuery( \"#button_monthly\" ).removeClass( \"active\" );\n\t\t\t\tdocument.cookie = 'ilogs_parking.type=0; expires=Thu, 01 Jan 1970 00:00:01 GMT; path=\/';\n\t\t\t} else {\n\t\t\t\tjQuery( \"#button_monthly\" ).addClass( \"active\" );\n\t\t\t\tjQuery('input[name=type]').val('monthly');\n\t\t\t\tdocument.cookie = \"ilogs_parking.type=monthly; expires=\"+ new Date(new Date().getTime()+(15*60)*1000).toGMTString()+ \"; path=\/\";\n\t\t\t}\n\t\t\tsearchByMapBound();\n\t\t});\n\t\tjQuery( \"#button_daily\" ).click(function() {\n\t\t\tjQuery('input[name=type]').val('');\n\t\t\tjQuery( \"#button_monthly\" ).removeClass( \"active\" );\n\t\t\tif(jQuery( \"#button_daily\" ).hasClass( \"active\" )) {\n\t\t\t\tjQuery( \"#button_daily\" ).removeClass( \"active\" );\n\t\t\t\tdocument.cookie = 'ilogs_parking.type=0; expires=Thu, 01 Jan 1970 00:00:01 GMT; path=\/';\n\t\t\t} else {\n\t\t\t\tjQuery( \"#button_daily\" ).addClass( \"active\" );\n\t\t\t\tjQuery('input[name=type]').val('daily');\n\t\t\t\tdocument.cookie = \"ilogs_parking.type=daily; expires=\"+ new Date(new Date().getTime()+(15*60)*1000).toGMTString()+ \"; path=\/\";\n\t\t\t}\n\t\t\tsearchByMapBound();\n\t\t});\n\t\t\n\t\t\/\/toogle buttons\n\t\tjQuery( \"#mbutton_monthly\" ).click(function() {\n\t\t\tjQuery('input[name=type]').val('');\n\t\t\tjQuery( \"#mbutton_daily\" ).removeClass( \"active\" );\n\t\t\tif(jQuery( \"#mbutton_monthly\" ).hasClass( \"active\" )) {\n\t\t\t\tjQuery( \"#mbutton_monthly\" ).removeClass( \"active\" );\n\t\t\t\tdocument.cookie = 'ilogs_parking.type=0; expires=Thu, 01 Jan 1970 00:00:01 GMT; path=\/';\n\t\t\t} else {\n\t\t\t\tjQuery( \"#mbutton_monthly\" ).addClass( \"active\" );\n\t\t\t\tjQuery('input[name=type]').val('monthly');\n\t\t\t\tdocument.cookie = \"ilogs_parking.type=monthly; expires=\"+ new Date(new Date().getTime()+(15*60)*1000).toGMTString()+ \"; path=\/\";\n\t\t\t}\n\t\t\tsearchByMapBound();\n\t\t});\n\t\tjQuery( \"#mbutton_daily\" ).click(function() {\n\t\t\tjQuery('input[name=type]').val('');\n\t\t\tjQuery( \"#mbutton_monthly\" ).removeClass( \"active\" );\n\t\t\tif(jQuery( \"#mbutton_daily\" ).hasClass( \"active\" )) {\n\t\t\t\tjQuery( \"#mbutton_daily\" ).removeClass( \"active\" );\n\t\t\t\tdocument.cookie = 'ilogs_parking.type=0; expires=Thu, 01 Jan 1970 00:00:01 GMT; path=\/';\n\t\t\t} else {\n\t\t\t\tjQuery( \"#mbutton_daily\" ).addClass( \"active\" );\n\t\t\t\tjQuery('input[name=type]').val('daily');\n\t\t\t\tdocument.cookie = \"ilogs_parking.type=daily; expires=\"+ new Date(new Date().getTime()+(15*60)*1000).toGMTString()+ \"; path=\/\";\n\t\t\t}\n\t\t\tsearchByMapBound();\n\t\t});*\/\n\t\t\n\t\tif(mobile && container_height_autosize) {\n\t\t\tcontainer_height = jQuery(window).height();\n\t\t\tvar ilogs_footer_height = jQuery(\"div#ilogs-bottom-bar\").height();\n\t\t\tcontainer_height = container_height - container_autosize_subtract - ilogs_footer_height;\n\t\t\tjQuery(\"#iLogs-parking_side_container\").css(\"height\",container_height + \"px\");\n\t\t\tjQuery(\"#ilogsmap\").css(\"height\",container_height + \"px\");\n\t\t\t\n\t\t\t\n\t\t\tvar x = jQuery(\"div#ilogs-bottom-bar\").position();\n\t\t\tjQuery( window ).scroll(function() {\n\t\t\t\tvar scroll = jQuery(window).scrollTop();\n\t\t\t\tvar wh = jQuery(window).height();\n\t\t\t\t\n\t\t\t\tif(x.top-wh > 0) {\n\t\t\t\t\tif(scroll >= (x.top-wh)) {\n\t\t\t\t\t\tjQuery(\"#mview_switch\").css(\"position\",\"absolute\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tjQuery(\"#mview_switch\").css(\"position\",\"fixed\");\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tjQuery(\"#mview_switch\").css(\"position\",\"absolute\");\n\t\t\t\t}\n\t\t\t});\n\t\t\t\n\t\t\tvar scroll = jQuery(window).scrollTop();\n\t\t\tvar wh = jQuery(window).height();\n\t\t\tif(x.top-wh > 0) {\n\t\t\t\tif(scroll >= (x.top-wh)) {\n\t\t\t\t\tjQuery(\"#mview_switch\").css(\"position\",\"absolute\");\n\t\t\t\t} else {\n\t\t\t\t\tjQuery(\"#mview_switch\").css(\"position\",\"fixed\");\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tjQuery(\"#mview_switch\").css(\"position\",\"absolute\");\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\tjQuery('a.showmap').on('click', function (event) {\n\t\t\tevent.preventDefault();\n    \t\tjQuery('#ilogsmap').show();\n    \t\tjQuery('#marker_desc').show();\n    \t\tjQuery(\"div#iLogs-parking_map_container div#ajax_list_container\").hide();\n\t\t});\n\t\tvar isListDeatached = false;\n\t\tjQuery('a.showlist').on('click', function (event) {\n\t\t\tevent.preventDefault();\n\t\t\tif(!isListDeatached) {\n\t\t\t\tvar list = jQuery( \"div#ajax_list_container\" ).first().detach();\n\t\t\t\tlist.addClass(\"container\");\n\t\t\t\tlist.appendTo(\"#iLogs-parking_map_container\");\n\t\t\t\tisListDeatached = true;\n\t\t\t\t\n\t\t\t\tvar mswitch = jQuery( \"#mview_switch\" ).detach();\n\t\t\t\tmswitch.appendTo(\"#iLogs-parking_map_container\");\n\t\t\t\tjQuery( document ).ajaxComplete(function() {\n\t\t\t\t\tvar paddingtop = jQuery(\"div#search_container\").height(); \n\t\t\t\t\tjQuery(\"div#iLogs-parking_map_container div#ajax_list_container div.count\").css(\"padding-top\",(paddingtop+10)+\"px\");\n\t\t\t\t\tjQuery(\"div#iLogs-parking_map_container div#ajax_list_container div.listcontainer\").css(\"height\",(container_height-paddingtop-40)+\"px\");\n\t\t\t\t});\n\t\t\t}\n\t\t\t\n\t\t\tvar paddingtop = jQuery(\"div#search_container\").height(); \n\t\t\tjQuery(\"div#iLogs-parking_map_container div#ajax_list_container div.count\").css(\"padding-top\",(paddingtop+10)+\"px\");\n\t\t\tjQuery(\"div#iLogs-parking_map_container div#ajax_list_container div.listcontainer\").css(\"height\",(container_height-paddingtop-40)+\"px\");\n\t\t\tjQuery('div#ajax_list_container').show();\n    \t\tjQuery('#ilogsmap').hide();\n    \t\tjQuery('#marker_desc').hide();\n\t\t});\n\t\n\t\tjQuery(\"div.modaldialog\").iziModal({\n    \t\ttitle: 'Filter',\n\t\t\theaderColor: '#de5920',\n\t\t\tcloseOnEscape: true,\n\t\t\tzindex: 40999,\n\t\t\tpadding: 10,\n\t\t\tbodyOverflow: true\n\t\t});\n\t\tjQuery('a.openmodalfilter').on('click', function (event) {\n\t\t\tevent.preventDefault();\n    \t\tjQuery('div.modaldialog').iziModal('open');\n\t\t});\n\t\tjQuery('a.clearfilter').on('click', function (event) {\n\t\t\tevent.preventDefault();\n\t\t\tdocument.cookie = 'ilogs_parking.filter=0; expires=Thu, 01 Jan 1970 00:00:01 GMT; path=\/';\n\t\t\tjQuery(\"input.filter[type='checkbox']\").each(function () {\n\t\t\t\tjQuery(this).prop(\"checked\", false);\n\t\t\t});\n\t\t\tjQuery(\"a.clearfilter\").hide();\n\t\t\t$( \"div.filter_icons\" ).empty();\n\t\t\tsearchByMapBound();\n\t\t});\n\t\tjQuery('#ilogs-parking-searchform').submit(function(){\n\t\t\treturn false;\n  \t\t});\n  \t\tjQuery('#ilogs-parking-mobile-searchform').submit(function(){\n\t\t\treturn false;\n  \t\t});\n\t\tjQuery(\"input.filter\").change(function() {\n\t\t\tvar arr = [];\n\t\t\t$( \"div.filter_icons\" ).empty();\n\t\t\tjQuery(\"input.filter[type='checkbox']:checked\").each(function (e) {\n\t\t\t\tarr.push($(this).val());\n\t\t\t\t\/\/var icon = $(this).closest('div.row').find('img');\n\t\t\t\t$(this).closest('div.row').find('img').clone().appendTo( \"div.filter_icons\" );\n\t\t\t});\n\t\t\tvar filterstring =  arr.join(\",\");\n\t\t\t\n\t\t\tif(filterstring !== '') {\n\t\t\t\tdocument.cookie = \"ilogs_parking.filter=\"+filterstring+\"; expires=\"+ new Date(new Date().getTime()+(15*60)*1000).toGMTString()+ \"; path=\/\";\n\t\t\t\tjQuery(\"a.clearfilter\").show();\n\t\t\t} else {\n\t\t\t\tconsole.log(\"delete cookie\");\n\t\t\t\tdocument.cookie = 'ilogs_parking.filter=0; expires=Thu, 01 Jan 1970 00:00:01 GMT; path=\/';\n\t\t\t\tjQuery(\"a.clearfilter\").hide();\n\t\t\t}\n\t\t\t\n\t\t\t\/\/var history_url = \"https:\/\/showcase.parkinghq.com\/?\" + jQuery(\"form#ilogs-parking-searchform\").serialize() + \"&\" + jQuery(\"input.filter[type='checkbox']:checked\").serialize();\n\t\t\t\n\t\t\t\/\/history.pushState({}, '', history_url);\n\t\t\t\n\t\t\tsearchByMapBound();\n\t\t});\n\t\t\n\t\tvar actDate = new Date();\n\t\tvar minHour = actDate.getHours() + 3;\n\t\tif(minHour > 23) {\n\t\t\tminHour = 0;\n\t\t}\n\t\t\n\t\tvar mindate = new Date();\n\t\tmindate.setMinutes(mindate.getMinutes() + 10);\n\t\t\n\t\tvar startDateTextBox = jQuery('#period_from');\n\t\tvar endDateTextBox = jQuery('#period_to');\n\t\t$.datepicker.setDefaults($.datepicker.regional['en']);\n\t\t$.timepicker.datetimeRange(\n\t\t\tstartDateTextBox,\n\t\t\tendDateTextBox,\n\t\t\t{\n\t\t\t\tfirstDay: 0,\n\t\t\t\tminInterval: (1000*60*60), \/\/ 1hr\n\t\t\t\ttimeFormat: 'h:mm tt',\n\t\t\t\tmodal: true,\n\t\t\t\ttimeInput: true,\n\t\t\t\tstepHour: 1,\n\t\t\t\tstepMinute: 60,\n\t\t\t\tcontrolType: 'select',\n\t\t\t\toneLine: true,\n\t\t\t\tminDate: mindate,\n\t\t\t\tminTime:'00:05',\n\t\t\t\tmaxTime:'23:55',\n\t\t\t\tshowMinute: false,\n\t\t\t\tafterInject: function() {\n\t\t\t\t\t$( \"div.ui_tpicker_hour_slider span\" ).remove();\n\t\t\t\t},\n\t\t\t\tonClose: function() {\n\t\t\t\t\t\n\t\t\t\t\tvar fromDate = jQuery('#period_from').datepicker( \"getDate\" );\n\t\t\t\t\tvar toDate = jQuery('#period_to').datepicker( \"getDate\" );\n\t\t\t\t\t\n\t\t\t\t\tjQuery('#mobile_period_from').datetimepicker('setDate', fromDate );\n\t\t\t\t\tjQuery('#mobile_period_to').datetimepicker('setDate', toDate );\n\t\t\t\t\t\n\t\t\t\t\tfetchediPCPPrices = [];\n\t\t\t\t\t\n\t\t\t\t\tconsole.log(\"Reinit Markerprice\");\n\t\t\t\t\t\n\t\t\t\t\tmarkers.forEach(function(marker){\n\t\t\t\t\t\tmarker.setContent('<div class=\"'+marker.marker_class+'\"><div class=\"marker_content\">P<\/div><\/div>');\n\t\t\t  \t\t\tmarker.marker_text = \"P\";\n\t\t\t\t\t});\n\t\t\t\t\t\n\t\t\t\t\tsearchByMapBound();\n\t\t\t\t}\n\t\t\t\t\/*start: {\n\t\t\t\t\tonClose: function(dateText) {\n\t\t\t\t\t\tconsole.log(\"datetimeRange onClose \" + this.id + \" \/ \" + dateText);\n\t\t\t\t\t\tdoPriceCalculate();\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\tend: {\n\t\t\t\t\tonClose: function(dateText) {\n\t\t\t\t\t\tconsole.log(\"datetimeRange onClose \" + this.id + \" \/ \" + dateText);\n\t\t\t\t\t\tdoPriceCalculate();\n\t\t\t\t\t}\n\t\t\t\t}, \/\/ start picker options\n\t\t\t\t\/*onClose: function(dateText) {\n\t\t\t\t\tconsole.log(\"datetimeRange onClose \" + this.id + \" \/ \" + dateText);\n\t\t\t\t},*\/\n\t\t\t}\n\t\t);\n\t\t\n\t\t\n\t\t\n\t\tvar startDateTextBox = jQuery('#mobile_period_from');\n\t\tvar endDateTextBox = jQuery('#mobile_period_to');\n\t\t$.datepicker.setDefaults($.datepicker.regional['en']);\n\t\t$.timepicker.datetimeRange(\n\t\t\tstartDateTextBox,\n\t\t\tendDateTextBox,\n\t\t\t{\n\t\t\t\tfirstDay: 0,\n\t\t\t\tminInterval: (1000*60*60), \/\/ 1hr\n\t\t\t\ttimeFormat: 'h:mm tt',\n\t\t\t\tmodal: true,\n\t\t\t\ttimeInput: true,\n\t\t\t\tstepHour: 1,\n\t\t\t\tstepMinute: 60,\n\t\t\t\tcontrolType: 'select',\n\t\t\t\toneLine: true,\n\t\t\t\tminDate: mindate,\n\t\t\t\tminTime:'00:05',\n\t\t\t\tmaxTime:'23:55',\n\t\t\t\tshowMinute: false,\n\t\t\t\tafterInject: function() {\n\t\t\t\t\t$( \"div.ui_tpicker_hour_slider span\" ).remove();\n\t\t\t\t},\n\t\t\t\tonClose: function() {\n\t\t\t\t\t\/\/ check dates\n\t\t\t\t\tvar fromDate = jQuery('#mobile_period_from').datepicker( \"getDate\" );\n\t\t\t\t\tvar toDate = jQuery('#mobile_period_to').datepicker( \"getDate\" );\n\t\t\t\t\t\n\t\t\t\t\tjQuery('#period_from').datetimepicker('setDate', fromDate );\n\t\t\t\t\tjQuery('#period_to').datetimepicker('setDate', toDate );\n\t\t\t\t\t\n\t\t\t\t\tfetchediPCPPrices = [];\n\t\t\t\t\t\n\t\t\t\t\tconsole.log(\"Reinit Markerprice\");\n\t\t\t\t\t\n\t\t\t\t\tmarkers.forEach(function(marker){\n\t\t\t\t\t\tconsole.log(marker);\n\t\t\t\t\t\tmarker.setContent('<div class=\"'+marker.marker_class+'\"><div class=\"marker_content\">P<\/div><\/div>');\n\t\t\t  \t\t\tmarker.marker_text = \"P\";\n\t\t\t\t\t});\n\t\t\n\t\t\t\t\tsearchByMapBound();\n\t\t\t\t}\n\t\t\t}\n\t\t);\n\t\t\n\t\t\/\/ check cookie\n\t\tif(Cookies.get('ilogs_parking.datefrom') !== undefined) {\n\t\t\tvar datefrom = new Date(Cookies.get('ilogs_parking.datefrom'));\n\t\t\tjQuery('#period_from').datetimepicker('setDate', datefrom );\n\t\t\tjQuery('#mobile_period_from').datetimepicker('setDate', datefrom );\n\t\t}\n\t\tif(Cookies.get('ilogs_parking.dateto') !== undefined) {\n\t\t\tvar dateto = new Date(Cookies.get('ilogs_parking.dateto'));\n\t\t\tjQuery('#period_to').datetimepicker('setDate', dateto );\n\t\t\tjQuery('#mobile_period_to').datetimepicker('setDate', dateto );\n\t\t}\n\t\t\n\t\tif (ipcp_date_from.length && ipcp_date_to.length) {\n\t\t\tvar datefrom = new Date(ipcp_date_from);\n\t\t\tvar dateto = new Date(ipcp_date_to);\n\t\t\tjQuery('#period_from').datetimepicker('setDate', datefrom );\n\t\t\tjQuery('#mobile_period_from').datetimepicker('setDate', datefrom );\n\t\t\tjQuery('#period_to').datetimepicker('setDate', dateto );\n\t\t\tjQuery('#mobile_period_to').datetimepicker('setDate', dateto );\n\t\t}\n\t\t\n\t\t\n\t\t\tif(Cookies.get('ilogs_parking.locationsearch') !== undefined) {\n\t    \t\tjQuery('#search').val(Cookies.get('ilogs_parking.locationsearch'));\n\t\t\t\tjQuery('#mobilesearch').val(Cookies.get('ilogs_parking.locationsearch'));\n\t\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\tif(Cookies.get('ilogs_parking.filter') !== undefined) {\n\t\t\tvar filterstring = Cookies.get('ilogs_parking.filter');\n\t\t\tvar arr = filterstring.split(\",\");\n\t\t\t$( \"div.filter_icons\" ).empty();\n\t\t\tjQuery.each(arr, function( index, value ) {\n\t\t\t\tjQuery(\"input.filter[type='checkbox']\").each(function () {\n\t\t\t\t\tif(jQuery(this).val() == value) {\n\t\t\t\t\t\tjQuery(this).prop(\"checked\", true);\n\t\t\t\t\t\tjQuery(\"a.clearfilter\").show();\n\t\t\t\t\t\t$(this).closest('div.row').find('img').clone().appendTo( \"div.filter_icons\" );\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t});\n\t\t}\n\t\t\n\t\tif(Cookies.get('ilogs_parking.type') !== undefined) {\n\t\t\tvar type = Cookies.get('ilogs_parking.type');\n\t\t\tjQuery('input[name=type]').val(type);\n\t\t\tjQuery( \"#mbutton_\"+type ).addClass( \"active\" );\n\t\t\tjQuery( \"#button_\"+type ).addClass( \"active\" );\n\t\t} else {\n\t\t\tjQuery('input[name=type]').val(\"daily\");\n\t\t\tjQuery( \"#mbutton_daily\").addClass( \"active\" );\n\t\t\tjQuery( \"#button_daily\").addClass( \"active\" );\n\t\t}\n\t\t\n\t\t\n\t\tdomready = true;\n\t\tinitListView();\n\t\t\n\t\t\n\t\t\n\t\t\/\/setTimeout(doPriceCalculate, 3500);\n\t});\n\t\n\tvar fetchedMarkers = [];\n\tvar iPCPMarkers = [];\n\tvar fetchediPCPPrices = [];\n\t\n\tfunction syncCalendar() {\n\t\tvar currentdate = new Date();\n\t\tcurrentdate.setMinutes(currentdate.getMinutes() + 10);\n\t\tvar futuredate = new Date();\n\t\tfuturedate.setHours(futuredate.getHours() + 3);\n\t\t\n\t\tif( jQuery('#period_from').val().length === 0 ) {\n        \tjQuery('#period_from').datetimepicker('setDate', currentdate );\n    \t}\n    \tif( jQuery('#period_to').val().length === 0 ) {\n        \tjQuery('#period_to').datetimepicker('setDate', futuredate );\n    \t}\n    \t\n    \tif( jQuery('#mobile_period_from').val().length === 0 ) {\n        \tjQuery('#mobile_period_from').datetimepicker('setDate', currentdate );\n    \t}\n    \tif( jQuery('#mobile_period_to').val().length === 0 ) {\n        \tjQuery('#mobile_period_to').datetimepicker('setDate', futuredate );\n    \t}\n    \t\n    \t\/\/ check dates\n    \tvar fromDate = jQuery('#period_from').datepicker( \"getDate\" );\n\t\tvar toDate = jQuery('#period_to').datepicker( \"getDate\" );\n\t\t\n\t\tif(fromDate.getTime() >= toDate.getTime()) {\n\t\t\ttoDate.setTime(fromDate.getTime() + (3*60*60*1000));\n\t\t\tjQuery('#period_to').datetimepicker('setDate', toDate );\n\t\t\tjQuery('#mobile_period_to').datetimepicker('setDate', toDate );\n\t\t}\n    \tconsole.log(\"syncCalender \" + fromDate + \"\/\" + toDate);\n\t}\n\t\n\tfunction doPriceCalculate() {\n\t\tif(jQuery('input[name=type]').val() === \"monthly\") {\n\t\t\treturn;\n\t\t}\n\t\tvar fetchedMarkers = [];\n\t\tvar iPCPMarkers = [];\n\t\tvar maxfetch = 20;\n\t\tconsole.log(\"initPriceCalculate\");\n\t\tsyncCalendar();\n\t\t\n    \tvar fromDate = jQuery('#period_from').datepicker( \"getDate\" );\n\t\tvar toDate = jQuery('#period_to').datepicker( \"getDate\" );\n\t\t\n    \tcount = 0;\n    \tmarkers.forEach(function(marker){\n\t\t\tif(marker.ipcp_id > 0) {\n\t\t\t\tvar addMarker = true;\n\t\t\t\tfetchediPCPPrices.forEach(function(price) {\n\t\t\t\t\tif(price.ipcpid == marker.ipcp_id) {\n\t\t\t\t\t\taddMarker = false;\n\t\t\t\t\t\tmarker.setContent('<div class=\"'+marker.marker_class+'\"><div class=\"marker_content\">' + price.price + '<\/div><\/div>');\n\t\t\t  \t\t\tmarker.marker_text = price.price;\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tif(addMarker) {\n\t\t\t\t\tiPCPMarkers.push(marker);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tvar fetchids = []\n\t\tvar id_count = iPCPMarkers.length;\n\t\tif(id_count <= maxfetch) {\n\t\t\tiPCPMarkers.forEach(function(marker) {\n\t\t\t\tfetchids.push(marker.id);\n\t\t\t});\n\t\t\tfetchPriceCalculation(fetchids,fromDate,toDate);\n\t\t} else {\n\t\t\tvar pages = id_count\/maxfetch;\n\t\t\tvar count = 0;\n\t\t\tvar i=0;\n\t\t\tvar x=0;\n\t\t\tfor(i=0; i<pages;i++) {\n\t\t\t\tfetchids = [];\n\t\t\t\tfor(x=0; x<maxfetch;x++) {\n\t\t\t\t\tif(count < id_count) {\n\t\t\t\t\t\tfetchids.push(iPCPMarkers[count].id);\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfetchPriceCalculation(fetchids,fromDate,toDate);\n\t\t\t}\n\t\t}\n\t}\n\t\n\tfunction fetchPriceCalculation(fetchids,fromDate,toDate) {\n\t\tif (fetchids.length == 0) {\n\t\t\treturn;\n\t\t}\n\t\tconsole.log(\"fetchids \/ \" + fetchids.join(',') + \" - \" + fromDate + \"\/\" + toDate);\n\t\tvar query = \"startdate=\" + fromDate.toLocaleString() + \"&enddate=\" + toDate.toLocaleString() + \"&fetchids=\" + fetchids.join(',');\n\t\tjQuery.ajax({\n            type: \"get\",\n            url: \"https:\/\/showcase.parkinghq.com\/wp-admin\/admin-ajax.php?action=calculateprice\",\n            action: \"calculateprice\",\n\t\t\tdata: query,\n\t\t\tdataType: 'json',\n            success: function(json, status, jqXHR) {\n                jQuery.each(json, function (key, data) {\n\t\t  \t\t\tconsole.log(\"ipcpId = \" + data.ipcpId);\n\t\t  \t\t\tmarkers.forEach(function(marker){\n\t\t  \t\t\t\tif(marker.ipcp_id > 0 && marker.ipcp_id==data.ipcpId) {\n\t\t\t  \t\t\t\tmarker.setContent('<div class=\"'+marker.marker_class+'\"><div class=\"marker_content\">' + data.currency + \" \" + data.price + '<\/div><\/div>');\n\t\t\t  \t\t\t\tmarker.marker_text = data.currency + \" \" + data.price;\n\t\t\t  \t\t\t\tvar price = {\n\t\t\t\t  \t\t\t\t ipcpid:marker.ipcp_id, price:data.currency + \" \" + data.price\n\t\t\t\t  \t\t\t\t};\n\t\t\t  \t\t\t\tfetchediPCPPrices.push(price);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t  \t\t});\n            },\n            error: function (xhr,status,errorThrown) {\n\t            console.log('An error occurred. action=calculateprice');\n\t            console.log('xhr.responseText= ' + xhr.responseText);\n\t            console.log('xhr.status= ' + xhr.status);\n\t            console.log('status= ' + status);\n\t            console.log('errorThrown= ' + errorThrown);\n    \t\t}\n        });\n\t}\n\t\n\tfunction fetchSinglePriceCalculation(fetchid,fromDate,toDate,marker,type) {\n\t\tconsole.log(\"fetchSindlePriceCalculation \/ \" + fetchid+ \" - \" + fromDate + \"\/\" + toDate);\n\t\tvar query = \"type=\" + type + \"&startdate=\" + fromDate.toLocaleString() + \"&enddate=\" + toDate.toLocaleString() + \"&id=\" + fetchid;\n\t\tjQuery.ajax({\n            type: \"get\",\n            url: \"https:\/\/showcase.parkinghq.com\/wp-admin\/admin-ajax.php?action=calculatesingleprice\",\n            action: \"calculatesingleprice\",\n\t\t\tdata: query,\n\t\t\tdataType: 'json',\n            success: function(json, status, jqXHR) {\n\t            var mclass = marker.marker_class;\n\t            if(typeof json.open !== 'undefined') {\n\t\t            if(json.open) {\n\t\t\t            mclass = \"marker_open\";\n\t\t\t            if(json.reservable) {\n\t\t\t\t            mclass = \"marker_reservable\";\n\t\t\t            }\n\t\t            } else {\n\t\t\t            mclass = \"marker_closed\";\n\t\t            }\n\t            } else {\n\t\t            mclass = \"marker_open\";\n\t            }\n\t            if(json.price  !== \"\" ) {\n\t\t            marker.setContent('<div class=\"'+mclass+'\"><div class=\"marker_content\">' + json.price + '<\/div><\/div>');\n\t            } else {\n\t\t            marker.setContent('<div class=\"'+mclass+'\"><div class=\"marker_content\">P<\/div><\/div>');\n\t            }\n                \n            },\n            error: function (data) {\n                console.log('An error occurred.');\n                console.log(data);\n            },\n        });\n\t}\n\t\n\tfunction openDetail(id,name,query) {\n\t\tvar modal = jQuery('div#detailmodal').iziModal({\n\t\t\ttitle: name,\n\t\t\theaderColor: '#de5920',\n\t\t\tcloseOnEscape: true,\n\t\t\tzindex: 40999,\n\t\t\tpadding: 20,\n\t\t\twidth: 750,\n\t\t\tbodyOverflow: true,\n\t\t\tonOpening: function(modal){\n\t\t\t  modal.startLoading();\n\t\t\t  \n\t\t\t  jQuery.get('https:\/\/showcase.parkinghq.com\/wp-admin\/admin-ajax.php?action=facility&id=' + id + query, function(data) {\n\t\t\t    jQuery(\"#detailmodal .iziModal-content\").html(data);\n\t\t\t    modal.stopLoading();\n\t\t\t  }); \n\t\t\t},\n\t\t\tonClosed: function() {\n\t\t\t\tjQuery('#detailmodal input').datetimepicker( \"destroy\" );\n\t\t\t\tjQuery('#detailmodal').iziModal('destroy');\n\t\t\t},\n\t\t});\n\t\tmodal.iziModal('open');\n\t}\n\tfunction initDetailClick() {\n\t\t\n\t\tjQuery('a.detail').on('click', function (event) {\n\t\t\tevent.preventDefault();\n\t\t\t\n\t\t\tvar fromDate = jQuery('#period_from').datepicker( \"getDate\" );\n\t\t\tif(!fromDate) {\n\t\t\t\tsyncCalendar();\n\t\t\t}\n\t\t\t\n\t\t\tvar fromDate = jQuery('#period_from').datepicker( \"getDate\" );\n\t\t\tvar toDate = jQuery('#period_to').datepicker( \"getDate\" );\n\t\t\tquery = \"\";\n\t\t\ttry {\n\t\t\t\tquery = \"&startdate=\" + encodeURIComponent(fromDate.toLocaleString()) + \"&enddate=\" + encodeURIComponent(toDate.toLocaleString())+\"&type=\"+jQuery('input[name=type]').val();\n\t\t\t} catch(err) { }\n\t\t\n\t\t\tvar f_id = jQuery( this ).data( \"id\" );\n\t\t\tvar f_name = jQuery( this ).data( \"facilityname\" );\n\t\t\tvar f_lat = jQuery( this ).data( \"poslat\" );\n\t\t\tvar f_lng = jQuery( this ).data( \"poslng\" );\n\t\t\t\n\t\t\topenDetail(f_id,f_name,query);\n\t\t});\n\t\t\n\t\t\n\t\t\/\/ reserve button \n\t\tjQuery( \"a.reserve\" ).click(function(event) {\n\t\t\tevent.preventDefault();\n\t\t\tvar fromDate = jQuery('#period_from').datepicker( \"getDate\" );\n\t\t\tif(!fromDate) {\n\t\t\t\tsyncCalendar();\n\t\t\t}\n\t\t\tvar link = jQuery(this).attr('href');\n\t\t\tvar fromDate = jQuery('#period_from').datepicker( \"getDate\" );\n\t\t\tvar toDate = jQuery('#period_to').datepicker( \"getDate\" );\n\t\t\tvar query = \"begin_time=\" + addZero(fromDate.getHours()) + \":\" + addZero(fromDate.getMinutes());\n\t\t\tquery = query + \"&begin_date=\" + fromDate.getFullYear() + \"-\" + addZero(fromDate.getMonth()+1) + \"-\" + addZero(fromDate.getDate());\n\t\t\tquery = query + \"&end_time=\" + addZero(toDate.getHours()) + \":\" + addZero(toDate.getMinutes());\n\t\t\tquery = query + \"&end_date=\" + toDate.getFullYear() + \"-\" + addZero(toDate.getMonth()+1) + \"-\" + addZero(toDate.getDate());\n\t\t\t\/\/ write cookie\n\t\t\tdocument.cookie = \"ilogs_parking.datefrom=\"+fromDate.toGMTString()+\"; expires=\"+ new Date(new Date().getTime()+(15*60)*1000).toGMTString()+ \"; path=\/\";\n\t\t\tdocument.cookie = \"ilogs_parking.dateto=\"+toDate.toGMTString()+\"; expires=\"+ new Date(new Date().getTime()+(15*60)*1000).toGMTString()+ \"; path=\/\";\n\t\t\t\n\t\t\tvar sinput = jQuery('#search').val();\n\t\t\tif(jQuery('#mobilesearch').is(':visible')) {\n\t\t\t\tsinput = jQuery('#mobilesearch').val();\n\t\t\t}\n\t\t\t\n\t\t\tif(sinput != \"\") {\n\t\t\t\tdocument.cookie = \"ilogs_parking.locationsearch=\"+sinput+\"; expires=\"+ new Date(new Date().getTime()+(15*60)*1000).toGMTString()+ \"; path=\/\";\n\t\t\t}\n\t\t\t\n\t\t\tif ( link.indexOf(\"?\") > -1 ) {\n\t\t\t    window.open(link + \"&\" + query, '_self');\n\t\t\t} else {\n\t\t\t\twindow.open(link + \"?\" + query, '_self');\n\t\t\t}\n\t\t});\n\t}\n\tfunction initHoverToggle() {\n\t\tvar def_zindex = 500000;\n\t\tjQuery( \"div.facility\" ).hover(\n\t\t\tfunction() {\n\t\t\t\tjQuery(this).addClass( \"hover\" );\n\t\t\t\tvar id = jQuery(this).attr('id').split(\"_\")[1];\n\t\t\t\tmarkers.forEach(function(marker){\n\t\t  \t\t\tif(marker.id==id) {\n\t\t\t  \t\t\tmarker.setContent('<div class=\"'+marker.marker_class+' selected\"><div class=\"marker_content\">' + marker.marker_text + '<\/div><\/div>');\n\t\t\t  \t\t\tmarker.setZIndex(def_zindex++);\n\t\t\t\t\t}\n\t\t\t\t});\n  \t\t\t},\n  \t\t\tfunction() {\n\t  \t\t\tjQuery(this).removeClass( \"hover\" );\n\t  \t\t\tvar id = jQuery(this).attr('id').split(\"_\")[1];\n\t\t\t\tmarkers.forEach(function(marker){\n\t\t  \t\t\tif(marker.id==id) {\n\t\t\t  \t\t\tmarker.setContent('<div class=\"'+marker.marker_class+'\"><div class=\"marker_content\">' + marker.marker_text + '<\/div><\/div>');\n\t\t\t\t\t}\n\t\t\t\t});\n  \t\t\t}\n  \t\t);\n\t}\n\tfunction initListView() {\n\t\tjQuery('img.icon').qtip({\n    \t\tcontent: {\n\t\t\t\tattr: 'alt' \/\/ Tell qTip2 to look inside this attr for its content\n\t\t\t},\n    \t\tstyle: {\n    \t    \ttip: {\n    \t        \tcorner: 'left center'\n    \t    \t}\n    \t\t}\n\t\t});\n\t\t\n\t\tvar map_height = jQuery(\"div#ilogsmap\").css(\"height\");\n\t\tmap_height = map_height.substring(0, map_height.length-2);\n\t\tif(Number(map_height) > Number(container_height)) {\n\t\t\tcontainer_height = map_height;\n\t\t}\n\t\t\/\/ old code jQuery(\"div.listcontainer\").css(\"height\",container_height-jQuery(\"div#ilogs-parking-search-container\").height()-jQuery(\"div.count\").height()-10 + \"px\");\n\t\tvar cposition = jQuery(\"div.listcontainer\").position();\n\t\t\n\t\tjQuery(\"div.listcontainer\").css(\"height\",container_height-cposition.top + \"px\");\n\t\t\n\t\tjQuery('div.facilities_container').jscroll({\n\t\t\tdebug: true,\n\t\t\tloadingHtml: '<i class=\"fa fa-spin fa-spinner\"><\/i> Loading...',\n\t\t\tpadding: 50,\n\t\t\tnextSelector: 'a.load_next:last',\n\t\t\tcontentSelector: 'div.facilities_container > *',\n\t\t\tcallback: function() {\n\t\t\t\tconsole.log('clod');\n\t\t\t\tinitDetailClick();\n\t\t\t\tinitHoverToggle();\n    \t\t}\n\t\t});\n\t\t\n\t\tinitDetailClick();\n\t\t\n\t\tinitHoverToggle();\n\t\t\n\t}\n\t\n\tvar last_zoom = 0;\n\tfunction setMapOnAll(map) {\n        for (var i = 0; i < markers.length; i++) {\n\t        if(infoMarker !== null && typeof infoMarker !== 'undefined') {\n\t\t        if(infoMarker.id != markers[i].id) {\n\t\t\t        markers[i].setMap(map);\n\t\t        }\n\t        } else {\n\t\t        markers[i].setMap(map);\n\t        }\n        }\n    }\n\n    function clearMarkers() {\n        setMapOnAll(null);\n    }\n\n    function deleteMarkers() {\n      \tclearMarkers();\n      \tmarkers = [];\n      \tmarker_ids = [];\n      \tif(infoMarker !== null && typeof infoMarker !== 'undefined') {\n\t      \tmarkers.push(infoMarker);\n\t\t\tmarker_ids.push(infoMarker.id);\n\t    }\n    }\n\t\n\tvar isSearchRun = false;\n\tfunction searchByMapBound() {\n\t\tif(isSearchRun) {\n\t\t\treturn;\n\t\t}\n\t\tisSearchRun = true;\n\t\tvar bounds = map.getBounds();\n\t\tvar zoom = map.getZoom();\n\t\tvar query = \"ne_lat=\"+bounds.getNorthEast().lat()+\"&ne_lng=\"+bounds.getNorthEast().lng() + \"&sw_lat=\" + bounds.getSouthWest().lat() + \"&sw_lng=\" + bounds.getSouthWest().lng() + \"&zoom=\" + zoom + \"&\" + jQuery(\"form#ilogs-parking-searchform\").serialize() + \"&\" +  jQuery(\"input.filter[type='checkbox']:checked\").serialize();\n\t\tquery = query.replace(\"action\",\"formaction\");\n\t\tvar mobile = jQuery(\"form#ilogs-parking-mobile-searchform\").serialize();\n\t\tmobile = mobile.replace(\"action\",\"formaction\");\n\t\tquery = query + \"&\" + mobile;\n\t\tvar type = jQuery('input[name=type]').val();\n\t  jQuery.ajax({\n\t      url: 'https:\/\/showcase.parkinghq.com\/wp-admin\/admin-ajax.php?action=mapmarkers',\n\t      action: \"mapmarkers\",\n\t      data: query,\n\t      dataType: 'json',\n\t      success: function(json, status, jqXHR) {\n\t\t      markerCluster.removeMarkers(markers,false);\n\t\t      deleteMarkers();\n\t\t  \t\n\t\t  \tjQuery.each(json, function (key, data) {\n\t\t  \t\t\/*console.log(\"name = \" + data.name);\n\t\t  \t\tconsole.log(\"lat = \" + data.latitude);\n\t\t  \t\tconsole.log(\"lng = \" + data.longitude);*\/\n\t\t  \t\t\n    \t\t\tif(jQuery.inArray(data.id,marker_ids) == -1 && data.id != detail_marker_id) {\n\t\t\t\t\tvar icon = { url: data.pin, scaledSize: new google.maps.Size(35, 45) };\n\t\t\t\t\t\/*var marker = new google.maps.Marker({\n\t\t\t\t\t\tposition: new google.maps.LatLng(data.latitude, data.longitude),\n\t\t\t\t\t\tmap: map,\n\t\t\t\t\t\ticon:icon,\n\t\t\t\t\t\ttitle: data.name\n\t\t\t\t\t});*\/\n\t\t\t\t\tvar content = \"P\";\n\t\t\t\t\tvar content_class = \"marker_open\";\n\t\t\t\t\tif (data.reservable) {\n\t\t\t\t\t\tcontent_class = \"marker_reservable\";\n\t\t\t\t\t}\n\t\t\t\t\tif (!data.open) {\n\t\t\t\t\t\tcontent_class = \"marker_closed\";\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (data.contractprice !== \"\" && type == \"monthly\") {\n\t\t\t\t\t\tcontent = data.contractprice;\n\t\t\t\t\t\t\/\/content_class = \"marker_monthly_full\";\n\t\t\t\t\t}\n\t\t\t\t\t\/*var markerdddd = new MarkerWithLabel({\n\t\t\t\t\t\tposition: new google.maps.LatLng(data.latitude, data.longitude),\n\t\t\t\t\t\tmap: map,\n\t\t\t\t\t\ticon:icon,\n\t\t\t\t\t\ttitle: data.name,\n\t\t\t\t\t\tlabelContent: content,\n\t\t\t\t\t\tlabelAnchor: new google.maps.Point(16, 43),\n\t\t\t\t\t\tlabelClass: content_class, \/\/ the CSS class for the label\n\t\t\t\t\t\tlabelInBackground: true,\n\t\t\t\t\t\tipcp_id: data.ipcp_area_id,\n\t\t\t\t\t\tid: data.id,\n\t\t\t\t\t});*\/\n\t\t\t\t\tvar marker = new RichMarker({\n\t\t\t\t\t\tmap: map,\n\t\t\t\t\t\tshadow: '2px 2px 10px rgba(88,88,88,0.7)',\n\t\t\t\t\t\tanchor: RichMarkerPosition.MIDDLE,\n\t\t\t\t\t\tposition: new google.maps.LatLng(data.latitude, data.longitude),\n\t\t\t\t\t\tcontent: '<div class=\"'+content_class+'\"><div class=\"marker_content\">' + content + '<\/div><\/div>' ,\n\t\t\t\t\t\tmarker_class:content_class,\n\t\t\t\t\t\tmarker_text:content,\n\t\t\t\t\t\tipcp_id: data.ipcp_area_id,\n\t\t\t\t\t\tid: data.id,\n\t\t\t\t\t});\n\t\t\t\t\tif(infoMarker !== null && typeof infoMarker !== 'undefined') {\n\t\t\t\t\t\tconsole.log('An error occurred.' + infoMarker);\n\t\t\t\t\t\tif(infoMarker.id != data.id) {\n\t\t\t\t\t\t\tmarkers.push(marker);\n\t\t\t\t\t\t\tmarker_ids.push(data.id);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tmarkerCluster.addMarker(marker);\n\t\t\t\t\t\t\t\n\t\t        \t\t}\n\t        \t\t} else {\n\t\t        \t\tmarkers.push(marker);\n\t\t        \t\tmarker_ids.push(data.id);\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tmarkerCluster.addMarker(marker);\n\t\t\t\t\t\t\n\t        \t\t}\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t    \t\t\t\n\t\t\t\t\t\n\t\t\t\t\tmarker.addListener('click', function() {\n\t\t\t\t\t\tif (infowindow) { infowindow.close(); infoMarker = null; infoMarkerContent=null; }\n\t\t\t\t\t\tvar position = \"\";\n\t\t\t\t\t\tvar gpos;\n\t\t\t\t\t\tif (typeof places !== 'undefined' && places.length > 0) {\n\t\t\t\t\t\t\tvar place = places[0];\n\t\t\t\t\t\t\tposition = \"&plat=\"+place.geometry.location.lat() + \"&plng=\"+place.geometry.location.lng();\n\t\t\t\t\t\t\tgpos = new google.maps.LatLng(place.geometry.location.lat(), place.geometry.location.lng());\n\t\t\t\t\t\t\tvar distance = google.maps.geometry.spherical.computeDistanceBetween(new google.maps.LatLng(data.latitude, data.longitude), gpos);\n\t\t\t\t\t\t\tvar distance = distance * 0.00062137; \/\/ in miles\n\t\t\t\t\t\t\tposition += \"&distance=\" + distance.toFixed(2);\n          \t\t\t\t} else {\n\t          \t\t\t\t\n\t\t  \t\t\t\t\tif (navigator.geolocation) {\n\t\t  \t\t\t\t\t    navigator.geolocation.getCurrentPosition(function(upos) {\n\t\t  \t\t\t\t\t        position = \"&plat=\"+upos.coords.latitude + \"&plng=\"+upos.coords.longitude;\n\t\t  \t\t\t\t\t        gpos = new google.maps.LatLng(upos.coords.latitude, upos.coords.longitude);\n\t\t  \t\t\t\t\t        var distance = google.maps.geometry.spherical.computeDistanceBetween(new google.maps.LatLng(data.latitude, data.longitude), gpos);\n\t\t  \t\t\t\t\t\t\tvar distance = distance * 0.00062137; \/\/ in miles\n\t\t  \t\t\t\t\t\t\tposition += \"&distance=\" + distance.toFixed(2);\n\t\t  \t\t\t\t\t    });\n\t\t  \t\t\t\t\t}\n          \t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tjQuery( \"div.facility\" ).each(function() {\n\t\t\t\t\t\t\tjQuery( this ).removeClass( \"selected_facility\" );\n\t\t\t\t\t\t});\n\t\t\t\t\t\tjQuery.ajax({\n\t\t\t\t\t\t\turl: 'https:\/\/showcase.parkinghq.com\/wp-admin\/admin-ajax.php?action=mapinfo&type=',\n\t\t\t\t\t\t\taction: \"mapinfo\",\n\t\t\t\t\t\t\tdata: \"id=\"+data.id + \"&type=\"+jQuery('input[name=type]').val()+position,\n\t\t\t\t\t\t\tsuccess: function (infodata) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif (jQuery( \"#facility_\"+data.id ).length) {\n\t\t\t\t\t\t\t\t\tjQuery( \"#facility_\"+data.id ).addClass( \"selected_facility\" );\n\t\t\t\t\t\t\t\t\tjQuery('.listcontainer').scrollTo(\"#facility_\"+data.id);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tinfoMarker = marker;\n\t\t\t\t\t\t\t\tinfoMarkerContent = infodata;\n\t\t\t\t\t\t\t\tvar w = jQuery(window).width();\n\t\t\t\t\t\t\t\tif(w<=576) {\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tvar modal = jQuery('div#mapinfomodal').iziModal({\n\t\t\t\t\t\t\t\t\t\ttitle: data.name,\n\t\t\t\t\t\t\t\t\t\theaderColor: '#de5920',\n\t\t\t\t\t\t\t\t\t\tcloseOnEscape: true,\n\t\t\t\t\t\t\t\t\t\tzindex: 40999,\n\t\t\t\t\t\t\t\t\t\tpadding: 20,\n\t\t\t\t\t\t\t\t\t\twidth: 750,\n\t\t\t\t\t\t\t\t\t\tbottom: 10,\n\t\t\t\t\t\t\t\t\t\tonOpening: function(modal){\n\t\t\t\t\t\t\t\t\t\t  jQuery(\"#mapinfomodal .iziModal-content\").html(infodata);\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\tonClosed: function() {\n\t\t\t\t\t\t\t\t\t\t\tjQuery('#mapinfomodal input').datetimepicker( \"destroy\" );\n\t\t\t\t\t\t\t\t\t\t\tjQuery('#mapinfomodal').iziModal('destroy');\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\tmodal.iziModal('open');\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tinfowindow.setContent(infodata);\n\t\t\t\t\t\t\t\t\tinfowindow.open(map, marker);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tinitDetailClick();\n\t\t\t\t\t\t\t\t\n\t      \t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t\t\n\t\t\t\t\t});\n    \t\t\t}\n    \t\t\t\n\t\t\t});\n\t\t\tmarkerCluster.redraw();\n\t\t\tdoPriceCalculate();\n    \t  },\n    \t  complete: function() {\n\t    \t  isSearchRun = false;\n\t \t  } \n\t\t});\n\t\tquery = \"ne_lat=\"+bounds.getNorthEast().lat()+\"&ne_lng=\"+bounds.getNorthEast().lng() + \"&sw_lat=\" + bounds.getSouthWest().lat() + \"&sw_lng=\" + bounds.getSouthWest().lng() + \"&zoom=\" + zoom + \"&\" + jQuery(\"form#ilogs-parking-searchform\").serialize()+ \"&\" +  jQuery(\"input.filter[type='checkbox']:checked\").serialize();\n\t\tquery = query.replace(\"action\",\"formaction\");\n\t\tvar mobile = jQuery(\"form#ilogs-parking-mobile-searchform\").serialize();\n\t\tmobile = mobile.replace(\"action\",\"formaction\");\n\t\tquery = query + \"&\" + mobile;\n\t\t\n\t\tif (typeof places !== 'undefined' && places.length > 0) {\n\t\t\tvar place = places[0];\n\t\t\tquery = query + \"&plat=\"+place.geometry.location.lat() + \"&plng=\"+place.geometry.location.lng();\n        }\n\t\t\n\t\tjQuery.ajax({\n            type: \"get\",\n            url: \"https:\/\/showcase.parkinghq.com\/wp-admin\/admin-ajax.php?action=facilitylist\",\n            data: query,\n            success: function (data) {\n                jQuery( \"#ajax_list_container\" ).html( data );\n                initListView();\n            },\n            error: function (data) {\n                console.log('An error occurred.');\n                console.log(data);\n            },\n        });\n\t}\n\t\n\tfunction nearestMarker( lat1, lon1 ) {    \n\t    var pi = Math.PI;\n\t    var R = 6371; \/\/equatorial radius\n\t    var distances = [];\n\t    var closest = -1;\n\t\n\t    for( i=0;i<markers.length; i++ ) {  \n\t        var lat2 = markers[i].position.lat();\n\t        var lon2 = markers[i].position.lng();\n\t\n\t        var chLat = lat2-lat1;\n\t        var chLon = lon2-lon1;\n\t\n\t        var dLat = chLat*(pi\/180);\n\t        var dLon = chLon*(pi\/180);\n\t\n\t        var rLat1 = lat1*(pi\/180);\n\t        var rLat2 = lat2*(pi\/180);\n\t\n\t        var a = Math.sin(dLat\/2) * Math.sin(dLat\/2) + \n\t                    Math.sin(dLon\/2) * Math.sin(dLon\/2) * Math.cos(rLat1) * Math.cos(rLat2); \n\t        var c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1-a)); \n\t        var d = R * c;\n\t\n\t        distances[i] = d;\n\t        if ( closest == -1 || d < distances[closest] ) {\n\t            closest = i;\n\t        }\n\t    }\n\t\n\t    return markers[closest];\n\t}\n\t\n\tvar marker;\n\tvar infoMarker;\n\tvar infoMarkerContent;\n\tvar markers = [];\n\tvar detail_marker_id;\n\tvar marker_ids = [];\n\tvar places;\n\tvar detail_locale_string = \"Details\";\n\tvar reserv_locale_string = \"Reserve\";\n\t\n\tvar map;\n\tvar markerCluster;\n\t\n\tfunction readCookie(name) {\n    \tvar nameEQ = name + \"=\";\n    \tconsole.log(document.cookie);\n    \tvar ca = document.cookie.split(';');\n    \tfor(var i=0;i < ca.length;i++) {\n    \t    var c = ca[i];\n    \t    while (c.charAt(0)==' ') c = c.substring(1,c.length);\n    \t    if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);\n    \t}\n    \treturn null;\n\t}\n\tfunction isNumeric(n) {\n\t\treturn !isNaN(parseFloat(n)) && isFinite(n);\n\t}\n\n\tfunction initMap() {\n\t\tconsole.log('Google Maps API version: ' + google.maps.version);\n\t\tvar initlat = 46.623979;\n\t\tvar initlng = 14.307697;\n\t\tvar initzoom = 10;\n\t\t\n\t\tif(Cookies.get('ilogs_parking.mapzoom') !== undefined && isNumeric(Cookies.get('ilogs_parking.mapzoom')) ) {\n\t\t\tinitzoom = Number(Cookies.get('ilogs_parking.mapzoom'));\n\t\t}\n\t\tif(Cookies.get('ilogs_parking.mapcenterlat') !== undefined && isNumeric(Cookies.get('ilogs_parking.mapcenterlat'))) {\n\t\t\tinitlat = Number(Cookies.get('ilogs_parking.mapcenterlat'));\n\t\t}\n\t\tif(Cookies.get('ilogs_parking.mapcenterlng') !== undefined && isNumeric(Cookies.get('ilogs_parking.mapcenterlng'))) {\n\t\t\tinitlng = Number(Cookies.get('ilogs_parking.mapcenterlng'));\n\t\t}\t\n\t\t\n\t\t\n\t\tinfowindow = new google.maps.InfoWindow({\n\t\t\tcontent: \"Content...\",\n\t\t\tmaxWidth: 350\n\t\t});\n\t\t\n\t\t\n\t\tmap = new google.maps.Map(document.getElementById('ilogsmap'), {\n          center: {lat: initlat, lng: initlng},\n          mapTypeId: 'roadmap',\n          scrollwheel: true,\n          fullscreenControl: false,\n          zoom: initzoom\n        });\n        var opt = { minZoom: 4, maxZoom: 19, clickableIcons: false };\n\t\tmap.setOptions(opt);\n\t\tmarkerCluster = new MarkerClusterer(map, markers, {imagePath: pluginurl + '\/assets\/images\/map_cluster\/m'});\n\t\t\n\t\t\n\t\t\n\t\tvar input = document.getElementById('search');\n\t\tif(jQuery('#mobilesearch').is(':visible')) {\n\t\t\tvar input = document.getElementById('mobilesearch');\n\t\t}\n\t\tvar defaultBounds = new google.maps.LatLngBounds(new google.maps.LatLng(38.780651, -77.220844), new google.maps.LatLng(39.024318, -76.803546));\n\t\tvar options = {\n\t\t\tbounds: defaultBounds,\n\t\t\t\/\/componentRestrictions: {\n\t\t\t\/\/\tcountry: 'us'\n\t\t\t\/\/},\n\t\t\t\/\/types: ['address','geocode'],\n\t\t};\n\n\t\t\n\t\tvar autocomplete = new google.maps.places.Autocomplete(input,options);\n\t\tvar pmarkers = [];\n\t\tautocomplete.addListener('place_changed', function() {\n\t\t\tvar place = autocomplete.getPlace();\n\t\t\tif (!place.geometry) {\n            \treturn;\n          \t}\n          \t\n          \tinfowindow.close();\n          \t\n\t        if (place.geometry.viewport) {\n\t            map.fitBounds(place.geometry.viewport);\n\t        } else {\n\t            map.setCenter(place.geometry.location);\n\t            map.setZoom(17);\n\t        }\n\t        \n\t        var marker = new google.maps.Marker({\n\t\t   \t    map: map,\n\t\t   \t    \/\/icon: icon,\n\t\t   \t    title: place.name,\n\t\t   \t    position: place.geometry.location\n\t\t   \t});\n\t\t   \t\n\t\t   \t\n\t\t   \tmarker.addListener('click', function() {\n\t\t\t\tif (infowindow) { infowindow.close();}\n\t\t\t\t\t\n\t\t  \t\tvar infoContent = '<div id=\"place-infowindow-content\"><img loading=\"lazy\" decoding=\"async\" src=\"'+place.icon+'\" width=\"20\" height=\"20\" id=\"place-icon\" align=\"middle\"><span id=\"place-name\" class=\"title\">'+place.name+'<\/span><br> <span id=\"place-address\">'+place.formatted_address+'<\/span><\/div>';\n\t\t  \t\t\t\n\t\t  \t\tinfowindow.setContent(infoContent);\n\t\t  \t\tinfowindow.open(map, marker);\n\t\t\t});\n\t\t\t\n\t\t\tvar bounds = new google.maps.LatLngBounds();\n\t\t\tif (place.geometry.viewport) {\n              \tbounds.union(place.geometry.viewport);\n            } else {\n              \tbounds.extend(place.geometry.location);\n            }\n\t\t\tquery = \"lat=\"+bounds.getCenter().lat()+\"&lng=\"+bounds.getCenter().lng() + \"&\" + jQuery(\"form#ilogs-parking-searchform\").serialize()+ \"&\" +  jQuery(\"input.filter[type='checkbox']:checked\").serialize();\n\t\t\tquery = query.replace(\"action\",\"formaction\");\n\t\t\tvar mobile = jQuery(\"form#ilogs-parking-mobile-searchform\").serialize();\n\t\t\tmobile = mobile.replace(\"action\",\"formaction\");\n\t\t\tquery = query + \"&\" + mobile;\n\t\t\tjQuery.ajax({\n\t\t      \ttype: \"get\",\n\t\t\t  \turl: \"https:\/\/showcase.parkinghq.com\/wp-admin\/admin-ajax.php?action=nearestfacility\",\n\t\t\t  \taction: \"nearestfacility\",\n\t\t\t  \tdata: query,\n\t\t\t  \tdataType: 'json',\n\t\t\t  \tsuccess: function (data) {\n\t\t          \tbounds.extend(new google.maps.LatLng(data.latitude, data.longitude));\n\t\t\t\t  \tmap.fitBounds(bounds);\n\t\t\t\t  \tsetTimeout(function(){ searchByMapBound(); }, 2000);\n\t\t      \t},\n\t\t\t  \terror: function (data) {\n\t\t          \tmap.fitBounds(bounds);\n\t\t\t\t  \tsetTimeout(function(){ searchByMapBound(); }, 2000);\n\t\t      \t},\n\t\t\t  \tcomplete: function() {\n\t\t   \t\t  \tgoogle.maps.event.trigger(marker, 'click');\n\t \t  \t  \t}\n\t\t  \t});\n\t\t\t\n\t\t\t\n\t\t});\n\t\t\n        \/*var searchBox = new google.maps.places.SearchBox(input,options);\n\t\t\n\t\tmap.addListener('bounds_changed', function() {\n          searchBox.setBounds(map.getBounds());\n        });\n        *\/\n         \/*      \n        var pmarkers = [];\n        searchBox.addListener('places_changed', function() {\n          places = searchBox.getPlaces();\n\t\t  console.log(\"places_changed:\" + places.length);\n          if (places.length == 0) {\n            return;\n          }\n          infowindow.close();\n          pmarkers.forEach(function(marker) {\n            marker.setMap(null);\n          });\n          pmarkers = [];\n          \/\/ For each place, get the icon, name and location.\n          var bounds = new google.maps.LatLngBounds();\n          places.forEach(function(place) {\n            if (!place.geometry) {\n              console.log(\"Returned place contains no geometry\");\n              return;\n            }\n            var icon = {\n              url: place.icon,\n              size: new google.maps.Size(71, 71),\n              origin: new google.maps.Point(0, 0),\n              anchor: new google.maps.Point(17, 34),\n              scaledSize: new google.maps.Size(25, 25)\n            };\n\n            \n             var marker = new google.maps.Marker({\n\t\t   \t    map: map,\n\t\t   \t    \/\/icon: icon,\n\t\t   \t    title: place.name,\n\t\t   \t    position: place.geometry.location\n\t\t   \t  });\n\t\t   \t  \n\t\t   \t  marker.addListener('click', function() {\n\t\t\t\t\tif (infowindow) { infowindow.close();}\n\t\t\t\t\t\n\t\t  \t\t\tvar infoContent = '<div id=\"place-infowindow-content\"><img loading=\"lazy\" decoding=\"async\" src=\"'+place.icon+'\" width=\"20\" height=\"20\" id=\"place-icon\" align=\"middle\"><span id=\"place-name\" class=\"title\">'+place.name+'<\/span><br> <span id=\"place-address\">'+place.formatted_address+'<\/span><\/div>';\n\t\t  \t\t\t\n\t\t  \t\t\tinfowindow.setContent(infoContent);\n\t\t  \t\t\tinfowindow.open(map, marker);\n\t\t\t  });\n\t\t   \t  \n\t\t   \t  \n\t\t   \t  pmarkers.push(marker);\n            \n            \n            \n\n            if (place.geometry.viewport) {\n              \/\/ Only geocodes have viewport.\n              bounds.union(place.geometry.viewport);\n            } else {\n              bounds.extend(place.geometry.location);\n            }\n          });\n          \n          \/\/ add on marker at minimum to bounds (closest)\n          \n          \/*var tmp = nearestMarker( bounds.getCenter().lat(), bounds.getCenter().lng() );\n          bounds.extend(tmp.position);\n          map.fitBounds(bounds);\n         \n          \n          query = \"lat=\"+bounds.getCenter().lat()+\"&lng=\"+bounds.getCenter().lng() + \"&\" + jQuery(\"form#ilogs-parking-searchform\").serialize()+ \"&\" +  jQuery(\"input.filter[type='checkbox']:checked\").serialize();\n\t\t  query = query.replace(\"action\",\"formaction\");\n\t\t  var mobile = jQuery(\"form#ilogs-parking-mobile-searchform\").serialize();\n\t\t  mobile = mobile.replace(\"action\",\"formaction\");\n\t\t  query = query + \"&\" + mobile;\n\t\t  jQuery.ajax({\n\t\t      type: \"get\",\n\t\t      url: \"https:\/\/showcase.parkinghq.com\/wp-admin\/admin-ajax.php?action=nearestfacility\",\n\t\t      action: \"nearestfacility\",\n\t\t  \tdata: query,\n\t\t  \tdataType: 'json',\n\t\t      success: function (data) {\n\t\t          bounds.extend(new google.maps.LatLng(data.latitude, data.longitude));\n\t\t          map.fitBounds(bounds);\n\t\t          setTimeout(function(){ searchByMapBound(); }, 2000);\n\t\t      },\n\t\t      error: function (data) {\n\t\t          map.fitBounds(bounds);\n\t\t          setTimeout(function(){ searchByMapBound(); }, 2000);\n\t\t      },\n\t\t      complete: function() {\n\t\t   \t\t  if (places.length == 1) {\n\t\t\t   \t  \tgoogle.maps.event.trigger(pmarkers[0], 'click');\n\t\t\t   \t  }\n\t \t  \t  }\n\t\t  });\n\t\t  \n        });*\/\n        \n        google.maps.event.addListener(infowindow,'closeclick',function() {\n\t\t\tinfowindow.close(); infoMarker=null; infoMarkerContent=null;\n\t\t\tconsole.log(\"infoWindow close\");\n\t\t});\n\t\tgoogle.maps.event.addListener(map, 'idle', function() {\n\t\t\tconsole.log(\"Map idle\");\n\t    \tif (!infowindow.getMap()) {\n\t\t    \tcount = 0;\n\t\t    \twhile(!domready) {\n\t\t\t    \tconsole.log(\"wait\");\n\t\t\t    \tif(count > 1500) {\n\t\t\t\t    \tbreak;\n\t\t\t    \t}\n\t\t\t    \tcount++;\n\t\t    \t}\n\t\t    } \n\t\t    \tvar c = map.getCenter();\n\t\t    \tdocument.cookie = \"ilogs_parking.mapzoom=\"+map.getZoom()+\"; expires=\"+ new Date(new Date().getTime()+(15*60)*1000).toGMTString()+ \"; path=\/\";\n\t\t    \tdocument.cookie = \"ilogs_parking.mapcenterlat=\"+c.lat()+\"; expires=\"+ new Date(new Date().getTime()+(15*60)*1000).toGMTString()+ \"; path=\/\";\n\t\t    \tdocument.cookie = \"ilogs_parking.mapcenterlng=\"+c.lng()+\"; expires=\"+ new Date(new Date().getTime()+(15*60)*1000).toGMTString()+ \"; path=\/\";\n\t\t    \tsetTimeout(function(){ syncCalendar(); searchByMapBound(); }, 700);\n\t    \t\/\/}\n    \t});\n    \t\n    \t\n    \tif(Cookies.get('ilogs_parking.locationsearch') !== undefined && Cookies.get('ilogs_parking.locationsearch') != \"\") {\n\t    \tvar request = {\n\t\t\t\tquery: Cookies.get('ilogs_parking.locationsearch'),\n\t\t\t\ttypes: ['address']\n  \t\t\t};\n  \t\t\tsetTimeout( function() { \n\t  \t\t\tservice = new google.maps.places.PlacesService(map);\n\t  \t\t\tservice.textSearch(request, callbackPlaces);\n  \t\t\t}, 1500);\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t}\n\tfunction callbackPlaces(results, status) {\n\t\tisSearchRun = true;\n\t\tsyncCalendar();\n\t\tvar pmarkers = [];\n\t\tif (status == google.maps.places.PlacesServiceStatus.OK) {\n\t\t\tplaces = new Array();\n\t\t\tfor (var i = 0; i < results.length; i++) {\n\t\t\t\tplaces.push(results[i]);\n\t    \t}\n\t\t\tif (places.length == 0) {\n           \t\treturn;\n\t\t   \t}\n\t\t   \tinfowindow.close();\n\t\t   \tpmarkers.forEach(function(marker) {\n            \tmarker.setMap(null);\n          \t});\n\t\t  \tpmarkers = [];\n\t\t   \tvar bounds = new google.maps.LatLngBounds();\n\t\t   \tplaces.forEach(function(place) {\n\t\t   \t  if (!place.geometry) {\n\t\t   \t    console.log(\"Returned place contains no geometry\");\n\t\t   \t    return;\n\t\t   \t  }\n\t\t   \t  var icon = {\n\t\t   \t    url: place.icon,\n\t\t   \t    size: new google.maps.Size(71, 71),\n\t\t   \t    origin: new google.maps.Point(0, 0),\n\t\t   \t    anchor: new google.maps.Point(17, 34),\n\t\t   \t    scaledSize: new google.maps.Size(25, 25)\n\t\t   \t  };\n\t\t   \t\n\t\t   \t  \/\/ Create a marker for each place.\n\t\t   \t  \n\t\t   \t  \n\t\t   \t  var marker = new google.maps.Marker({\n\t\t   \t    map: map,\n\t\t   \t    \/\/icon: icon,\n\t\t   \t    title: place.name,\n\t\t   \t    position: place.geometry.location\n\t\t   \t  });\n\t\t   \t  \n\t\t   \t  marker.addListener('click', function() {\n\t\t\t\t\tif (infowindow) { infowindow.close();}\n\t\t\t\t\t\n\t\t  \t\t\tvar infoContent = '<div id=\"place-infowindow-content\"><img loading=\"lazy\" decoding=\"async\" src=\"'+place.icon+'\" width=\"20\" height=\"20\" id=\"place-icon\" align=\"middle\"><span id=\"place-name\" class=\"title\">'+place.name+'<\/span><br> <span id=\"place-address\">'+place.formatted_address+'<\/span><\/div>';\n\t\t  \t\t\t\n\t\t  \t\t\tinfowindow.setContent(infoContent);\n\t\t  \t\t\tinfowindow.open(map, marker);\n\t\t\t  });\n\t\t   \t  \n\t\t   \t  \n\t\t   \t  pmarkers.push(marker);\n\t\t   \t  \n\t\t   \t  \t\t   \t\n\t\t   \t  if (place.geometry.viewport) {\n\t\t   \t    \/\/ Only geocodes have viewport.\n\t\t   \t    bounds.union(place.geometry.viewport);\n\t\t   \t  } else {\n\t\t   \t    bounds.extend(place.geometry.location);\n\t\t   \t  }\n\t\t   \t});\n\t\t   \t\n\t\t   \tquery = \"lat=\"+bounds.getCenter().lat()+\"&lng=\"+bounds.getCenter().lng() + \"&\" + jQuery(\"form#ilogs-parking-searchform\").serialize()+ \"&\" +  jQuery(\"input.filter[type='checkbox']:checked\").serialize();\n\t\t   \tquery = query.replace(\"action\",\"formaction\");\n\t\t   \tvar mobile = jQuery(\"form#ilogs-parking-mobile-searchform\").serialize();\n\t\t   \tmobile = mobile.replace(\"action\",\"formaction\");\n\t\t   \tquery = query + \"&\" + mobile;\n\t\t   \tjQuery.ajax({\n\t\t   \t    type: \"get\",\n\t\t   \t    url: \"https:\/\/showcase.parkinghq.com\/wp-admin\/admin-ajax.php?action=nearestfacility\",\n\t\t   \t    action: \"nearestfacility\",\n\t\t   \t\tdata: query,\n\t\t   \t\tdataType: 'json',\n\t\t   \t    success: function (data) {\n\t\t   \t        bounds.extend(new google.maps.LatLng(data.latitude, data.longitude));\n\t\t   \t        map.fitBounds(bounds);\n\t\t   \t        isSearchRun = false;\n\t\t   \t        setTimeout(function(){ searchByMapBound(); }, 2000);\n\t\t   \t    },\n\t\t   \t    error: function (data) {\n\t\t   \t        map.fitBounds(bounds);\n\t\t   \t        isSearchRun = false;\n\t\t   \t        setTimeout(function(){ searchByMapBound(); }, 2000);\n\t\t   \t    },\n\t\t   \t    complete: function() {\n\t\t   \t\t\tisSearchRun = false;\n\t\t   \t\t\tif (places.length == 1) {\n\t\t\t   \t\t\tgoogle.maps.event.trigger(pmarkers[0], 'click');\n\t\t\t   \t\t}\n\t \t  \t\t}\n\t\t   \t});\n\t\t   \t\n\t  }\n\t}\n\t\/\/]]>\n<\/script>\n<script src=\"https:\/\/showcase.parkinghq.com\/wp-content\/plugins\/ilogs-parking\/assets\/js\/markerclusterer.js\"><\/script>\n<script src=\"https:\/\/maps.googleapis.com\/maps\/api\/js?v=3.34&key=AIzaSyCUuQillDbCA3d1rB5O7PgebsZGajFlZRo&language=en&callback=initMap&libraries=places,geometry&components=country:us\"><\/script>\n<script src=\"https:\/\/showcase.parkinghq.com\/wp-content\/plugins\/ilogs-parking\/assets\/js\/gmaps-markerwithlabel-1.9.1.min.js\"><\/script>\n<script src=\"https:\/\/showcase.parkinghq.com\/wp-content\/plugins\/ilogs-parking\/assets\/js\/richmarker.js\"><\/script>\n\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-12","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/showcase.parkinghq.com\/index.php?rest_route=\/wp\/v2\/pages\/12","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/showcase.parkinghq.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/showcase.parkinghq.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/showcase.parkinghq.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/showcase.parkinghq.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=12"}],"version-history":[{"count":3,"href":"https:\/\/showcase.parkinghq.com\/index.php?rest_route=\/wp\/v2\/pages\/12\/revisions"}],"predecessor-version":[{"id":30,"href":"https:\/\/showcase.parkinghq.com\/index.php?rest_route=\/wp\/v2\/pages\/12\/revisions\/30"}],"wp:attachment":[{"href":"https:\/\/showcase.parkinghq.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=12"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}