| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446 | 
							- //設定cookie
 
- function setCookie(name,value)
 
- {
 
-     var Days = 30;
 
-     var exp = new Date();
 
-     exp.setTime(exp.getTime() + Days*24*60*60*1000);
 
-     document.cookie = name + "="+ escape (value) + ";expires=" + exp.toGMTString();
 
- }
 
- //獲取cookie
 
- function getCookie(name)
 
- {
 
-     var arr,reg=new RegExp("(^| )"+name+"=([^;]*)(;|$)");
 
-     if(arr=document.cookie.match(reg))
 
-     return unescape(arr[2]);
 
-     else
 
-     return null;
 
- }
 
- // 讀取語系設定
 
- let lang = localStorage.getItem('lan');
 
- console.log('目前語系設定: ' + lang); // test
 
- if(lang == null) {
 
-     console.log('未設定語系'); // test
 
-     
 
-     // 自動設定語系
 
-     var userlang = window.navigator.userLanguage || window.navigator.language;
 
-     userlang = userlang.toLowerCase();
 
-     console.log('userlang: ' + userlang); // test
 
-     if (userlang == 'zh-tw') {
 
-         console.log('自動設定語系: 繁體中文');
 
-         lang = 'zh';
 
-     } else if (userlang == 'en-us') {
 
-         console.log('自動設定語系: 英文');
 
-         lang = 'en';
 
-     } else if (userlang == 'zh-cn') {
 
-         console.log('自動設定語系: 繁體中文');
 
-         lang = 'zh';
 
-     } else {
 
-         console.log('自動設定語系: 繁體中文');
 
-         lang = 'zh';
 
-     }
 
- }
 
