Browse Source

reset pwd email

huai-sian 3 years ago
parent
commit
14fa33e375
5 changed files with 13 additions and 13 deletions
  1. BIN
      .DS_Store
  2. BIN
      api/.DS_Store
  3. 7 7
      html/reset_pwd_email.html
  4. 3 3
      html/reset_pwd_email.js
  5. 3 3
      html/static/script_util.js

BIN
.DS_Store


BIN
api/.DS_Store


+ 7 - 7
html/reset_pwd_email.html

@@ -59,12 +59,12 @@
                 <li class="nav-item">
                     <a class="nav-link active btn-login" aria-current="page" href="login.html" set-lan="html:login">登入</a>
                 </li>
-                <li class="nav-item">
+               <!--  <li class="nav-item">
                     <a class="nav-link btn-userProfile" aria-current="page" href="./user_profile2.html" set-lan="html:user_profile">會員資料</a>
                 </li>
                 <li class="nav-item">
                     <a class="nav-link btn-logout" aria-current="page" set-lan="html:logout">登出</a>
-                </li>
+                </li> -->
             </ul>
         </div>
     </div>
@@ -75,24 +75,24 @@
                 <a href="index.html"><img class="img-fluid w-50 ps-1" src="./static/img/contactus/CMM_LOGO.png" alt=""></a>
                 <h2 class="fw-bold ps-0" href="index.html"><a class="nav-link active ps-1" aria-current="page" href="index.html">AI Spokesgirl</a></h2>
             </div>
-            <div class="userName"></div> 
+            <!-- <div class="userName"></div>  -->
             <img class="user img-fluid rounded-circle" src="./static/img/userprofile/userimg.png" alt="">
             <p class="text-white my-3 text-center" set-lan="html:Createsthtoday">今天要做甚麼影片呢?</p>
-            <div class="navbar-nav mb-2 mb-lg-0 px-3 pe-4">
+            <!-- <div class="navbar-nav mb-2 mb-lg-0 px-3 pe-4">
                 <a class="nav-link btn-gocreate text-white col-6 btn-makev" aria-current="page" href="./make_video.html" set-lan="html:make_video">影片製作</a>
                 <a class="nav-link btn-gocreate text-white col-6 btn-makelong" aria-current="page" href="./make_video_long.html" set-lan="html:make_video_long">長影片製作</a>
             </div>
             <div class="navbar-nav mb-2 mb-lg-0 px-3 pe-4">
                 <a class="nav-link btn-gocreate text-white col-6 btn-makeppt" aria-current="page" href="./make_video_slide.html" set-lan="html:make_slides">投影片影片製作</a>
                 <a class="nav-link btn-gocreate text-white col-6 btn-makeen" aria-current="page" href="./index_eng.html" set-lan="html:make_video_eng">純英文影片製作</a>
-            </div>
+            </div> -->
             <hr>
             <ul class="nav-list ps-0">
                 <li class="nav-list-item pb-1 mb-3" data-bs-toggle="modal" data-bs-target="#howto"><i
                         class="fas fa-book-open me-2"></i>
                     <lan set-lan="html:usage_intro">使用說明</lan>
                 </li>
-                <a style="text-decoration: none;color:white;" href="./user_profile2.html">
+                <!-- <a style="text-decoration: none;color:white;" href="./user_profile2.html">
                     <li class="nav-list-item pb-1 mb-3" data-bs-toggle="modal">
                         <i class="fas fa-user me-2"></i>
                         <lan set-lan="html:user_profile">會員資料</lan>
@@ -101,7 +101,7 @@
                 <li class="nav-list-item pb-1" data-bs-toggle="modal" data-bs-target="#history" onclick="openNav()">
                     <i class="fas fa-history me-2"></i>
                     <lan set-lan="html:history">歷史紀錄</lan>
-                </li>
+                </li> -->
             </ul>
             <div class="right-text">
                 <a target="_blank" href="http://www.choozmo.com/">| 官網 |</a>

+ 3 - 3
html/reset_pwd_email.js

@@ -3,9 +3,9 @@ const btnLoginPage = document.querySelector('.btn-login');
 const btnUserProfile = document.querySelector('.btn-userProfile');
 const btnLogout = document.querySelector('.btn-logout');
 function loginControl() {
-  btnLoginPage.style.display = 'none';
-  btnLogout.style.display = 'block';
-  btnUserProfile.style.display = 'block';
+  btnLoginPage.style.display = 'block';
+  btnLogout.style.display = 'none';
+  btnUserProfile.style.display = 'none';
 }
 
 loginControl();

+ 3 - 3
html/static/script_util.js

@@ -10,9 +10,9 @@ if(userBasics !== [] && typeof(userBasics) !== 'string'){
 
 function checkRoute() {
   let jwt_token = get_jwt_token();
-  // if(jwt_token == undefined) {
-  //   window.location.replace("login.html");
-  // }
+  /* if(jwt_token == undefined) {
+    window.location.replace("login.html");
+  } */
   axios({
     method: 'post',
     url: 'https://www.choozmo.com:8887/user_profile',