{"id":9416,"date":"2021-10-15T16:25:09","date_gmt":"2021-10-15T13:25:09","guid":{"rendered":"https:\/\/tourest.ee\/?page_id=9416"},"modified":"2021-10-26T14:16:54","modified_gmt":"2021-10-26T11:16:54","slug":"registration-agreement","status":"publish","type":"page","link":"https:\/\/tourest.ee\/en\/registration-agreement\/","title":{"rendered":"Registration agreement"},"content":{"rendered":"\n            <script type=\"text\/javascript\">\n            jQuery(document).ready(function($) {\n                $.fn.checkboxLimit = function(n) {\n\n                    var checkboxes = this;\n\n                    this.toggleDisable = function() {\n\n                        \/\/ if we have reached or exceeded the limit, disable all other checkboxes\n                        if(this.filter(':checked').length >= n) {\n                            var unchecked = this.not(':checked');\n                            unchecked.prop('disabled', true);\n                        }\n                        \/\/ if we are below the limit, make sure all checkboxes are available\n                        else {\n                            this.prop('disabled', false);\n                        }\n\n                    }\n\n                    \/\/ when form is rendered, toggle disable\n                    checkboxes.bind('gform_post_render', checkboxes.toggleDisable());\n\n                    \/\/ when checkbox is clicked, toggle disable\n                    checkboxes.click(function(event) {\n\n                        checkboxes.toggleDisable();\n\n                        \/\/ if we are equal to or below the limit, the field should be checked\n                        return checkboxes.filter(':checked').length <= n;\n                    });\n\n                }\n            });\n            <\/script>\n\n            ","protected":false},"excerpt":{"rendered":"","protected":false},"author":100,"featured_media":23772,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"content-type":"","footnotes":""},"class_list":["post-9416","page","type-page","status-publish","has-post-thumbnail","hentry"],"_links":{"self":[{"href":"https:\/\/tourest.ee\/en\/wp-json\/wp\/v2\/pages\/9416","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tourest.ee\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/tourest.ee\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/tourest.ee\/en\/wp-json\/wp\/v2\/users\/100"}],"replies":[{"embeddable":true,"href":"https:\/\/tourest.ee\/en\/wp-json\/wp\/v2\/comments?post=9416"}],"version-history":[{"count":4,"href":"https:\/\/tourest.ee\/en\/wp-json\/wp\/v2\/pages\/9416\/revisions"}],"predecessor-version":[{"id":9480,"href":"https:\/\/tourest.ee\/en\/wp-json\/wp\/v2\/pages\/9416\/revisions\/9480"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/tourest.ee\/en\/wp-json\/wp\/v2\/media\/23772"}],"wp:attachment":[{"href":"https:\/\/tourest.ee\/en\/wp-json\/wp\/v2\/media?parent=9416"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}