{"id":2438,"date":"2021-07-30T14:01:13","date_gmt":"2021-07-30T14:01:13","guid":{"rendered":"https:\/\/website.hampstead.penega.dev\/city\/by-laws-and-regulations\/"},"modified":"2023-11-29T16:55:22","modified_gmt":"2023-11-29T20:55:22","slug":"by-laws-and-regulations","status":"publish","type":"page","link":"https:\/\/www.hampstead.qc.ca\/en\/town\/by-laws-and-regulations\/","title":{"rendered":"By-laws<br>and regulations"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"2438\" class=\"elementor elementor-2438 elementor-290\" data-elementor-post-type=\"page\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-548b1aa3 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"548b1aa3\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-7c61d3b3\" data-id=\"7c61d3b3\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-3b2a32a elementor-widget elementor-widget-Listing laws\" data-id=\"3b2a32a\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"Listing laws.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t        <div class=\"container\">\n            <div class=\"row\">\n                <div class=\"col-12 col-lg-8\">\n                    <input class=\"mt-1\" id=\"table-search\" type=\"search\" placeholder=\"Search one of the words\">\n                    <div class=\"btn btn-secondary btn-search ml-2 mt-1\">Search<\/div>\n                <\/div>\n\n                                    <div class=\"col-12 col-lg-4\">\n                        <select class=\"mt-1\" name=\"filter-subject\" id=\"filter-subject\">\n                            <option value=\"\">Select a category<\/option>\n                                                            <option value=\"56\">Advertising material<\/option>\n                                                            <option value=\"40\">Animals<\/option>\n                                                            <option value=\"39\">Council<\/option>\n                                                            <option value=\"71\">Draft By-law<\/option>\n                                                            <option value=\"57\">Environment<\/option>\n                                                            <option value=\"77\">Finance<\/option>\n                                                            <option value=\"38\">Miscellaneous<\/option>\n                                                            <option value=\"75\">Nuisance<\/option>\n                                                            <option value=\"2603\">Public Security<\/option>\n                                                            <option value=\"60\">Public works<\/option>\n                                                            <option value=\"61\">Traffic<\/option>\n                                                            <option value=\"62\">Urban planning<\/option>\n                                                    <\/select>\n                    <\/div>\n                            <\/div>\n\n            <div class=\"filter-year\"><\/div>\n\n            <div class=\"row\">\n                <div class=\"col\">\n                    <div class=\"table-container\">\n                        <table>\n                            <thead>\n                            <tr>\n                                <th>Title<\/th>\n                                <th>Subject<\/th>\n                                <th><\/th>\n                                <!--                                    <th>--><!--<\/th>-->\n                            <\/tr>\n                            <\/thead>\n                            <tbody class=\"items-container\"><\/tbody>\n                        <\/table>\n                    <\/div>\n                <\/div>\n            <\/div>\n        <\/div>\n        <script type=\"text\/javascript\">\n            $(document).ready(function () {\n                var current, maxpages;\n\n                function ajaxCall(taxonomy = {}, currentpage = 1, numberpost = -1) {\n                    if (currentpage === 1) {\n                        jQuery('.items-container').html('');\n                    }\n\n                    jQuery('.items-container').append('<tr><td colspan=\"5\"><div class=\"loading\"><\/div><\/td><\/tr>');\n\n                    var args = {\n                        type: 'by-law',\n                        lang: 'en',\n                        currentpage: currentpage,\n                        numberpost: numberpost,\n                        search: jQuery('#table-search').val(),\n                    };\n\n                    if(jQuery('#filter-subject').val()){\n                        args.taxonomy = {\n                            subjects: [jQuery('#filter-subject').val()]\n                        };\n                    }\n\n                    bylawApi(args, function (data) {\n                        if (data) {\n                            maxpages = data.maxpages;\n                            current = data.currentpage + 1;\n                            jQuery('.items-container .loading').parents('tr').remove();\n\n                            var $items = $(data.html);\n                            jQuery('.items-container').append($items);\n                        }\n                    });\n                }\n\n                ajaxCall();\n\n                jQuery('.btn-search').on('click', function (e) {\n                    ajaxCall();\n                });\n\n                \/\/ hit enter to launch ajaxCall searchwp\n                $(document).on('keypress',function(e) {\n                    if(e.which == 13 && $('#table-search').is(':focus')) {\n                        ajaxCall();\n                    }\n                });\n\n                jQuery('#filter-subject').on('change', function (e) {\n                    ajaxCall();\n                });\n            });\n        <\/script>\n        \t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-32b545f6\" data-id=\"32b545f6\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-2230c44b elementor-widget elementor-widget-heading\" data-id=\"2230c44b\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h4 class=\"elementor-heading-title elementor-size-default\">Does this page meet your needs?<\/h4>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-65024d96 elementor-button-align-stretch elementor-widget elementor-widget-form\" data-id=\"65024d96\" data-element_type=\"widget\" data-e-type=\"widget\" data-settings=\"{&quot;step_next_label&quot;:&quot;Next&quot;,&quot;step_previous_label&quot;:&quot;Previous&quot;,&quot;button_width&quot;:&quot;100&quot;,&quot;step_type&quot;:&quot;number_text&quot;,&quot;step_icon_shape&quot;:&quot;circle&quot;}\" data-widget_type=\"form.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<form class=\"elementor-form\" method=\"post\" name=\"New Form\" aria-label=\"New Form\">\n\t\t\t<input type=\"hidden\" name=\"post_id\" value=\"2438\"\/>\n\t\t\t<input type=\"hidden\" name=\"form_id\" value=\"65024d96\"\/>\n\t\t\t<input type=\"hidden\" name=\"referer_title\" value=\"By-lawsand regulations  - Hampstead\" \/>\n\n\t\t\t\t\t\t\t<input type=\"hidden\" name=\"queried_id\" value=\"2438\"\/>\n\t\t\t\n\t\t\t<div class=\"elementor-form-fields-wrapper elementor-labels-above\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-field-type-radio elementor-field-group elementor-column elementor-field-group-satisfaction_radio elementor-col-100\">\n\t\t\t\t\t\t\t\t\t\t\t\t<label for=\"form-field-satisfaction_radio\" class=\"elementor-field-label\">\n\t\t\t\t\t\t\t\t<div style=\"color:#888\">Help us to optimize our site.<\/div>\t\t\t\t\t\t\t<\/label>\n\t\t\t\t\t\t<div class=\"elementor-field-subgroup  \"><span class=\"elementor-field-option\"><input type=\"radio\" value=\"oui\" id=\"form-field-satisfaction_radio-0\" name=\"form_fields[satisfaction_radio]\"> <label for=\"form-field-satisfaction_radio-0\">Yes<\/label><\/span><span class=\"elementor-field-option\"><input type=\"radio\" value=\"non\" id=\"form-field-satisfaction_radio-1\" name=\"form_fields[satisfaction_radio]\"> <label for=\"form-field-satisfaction_radio-1\">No<\/label><\/span><\/div>\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t<div class=\"elementor-field-type-textarea elementor-field-group elementor-column elementor-field-group-message elementor-col-100\">\n\t\t\t\t\t<textarea class=\"elementor-field-textual elementor-field  elementor-size-sm\" name=\"form_fields[message]\" id=\"form-field-message\" rows=\"4\" placeholder=\"Please explain\"><\/textarea>\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t<div class=\"elementor-field-group elementor-column elementor-field-type-submit elementor-col-100 e-form__buttons\">\n\t\t\t\t\t<button class=\"elementor-button elementor-size-sm\" type=\"submit\">\n\t\t\t\t\t\t<span class=\"elementor-button-content-wrapper\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"elementor-button-text\">Send<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t<\/button>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/form>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Rechercher S\u00e9lectionnez une cat\u00e9gorieAdvertising materialAnimalsCouncilDraft By-lawEnvironmentMiscellaneousPublic worksTrafficUrban planning &nbsp; Titre Sujet Does this page meet your needs?<\/p>\n","protected":false},"author":2,"featured_media":5099,"parent":2057,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"class_list":["post-2438","page","type-page","status-publish","has-post-thumbnail","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.hampstead.qc.ca\/en\/wp-json\/wp\/v2\/pages\/2438","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hampstead.qc.ca\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.hampstead.qc.ca\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.hampstead.qc.ca\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hampstead.qc.ca\/en\/wp-json\/wp\/v2\/comments?post=2438"}],"version-history":[{"count":0,"href":"https:\/\/www.hampstead.qc.ca\/en\/wp-json\/wp\/v2\/pages\/2438\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/www.hampstead.qc.ca\/en\/wp-json\/wp\/v2\/pages\/2057"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.hampstead.qc.ca\/en\/wp-json\/wp\/v2\/media\/5099"}],"wp:attachment":[{"href":"https:\/\/www.hampstead.qc.ca\/en\/wp-json\/wp\/v2\/media?parent=2438"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}