Forráskód Böngészése

上傳檔案到 'templates'

miacheng913 3 éve
szülő
commit
9bda3beaed
3 módosított fájl, 15 hozzáadás és 10 törlés
  1. 8 6
      templates/index.html
  2. 3 0
      templates/rigister_test.html
  3. 4 4
      templates/tower.html

+ 8 - 6
templates/index.html

@@ -7,10 +7,12 @@
       <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css"
         rel="stylesheet" integrity="sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x"
         crossorigin="anonymous">
-      <link rel="stylesheet" href="static/index.css">
+        <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.1.0/css/all.css"
+        integrity="sha384-lKuwvrZot6UHsBSfcMvOkWwlCMgc0TaWr+30HWe3a4ltaBwTZhyTEggF5tJv8tbt" crossorigin="anonymous">
+      <link rel="stylesheet" href="/static/index2.css">
       <script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
-      <script type="text/javascript" charset="utf-8" src="static/echarts.js "></script>
-      <script type="text/javascript" src="static/time.js"></script>
+      <script type="text/javascript" charset="utf-8" src="/static/echarts.js "></script>
+      <script type="text/javascript" src="/static/time.js"></script>
       <!-- <script type="text/javascript" charset="utf-8" src="static/echarts-liquidfill.js"></script> -->
       
       <title set-lan="html:title">機械所水塔監控網站 - {% block title %}{% endblock %}</title>
@@ -19,7 +21,7 @@
   <body>
     <nav class="navbar navbar-expand-lg navbar-light">
       <div class="container-fluid">
-        <a class="navbar-brand" href="#"><img src="static/img/PMS_LOGO.png" alt=""></a>
+        <a class="navbar-brand" href="#"><img src="/static/img/PMS_LOGO.png" alt=""></a>
         <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
           <span class="navbar-toggler-icon"></span>
         </button>
@@ -67,8 +69,8 @@
           integrity="sha384-Atwg2Pkwv9vp0ygtn1JAojH0nYbwNJLPhwyoVbhoPwBhjQPR5VtM2+xf0Uwh9KtT"
           crossorigin="anonymous"></script>
       <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
-      <script type="text/javascript" src="static/index.js"></script>
-      <script type="text/javascript" src="static/table.js"></script>
+      <script type="text/javascript" src="/static/index.js"></script>
+      
     </body>
 
 </html>

+ 3 - 0
templates/rigister_test.html

@@ -7,6 +7,8 @@
       <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css"
         rel="stylesheet" integrity="sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x"
         crossorigin="anonymous">
+        <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.1.0/css/all.css"
+        integrity="sha384-lKuwvrZot6UHsBSfcMvOkWwlCMgc0TaWr+30HWe3a4ltaBwTZhyTEggF5tJv8tbt" crossorigin="anonymous">
       <link rel="stylesheet" href="static/index.css">
       <script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
       <script type="text/javascript" charset="utf-8" src="static/echarts.js "></script>
@@ -44,6 +46,7 @@
             <!-- {% block body %} -->
             <form method="post" action="register" class="login_form">
                 <h2>Sign up</h2>
+                <input type="hidden" class="form-control" id="id" name="id" value="0">
                 <div class="mb-3">
                   <label for="username" class="form-label">User name</label>
                   <input type="text" class="form-control" id="username" name="username" placeholder="請輸入帳號">

+ 4 - 4
templates/tower.html

@@ -43,10 +43,10 @@
 </div>
 <div id="tower-box">
     <div id="tower-img" class="card text-white">
-        <select id="tower" class="mb-3" onChange="tower_info();">
-            <option value=0>dev001(水塔名稱)</option>
-        </select>
-        <img src="./img/1630987167905@2x.jpg" class="img-fluid" alt="...">
+        
+        <img src="../static/img/1631004814192.jpg" class="img-fluid" alt="...">
+        <div id="tower">
+        </div>
     </div>
 </div>
 <div id='test'></div>