CINXE.COM

OMIA小編 的檔案 | OMIA

<!DOCTYPE html> <html lang="zh-hant" dir="ltr"> <head> <meta charset="utf-8" /> <meta name="Generator" content="Drupal 10 (https://www.drupal.org)" /> <meta name="MobileOptimized" content="width" /> <meta name="HandheldFriendly" content="true" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <link rel="icon" href="/sites/default/files/favicon.ico" type="image/vnd.microsoft.icon" /> <title>OMIA小編 的檔案 | OMIA</title> <link rel="stylesheet" media="all" href="/core/modules/system/css/components/ajax-progress.module.css?styv4m" /> <link rel="stylesheet" media="all" href="/core/modules/system/css/components/align.module.css?styv4m" /> <link rel="stylesheet" media="all" href="/core/modules/system/css/components/autocomplete-loading.module.css?styv4m" /> <link rel="stylesheet" media="all" href="/core/modules/system/css/components/fieldgroup.module.css?styv4m" /> <link rel="stylesheet" media="all" href="/core/modules/system/css/components/container-inline.module.css?styv4m" /> <link rel="stylesheet" media="all" href="/core/modules/system/css/components/clearfix.module.css?styv4m" /> <link rel="stylesheet" media="all" href="/core/modules/system/css/components/details.module.css?styv4m" /> <link rel="stylesheet" media="all" href="/core/modules/system/css/components/hidden.module.css?styv4m" /> <link rel="stylesheet" media="all" href="/core/modules/system/css/components/item-list.module.css?styv4m" /> <link rel="stylesheet" media="all" href="/core/modules/system/css/components/js.module.css?styv4m" /> <link rel="stylesheet" media="all" href="/core/modules/system/css/components/nowrap.module.css?styv4m" /> <link rel="stylesheet" media="all" href="/core/modules/system/css/components/position-container.module.css?styv4m" /> <link rel="stylesheet" media="all" href="/core/modules/system/css/components/progress.module.css?styv4m" /> <link rel="stylesheet" media="all" href="/core/modules/system/css/components/reset-appearance.module.css?styv4m" /> <link rel="stylesheet" media="all" href="/core/modules/system/css/components/resize.module.css?styv4m" /> <link rel="stylesheet" media="all" href="/core/modules/system/css/components/sticky-header.module.css?styv4m" /> <link rel="stylesheet" media="all" href="/core/modules/system/css/components/system-status-counter.css?styv4m" /> <link rel="stylesheet" media="all" href="/core/modules/system/css/components/system-status-report-counters.css?styv4m" /> <link rel="stylesheet" media="all" href="/core/modules/system/css/components/system-status-report-general-info.css?styv4m" /> <link rel="stylesheet" media="all" href="/core/modules/system/css/components/tabledrag.module.css?styv4m" /> <link rel="stylesheet" media="all" href="/core/modules/system/css/components/tablesort.module.css?styv4m" /> <link rel="stylesheet" media="all" href="/core/modules/system/css/components/tree-child.module.css?styv4m" /> <link rel="stylesheet" media="all" href="https://use.fontawesome.com/releases/v6.4.0/css/all.css" /> <link rel="stylesheet" media="all" href="https://use.fontawesome.com/releases/v6.4.0/css/v4-shims.css" /> <link rel="stylesheet" media="all" href="/modules/omia/css/common/vue_cloak.css?styv4m" /> <link rel="stylesheet" media="all" href="/modules/omia/css/user/profile.css?styv4m" /> <link rel="stylesheet" media="all" href="/themes/custom/omia_theme/css/all.css?styv4m" /> <script type="application/json" data-drupal-selector="drupal-settings-json">{"path":{"baseUrl":"\/","scriptPath":null,"pathPrefix":"","currentPath":"profile\/117","currentPathIsAdmin":false,"isFront":false,"currentLanguage":"zh-hant"},"pluralDelimiter":"\u0003","suppressDeprecationErrors":true,"gtm":{"tagId":null,"settings":{"data_layer":"dataLayer","include_classes":false,"allowlist_classes":"","blocklist_classes":"","include_environment":false,"environment_id":"","environment_token":""},"tagIds":["GTM-KQ63VZN"]},"gtag":{"tagId":"","consentMode":false,"otherIds":[],"events":[],"additionalConfigInfo":[]},"ajaxPageState":{"libraries":"fontawesome\/fontawesome.webfonts,fontawesome\/fontawesome.webfonts.shim,google_tag\/gtag,google_tag\/gtag.ajax,google_tag\/gtm,omia\/omiaProfile,omia_theme\/global-styling,system\/base","theme":"omia_theme","theme_token":null},"ajaxTrustedUrl":[],"omia":{"isPlusPage":false,"openPageTipsData":null,"chunghwaTipsData":[],"isTranslucentHeaderPage":false,"isSHE":false},"PROFILE_DATA":{"userId":"117"},"GA4_key":"G-G3NTX7ZFC8","GA4_IS_DEBUG":false,"user":{"uid":0,"permissionsHash":"6b5dc5eb634aa87e179f3f66d70d813bae2855ceae5e9fb0f192f5e781b086a1"}}</script> <script src="/core/assets/vendor/jquery/jquery.min.js?v=1743413518"></script> <script src="/core/assets/vendor/once/once.min.js?v=1743413518"></script> <script src="/sites/default/files/languages/zh-hant_mrYhz6U9M44XBGLw0zaBisdKzlhHIi4JsLhjs1NLglk.js?v=1743413518"></script> <script src="/core/misc/drupalSettingsLoader.js?v=1743413518"></script> <script src="/core/misc/drupal.js?v=1743413518"></script> <script src="/core/misc/drupal.init.js?v=1743413518"></script> <script src="/modules/omia/js/common/jquery.cookie.js?v=1743413518"></script> <script src="/themes/custom/omia_theme/js/main.js?v=1743413518"></script> <script src="/themes/custom/omia_theme/js/save_cookies.js?v=1743413518"></script> <script src="/themes/custom/omia_theme/js/GA4_script.js?v=1743413518"></script> </head> <body class="omia-user-profile"> <a href="#main-content" class="visually-hidden focusable"> 移至主內容 </a> <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-KQ63VZN" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> <div class="dialog-off-canvas-main-canvas" data-off-canvas-main-canvas> <div class="layout-container"> <header role="banner"> <div> <div id="block-omia-theme-header"> <div class="header"> <div class="header_logo"> <a href="/" alt="首頁"></a> </div> <div class="headerMainPageBtnDom isActive" type="category"> <a href="/" class="headerMainPageBtn"> 買課程 <div class="headerMainPageBtnArrow"></div> </a> <div class="headerMainPageList" id="headerCategoryList"> <div class="headerMainPageListItem"> <a href="/projectList">所有專案</a> </div> <div class="headerMainPageListItem"> <a href="/projectList/C1">個人成長</a> </div> <div class="headerMainPageListItem"> <a href="/projectList/C5">健康養生</a> </div> <div class="headerMainPageListItem"> <a href="/projectList/C7">手作DIY</a> </div> <div class="headerMainPageListItem"> <a href="/projectList/C11">攝影藝術</a> </div> <div class="headerMainPageListItem"> <a href="/projectList/C4">教育學習</a> </div> <div class="headerMainPageListItem"> <a href="/projectList/C8">生活嗜好</a> </div> <div class="headerMainPageListItem"> <a href="/projectList/C2">程式軟體</a> </div> <div class="headerMainPageListItem"> <a href="/projectList/C10">繪畫插畫</a> </div> <div class="headerMainPageListItem"> <a href="/projectList/C12">職場技能</a> </div> <div class="headerMainPageListItem"> <a href="/projectList/C3">語言學習</a> </div> </div> </div> <div class="headerMainPageBtnDom" type="tag"> <a href="/plus" class="headerMainPageBtn"> PLUS <div class="headerMainPageBtnArrow"></div> </a> </div> <div class="headerSearchDom"> <input type="text" placeholder="你今天想學什麼?" class="projectSearchInput pcSearchInput"> <div class="header_search_drop hidden"> <div class="header_hot_keyword">熱門關鍵字</div> <ul> <li><a href="/searchProject/OKR">OKR</a></li> <li><a href="/searchProject/陳宗賢">陳宗賢</a></li> <li><a href="/searchProject/認證">認證</a></li> </ul> <div class="header_seacher_all"><a href="/projectList">所有專案</a></div> </div> </div> <div class="headerMobileSearchBtn"></div> <div class="header_btn_login header-button"> <a href="/user/login?destination=/profile/117" alt="登入">登入</a> </div> <div class="headerPlusSubscribeBtn"> <a href="/plus/intro">訂閱</a> </div> <div class="headerMobileMenuBtn burger-container"></div> <div class="headerMobileMenuDom"> <div class="headerMobileSearchDom"> <input type="text" placeholder="你今天想學什麼" class="projectSearchInput"> </div> <div class="headerMobileCategoryList"> <div class="headerMobileCategoryListItem firstItem">熱門關鍵字</div> <div class="headerMobileCategoryListItem"> <a href="/searchProject/OKR">OKR</a> </div> <div class="headerMobileCategoryListItem"> <a href="/searchProject/陳宗賢">陳宗賢</a> </div> <div class="headerMobileCategoryListItem"> <a href="/searchProject/認證">認證</a> </div> <div class="headerMobileCategoryListItem lastItem"> <a href="/projectList">所有專案</a> </div> </div> </div> </div> <nav id="mobileLeftMenu"> <div class="mobileLeftMenu_MainPageBtn"> <a href="/" class="mobileLeftMenuMainPageBtn isActive">買課程</a> <a href="/plus" class="mobileLeftMenuMainPageBtn">PLUS</a> </div> <ul> <li class="mobileLeftMenu_MainItem" mobileLeftMenu_Group="0"> <a href="javascript:void(0)">課程專案</a> </li> <li class="mobileLeftMenu_SubItem_0 hidden"><a href="/projectList">所有專案</a></li> <li class="mobileLeftMenu_SubItem_0 hidden"><a href="/projectList/C1">個人成長</a></li> <li class="mobileLeftMenu_SubItem_0 hidden"><a href="/projectList/C5">健康養生</a></li> <li class="mobileLeftMenu_SubItem_0 hidden"><a href="/projectList/C7">手作DIY</a></li> <li class="mobileLeftMenu_SubItem_0 hidden"><a href="/projectList/C11">攝影藝術</a></li> <li class="mobileLeftMenu_SubItem_0 hidden"><a href="/projectList/C4">教育學習</a></li> <li class="mobileLeftMenu_SubItem_0 hidden"><a href="/projectList/C8">生活嗜好</a></li> <li class="mobileLeftMenu_SubItem_0 hidden"><a href="/projectList/C2">程式軟體</a></li> <li class="mobileLeftMenu_SubItem_0 hidden"><a href="/projectList/C10">繪畫插畫</a></li> <li class="mobileLeftMenu_SubItem_0 hidden"><a href="/projectList/C12">職場技能</a></li> <li class="mobileLeftMenu_SubItem_0 hidden"><a href="/projectList/C3">語言學習</a></li> <li><a href="/plus/intro">訂購PLUS</a></li> </ul> </nav> <script> //log if(drupalSettings.user.uid > 0){ window.drupal10 = window.drupal10 || {}; window.drupal10.settings = window.drupal10.settings || {}; window.drupal10.settings.user_js_uid = drupalSettings.user.uid; window.dataLayer = window.dataLayer || []; //gtm 建議的名稱 dataLayer.push({'userUid': drupalSettings.user.uid}); dataLayer.push({'userID': drupalSettings.user.uid}); dataLayer.push({'user_id': drupalSettings.user.uid}); } document.addEventListener("DOMContentLoaded", function () { setupBlockToggle( ".user-button.header-button", "#user-block" ); setupBlockToggle( ".Master-button.header-button", "#Master-block" ); function setupBlockToggle(buttonSelector, blockSelector) { let timeout; const block = document.querySelector(blockSelector); const button = document.querySelector(buttonSelector); if(block != null) { block.addEventListener("mouseover", () => cancelHide(block)); block.addEventListener("mouseleave", () => hideBlock(block)); } if(button != null) { button.addEventListener("mouseover", () => showBlock(block)); button.addEventListener("mouseleave", () => hideBlock(block)); // 手機板點擊事件 button.addEventListener("click", () => toggleBlock(block)); } function showBlock(block) { clearTimeout(timeout); block.classList.remove("hide"); block.classList.add("show"); } function hideBlock(block) { timeout = setTimeout(() => { block.classList.remove("show"); block.classList.add("hide"); }, 500); // 延遲 500 毫秒 } function cancelHide(block) { clearTimeout(timeout); } function toggleBlock(block) { if (block.classList.contains("show")) { block.classList.remove("show"); block.classList.add("hide"); } else { showBlock(block); } } // 手機板點擊外部區域關閉 block document.addEventListener("click", (event) => { if (block != null && !block.contains(event.target) && !button.contains(event.target)) { block.classList.remove("show"); block.classList.add("hide"); } }); } }); (function ($, Drupal,once) { Drupal.behaviors.omiaHeaderBlock = { attach: function (context, settings) { once('omiaHeaderBlock', 'html').forEach(function (element) { let isTranslucentHeaderPage = settings.omia.isTranslucentHeaderPage; //捲動時的Header底色 if (isTranslucentHeaderPage) { $("#block-omia-theme-header").addClass('index_header'); setHeaderStyle(); $(window).scroll(function () { setHeaderStyle(); }); } }) } }; })(jQuery, Drupal,once); function setHeaderStyle() { //重新載入時的底色 var scrollVal = $(this).scrollTop(); $(".qScrollTop").text(scrollVal); if (scrollVal > 45) { $("#block-omia-theme-header").stop(true, false).addClass("header_bk"); } else { $("#block-omia-theme-header").stop(true, false).removeClass("header_bk"); } } </script> <style> .user-block, .Master-block { display: none; transition: visibility 0s, opacity 0.5s linear; } .user-block.show, .Master-block.show { display: block; visibility: visible; opacity: 1; } .user-block.hide, .Master-block.hide { visibility: hidden; opacity: 0; transition: visibility 0s 0.5s, opacity 0.5s linear; } </style> </div> </div> </header> <div> <div data-drupal-messages-fallback class="hidden"></div> </div> <main role="main"> <a id="main-content" tabindex="-1"></a> <div class="layout-content"> <div> <div id="block-omia-theme-content"> <div id="profile"> <div class="profile_intro_dom"> <div class="profile_cover_img_dom no_cover_image"></div> <div class="profile_top_dom"> <div class="profile_picture_dom"> <div class="profile_picture_img_dom"> <img src="/sites/default/files/styles/profile_220/public/user_picture/picture-597-1584327761.jpg?itok=wWzRa1PX"/> <div class="member_type omia">OMIA</div> </div> <div class="profile_content_dom"> <div class="form-item-name"> <label>OMIA小編</label> </div> <div class="member_type_text">OMIA會員</div> <div class="about"></div> </div> </div> </div> </div> <div class="profile_empty_dom" v-show="isListEmpty"> <div class="profile_empty_img_dom"></div> <div class="profile_empty_text_dom">尚無公開項目</div> </div> <div class="profile_access_setting_item" v-for="(groupItem, groupKey) in group" v-cloak> <div class="profile_access_setting_item_title">[[ groupItem.title ]]</div> <div class="profile_list"> <div class="projectCard" v-for="(listItem, listKey) in groupItem.list"> <div class="projectCard_cover"> <a v-bind:href="'/project/' + listItem.nid" target="_blank"> <picture> <source v-bind:srcset="listItem.projectWebpPath" type="image/webp"> <img v-bind:src="listItem.projectImgPath" alt="" class="projectCard_projectImg"> <source media="(max-width: 575px)" v-bind:srcset="listItem.projectWebpPath_575" type="image/webp" width="154" height="90"> <source media="(max-width: 575px)" v-bind:srcset="listItem.projectImgPath_575" width="154" height="90"> <source media="(max-width: 991px)" v-bind:srcset="listItem.projectWebpPath_991" type="image/webp" width="273" height="160"> <source media="(max-width: 991px)" v-bind:srcset="listItem.projectImgPath_991" width="273" height="160"> <source media="(max-width: 1199px)" v-bind:srcset="listItem.projectWebpPath_1199" type="image/webp" width="300" height="176"> <source media="(max-width: 1199px)" v-bind:srcset="listItem.projectImgPath_1199" width="300" height="176"> <source v-bind:srcset="listItem.projectWebpPath" type="image/webp" width="340" height="200"> <img v-bind:src="listItem.projectImgPath" alt="" class="projectCard_projectImg" width="340" height="200"> </picture> </a> </div> <div class="projectCard_content"> <div class="projectCard_content_top"> <a v-bind:href="'/project/' + listItem.nid" target="_blank"> <picture> <source v-bind:srcset="listItem.authorWebpPath" type="image/webp"> <img v-bind:src="listItem.authorImgPath" alt="" class="projectCard_authorImg"> </picture> <div class="projectCard_authorName">[[listItem.authorName]]</div> </a> </div> <div class="projectCard_content_center"> <div class="projectCard_projectTitle"><a v-bind:href="'/project/' + listItem.nid" target="_blank">[[listItem.projectTitle]]</a></div> <div v-bind:class="'projectCard_promotionClassName ' + listItem.promotionClass"></div> <div class="projectCard_projectTime">[[listItem.projectMinutes]]</div> </div> <div class="projectCard_content_bottom"> <div class="projectCard_Count_block"> <div class="projectCard_viewCount">[[listItem.viewCount]]</div> <div class="projectCard_followCount">[[listItem.followCount]]</div> </div> <div class="projectCard_originalPrice" v-if="listItem.originalPrice > 0">[[listItem.originalPrice]]</div> <div class="projectCard_finalPrice_block"> <div class="projectCard_finalPrice">[[listItem.finalPrice]]</div> <div class="projectCard_priceMore" v-if="listItem.priceMore == 1">起</div> </div> </div> </div> </div> </div> </div> <div class="profile_access_setting_item" v-show="creations.length > 0" v-cloak> <div class="profile_access_setting_item_title">我的作品</div> <div class="profile_creation_list"> <my-creation-card-item v-for="(item,key) in creations" :key="key" :creation="item"></my-creation-card-item> </div> </div> </div> <script type="text/x-template" id="my-creation-card-item"> <div class="creation-card" :id="'creation-card-' + creation.id" :class="[{'finish':creation.status}, 'aaa-' + creation.id]"> <div class="project-title-dom" v-if="creation.projectId"> <a :href="creation.projectUrl"> <div class="project-icon">課程</div> <div class="project-title">[[creation.projectTitle]]</div> </a> </div> <div class="topic-title-dom" v-else-if="creation.topicId"> <a :href="creation.topicUrl"> <div class="topic-icon">主題</div> <div class="topic-title">[[creation.topicTitle]]</div> </a> </div> <div class="creation-img-dom"> <a :href="creation.creationUrl"> <picture class="creation-img"> <source :srcset="creation.coverUrlWebp" type="image/webp"> <img :src="creation.coverUrl" alt="" class="creation-jpg-img" > </picture> <div class="mini-icon"> <div class="draf-icon-dom" v-if="!creation.status"> <div class="draf-icon"></div> <div class="draf-text">草稿</div> </div> <div class="finish-icon" v-if="creation.status"> <div class="like-dom"> <div class="like-icon"></div> <div class="like-text">[[creation.voteCount]]</div> </div> <div class="comment-dom"> <div class="comment-icon"></div> <div class="comment-text">[[creation.commentCount]]</div> </div> </div> </div> </a> </div> <div class="creation-title-dom"> <a :href="creation.creationUrl"> <div class="creation-title">[[creation.title]]</div> </a> </div> <div class="creation-edit-button-dom" v-if="!creation.isPublicPage"> <a :href="creation.creationEditUrl"> <div class="creation-edit-button button">編輯</div> </a> </div> </div> </script> </div> </div> </div> </main> <footer role="contentinfo"> <div> <div id="block-omia-theme-footer"> <div class="footer"> <div class="footer_menu_block"> <div class="footer_menu_title close">關於</div> <ul class="footer_menu"> <li><a href="/about_us">關於OMIA</a></li> <li><a href="/company">企業團購</a></li> <li><a href="https://support.omia.com.tw/support/yu-omia-he-zuo" target="_blank">行銷合作</a></li> <li><a href="/service">服務條款</a></li> <li><a href="/privacy">隱私權政策</a></li> </ul> </div> <div class="footer_menu_block"> <div class="footer_menu_title close">探索</div> <ul class="footer_menu"> <li><a href="/promote-articles">好評推薦</a></li> <li><a href="/projectList/0">最新課程</a></li> <li><a href="/projectList/1">近期熱門</a></li> <li><a href="/projectList/2">正在促銷</a></li> <li><a href="/events">最新活動</a></li> <li><a href="/live-list">免費直播課程</a></li> <li><a href="/creations">學習作品展示</a></li> </ul> </div> <div class="footer_menu_block"> <div class="footer_menu_title close">幫助</div> <ul class="footer_menu"> <li><a href="/experience/subscribe">課程序號兌換</a></li> <li><a href="https://support.omia.com.tw/support" target="_blank">常見問題</a></li> <li><a href="https://lin.ee/skou7Td">加入LINE好友</a></li> <li><a href="/contact_us">聯絡我們</a></li> <li><a href="/fraud_prevention">反詐騙宣導</a></li> </ul> </div> <div class="footer_menu_block footer_menu_share"> <div class="footer_menu_title close">追蹤</div> <ul class="footer_menu"> <li class="footer_menu_item_facebook"><a href="https://www.facebook.com/omia.com.tw"></a></li> <li class="footer_menu_item_youtube"><a href="https://www.youtube.com/@omia.official"></a></li> </ul> </div> <div class="footer_copyright">© 2024 Spring House Entertainment Tech. Inc. All Rights Reserved.</div> </div> </div> <div id="block-omia-theme-ga4zhuizongmaqukuai"> <script> var ga4_key = drupalSettings.GA4_key; var ga4_is_debug = drupalSettings.GA4_IS_DEBUG; // GA4,追蹤事件 function GA4_add_to_wishlist(orderPrice, data) { if(typeof(orderPrice) === "undefined" || parseInt(orderPrice, 10) === 0) return; if(typeof(data) == "undefined") return; if(data.length > 0) { gtag("event", "add_to_wishlist", { 'send_to': ga4_key, 'currency': "TWD", 'value': parseInt(orderPrice, 10), 'items': data }); } } // GA4,註冊事件 function GA4_sign_up(method) { if(typeof(method) == "undefined") return; if(method.length > 0) { gtag("event", "sign_up", { 'send_to': ga4_key, 'method': method }); } } // GA4,登入事件 function GA4_login(method) { if(typeof(method) == "undefined") return; if(method.length > 0) { gtag("event", "login", { 'send_to': ga4_key, 'method': method }); } } // GA4,瀏覽列表事件 function GA4_view_item(data) { if(typeof(data) == "undefined") return; if(data.length > 0) { let gaData = { 'send_to': ga4_key, 'items': data, }; if(ga4_is_debug) gaData.debug_mode = true; gtag("event", "view_item", gaData); //console.log("view_item in server :", gaData); } } // GA4,瀏覽列表事件 function GA4_view_item_list(data) { if(typeof(data) == "undefined") return; if(data.length > 0) { let gaData = { 'send_to': ga4_key, 'items': data, }; if(ga4_is_debug) gaData.debug_mode = true; gtag("event", "view_item_list", gaData); } } // GA4,加入購物車事件 function GA4_add_to_cart(orderPrice, data) { if(typeof(orderPrice) === "undefined" || parseInt(orderPrice, 10) === 0) return; if(typeof(data) == "undefined") return; if(data.length > 0) { let gaData = { 'send_to': ga4_key, 'currency': "TWD", 'value': parseInt(orderPrice, 10), 'items': data }; if(ga4_is_debug) gaData.debug_mode = true; gtag("event", "add_to_cart", gaData); } } // GA4,送出訂單事件 function GA4_begin_checkout(orderPrice, data) { if(typeof(orderPrice) === "undefined" || parseInt(orderPrice, 10) === 0) return; if(typeof(data) == "undefined") return; if(data.length > 0) { let gaData = { 'send_to': ga4_key, 'currency': "TWD", 'value': parseInt(orderPrice, 10), 'items': data }; if(ga4_is_debug) gaData.debug_mode = true; gtag("event", "begin_checkout", gaData); } } // GA4,購買事件 function GA4_purchase(orderTitle, orderPrice, data) { if(typeof(orderTitle) === "undefined") return; if(typeof(orderPrice) === "undefined" || parseInt(orderPrice, 10) === 0) return; if(typeof(data) == "undefined") return; if(data.length > 0) { let gaData = { 'send_to': ga4_key, 'currency': "TWD", 'transaction_id' : orderTitle, 'value' : parseInt(orderPrice, 10), 'items': data }; if(ga4_is_debug) gaData.debug_mode = true; gtag("event", "purchase", gaData); } } // GA4,搜尋事件 function GA4_search(searchText) { gtag("event", "search", { 'send_to': ga4_key }); gtag("event", "search", { 'send_to': ga4_key, 'search_term' : searchText, }); } </script> </div> <div id="block-omia-theme-gdpr"> <div><div class="footer-cookie-block"><div class="cookie-wrap"><div class="cookie-txt">我們紀錄cookie資訊以優化您的使用體驗。若您繼續瀏覽即表示同意我們使用cookies。 更多資訊請閱覽我們的<a href="/privacy#privacy-content" target="_blank">隱私權保護政策</a>。</div><p><button class="btn btn-cookie-agree" type="button">我了解,請關閉提示</button></p></div></div></div> </div> <div id="block-omia-theme-tips"> <div class="plus_pop_bk" id="tips_block" style="display: none;"> <div class="plus_go_subscribe_pop_block" id="tips_block_box"> <div class="plus_pop_header_bar"> <div class="plus_pop_header_bar_text" id="tips_block_title"></div> <div class="plus_pop_close_28x28" id="tips_block_btn_close"></div> </div> <div class="plus_go_subscribe_pop_main"> <div class="plus_go_subscribe_pop_text" id="tips_block_contents"></div> <div class="plus_go_subscribe_pop_btn_list"> <div class="plus_go_subscribe_pop_btn_blue" id="tips_block_btn_left"></div> <div class="plus_go_subscribe_pop_btn_blue_line" id="tips_block_btn_middle"></div> <div class="plus_go_subscribe_pop_btn_red" id="tips_block_btn_right"></div> </div> <div class="plus_go_subscribe_pop_info" id="tips_block_bottom_contents"></div> </div> </div> </div> <script> if($ == undefined) $ = jQuery; let tipsBlock = null; let tipsBlockBtnClose = null; let btnClassBlue = 'plus_go_subscribe_pop_btn_blue'; let btnClassWhite = 'plus_go_subscribe_pop_btn_blue_line'; let btnClassRed = 'plus_go_subscribe_pop_btn_red'; let btnClassCart = 'plus_go_subscribe_pop_btn_cart'; let openPageTipsData = null; $(document).ready(function() { initTipsBlock(); showOpenPageTips(); }); /** * * @param btnClass * btnClassBlue 藍底白字 * btnClassWhite 白底藍字 * btnClassRed 紅底白字 * @param btnText * @param btnEvent */ function getTipsBtnSetting(btnClass, btnText, btnEvent) { return { 'class' : btnClass, 'text' : btnText, 'event' : typeof(btnEvent) == "function" ? btnEvent : null, }; } /** * * @param title * @param contents * @param bottomContents * @param isCanClose * @param tipsSetting 各項設定 * { * 'right' : btnSetting, * 'middle' : btnSetting, * 'left' : btnSetting, * 'contentMargin' : Boolean (有設定並為false時,內容無margin) * } */ function setTipsBlock(title, contents, bottomContents, isCanClose, tipsSetting) { if(tipsBlock.length === 0) return; tipsBlock.removeClass('can_close'); tipsBlockBtnClose.hide(); if(isCanClose === true) { tipsBlock.addClass('can_close'); tipsBlockBtnClose.show(); } let domTitle = $('#tips_block_title'); let domContents = $('#tips_block_contents'); let domBottomContents = $('#tips_block_bottom_contents'); // 設定內容需不需要margin domContents.removeClass('no_margin').removeClass('set_margin'); if(typeof(tipsSetting) != "undefined" && typeof(tipsSetting.contentMargin) == "boolean" && !tipsSetting.contentMargin) { domContents.addClass('no_margin'); } else { domContents.addClass('set_margin'); } domTitle.html(title); domContents.html(contents); domBottomContents.html(bottomContents); let domBtnLeft = $('#tips_block_btn_left'); let domBtnMiddle = $('#tips_block_btn_middle'); let domBtnRight = $('#tips_block_btn_right'); domBtnLeft.hide(); domBtnMiddle.hide(); domBtnRight.hide(); domBtnLeft.off('click'); domBtnMiddle.off('click'); domBtnRight.off('click'); // 未設定按鈕,套用預設功能 if(typeof(tipsSetting) == "undefined" || (typeof(tipsSetting.right) == "undefined" && typeof(tipsSetting.middle) == "undefined" && typeof(tipsSetting.left) == "undefined")) { if(isCanClose) { domBtnRight.attr('class', btnClassBlue); domBtnRight.show(); domBtnRight.html('確定'); domBtnRight.on('click', function() { setTipsBlockShown(false); }); } return; } if(domBtnRight.length > 0 && typeof(tipsSetting.right) != "undefined") { domBtnRight.show(); domBtnRight.html(tipsSetting.right.text); domBtnRight.attr('class', btnClassBlue); if(tipsSetting.right.class.length > 0) domBtnRight.attr('class', tipsSetting.right.class); if(tipsSetting.right.event != null) domBtnRight.on('click', tipsSetting.right.event); } if(domBtnMiddle.length > 0 && typeof(tipsSetting.middle) != "undefined") { domBtnMiddle.show(); domBtnMiddle.html(tipsSetting.middle.text); domBtnMiddle.attr('class', btnClassBlue); if(tipsSetting.middle.class.length > 0) domBtnMiddle.attr('class', tipsSetting.middle.class); if(tipsSetting.middle.event != null) domBtnMiddle.on('click', tipsSetting.middle.event); } if(domBtnLeft.length > 0 && typeof(tipsSetting.left) != "undefined") { domBtnLeft.show(); domBtnLeft.html(tipsSetting.left.text); domBtnLeft.attr('class', btnClassBlue); if(tipsSetting.left.class.length > 0) domBtnLeft.attr('class', tipsSetting.left.class); if(tipsSetting.left.event != null) domBtnLeft.on('click', tipsSetting.left.event); } } function initTipsBlock() { tipsBlock = $('#tips_block'); tipsBlockBtnClose = $('#tips_block_btn_close'); if(tipsBlock.length === 0) return; $('#tips_block_box').on('click', function(e) { e.stopPropagation(); }); tipsBlock.on('click', function(e) { if(tipsBlock.hasClass('can_close')) setTipsBlockShown(false); }); tipsBlockBtnClose.on('click', function() { if(tipsBlock.hasClass('can_close')) setTipsBlockShown(false); }); } function setTipsBlockShown(isShow) { if(tipsBlock.length === 0) return; if(isShow) tipsBlock.show(); else tipsBlock.hide(); } // 顯示Tips,Plus未訂閱導月租介紹 function showPlusUnsubscribeTips() { if(tipsBlock.length === 0) return; let tipsSetting = { 'right' : getTipsBtnSetting(btnClassBlue, '訂閱OMIA PLUS', function() { window.location = '/plus/intro'; }), }; let bottomContents = '<a href="/experience/subscribe">使用OMIA PLUS服務序號,請由此兌換</a>'; setTipsBlock('', '您尚未訂閱OMIA PLUS,訂閱OMIA PLUS即可享受學習!', bottomContents, true, tipsSetting); setTipsBlockShown(true); } // 顯示基本Tips,只有訊息與確定按鈕 function showBaseTips(msg) { setTipsBlock('', msg, '', true); setTipsBlockShown(true); } function showOpenPageTips() { if($.isEmptyObject(drupalSettings.omia.openPageTipsData)) return; openPageTipsData = drupalSettings.omia.openPageTipsData; if($.isEmptyObject(openPageTipsData.tipsType)) return; switch (openPageTipsData.tipsType) { case 'maintain_close_cart': showBaseTips(openPageTipsData.tipsTitle); break; case 'chunghwa_unbind_email': showChunghwaBindEmailTips(true); break; } } // 顯示Tips,中華會員導綁email function showChunghwaBindEmailTips(isCheckDate) { if(tipsBlock.length === 0 || !userIsLogin()) return; if($.isEmptyObject(drupalSettings.omia.chunghwaTipsData)) return; let chunghwaTipsData = drupalSettings.omia.chunghwaTipsData; if($.isEmptyObject(chunghwaTipsData.tipsTitle) || $.isEmptyObject(chunghwaTipsData.tipsContents)) return; // 判斷要不要顯示Tips,一天只出現一次 if(isCheckDate == true) { let cookieKey = 'ChunghwaBindEmailTips_' + currentUserId; let cookieData = $.cookie(cookieKey); let nowDate = getCurrentDateString(false); if(cookieData != undefined && cookieData == nowDate) return; $.cookie(cookieKey, nowDate, { path: "/", expires:2}); } let tipsSetting = { 'left' : getTipsBtnSetting(btnClassBlue, '帳號設定', function() { window.location = '/account-setting'; }), 'right' : getTipsBtnSetting(btnClassWhite, '稍後設定', function() { setTipsBlockShown(false); }), }; let bottomContents = chunghwaTipsData.tipsBottomContents ?? ''; let content = '<div class="chunghwaBindEmailTipsTitle">' + chunghwaTipsData.tipsTitle + '</div>'; content += '<div class="chunghwaBindEmailTipsContent">' + chunghwaTipsData.tipsContents + '</div>'; setTipsBlock('', content, bottomContents, false, tipsSetting); setTipsBlockShown(true); } </script> </div> <div id="block-omia-theme-news"> <div class="foot-icons"> <div id="event-bar" class="event-bar"> <div class="event-icon"style="display: none;"></div> <div class="in-event-bar" style="display: none;"> <div class="close-button"></div> <div class="event-logo"><img src="https://www.omia.com.tw/sites/default/files/block/field_img/right_event_header.png"></div> <div class="event-body"> <ul class="event-list"> <li> <a href="https://www.omia.com.tw/plus/intro?click_from=omia_new" target="_blank"> <div class="an-event-body"><p><span style="color:#019858;"><strong>課程無限看✨</strong></span><span style="color:#CE3879;"><strong>輕鬆月付</strong></span></p></div> </a> </li> <li> <a href="https://www.omia.com.tw/promotion?click_from=omia_new" target="_blank"> <div class="an-event-body"><p><span style="color:#019858;"><strong>春日學習🌸拿好禮</strong></span></p></div> </a> </li> <li> <a href="https://www.omia.com.tw/workingplus?click_from=omia_new" target="_blank"> <div class="an-event-body"><p><span style="color:#0000E3;"><strong>陳宗賢教授</strong></span><span style="color:#F75000;"><strong>企管課首選</strong></span></p></div> </a> </li> </ul> </div> </div> </div> <li class="to-top"></li><!-- 當 scrollbar = 0 的時候不出現 --> </div> <script type="application/javascript"> (function ($) { $('.to-top').hide(); $(window).scroll(function () { var scrollVal = $(this).scrollTop(); if(scrollVal > 0){ $('.to-top').show("fast"); }else{ $('.to-top').hide("fast"); } }); $(".to-top").click(function(){ // $('html,body').animate({ scrollTop: 0 }, 'slow'); window.scrollTo({ top: 0, behavior: 'smooth' }); }); window.onload = function() { var status = 0; if($.cookie('event_open') && $.cookie('event_open')==1){ status = 1; $('.in-event-bar').hide(); $('.event-icon').show(); }else{ status = 0; $('.in-event-bar').show('fast'); $('.event-icon').hide('fast'); } $(".close-button").click(function(){ $('.in-event-bar').hide('fast'); $('.event-icon').show('fast'); //紀錄七天 $.cookie('event_open',1,{ path: "/" ,domain : "."+window.location.host ,expires:5 * 7}); }); $(".event-icon").click(function(){ $('.in-event-bar').show('fast'); $('.event-icon').hide('fast'); //紀錄七天 $.cookie('event_open',0,{ path: "/" ,domain : "."+window.location.host ,expires:5 * 7}); }); }; }(jQuery)); </script> </div> </div> </footer> </div> </div> <script src="/core/assets/vendor/tabbable/index.umd.min.js?v=1743413518"></script> <script src="/modules/contrib/google_tag/js/gtm.js?v=1743413518"></script> <script src="/modules/contrib/google_tag/js/gtag.js?v=1743413518"></script> <script src="/core/misc/progress.js?v=1743413518"></script> <script src="/core/assets/vendor/loadjs/loadjs.min.js?v=1743413518"></script> <script src="/core/misc/debounce.js?v=1743413518"></script> <script src="/core/misc/announce.js?v=1743413518"></script> <script src="/core/misc/message.js?v=1743413518"></script> <script src="/core/misc/ajax.js?v=1743413518"></script> <script src="/modules/contrib/google_tag/js/gtag.ajax.js?v=1743413518"></script> <script src="/modules/omia/js/common/vue.min.js?v=1743413518"></script> <script src="/modules/omia/js/common/vue-resource.min.js?v=1743413518"></script> <script src="/modules/omia/js/user/profile.js?v=1743413518"></script> </body> </html>

Pages: 1 2 3 4 5 6 7 8 9 10