- var zh = {
 
-     "logleftbox1": "將你的生活、創作 、宣傳做成影片",
 
-     "logleftbox2": "開始使用 AI Spokesgirl",
 
-     "make_video" : "影片製作",
 
-     "make_slides" : "投影影片製作",
 
-     "make_video_long": "長影片製作",
 
-     "make_video_eng": "純英文影片製作",
 
-     "login" : "登入",
 
-     "login_link" : "立即登入",
 
-     "user_profile": "會員資料",
 
-     "logout": "登出",
 
-     "logout-m": "<i class='fas fa-sign-out-alt text-white me-3'></i>登  出",
 
-     "en": "English",
 
-     "zh": "中文",
 
-     "choose_character": "選擇人物",
 
-     "usage_intro": "使用說明",
 
-     "history": "歷史紀錄",
 
-     "preview_videos": "預覽影片",
 
-     "video_link":  "影片連結",
 
-     "video_title": "標題",
 
-     "p_choose_character": "請選擇人物",
 
-     "lines": "台詞",
 
-     "img_link": "影像連結",
 
-     "content": "內容素材",
 
-     "processing_progress": "處理進度",
 
-     "usage_intro": "使用說明",
 
-     "one_line_to_one_img": "1. 一句台詞請對應提供一個影像連結做為搭配",
 
-     "sup_img_profile": "2. 影像連結檔案格式支援:",
 
-     "submit_to_wait": "3. 點選“送出”之後需等待一段影片製作的時間,請您耐心等候,待製作完畢可於通知網址查看",
 
-     "add_eng": "加入英文:",
 
-     "submit": "送出",
 
-     "privacy_term": "同意隱私政策及使用條款",
 
-     "newHere": "還沒有帳號?",
 
-     "oldHere": "已經有帳號?",
 
-     "goRegister": "註冊",
 
-     "goRegister_link": "立即註冊",
 
-     "pricing" : "早鳥方案",
 
-     "pricing-m" : "<i class='fas fa-tags me-2'></i> 早鳥方案",
 
-     "errorEmail": "請輸入正確E-mail",
 
-     "errorPsd": "密碼至少為4個字元",
 
-     "used": "已使用",
 
-     "left": "未使用",
 
-     "sec": "秒",
 
-     "username": "帳號/用戶名稱",
 
-     "password": "密碼",
 
-     "resetPsd": "更改密碼",
 
-     "forgotPsd": "忘記密碼",
 
-     "details": "查看詳情",
 
-     "refill": "我要加值",
 
-     "Createsthtoday": "今天要做甚麼影片呢?",
 
-     "date": "日期",
 
-     "video_duration": "影片時間",
 
-     "slide_link": "SLIDE 連結",
 
-     "new_pwd": "新密碼",
 
-     "confirm_pwd": "驗證碼",
 
-     "pricing_lan": "語言選擇: 中文 | 英文",
 
-     "pricing_avatars": "多款預設AI代言主播任你選",
 
-     "pricing_content": "畫面素材支援: 圖檔 | 影檔 | 簡報",
 
-     "pricing_discount": "限時優惠",
 
-     "pricing_checkout": "立即查看",
 
-     "mins": "分鐘",
 
-     "launch_special": "早鳥方案",
 
-     "index_li1_1": "支援中英文內容",
 
-     "index_li1_2": "可加入字幕",
 
-     "index_li2_1": "無人物肖像權問題",
 
-     "index_li2_2": "人物表情、動作自然",
 
-     "index_li2_3": "因應主題,選擇合適人物",
 
-     "index_li3_1": "可上傳圖片或是影片作為背景",
 
-     "index_li3_2": "可輸入文字腳本及投影片",
 
-     "index_action": "想要快速製作影音內容?立即註冊,開始創作!",
 
-     "follow_us": "關注我們",
 
-     "contact_name": "集仕多股份有限公司",
 
-     "address": "新竹縣竹北市復興二路229號9樓之9",
 
-     "contact_tel": "聯絡電話",
 
-     "contact_mail": "聯絡信箱",
 
-     "draft_edit": "編輯",
 
-     "drafts": "草稿夾",
 
-     "save_draft_btn": "存為草稿",
 
-     "upload_file": "上傳檔案",
 
-     "intro_img": "static/img/intro2.jpg",
 
-     "no_draft": "目前沒有草稿喔",
 
-     "trial_title": "想要免費獲得更多時間額度?",
 
-     "trial_txt": "透過社群分享專屬連結,邀請好友註冊 AI Spokesgirl,凡是好友透過連結註冊成功,您可以免費獲得2分鐘製作額度。",
 
-     "share": "分享",
 
-     "close": "關閉",
 
-     "steps_title": "步驟快速合成影片",
 
-     "steps_no1": "選擇AI人物",
 
-     "steps_no2": "輸入腳本文字",
 
-     "steps_no3": "輸入圖片素材",
 
-     "try_it_out": "立即開始",
 
-     "demo_link": "./make_video.html",
 
-     "usecase_1": "產品介紹",
 
-     "usecase_2": "教育培訓",
 
-     "usecase_3": "氣象播報",
 
-     "usecase_4": "新聞播報",
 
-     "usecase_5": "個人內容創作",
 
-     "usecase_6": "觀光導覽",
 
-     "usecase_7": "展覽導覽",
 
-     "usecase_8": "廣告行銷",
 
-     "usecase_9": "機構資訊宣導",
 
-     "hero_title": "製作影片 一鍵合成",
 
-     "hero_txt1": "輸入文字素材,即速產生影片",
 
-     "hero_txt2": "創作影片,不再需要錄影機、演員、麥克風繁雜器材。",
 
-     "hero_txt3": "大幅省下時間、人力、器材成本。",
 
-     "feature": "大特色",
 
-     "feature_no1_title1": "輸入文字腳本及素材",
 
-     "feature_no1_title2": "一鍵輸出合成影片",
 
-     "feature_no2_title": "多位AI虛擬人物選擇",
 
-     "feature_no3_title": "投影片轉製為影片",
 
-     "feature_no4_title": "多語言支援",
 
-     "feature_no1_li1": "只需等待數分鐘即產製完成",
 
-     "feature_no1_li2": "可上傳圖片或是影片作為背景",
 
-     "feature_no1_li3": "生成MP4檔",
 
-     "feature_no2_li1": "無人物肖像權問題",
 
-     "feature_no2_li2": "人物表情、動作自然",
 
-     "feature_no2_li3": "因應主題,選擇合適人物",
 
-     "feature_no3_li1": "輸入文字腳本及投影片連結,一鍵完成影片",
 
-     "feature_no3_li2": "生成MP4檔",
 
-     "feature_no4_li1": "支援中英文內容",
 
-     "feature_no4_li2": "可加入字幕",
 
-     "make_video_hand": "手動製作影片",
 
-     "make_video_auto": "自動影片製作",
 
-     "make_video_trial": "免費註冊使用",
 
-     "application":"實際應用",
 
-     "5G_network": "5G網路",
 
-     "metaverse": "元宇宙",
 
-     "local_news": "地方日報",
 
-     "index-about": "簡介",
 
-     "index-features": "特色",
 
-     "index-videos": "影片導覽",
 
-     "index-steps": "使用流程",
 
-     "index-usecases": "應用情境",
 
-     "index-demo": "即時展示",
 
-     "time-lapse": "操作影片",
 
-     "index_title1": "強大的Ai虛擬代言人",
 
-     "index_title2": "快速生成影片工具",
 
-     "make_video_txt1": "文字轉影片,輕鬆完成",
 
-     "make_video_txt2": "無需演員及相機,一鍵生成影片",
 
-     "make_video_auto_txt": "輸入主題詞,一鍵自動抓取相關資料,自動完成影片",
 
-     "selectDate": "選擇您想製作的日期",
 
-     "Previewweathers": "氣象報導影片內容預覽"
 
- };
 
