Pārlūkot izejas kodu

placeholder txt

huai-sian 3 gadi atpakaļ
vecāks
revīzija
692431c820

+ 1 - 1
html/make_video.html

@@ -285,7 +285,7 @@
                         <!-- fieldsets -->
                         <fieldset>
                             <h3 class="fs-subtitle"><lan set-lan="html:video_title">標題</lan><img class="ms-1" src="static/img/question.png" alt="" data-bs-toggle="tooltip" data-bs-placement="right" title="將作為影片的內嵌標題 The title of your video"></h3>            
-                            <input id=title type="text" name='t1' class='title_new' set-lan="placeholder:video_title" /> <br/>
+                            <input id=title type="text" name='t1' class='title_new' value="" placeholder="標題"/> <br/>
                         </fieldset>
                         <fieldset>
                             <h3  class="fs-subtitle"><lan set-lan="html:choose_character">選擇人物</lan><img class="ms-1" src="static/img/question.png" alt="" data-bs-toggle="tooltip" data-bs-placement="right" title="將作為影片的講者 The spokesgirl of your video"></h3>            

+ 1 - 1
html/make_video2.html

@@ -285,7 +285,7 @@
                         <!-- fieldsets -->
                         <fieldset>
                             <h3 class="fs-subtitle"><lan set-lan="html:video_title">標題</lan><img class="ms-1" src="static/img/question.png" alt="" data-bs-toggle="tooltip" data-bs-placement="right" title="將作為影片的內嵌標題 The title of your video"></h3>            
-                            <input id=title type="text" name='t1' class='title_new' value="" set-lan="placeholder:video_title" /> <br/>
+                            <input id=title type="text" name='t1' class='title_new' value="" placeholder="標題" /> <br/>
                         </fieldset>
                         <fieldset>
                             <h3  class="fs-subtitle"><lan set-lan="html:choose_character">選擇人物</lan><img class="ms-1" src="static/img/question.png" alt="" data-bs-toggle="tooltip" data-bs-placement="right" title="將作為影片的講者 The spokesgirl of your video"></h3>            

+ 1 - 1
html/make_video_slide.html

@@ -238,7 +238,7 @@
                                     data-bs-placement="right" title="請輸入Google Slides連結 Google Slides Link">
                             </h3>
                             <input id=slide_raw_url type="text" name='t1' class='title_new' value=""
-                                set-lan="placeholder:slide_link" /><label for="myCheck"
+                                placeholder="SLIDE連結(連結須為公開共用)" /><label for="myCheck"
                                 set-lan="html:add_eng">加入英文:</label>
                             <input type="checkbox" id="multiLang"> <br />
                         </fieldset>

+ 1 - 1
html/make_video_slide_eng.html

@@ -181,7 +181,7 @@
                         <!-- fieldsets -->
                         <fieldset>
                             <h3 class="fs-subtitle"><lan">SLIDE Link</lan><img class="ms-1" src="static/img/question.png" alt="" data-bs-toggle="tooltip" data-bs-placement="right" title="請輸入Google Slides連結 Google Slides Link"></h3>
-                            <input id=slide_raw_url type="text" name='t1' class='title_new' value="" set-lan="placeholder:slide_link"/>
+                            <input id=slide_raw_url type="text" name='t1' class='title_new' value="" placeholder="SLIDE Link (Slides must be Shared With Everyone)"/>
                             <!-- <label for="myCheck">Allow English Lines::</label> 
                             <input type="checkbox" id="multiLang" > <br/> -->
                         </fieldset>

+ 20 - 2
html/script_profile.js

