| 
					
				 | 
			
			
				@@ -2,6 +2,8 @@ const btnLoginPage = document.querySelector('.btn-login'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 const btnUserProfile = document.querySelector('.btn-userProfile'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 const btnLogout = document.querySelector('.btn-logout'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+let lan = localStorage.getItem('lan'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 function getCookie(name) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     const value = `; ${document.cookie}`; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     const parts = value.split(`; ${name}=`); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -39,19 +41,19 @@ function renderView() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             let title = "剩餘秒數不足"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             let text = '您的影片額度即將不足,加值以持續使用'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             let confirmButtonText = '加值'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    if (lang == 'en') { // 英文版訊息 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    if (lan == 'en') { // 英文版訊息 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         title = "Insufficient seconds left!"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         text = 'Your seconds left is less than 20 seconds, refill to continue making videos.'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         confirmButtonText = 'Refill'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             Swal.fire({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                title: title, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                text: '您的影片額度即將不足,加值以持續使用', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                title, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                text, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 icon: 'warning', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 showCancelButton: true, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 cancelButtonText: 'Cancel', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 confirmButtonColor: '#3085d6', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                confirmButtonText: '加值' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                confirmButtonText 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             }).then(result => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               if (result.isConfirmed) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 location.href = "pricing.html"; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -87,7 +89,7 @@ function renderView() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </div>`; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         // 使用者名稱 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        const userName = `<h2 class="user-name text-white mt-4 fw-bold">Hello,${userInfo.user_info.userName}</h2>`; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        const userName = `<h2 class="user-name text-white mt-4 fw-bold">Hi ${userInfo.user_info.userName}</h2>`; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         // 已使用 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         const usedtime=`<h1 class="text-center">${userInfo.user_info.total_sec} <span style="font-size:15px;" set-lan="html:sec">秒</span></h1>`; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         // 未使用 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -339,32 +341,58 @@ $('.share-email').click(function() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   &body=${encodeURIComponent('I just created a video in 5 minutes, check out this amazing video making tool. https://video.choozmo.com/')}`; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     window.location.href = link; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+}); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 function trialStart() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  let title = "歡迎使用AiSpokesgirl!將你的生活、創作 、宣傳做成影片。"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  let html = `<p>您有  <b> 2 </b>  分鐘影片製作額度。</p><br> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              <p>您可以使用:</p> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              <ul> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                <li>1. 短影片製作</li> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                <li>2. 個人歷史紀錄儲存</li> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                <li>3. 影片下載(Mp4)</li> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              </ul> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              <p>欲使用其他功能請升級為Premium方案</p>`; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  let confirmButtonText = '我知道了!'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  if (lan == 'en') {  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    title = "Welcome to AiSpokesgirl! Make your first video for promotion, creation and life today!"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    html = `<p>You get<b>2</b>minutes of video</p><br> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <p>Here are several features you can try,</p> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <ul> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              <li>1. Short video creation</li> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              <li>2. Personal video history</li> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              <li>3. Downloadable format (MP4)</li> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            </ul> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <p>Want to access more features? Follow the link below to upgrade to a paid plan today.</p>`; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    confirmButtonText = 'OK'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   Swal.fire({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    title: '歡迎使用AiSpokesgirl!將你的生活、創作 、宣傳做成影片。', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    html: `<p>您有<b>2</b>分鐘影片製作額度。</p><br> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    <p>您可以使用:</p> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    <ul> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      <li>1. 短影片製作</li> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      <li>2. 個人歷史紀錄儲存</li> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      <li>3. 影片下載(Mp4)</li> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    </ul> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    <p>欲使用其他功能請升級為Premium方案</p>`, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    title, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    html, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     icon: 'success', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     confirmButtonColor: '#3085d6', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    confirmButtonText: '我知道了!' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    confirmButtonText 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 function trialEnd() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  let title = "您的試用即將結束!好的idea值得延續,透過影片將你的idea完整呈現。"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  let html = `<p>前往網站以升級為Premium方案,或是聯絡我們以洽詢細節。</p>`; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  let confirmButtonText = '立即升級'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  if (lan == 'en') {  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    title = "Your trial is gonna over soon. Your idea worth spreading."; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    html = `<p>All good things don't have to come to an end.</p><br> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <h5>Show your idea through video</h5><br> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <p>Want to access more features? Follow the link below to upgrade  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            to a paid plan today or contact us get further details.</p>`; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    confirmButtonText = 'Upgrade Now'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   Swal.fire({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    title: '您的試用即將結束!好的idea值得延續,透過影片將你的idea完整呈現。', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    html: `<p>前往網站以升級為Premium方案,或是聯絡我們以洽詢細節。</p>`, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    title, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    html, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     icon: 'success', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     confirmButtonColor: '#3085d6', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    confirmButtonText: '立即升級' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    confirmButtonText 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   }).then(result => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     if (result.isConfirmed) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       location.href = "pricing.html"; 
			 |