
        <script type="text/javascript">

            (function ($) {

                window.gform_multi_page_navObj = function (args) {

                    this.formId = args.formId;
                    this.formElem = jQuery('form#gform_' + this.formId);
                    this.currentPage = args.currentPage;
                    this.lastPage = args.lastPage;
                    this.activateOnLastPage = args.activateOnLastPage;

                    this.init = function () {

                        // if this form is ajax-enabled, we'll need to get the current page via JS
                        if (this.isAjax())
                            this.currentPage = this.getCurrentPage();

                        if (!this.isLastPage() && !this.isLastPageReached())
                            return;

                        var gform_multi_page_nav = this;
                        var steps = $('form#gform_' + this.formId + ' .gf_step');

                        steps.each(function () {

                            var stepNumber = parseInt($(this).find('span.gf_step_number').text());

                            if (stepNumber != gform_multi_page_nav.currentPage) {
                                $(this).html(gform_multi_page_nav.createPageLink(stepNumber, $(this).html()))
                                    .addClass('gform_multi_page_nav-step-linked');
                            } else {
                                $(this).addClass('gform_multi_page_nav-step-current');
                            }

                        });

                        $(document).on('click', '#gform_' + this.formId + ' a.gform_multi_page_nav-page-link', function (event) {
                            event.preventDefault();

                            var hrefArray = $(this).attr('href').split('#');
                            if (hrefArray.length >= 2) {
                                var pageNumber = hrefArray.pop();
                                gform_multi_page_nav.postToPage(pageNumber, !$(this).hasClass('gform_multi_page_navmp-default'));
                            }

                        });

                    };

                    this.createPageLink = function (stepNumber, HTML) {
                        return '<a href="#' + stepNumber + '" class="gform_multi_page_nav-page-link gform_multi_page_nav-default">' + HTML + '</a>';
                    };

                    this.postToPage = function (page) {
                        this.formElem.append('<input type="hidden" name="gform_multi_page_nav_page_change" value="1" />');
                        this.formElem.find('input[name="gform_target_page_number_' + this.formId + '"]').val(page);
                        this.formElem.submit();
                    };

                    this.getCurrentPage = function () {
                        return this.formElem.find('input#gform_source_page_number_' + this.formId).val();
                    };

                    this.isLastPage = function () {
                        return this.currentPage >= this.lastPage;
                    };

                    this.isLastPageReached = function () {
                        return this.formElem.find('input[name="gform_multi_page_nav_last_page_reached"]').val() == true;
                    };

                    this.isAjax = function () {
                        return this.formElem.attr('target') == 'gform_ajax_frame_' + this.formId;
                    };

                    this.init();

                }

            })(jQuery);

        </script>

		{"id":2848,"date":"2020-10-09T13:40:10","date_gmt":"2020-10-09T10:10:10","guid":{"rendered":"http:\/\/ostadshk.ir\/?page_id=2848"},"modified":"2020-10-09T14:02:51","modified_gmt":"2020-10-09T10:32:51","slug":"%d8%b9%d8%b6%d9%88%db%8c%d8%aa","status":"publish","type":"page","link":"https:\/\/ostadshk.ir\/?page_id=2848","title":{"rendered":"\u0639\u0636\u0648\u06cc\u062a"},"content":{"rendered":"<div>\n<div>\n<div>\n<div class=\"block-editor-block-list__layout is-root-container\">\n<p id=\"block-fe4c44e8-cceb-4fc2-90cd-f7f3cf088345\" class=\"block-editor-block-list__block wp-block rich-text block-editor-rich-text__editable wp-block\" tabindex=\"0\" role=\"textbox\" aria-label=\"\u0628\u0644\u0648\u06a9 \u067e\u0627\u0631\u0627\u06af\u0631\u0627\u0641\" aria-multiline=\"true\" data-block=\"fe4c44e8-cceb-4fc2-90cd-f7f3cf088345\" data-type=\"core\/paragraph\" data-title=\"\u0628\u0646\u062f\">\u0645\u0634\u062e\u0635\u0627\u062a \u0631\u0627 \u0628\u0627 \u062f\u0642\u062a \u062f\u0631 \u06a9\u0627\u062f\u0631\u0647\u0627\u06cc \u0645\u0648\u0631\u062f \u0646\u0638\u0631 \u0648\u0627\u0631\u062f \u0646\u0645\u0627\u06cc\u06cc\u062f<\/p>\n<div id=\"block-a209a31e-9cdd-4817-bd15-1b4db8688194\" class=\"block-editor-block-list__block wp-block wp-block\" tabindex=\"0\" role=\"group\" aria-label=\"\u0628\u0644\u0648\u06a9: \u06a9\u0644\u0627\u0633\u06cc\u06a9\" data-block=\"a209a31e-9cdd-4817-bd15-1b4db8688194\" data-type=\"core\/freeform\" data-title=\"\u06a9\u0644\u0627\u0633\u06cc\u06a9\">\n<div id=\"editor-a209a31e-9cdd-4817-bd15-1b4db8688194\" class=\"wp-block-freeform block-library-rich-text__tinymce mce-content-body html5-captions mce-edit-focus\" dir=\"rtl\" contenteditable=\"true\">\n<p>\u0628\u0627 \u0633\u0644\u0627\u0645 \u0628\u0631\u0627\u06cc \u0627\u0631\u0633\u0627\u0644 \u0641\u0631\u0645 \u0628\u0627\u06cc\u062f \u0628\u0627 \u0646\u0627\u0645 \u06a9\u0627\u0631\u0628\u0631\u06cc \u0648 \u0631\u0645\u0632 \u0639\u0628\u0648\u0631 \u062e\u0648\u062f \u062f\u0631 \u0633\u0627\u06cc\u062a \u0648\u0627\u0631\u062f \u0634\u0648\u06cc\u062f*****(\u0627\u0632 \u0645\u0646\u0648\u06cc \u0633\u0645\u062a \u0631\u0627\u0633\u062a \u0633\u0627\u06cc\u062a \u0627\u0642\u062f\u0627\u0645 \u0646\u0645\u0627\u06cc\u06cc\u062f)*****\r\n\u062f\u0631 \u0635\u0648\u0631\u062a \u0646\u062f\u0627\u0634\u062a\u0646 \u0646\u0627\u0645 \u06a9\u0627\u0631\u0628\u0631\u06cc \u0648 \u0631\u0645\u0632 \u0648\u0631\u0648\u062f \u0628\u0627 \u067e\u0634\u062a\u06cc\u0628\u0627\u0646\u06cc \u0633\u0627\u06cc\u062a \u062a\u0645\u0627\u0633 \u062d\u0627\u0635\u0644 \u0641\u0631\u0645\u0627\u06cc\u06cc\u062f<\/p>\n<\/div>\n<\/div>\n<p id=\"block-a0b865ca-75ff-41a8-877e-9979360b21ef\" class=\"block-editor-block-list__block wp-block rich-text block-editor-rich-text__editable wp-block\" tabindex=\"0\" role=\"textbox\" aria-label=\"\u0628\u0644\u0648\u06a9 \u062e\u0627\u0644\u06cc\u061b \u0628\u0631\u0627\u06cc \u0627\u0646\u062a\u062e\u0627\u0628 \u06cc\u06a9 \u0628\u0644\u0648\u06a9 \u0627\u0633\u0644\u0634 \u0631\u0648 \u0628\u0647 \u062c\u0644\u0648 \u0631\u0627 \u062a\u0627\u06cc\u067e \u06cc\u0627 \u0634\u0631\u0648\u0639 \u0628\u0647 \u0646\u0648\u0634\u062a\u0646 \u06a9\u0646\u06cc\u062f.\" aria-multiline=\"true\" data-block=\"a0b865ca-75ff-41a8-877e-9979360b21ef\" data-type=\"core\/paragraph\" data-title=\"\u0628\u0646\u062f\">\n<div class=\"block-list-appender\" tabindex=\"-1\"><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div tabindex=\"0\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u0645\u0634\u062e\u0635\u0627\u062a \u0631\u0627 \u0628\u0627 \u062f\u0642\u062a \u062f\u0631 \u06a9\u0627\u062f\u0631\u0647\u0627\u06cc \u0645\u0648\u0631\u062f \u0646\u0638\u0631 \u0648\u0627\u0631\u062f \u0646\u0645\u0627\u06cc\u06cc\u062f<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-2848","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/ostadshk.ir\/index.php?rest_route=\/wp\/v2\/pages\/2848","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ostadshk.ir\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/ostadshk.ir\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/ostadshk.ir\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ostadshk.ir\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2848"}],"version-history":[{"count":3,"href":"https:\/\/ostadshk.ir\/index.php?rest_route=\/wp\/v2\/pages\/2848\/revisions"}],"predecessor-version":[{"id":2858,"href":"https:\/\/ostadshk.ir\/index.php?rest_route=\/wp\/v2\/pages\/2848\/revisions\/2858"}],"wp:attachment":[{"href":"https:\/\/ostadshk.ir\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2848"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}