huaisianhuang преди 3 години
родител
ревизия
8b4eeb06ca
променени са 4 файла, в които са добавени 9 реда и са изтрити 4 реда
  1. 1 1
      html/index.html
  2. 1 1
      html/pricing.html
  3. BIN
      html/static/img/intro_en.png
  4. 7 2
      html/static/lan.js

+ 1 - 1
html/index.html

@@ -70,7 +70,7 @@
     <div class="px-0">
         <div class="text-center">
             <a href="login.html">
-                <img class="img-fluid" src="static/img/intro2.jpg"></img>
+                <img class="img-fluid" src="static/img/intro2.jpg" set-lan="img:intro_img"></img>
             </a>
         </div>
     </div>

+ 1 - 1
html/pricing.html

@@ -123,7 +123,7 @@
                 </div>
                 <div class="col-8">
                     <a href="https://p.ecpay.com.tw/B3701C8" target="_blank">
-                        <img class="img-fluid" src="static/img/intro2.jpg"></img>
+                        <img class="img-fluid" src="static/img/intro2.jpg" set-lan="img:intro_img"></img>
                     </a>
                 </div>
             </div>

BIN
html/static/img/intro_en.png


+ 7 - 2
html/static/lan.js

@@ -94,7 +94,8 @@ var zh = {
     "draft_edit": "編輯",
     "drafts": "草稿夾",
     "save_draft_btn": "存為草稿",
-    "upload_file": "上傳檔案"
+    "upload_file": "上傳檔案",
+    "intro_img": "static/img/intro2.jpg"
 };
 
 var en = {
@@ -168,7 +169,8 @@ var en = {
     "draft_edit": "Edit",
     "drafts": "Drafts",
     "save_draft_btn": "Save as Draft",
-    "upload_file": "Upload"
+    "upload_file": "Upload",
+    "intro_img": "static/img/intro_en.png"
 };
 
 function switchLanContent(val){
@@ -211,6 +213,9 @@ function switchLanContent(val){
             case 'value':
                 me.val(t);
                 break;
+            case 'img':
+                me.attr('src', t);
+                break;
             default:
                 me.html(t);
         }