{"id":30830,"date":"2024-01-01T23:17:03","date_gmt":"2024-01-01T15:17:03","guid":{"rendered":"https:\/\/edit-dot-gaewordpress-dot-junyiacademy.appspot.com\/?page_id=30830"},"modified":"2024-01-17T13:46:38","modified_gmt":"2024-01-17T05:46:38","slug":"mission_alert","status":"publish","type":"page","link":"https:\/\/www.junyiacademy.org\/event\/mission_alert\/","title":{"rendered":"mission_alert"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"30830\" class=\"elementor elementor-30830\">\n\t\t\t\t\t\t<div class=\"elementor-inner\">\n\t\t\t\t<div class=\"elementor-section-wrap\">\n\t\t\t\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-dd5b9ff elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"dd5b9ff\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t\t\t<div class=\"elementor-row\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-6de7ec1\" data-id=\"6de7ec1\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-column-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t<div class=\"elementor-widget-wrap\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-0a6262b elementor-widget elementor-widget-global elementor-global-21706 elementor-widget-html\" data-id=\"0a6262b\" data-element_type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<style>\n    button {\n        padding: 0px;\n    }\n<\/style>\n\n<div style=\"color:#0F3263\">\u55e8\uff01 <span id=\"nickname\"><\/span> \u4f60\u597d\uff01<\/div>\n<div id=\"res-area\"><\/div>\n\n<script src=\"https:\/\/kit.fontawesome.com\/8c54898f9b.js\" crossorigin=\"anonymous\"><\/script>\n\n<script>    \n    window.onload = function() {\n        \n        var currentUrl = window.location.href;\n        var originalDomain = 'edit-dot-gaewordpress-dot-junyiacademy.appspot.com';\n        var redirectDomain = 'www.junyiacademy.org\/event'\n          \n        if (currentUrl.includes(originalDomain)) {\n            var modifiedUrl = currentUrl.replace(originalDomain, redirectDomain);\n            window.location.href = modifiedUrl;\n        }\n        \n    };\n<\/script>\n\n<script>\n\n\tvar form_id = \"\"; \t\t\/\/ setup Typeform args\n\tvar form_title = \"\";\n\t\n    jQuery(document).ready(function () {\n        var currentPage = window.location.href;\n        \n        \/\/ visit JY-HP first, to save X-KA-FKey into cookie\n        var xsrfToken;\n        \n        jQuery.ajax({\n            url: 'https:\/\/www.junyiacademy.org\/',\n            method: 'GET',\n            async: false,\n            cache: false, \/\/ disable cache to prevent error with browser history-back\n        }).done(function () { \n            xsrfToken = \/fkey=([^;]*)\/.exec(document.cookie) ? \/fkey=([^;]*)\/.exec(document.cookie)[1] : null;\n        });\n        \n        \/\/ \u7121\u6cd5 match \u67d0\u4e9b\u5e33\u865f\u767b\u5165\u5f8c\uff0c\u6c92\u6709: return_visits_http.* \u7684 pattern\n        \/\/var isLogin = \/return_visits_http*\/.exec(document.cookie);\n        \/\/alert(isLogin);        \n\n        \/\/ Check User logged-Status\n        var isLogin;\n\n        jQuery.ajax({\n            url: 'https:\/\/www.junyiacademy.org\/api\/v2\/user\/tracking-identity',\n            method: 'GET',\n            async: false,\n            cache: false, \/\/ disable cache to prevent error with browser history back\n            xhrFields: { withCredentials: true },\n            headers: { 'X-KA-FKey': xsrfToken },\n        }).done(function (data) {\n            data = data[\"data\"];\n            isLogin = data[\"isLoggedIn\"];\n        });\n        \n        var userData;\n        if (isLogin) {\n            jQuery('#nickname').html('Login...');\n            jQuery.ajax({\n                url: 'https:\/\/www.junyiacademy.org\/api\/v2\/user',\n                method: 'GET',\n                async: false,\n                cache: false, \/\/ disable cache to prevent error with browser history-back\n                xhrFields: { withCredentials: true },\n                headers: { 'X-KA-FKey': xsrfToken },\n            }).done(function (resp) {\n                var data = resp[\"data\"];\n                userData = data;\n                \/\/ filter phantom user out\n                if (!userData['isPhantom'] && !userData['isPrePhantom']) {\n                    jQuery('#nickname').html(data['nickname']);\n                    jQuery('#res-area').html(`\n                        <div style=\"color:#0F3263\">\n                        \n                            <button class=\"elementor-button-link elementor-button elementor-size-md elementor-animation-grow\" style=\"background-color: #FF9C5D; border-radius: 60px;\" data-tf-popup=\"` + form_id + `\" data-tf-size=\"80\" data-tf-iframe-props=\"title=` + form_title + `\" data-tf-medium=\"snippet\" data-tf-hidden=\"user_id=` + userData['userId'] + `,key_email=`+userData['keyEmail'] +`,points=` + userData['points'] +`,joined=` + userData['joined'] +`,user_role=` + userData['userRole'] + `,total_problems_correct=` + userData['totalProblemsCorrect'] +`,total_seconds_watched=` + userData['totalSecondsWatched'] +`,contact_email=` + userData['contactEmail'] +`,proficient_exercises=` + userData['proficientExercises'].length + `,coaches=` + userData['coaches'].length + `,student_lists=` + userData['studentLists'].length + `,badge_counts=` + userData['badgeCounts'][5] +`\" ><i class=\"fa-solid fa-clipboard-question\"><\/i> \u9ede\u6211\u958b\u59cb\u586b\u5beb\uff01\n                            <\/button>\n                            \n                            <script src=\"\/\/embed.typeform.com\/next\/embed.js\"><\\\/script>\n                        <\/div>\n                        <div style=\"color:#0F3263\">\n                            <sapn style=\"font-size: 16px\">\n                                <br\/>\n                                \ud83d\udd10 \u4fdd\u8b77\u81ea\u5df1\u7684\u5e33\u865f\u3002\n                                <br\/>\u5982\u679c\u4f7f\u7528\u516c\u7528\u96fb\u8166\uff0c\u586b\u5beb\u5f8c\u8a18\u5f97\n                                <a href=\"#\" id=\"logout\"> \u767b\u51fa\u5747\u4e00\u5e33\u865f\u3002<\/a>\n                            <\/span>\n                        <\/div>\n                    `);\n                }\n            }).fail(function (data) {\n                jQuery('#res-area').html('\u767c\u751f\u932f\u8aa4\uff0c\u8acb\u806f\u7e6b\u6211\u5011\u3002');\n            }).always(function () {\n                \/\/ Do Nothing\n            });\n        } else {\n            jQuery('#res-area').html(`\n                <div style=\"color:#0F3263\">\n                    \u9ede\u64ca\u9019\u88e1 \n                    <a href=\"\/login?continue=` + currentPage + `\">\u8a3b\u518a\/\u767b\u5165<\/a> \u5747\u4e00\u5e33\u865f\n                    <br\/>\n                    \u5c31\u53ef\u4ee5\u958b\u59cb\u586b\u5beb\u8868\u55ae\uff01\n                <\/div>\n            `);\n        }\n        \n        jQuery(\"#logout\").click(function (e) {\n            e.preventDefault();\n            jQuery.ajax({\n                url: 'https:\/\/www.junyiacademy.org\/logout?continue='+ currentPage +'\"',\n                method: 'GET',\n                async: false,\n                cache: false, \/\/ disable cache to prevent error with browser history-back\n                xhrFields: { withCredentials: true },\n                headers: { 'X-KA-FKey': xsrfToken },\n            }).done(function () {\n                window.location.replace(currentPage);\n            });\n        });\n    });\n<\/script>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>\u55e8\uff01 \u4f60\u597d\uff01<\/p>\n","protected":false},"author":15,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v19.6.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>mission_alert - \u5747\u4e00\u6559\u80b2\u5e73\u53f0<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/edit-dot-gaewordpress-dot-junyiacademy.appspot.com\/mission_alert\/\" \/>\n<meta property=\"og:locale\" content=\"zh_TW\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"mission_alert - \u5747\u4e00\u6559\u80b2\u5e73\u53f0\" \/>\n<meta property=\"og:description\" content=\"\u55e8\uff01 \u4f60\u597d\uff01\" \/>\n<meta property=\"og:url\" content=\"https:\/\/edit-dot-gaewordpress-dot-junyiacademy.appspot.com\/mission_alert\/\" \/>\n<meta property=\"og:site_name\" content=\"\u5747\u4e00\u6559\u80b2\u5e73\u53f0\" \/>\n<meta property=\"article:modified_time\" content=\"2024-01-17T05:46:38+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 \u5206\u9418\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/edit-dot-gaewordpress-dot-junyiacademy.appspot.com\/mission_alert\/\",\"url\":\"https:\/\/edit-dot-gaewordpress-dot-junyiacademy.appspot.com\/mission_alert\/\",\"name\":\"mission_alert - \u5747\u4e00\u6559\u80b2\u5e73\u53f0\",\"isPartOf\":{\"@id\":\"https:\/\/www.junyiacademy.org\/event\/#website\"},\"datePublished\":\"2024-01-01T15:17:03+00:00\",\"dateModified\":\"2024-01-17T05:46:38+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/edit-dot-gaewordpress-dot-junyiacademy.appspot.com\/mission_alert\/#breadcrumb\"},\"inLanguage\":\"zh-TW\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/edit-dot-gaewordpress-dot-junyiacademy.appspot.com\/mission_alert\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/edit-dot-gaewordpress-dot-junyiacademy.appspot.com\/mission_alert\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/edit-dot-gaewordpress-dot-junyiacademy.appspot.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"mission_alert\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.junyiacademy.org\/event\/#website\",\"url\":\"https:\/\/www.junyiacademy.org\/event\/\",\"name\":\"\u5747\u4e00\u6559\u80b2\u5e73\u53f0\",\"description\":\"\u8b93\u6bcf\u4e00\u4f4d\u5b69\u5b50\u90fd\u6709\u6a5f\u6703\u6210\u70ba\u7d42\u8eab\u5b78\u7fd2\u8005\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.junyiacademy.org\/event\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-TW\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"mission_alert - \u5747\u4e00\u6559\u80b2\u5e73\u53f0","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/edit-dot-gaewordpress-dot-junyiacademy.appspot.com\/mission_alert\/","og_locale":"zh_TW","og_type":"article","og_title":"mission_alert - \u5747\u4e00\u6559\u80b2\u5e73\u53f0","og_description":"\u55e8\uff01 \u4f60\u597d\uff01","og_url":"https:\/\/edit-dot-gaewordpress-dot-junyiacademy.appspot.com\/mission_alert\/","og_site_name":"\u5747\u4e00\u6559\u80b2\u5e73\u53f0","article_modified_time":"2024-01-17T05:46:38+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 \u5206\u9418"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/edit-dot-gaewordpress-dot-junyiacademy.appspot.com\/mission_alert\/","url":"https:\/\/edit-dot-gaewordpress-dot-junyiacademy.appspot.com\/mission_alert\/","name":"mission_alert - \u5747\u4e00\u6559\u80b2\u5e73\u53f0","isPartOf":{"@id":"https:\/\/www.junyiacademy.org\/event\/#website"},"datePublished":"2024-01-01T15:17:03+00:00","dateModified":"2024-01-17T05:46:38+00:00","breadcrumb":{"@id":"https:\/\/edit-dot-gaewordpress-dot-junyiacademy.appspot.com\/mission_alert\/#breadcrumb"},"inLanguage":"zh-TW","potentialAction":[{"@type":"ReadAction","target":["https:\/\/edit-dot-gaewordpress-dot-junyiacademy.appspot.com\/mission_alert\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/edit-dot-gaewordpress-dot-junyiacademy.appspot.com\/mission_alert\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/edit-dot-gaewordpress-dot-junyiacademy.appspot.com\/"},{"@type":"ListItem","position":2,"name":"mission_alert"}]},{"@type":"WebSite","@id":"https:\/\/www.junyiacademy.org\/event\/#website","url":"https:\/\/www.junyiacademy.org\/event\/","name":"\u5747\u4e00\u6559\u80b2\u5e73\u53f0","description":"\u8b93\u6bcf\u4e00\u4f4d\u5b69\u5b50\u90fd\u6709\u6a5f\u6703\u6210\u70ba\u7d42\u8eab\u5b78\u7fd2\u8005","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.junyiacademy.org\/event\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-TW"}]}},"_links":{"self":[{"href":"https:\/\/www.junyiacademy.org\/event\/wp-json\/wp\/v2\/pages\/30830"}],"collection":[{"href":"https:\/\/www.junyiacademy.org\/event\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.junyiacademy.org\/event\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.junyiacademy.org\/event\/wp-json\/wp\/v2\/users\/15"}],"replies":[{"embeddable":true,"href":"https:\/\/www.junyiacademy.org\/event\/wp-json\/wp\/v2\/comments?post=30830"}],"version-history":[{"count":4,"href":"https:\/\/www.junyiacademy.org\/event\/wp-json\/wp\/v2\/pages\/30830\/revisions"}],"predecessor-version":[{"id":34490,"href":"https:\/\/www.junyiacademy.org\/event\/wp-json\/wp\/v2\/pages\/30830\/revisions\/34490"}],"wp:attachment":[{"href":"https:\/\/www.junyiacademy.org\/event\/wp-json\/wp\/v2\/media?parent=30830"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}