m_digitallab_gastat_GastatFeedbackPagesPortlet_INSTANCE_juvm_pagesFeedbackForm]'); let sendButton = $('#sendButton'); let feedbackSection = $('#feedback-section'); let feedbackResponseSection = $('#feedback-response-section'); let feedbackBody = $('#feedbackBody'); let submitAgainBtn = $('#submit-again-btn') $('input[type="radio"][name="_com_digitallab_gastat_GastatFeedbackPagesPortlet_INSTANCE_juvm_feedbackValue"]').change(function () { hideOrShowReasonInput($(this).val(), $(this).data('label-text')) }) sendButton.click(function () { if (form[0].checkValidity() === false) return; let feedbackReason = $("input[name=_com_digitallab_gastat_GastatFeedbackPagesPortlet_INSTANCE_juvm_feedbackReason]").val(); let feedbackValue = $("input[name=_com_digitallab_gastat_GastatFeedbackPagesPortlet_INSTANCE_juvm_feedbackValue]:checked").val(); $.ajax({ type: 'POST', url: 'https://stats.gov.sa/ar/w/-%D8%A7%D9%84%D8%A5%D8%AD%D8%B5%D8%A7%D8%A1-%D8%A3%D9%83%D8%AB%D8%B1-%D9%85%D9%8632.500-%D9%85%D9%88%D8%B8%D9%81-%D9%8A%D9%8F%D9%82%D8%AF%D9%91%D9%90%D9%85%D9%88%D9%86-%D8%A7%D9%84%D8%AE%D8%AF%D9%85%D8%A7%D8%AA-%D8%A7%D9%84%D8%B5%D8%AD%D9%8A%D8%A9-%D9%88?p_p_id=com_digitallab_gastat_GastatFeedbackPagesPortlet_INSTANCE_juvm&p_p_lifecycle=2&p_p_state=normal&p_p_mode=view&p_p_resource_id=%2Fsubmit_feedback_captcha&p_p_cacheability=cacheLevelPage&assetEntryId=249593', data: { _com_digitallab_gastat_GastatFeedbackPagesPortlet_INSTANCE_juvm_feedbackReason: feedbackReason, _com_digitallab_gastat_GastatFeedbackPagesPortlet_INSTANCE_juvm_feedbackValue: feedbackValue }, success: function (response) { if (response) switchViews(true, response === 'true') } }) }) submitAgainBtn.click(function () { switchViews(false,undefined) }) function switchViews(showSuccessSection, isSuccess) { if (showSuccessSection) { feedbackSection.hide() let body = isSuccess ? `

شكرًا.

شكرآ لك على ملاحظاتك!

` : `

خطأ

عذرًا، حدث شيء خاطئ

