{"id":573,"date":"2024-05-19T19:07:35","date_gmt":"2024-05-19T15:07:35","guid":{"rendered":"https:\/\/www.rcm.gov.om\/?page_id=573"},"modified":"2024-05-19T19:07:35","modified_gmt":"2024-05-19T15:07:35","slug":"%d8%a7%d9%84%d8%ad%d8%ac%d9%88%d8%b2%d8%a7%d8%aa-2","status":"publish","type":"page","link":"https:\/\/www.rcm.gov.om\/ar\/%d8%a7%d9%84%d8%ad%d8%ac%d9%88%d8%b2%d8%a7%d8%aa-2\/","title":{"rendered":"\u0627\u0644\u062d\u062c\u0648\u0632\u0627\u062a"},"content":{"rendered":"        <div class='list_with_filter_section mep_event_list'>\n\t\t\t            <div class=\"all_filter_item mep_event_list_sec\" id='mep_event_list_abr69e889b507a79'>\n\t\t\t\t<div class=\"mage_grid_box\">            <\/div>\n        <\/div>\n\t\t            <input type=\"hidden\" name=\"pagination_per_page\" value=\"10\"\/>\r\n            <input type=\"hidden\" name=\"pagination_style\" value=\"load_more\"\/>\r\n                    <\/div>\n        <script>\n            jQuery(document).ready(function () {\n                var containerEl = document.querySelector('#mep_event_list_abr69e889b507a79');\n                var mixer = mixitup(containerEl, {\n                    selectors: {\n                        target: '.mep-event-list-loop',\n                        control: '[data-mixitup-control]'\n                    }\n                });\n                \/\/ Handle title filter input\n                jQuery('input[name=\"filter_with_title\"]').on('keyup', function () {\n                    var searchText = jQuery(this).val().toLowerCase();\n                    var items = jQuery('.mep-event-list-loop');\n                    items.each(function () {\n                        var itemTitle = jQuery(this).data('title').toLowerCase();\n                        if (itemTitle.indexOf(searchText) > -1) {\n                            jQuery(this).show();\n                        } else {\n                            jQuery(this).hide();\n                        }\n                    });\n                });\n                \/\/ Handle date filter change\n                jQuery('input[name=\"filter_with_date\"]').on('change', function () {\n                    var selectedDate = jQuery(this).val();\n                    var items = jQuery('.mep-event-list-loop');\n                    if (!selectedDate) {\n                        items.show();\n                    } else {\n                        var filterDate = new Date(selectedDate);\n                        filterDate.setHours(0, 0, 0, 0); \/\/ Reset time part for date comparison\n                        items.each(function () {\n                            var itemDate = new Date(jQuery(this).data('date'));\n                            itemDate.setHours(0, 0, 0, 0); \/\/ Reset time part for date comparison\n                            if (itemDate.getTime() === filterDate.getTime()) {\n                                jQuery(this).show();\n                            } else {\n                                jQuery(this).hide();\n                            }\n                        });\n                    }\n                });\n                \/\/ Handle state filter change\n                jQuery('select[name=\"filter_with_state\"]').on('change', function () {\n                    var state = jQuery(this).val();\n                    var items = jQuery('.mep-event-list-loop');\n                    if (state === '') {\n                        items.show();\n                    } else {\n                        items.each(function () {\n                            var itemState = jQuery(this).data('state');\n                            if (itemState === state) {\n                                jQuery(this).show();\n                            } else {\n                                jQuery(this).hide();\n                            }\n                        });\n                    }\n                });\n                \/\/ Handle city filter change\n                jQuery('select[name=\"filter_with_city\"]').on('change', function () {\n                    var city = jQuery(this).val();\n                    var items = jQuery('.mep-event-list-loop');\n                    if (city === '') {\n                        items.show();\n                    } else {\n                        items.each(function () {\n                            var itemCity = jQuery(this).data('city-name');\n                            if (itemCity === city) {\n                                jQuery(this).show();\n                            } else {\n                                jQuery(this).hide();\n                            }\n                        });\n                    }\n                });\n\t\t\t\t\t\t\t\t            });\n        <\/script>\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-573","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.rcm.gov.om\/ar\/wp-json\/wp\/v2\/pages\/573","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rcm.gov.om\/ar\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.rcm.gov.om\/ar\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.rcm.gov.om\/ar\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rcm.gov.om\/ar\/wp-json\/wp\/v2\/comments?post=573"}],"version-history":[{"count":0,"href":"https:\/\/www.rcm.gov.om\/ar\/wp-json\/wp\/v2\/pages\/573\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.rcm.gov.om\/ar\/wp-json\/wp\/v2\/media?parent=573"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}