- var en = {
 
-     "logleftbox1": "Make your first video for promotion, creation and life today",
 
-     "logleftbox2": "Let's get started with AI Spokesgirl",
 
-     "make_video" : "Make Videos",
 
-     "make_slides" : "Make Videos By Slides",
 
-     "make_video_long": "Make Long Videos",
 
-     "make_video_eng": "Make English Video",
 
-     "login" : "Login",
 
-     "login_link" : "Login",
 
-     "user_profile": "User Profile",
 
-     "logout": "Logout",
 
-     "en": "English",
 
-     "zh": "中文",
 
-     "choose_character": "Choose Character",
 
-     "usage_intro": "Usage Introduction",
 
-     "history": "History",
 
-     "preview_videos": "Preview Videos",
 
-     "video_link":  "Video Link",
 
-     "video_title": "Video Title",
 
-     "p_choose_character": "Choose Character",
 
-     "lines": "Lines",
 
-     "img_link": "Image Link",
 
-     "content": "Content",
 
-     "processing_progress": "Processing Progress",
 
-     "usage_intro": "Usage Introduction",
 
-     "one_line_to_one_img": "1. Please Provide an Image Link Corresponding to a Line as a Collocation",
 
-     "sup_img_profile": "2. Supported File Format:",
 
-     "submit_to_wait": "3. After Clicking Submit, You Will Need To Wait For A Period Of Time For The Production Of The Video. Please Wait Patiently. You Can Check It At The Notification URL When The Production Is Completed.",
 
-     "add_eng": "Allow English Lines:",
 
-     "submit": "Submit",
 
-     "privacy_term": "I Agree to privacy policy and terms of use.",
 
-     "newHere": "New here?",
 
-     "oldHere": "Already have an account?",
 
-     "goRegister": "REGISTER",
 
-     "goRegister_link": "REGISTER",
 
-     "pricing" : "Pricing",
 
-     "errorEmail": "Please enter valid Email format.",
 
-     "errorPsd": "Passwords must be at least 4 characters long.",
 
-     "used": "Already Used",
 
-     "left": "Left",
 
-     "sec": "Sec",
 
-     "username": "User Name",
 
-     "password": "Password",
 
-     "resetPsd": "Reset Password",
 
-     "forgotPsd": "Forgot Password",
 
-     "details": "Details",
 
-     "refill": "Refill",
 
-     "Createsthtoday": "Create something today!",
 
-     "date": "Date",
 
-     "video_duration": "Duration",
 
-     "slide_link": "SLIDE Link",
 
-     "new_pwd": "New Password",
 
-     "confirm_pwd": "Confirmation Code",
 
-     "pricing_lan": "Language Options: Ch | Eng",
 
-     "pricing_avatars": "Over 6 Avatars Available",
 
-     "pricing_content": "You can upload: images, MP4, slides",
 
-     "pricing_discount": "Special Discount",
 
-     "pricing_checkout": "Check it out",
 
-     "mins": "Minutes",
 
-     "launch_special": "Launch special",
 
-     "index_li1_1": "Support english & chinese content",
 
-     "index_li1_2": "Caption included",
 
-     "index_li2_1": "Free of portrait rights",
 
-     "index_li2_2": "Natural facial expression",
 
-     "index_li2_3": "Choose built-in avatars for your need",
 
-     "index_li3_1": "Generate videos from text",
 
-     "index_li3_2": "Upload images, video, slides as backgrounds",
 
-     "index_action": "Want to make video faster? Sign up to start creating!",
 
-     "follow_us": "Follow us",
 
-     "contact_name": "Choozmo Inc.",
 
-     "address": "Rm. 9, 9F., No. 229, Fuxing 2nd Rd., Zhubei City, Hsinchu County 302052, Taiwan (R.O.C.)",
 
-     "contact_tel": "Tel",
 
-     "contact_mail": "Email",
 
-     "draft_edit": "Edit",
 
-     "drafts": "Drafts",
 
-     "save_draft_btn": "Save as Draft",
 
-     "upload_file": "Upload",
 
-     "intro_img": "static/img/intro_en.png",
 
-     "no_draft": "No drafts yet.",
 
-     "trial_title": "Want to get more minutes?",
 
-     "trial_txt": "Invite your friends to AI Spokesgirl and for each eligible one that signs up from your referral, we'll give you 2 more minutes free!",
 
-     "share": "Share:",
 
-     "close": "Close",
 
-     "steps_title": "easy steps to create a video",
 
-     "steps_no1": "Select AI avatar",
 
-     "steps_no2": "Type in script",
 
-     "steps_no3": "Upload images/videos",
 
-     "try_it_out": "Try it out",
 
-     "demo_link": "./make_video_eng.html",
 
-     "usecase_1": "Product Walkthrough",
 
-     "usecase_2": "Learning & Development",
 
-     "usecase_3": "Weather Report",
 
-     "usecase_4": "News Report",
 
-     "usecase_5": "Personal Creation",
 
-     "usecase_6": "Sightseeing Guide",
 
-     "usecase_7": "Museum Guide",
 
-     "usecase_8": "Marketing",
 
-     "usecase_9": "Agencies Info",
 
-     "hero_title": "Create AI video at a click!",
 
-     "hero_txt1": "No more actors, cameras and microphones.",
 
-     "hero_txt2": "Make a video by typing and clicking in 3 steps.",
 
-     "hero_txt3": "AI Spokesgirl saves you time and money.",
 
-     "feature": "Features",
 
-     "feature_no1_title1": "Type in script",
 
-     "feature_no1_title2": "Produce video at a click",
 
-     "feature_no2_title": "Over 6 Avatars Available",
 
-     "feature_no3_title": "Slides to video",
 
-     "feature_no4_title": "Language Options: Ch | Eng",
 
-     "feature_no1_li1": "In minutes, you can get a video.",
 
-     "feature_no1_li2": "Upload images, video, slides as backgrounds",
 
-     "feature_no1_li3": "Generate videos from text",
 
-     "feature_no2_li1": "Free of portrait rights",
 
-     "feature_no2_li2": "Natural facial expression",
 
-     "feature_no2_li3": "Choose built-in avatars for your need",
 
-     "feature_no3_li1": "Type in slide link ",
 
-     "feature_no3_li2": "Get downloadable MP4 video",
 
-     "feature_no4_li1": "Support english & chinese content",
 
-     "feature_no4_li2": "Caption included",
 
-     "make_video_hand": "Make Video",
 
-     "make_video_auto": "Auto Video Maker",
 
-     "make_video_trial": "Free Trial",
 
-     "5G_network": "5G Network",
 
-     "application":"Application",
 
-     "metaverse": "Metaverse",
 
-     "local_news": "Local News",
 
-     "index-about": "About",
 
-     "index-features": "Features",
 
-     "index-videos": "Samples",
 
-     "index-steps": "Steps",
 
-     "index-usecases": "Use Cases",
 
-     "index-demo": "Try it",
 
-     "time-lapse": "Time-lapse: Steps",
 
-     "index_title1": "Flexible AI Spokesgirl Solution",
 
-     "index_title2": "Create Video in Minutes",
 
-     "make_video_txt1": "Transfer text to video at a click",
 
-     "make_video_txt2": "No more actors and camera needed. Create a video at a click.",
 
-     "make_video_auto_txt": "Type in keywords or select a date. We would crawl data accrodingly. A video with the latest news is created automatically!",
 
-     "selectDate": "Select A Date",
 
-     "Previewweathers": "Auto Content Preview"
 
- };
 