` feedbackBody.html(body.trim()); feedbackResponseSection.show() } else { feedbackSection.show() feedbackBody.html('') feedbackResponseSection.hide() } } const hideOrShowReasonInput = (value, labelText) => { let shouldShow = value > 3; label.html(labelText + reason + ' *') input.prop('required', shouldShow); $("input[name=_com_digitallab_gastat_GastatFeedbackPagesPortlet_INSTANCE_juvm_feedbackReason]").val('') shouldShow ? unsatisfiedInputGroup.show() : unsatisfiedInputGroup.hide(); } })
0 he">'); $("head").append(''); }); // ]]> (function() {var $ = AUI.$;var _ = AUI._; import(Liferay.ThemeDisplay.getPathContext() + '/o/frontend-js-web/__liferay__/index.js').then( ({openToast}) => { AUI().use( 'liferay-session', function() { Liferay.Session = new Liferay.SessionBase( { autoExtend: true, redirectOnExpire: false, redirectUrl: 'https\x3a\x2f\x2fstats\x2egov\x2esa\x2fweb\x2fguest', sessionLength: 900, sessionTimeoutOffset: 70, warningLength: 60 } ); } ); } ) })(); Liferay.Portlet.register('com_digitallab_gastat_GastatFeedbackPagesPortlet_INSTANCE_juvm'); Liferay.Portlet.onLoad( { canEditTitle: false, columnPos: 0, isStatic: 'end', namespacedId: 'p_p_id_com_digitallab_gastat_GastatFeedbackPa2584\x2525D8\x2525B5\x2525D8\x2525AD\x2525D9\x25258A\x2525D8\x25255D9\x252588', refreshURLData: {} } ); Liferay.Portlet.register('com_liferay_site_navigation_menu_web_portlet_SiteNavigationMenuPortlet_INSTANCE_jibn'); Liferay.Portlet.onLoad( { canEditTitle: false, columnPos: 0, isStatic: 'end', namespacedId: 'p_p_id_com_liferay_site_navigation_menu_web_portlet_SiteNavigationMenuPortlet_INSTANCE_jibn_', portletId: 'com_liferay_site_navigation_menu_web_portlet_SiteNavigationMenuPortlet_INSTANCE_jibn', refreshURL: '\x2far\x2fc\x2fportal\x2frender_portlet\x3fp_l_id\x3d159\x26p_p_id\x3dcom_liferay_site_navigation_menu_web_portlet_SiteNavigationMenuPortlet_INSTANCE_jibn\x26p_p_lifecycle\x3d0\x26p_t_lifecycle\x3d0\x26p_p_state\x3dnormal\x26p_p_mode\x3dview\x26p_p_col_id\x3dnull\x26p_p_col_pos\x3dnull\x26p_p_col_count\x3dnull\x26p_p_static\x3d1\x26p_p_isolated\x3d1\x26currentURL\x3d\x252Far\x252Fw\x252F-\x2525D8\x2525A7\x2525D9\x252584\x2525D8\x2525A5\x2525D8\x2525AD\x2525D8\x2525B5\x2525D8\x2525A7\x2525D8\x2525A1-\x2525D8\x2525A3\x2525D9\x252583\x2525D8\x2525AB\x2525D8\x2525B1-\x2525D9\x252585\x2525D9\x25258632\x2e500-\x2525D9\x252585\x2525D9\x252588\x2525D8\x2525B8\x2525D9\x252581-\x2525D9\x25258A\x2525D9\x25258F\x2525D9\x252582\x2525D8\x2525AF\x2525D9\x252591\x2525D9\x252590\x2525D9\x252585\x2525D9\x252588\x2525D9\x252586-\x2525D8\x2525A7\x2525D9\x252584\x2525D8\x2525AE\x2525D8\x2525AF\x2525D9\x252585\x2525D8\x2525A7\x2525D8\x2525AA-\x2525D8\x2525A7\x2525D9\x252584\x2525D8\x2525B5\x2525D8\x2525AD\x2525D9\x25258A\x2525D8\x2525A9-\x2525D9\x252588', refreshURLData: {} } ); Liferay.Portlet.register('com_liferay_site_navigation_menu_web_portlet_SiteNavigationMenuPortlet_INSTANCE_capa'); Liferay.Portlet.onLoad( { canEditTitle: false, columnPos: 0, isStatic: 'end', namespacedId: 'p_p_id_com_liferay_site_navigation_menu_web_portlet_SiteNavigationMenuPortlet_INSTANCE_capa_', portletId: 'com_liferay_site_navigation_menu_web_portlet_SiteNavigationMenuPortlet_INSTANCE_capa', refreshURL: '\x2far\x2fc\x2fportal\x2frender_portlet\x3fp_l_id\x3d159\x26p_p_id\x3dcom_liferay_site_navigation_menu_web_portlet_SiteNavigationMenuPortlet_INSTANCE_capa\x26p_p_lifecycle\x3d0\x26p_t_lifecycle\x3d0\x26p_p_state\x3dnormal\x26p_p_mode\x3dview\x26p_p_col_id\x3dnull\x26p_p_col_pos\x3dnull\x26p_p_col_count\x3dnull\x26p_p_static\x3d1\x26p_p_isolated\x3d1\x26currentURL\x3d\x252Far\x252Fw\x252F-\x2525D8\x2525A7\x2525D9\x252584\x2525D8\x2525A5\x2525D8\x2525AD\x2525D8\x2525B5\x2525D8\x2525A7\x2525D8\x2525A1-\x2525D8\x2525A3\x2525D9\x252583\x2525D8\x2525AB\x2525D8\x2525B1-\x2525D9\x252585\x2525D9\x25258632\x2e500-\x2525D9\x252585\x2525D9\x252588\x2525D8\x2525B8\x2525D9\x252581-\x2525D9\x25258A\x2525D9\x25258F\x2525D9\x252582\x2525D8\x2525AF\x2525D9\x252591\x2525D9\x252590\x2525D9\x252585\x2525D9\x252588\x2525D9\x252586-\x2525D8\x2525A7\x2525D9\x252584\x2525D8\x2525AE\x2525D8\x2525AF\x2525D9\x252585\x2525D8\x2525A7\x2525D8\x2525AA-\x2525D8\x2525A7\x2525D9\x252584\x2525D8\x2525B5\x2525D8\x2525AD\x2525D9\x25258A\x2525D8\x2525A9-\x2525D9\x252588', refreshURLData: {} } ); (function() {var $ = AUI.$;var _ = AUI._; var assetEntryId = ''; if (assetEntryId) { window.location.hash = assetEntryId; } })(); Liferay.Portlet.register('com_liferay_asset_publisher_web_portlet_AssetPublisherPortlet_INSTANCE_soiz'); Liferay.Portlet.onLoad( { canEditTitle: false, columnPos: 0, isStatic: 'end', namespacedId: 'p_p_id_com_liferay_asset_publisher_web_portlet_AssetPublisherPortlet_INSTANCE_soiz_', portletId: 'com_liferay_asset_publisher_web_portlet_AssetPublisherPortlet_INSTANCE_soiz', refreshURL: '\x2far\x2fc\x2fportal\x2frender_portlet\x3fp_l_id\x3d159\x26p_p_id\x3dcom_liferay_asset_publisher_web_portlet_AssetPublisherPortlet_INSTANCE_soiz\x26p_p_lifecycle\x3d0\x26p_t_lifecycle\x3d0\x26p_p_state\x3dnormal\x26p_p_mode\x3dview\x26p_p_col_id\x3dnull\x26p_p_col_pos\x3dnull\x26p_p_col_count\x3dnull\x26p_p_static\x3d1\x26p_p_isolated\x3d1\x26currentURL\x3d\x252Far\x252Fw\x252F-\x2525D8\x2525A7\x2525D9\x252584\x2525D8\x2525A5\x252 1C1C 5D8\x2525AD\x2525D8\x2525B5\x2525D8\x2525A7\x2525D8\x2525A1-\x2525D8\x2525A3\x2525D9\x252583\x2525D8\x2525AB\x2525D8\x2525B1-\x2525D9\x252585\x2525D9\x25258632\x2e500-\x2525D9\x252585\x2525D9\x252588\x2525D8\x2525B8\x2525D9\x252581-\x2525D9\x25258A\x2525D9\x25258F\x2525D9\x252582\x2525D8\x2525AF\x2525D9\x252591\x2525D9\x252590\x2525D9\x252585\x2525D9\x252588\x2525D9\x252586-\x2525D8\x2525A7\x2525D9\x252584\x2525D8\x2525AE\x2525D8\x2525AF\x2525D9\x252585\x2525D8\x2525A7\x2525D8\x2525AA-\x2525D8\x2525A7\x2525D9\x252584\x2525D8\x2525B5\x2525D8\x2525AD\x2525D9\x25258A\x2525D8\x2525A9-\x2525D9\x252588', refreshURLData: {} } );
تابعنا على
أدوات الإتاحة والوصول

آخر تحديثات الأخبار والإحصاءات إحصاءات ومؤشرات البوابة خريطة الموقع الاشتراك في النشرة البريدية
المساعدة والدعم
روابط مهمة

آخر تحديثات الأخبار والإحصاءات إحصاءات ومؤشرات البوابة خريطة الموقع الاشتراك في النشرة البريدية
المساعدة والدعم
روابط مهمة
تابعنا على
أدوات الإتاحة والوصول

0 he">'); $("head").append(''); }); // ]]> (function() {var $ = AUI.$;var _ = AUI._; import(Liferay.ThemeDisplay.getPathContext() + '/o/frontend-js-web/__liferay__/index.js').then( ({openToast}) => { AUI().use( 'liferay-session', function() { Liferay.Session = new Liferay.SessionBase( { autoExtend: true, redirectOnExpire: false, redirectUrl: 'https\x3a\x2f\x2fstats\x2egov\x2esa\x2fweb\x2fguest', sessionLength: 900, sessionTimeoutOffset: 70, warningLength: 60 } ); } ); } ) })(); Liferay.Portlet.register('com_digitallab_gastat_GastatFeedbackPagesPortlet_INSTANCE_juvm'); Liferay.Portlet.onLoad( { canEditTitle: false, columnPos: 0, isStatic: 'end', namespacedId: 'p_p_id_com_digitallab_gastat_GastatFeedbackPa="accordion-header">

آخر تحديثات الأخبار والإحصاءات إحصاءات ومؤشرات البوابة خريطة الموقع الاشتراك في النشرة البريدية
المساعدة والدعم
روابط مهمة
تابعنا على
أدوات الإتاحة والوصول

تابعنا على
أدوات الإتاحة والوصول

آخر تحديثات الأخبار والإحصاءات إحصاءات ومؤشرات البوابة خريطة الموقع الاشتراك في النشرة البريدية
المساعدة والدعم
روابط مهمة
0 he">'); $("head").append(''); }); // ]]> (function() {var $ = AUI.$;var _ = AUI._; import(Liferay.ThemeDisplay.getPathContext() + '/o/frontend-js-web/__liferay__/index.js').then( ({openToast}) => { AUI().use( 'liferay-session', function() { Liferay.Session = new Liferay.SessionBase( { autoExtend: true, redirectOnExpire: false, redirectUrl: 'https\x3a\x2f\x2fstats\x2egov\x2esa\x2fweb\x2fguest', sessionLength: 900, sessionTimeoutOffset: 70, warningLength: 60 } ); } ); } ) })(); Liferay.Portlet.register('com_digitallab_gastat_GastatFeedbackPagesPortlet_INSTANCE_juvm'); Liferay.Portlet.onLoad( { canEditTitle: false, columnPos: 0, isStatic: 'end', namespacedId: 'p_p_id_com_digitallab_gastat_GastatFeedbackPa="accordion-header">

آخر تحديثات الأخبار والإحصاءات إحصاءات ومؤشرات البوابة خريطة الموقع الاشتراك في النشرة البريدية
المساعدة والدعم
روابط مهمة
تابعنا على
أدوات الإتاحة والوصول