tianyun 1 rok temu
rodzic
commit
b355704565

+ 0 - 1
simple-demo/cp_excalidraw_frame.html

@@ -11,7 +11,6 @@
     let str = "{\"type\":\"excalidraw/clipboard\",\"elements\":[{\"type\":\"embeddable\",\"version\":180,\"versionNonce\":1920335448,\"isDeleted\":false,\"id\":\"f9LOsIKv8drPM8aOetFXl\",\"fillStyle\":\"hachure\",\"strokeWidth\":1,\"strokeStyle\":\"solid\",\"roughness\":1,\"opacity\":100,\"angle\":0,\"x\":864.2622041015625,\"y\":232.2603759765625,\"strokeColor\":\"#000000\",\"backgroundColor\":\"transparent\",\"width\":722.40234375,\"height\":318.40625,\"seed\":607107403,\"groupIds\":[],\"frameId\":null,\"roundness\":null,\"boundElements\":[],\"updated\":1704786477631,\"link\":\"https://web.tianyunperfect.cn/simple/edit_online.html?id=667374\",\"locked\":false,\"validated\":true}],\"files\":{}}";
     // 时间戳 秒
     let timestamp = Date.parse(new Date()) - Date.parse(new Date('2024-01-01 00:00:00'));
-    timestamp = timestamp / 1000;
     str = str.replace(/667374/g, timestamp);
     // 复制到剪切板
     copyUtil.copyText(str);

+ 0 - 1
simple-demo/edit_online.html

@@ -56,7 +56,6 @@
 <script>
     // 获取当前时间戳 减去 2024年1月1日的时间戳
     let timestamp = Date.parse(new Date()) - Date.parse(new Date('2024-01-01 00:00:00'));
-    timestamp = timestamp / 1000;
 
     let id = getQueryString("id");
     // 获取编辑器内容