tianyun преди 1 година
родител
ревизия
4f4d9ced90
променени са 5 файла, в които са добавени 47 реда и са изтрити 12 реда
  1. 7 0
      simple-demo/excalidraw-versions.html
  2. 1 0
      simple-demo/excalidraw_all.html
  3. 30 8
      tmp/tmp.html
  4. 1 4
      tmp/tmp.js
  5. 8 0
      tmp/tmp.yml

+ 7 - 0
simple-demo/excalidraw-versions.html

@@ -16,6 +16,12 @@
                 method: 'GET',
                 success: function (response) {
                     if (response.code === 200) {
+                        let data = response.data;
+                        // 如果没有数据
+                        if (data.length === 0) {
+                            closeWindow();
+                        }
+
                         // 拼接list页面
                         let listHtml = '';
                         response.data.forEach(function (item) {
@@ -61,6 +67,7 @@
             });
         }
     </script>
+    <script src="js/util.js"></script>
 </head>
 <body>
 <p>版本如下:</p>

+ 1 - 0
simple-demo/excalidraw_all.html

@@ -5,6 +5,7 @@
     <title>excalidraw_all</title>
     <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
     <script src="js/login.js"></script>
+    <script src="js/util.js"></script>
 </head>
 <body>
 <div id="nameList"></div>

+ 30 - 8
tmp/tmp.html

@@ -1,15 +1,37 @@
 <!DOCTYPE html>
-<html>
+<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
-    <title>Page Swipe</title>
-    <script src="jquery.js"></script>
-<!--    支持中文-->
-    <meta charset="utf-8">
+    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+    <title></title>
+    <style>
+        body {
+            height:1000px;/*让窗体出现滚动条*/
+        }
+        .fixed {
+            position: fixed;
+            left: 100px;
+            right: 100px;
+            top: 100px;
+            bottom: 100px;
+            width: auto;
+            height: auto;
+            border: 1px solid blue;
 
+        }
+        .absolute {
+            position: absolute;
+            left: 100px;
+            right: 100px;
+            top: 100px;
+            bottom: 100px;
+            width: auto;
+            height: auto;
+            border: 1px solid red;
+        }
+    </style>
 </head>
 <body>
-<div>
-    $2$的平方是指$2$乘以$2$。\n\n解答过程如下:\n\n$2\\times2$ $=4$所以,$2$的平方等于$4$。
-</div>
+<div class="fixed">fixed定位</div>
+<div class="absolute">absolute定位</div>
 </body>
 </html>

+ 1 - 4
tmp/tmp.js

@@ -1,4 +1 @@
-var currentTimeStamp = Date.now();
-var targetTimeStamp = new Date('2024-01-01').getTime();
-var difference = currentTimeStamp - targetTimeStamp;
-console.log(difference); // 输出时间戳差值
+// 查找 .more-action-btns-container

+ 8 - 0
tmp/tmp.yml

@@ -0,0 +1,8 @@
+version: '3'
+services:
+  yesplaymusic:
+    image: fogforest/yesplaymusic
+    container_name: yesplaymusic
+    ports:
+      - 3003:80
+    restart: always