- function switchLanContent(val){
 
-     $('[set-lan]').each(function(){
 
-         var me = $(this);
 
-         var a = me.attr('set-lan').split(':');
 
-         var p = a[0];   //文字放置位置
 
-         var m = a[1];   //文字標示
 
-         
 
-         //用虎選擇語言後保存在cookie中,這裡讀取cooikes的語言版本
 
-         // var lan = getCookie('lan');
 
-        // console.log(lan);
 
-         //選取語言文字
 
-         switch(val){
 
-             case 'zh':
 
-                 var t = zh[m];  
 
-                 break;
 
-             case 'en':
 
-                 var t = en[m];
 
-                 break;
 
-             default:
 
-                 var t = zh[m];
 
-         }
 
-     
 
-         //所選語言沒有就換
 
-         if(t==undefined) t = en[m];
 
-         if(t==undefined) t = zh[m];
 
-     
 
-         if(t==undefined) return true;   //都沒有就跳出
 
-     
 
-         //文字放置位置有(html,val等,可以自己添加)
 
-         switch(p){
 
-             case 'html':
 
-                 me.html(t);
 
-                 break;
 
-             case 'placeholder':
 
-                 me.attr('placeholder', t);
 
-                 console.log("placeholder");
 
-             case 'val':
 
-             case 'value':
 
-                 me.val(t);
 
-                 break;
 
-             case 'img':
 
-                 me.attr('src', t);
 
-                 break;
 
-             case 'href':
 
-                 me.attr('href', t);
 
-             default:
 
-                 me.html(t);
 
-         }
 
-     
 
-     });
 
- }
 