@@ -49,6 +49,21 @@ function renderView() {
     if(!token) {
         window.location.replace("login.html");
     }
+    JsLoadingOverlay.show({
+      "overlayBackgroundColor": "#666666",
+      "overlayOpacity": 0.9,
+      "spinnerIcon": "ball-circus",
+      "spinnerColor": "#000",
+      "spinnerSize": "3x",
+      "overlayIDName": "overlay",
+      "spinnerIDName": "spinner",
+      "offsetX": 0,
+      "offsetY": 0,
+      "containerID": null,
+      "lockScroll": false,
+      "overlayZIndex": 99,
+      "spinnerZIndex": 100
+    });
     axios({
         method: 'post',
         url: 'https://www.choozmo.com:8887/user_profile',
@@ -82,7 +97,7 @@ function renderView() {
                 confirmButtonText
             }).then(result => {
               if (result.isConfirmed) {
-                location.href = "pricing.html";
+                window.open('pricing.html');
               }
             });
           }
@@ -166,8 +181,11 @@ function renderView() {
         $('.used-time').html(usedtime);
         $('.not-used-time').html(NotUsedTime);
         $('.card-profile').html(str);
-            $('.card-profile').html(str);
+        $('.card-profile').html(str);
+
+        JsLoadingOverlay.hide();
     }).catch(err => {
+        JsLoadingOverlay.hide();
         console.log(err);
         //window.location.replace("login.html");
     })

+ 1 - 1
html/static/lan.js

@@ -198,7 +198,7 @@ var en = {
     "add_eng": "Allow English Lines:",
     "submit": "Submit",
     "privacy_term": "I Agree to privacy policy and terms of use.",
-    "privacy_term_1": "Registeration implies acception of ",
+    "privacy_term_1": "Registeration implies acception of",
     "privacy_term_2": "terms of use",
     "privacy_term_3": "and",
     "privacy_term_4": "privacy policy",

+ 12 - 2
html/static/script_util2.js

@@ -61,6 +61,7 @@ function checkLan() {
   if(lan == 'en') {
     $('.btn-makev').css('display', 'none');
     $('.btn-makelong').css('display', 'none');
+    $('.title_new').attr('placeholder', 'Title')
   } else {
     $('.btn-makev').css('display', 'block');
     $('.btn-makelong').css('display', 'block');
@@ -437,7 +438,10 @@ function load_data(tid, loaded_data, draft = false) {
           if(!historyItem.image_urls[i]) {
             imginput.value = "";
           }
-          imginput.setAttribute('placeholder', 'https://example.com/4VKBo9w.png');
+          imginput.setAttribute('placeholder', '輸入圖片網址或上傳圖片');
+          if(lan == 'en') {
+            imginput.setAttribute('placeholder', 'Type in image link or upload image');
+          }
           img_box.appendChild(imginput);
 
           // img upload input
@@ -624,6 +628,9 @@ function renderInputSec(i) {
   txtinput.classList.add('txtsrc', `txtsrc${i}`);
   txtinput.value = "";
   txtinput.setAttribute('placeholder', `台詞`);
+  if(lan == 'en') {
+    txtinput.setAttribute('placeholder', `Line`);
+  }
   input_sec.appendChild(txtinput);
 
   // img url input
@@ -632,7 +639,10 @@ function renderInputSec(i) {
   imginput.setAttribute('name', `m${i}`);
   imginput.classList.add('imgsrc', `imgsrc${i}`);
   imginput.value = "";
-  imginput.setAttribute('placeholder', 'https://example.com/4VKBo9w.png');
+  imginput.setAttribute('placeholder', '輸入圖片網址或上傳圖片');
+  if(lan == 'en') {
+    imginput.setAttribute('placeholder', 'Type in image link or upload image');
+  }
   img_box.appendChild(imginput);
 
   // img upload input

+ 2 - 1
html/user_profile2.html

@@ -328,7 +328,8 @@
                                                                 style="position: relative; bottom:2px;">Facebook</span>
                                                         </div> -->
                                                         <a class="mx-2 mx-lg-4 share-fb text-center"
-                                                            href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fvideo.choozmo.com">
+                                                            href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fvideo.choozmo.com"
+                                                            target="_blank">
                                                             <img width="28" class="me-2"
                                                                 src="./static/img/userprofile/Icon awesome-facebook-square.png"
                                                                 alt="">