- changeLang(lang);
 
- function changeLang(val) {
 
-     localStorage.setItem('lan', `${val}`);
 
-     // setCookie('lan', val);
 
-     switchLanContent(val);
 
- }
 
- // 4. 轉換
 
- function changeLan(val) {
 
-     var val = val.value;
 
-     console.log(`val: ${val}`);
 
-     localStorage.setItem('lan', `${val}`);
 
-     // setCookie('lan', val);
 
-     switchLanContent(val);
 
- }
 
- // js裡面的轉換
 
- function get_lan(m)
 
- {
 
-     //獲取文字
 
-     var lan = getCookie('lan');     //語言版本
 
-     //選取語言文字
 
-     switch(lan){
 
-         case 'zh':
 
-             var t = zh[m];
 
-             break;
 
-         case 'hk':
 
-             var t = hk[m];
 
-             break;
 
-         default:
 
-             var t = en[m];
 
-     }
 
-     //如果沒有找到就轉換其他語言
 
-     if(t==undefined) t = zh[m];
 
-     if(t==undefined) t = en[m];
 
-     if(t==undefined) t = hk[m];
 
-     if(t==undefined) t = m; //如果還是沒有就直接用標示
 
-     return t;
 
- }
 
- function direct() {
 
-     console.log(lang);
 
-     if(lang == 'en') {
 
-         window.location.href = './make_video_eng.html';
 
-     } else {
 
-         window.location.href = './make_video.html';
 
-     }
 
- }
 
- function directAuto(){
 
-     if(lang == 'en') {
 
-         window.location.href = './autoMaker_v.html';
 
-     } else {
 
-         window.location.href = './autoMaker_v.html';
 
-     }
 
- }
 
 
  |