新增paint页面,暂时放弃api来fetch数据构建页面,预计可能还有大量问题,暂时打算先整理所有的文件
This commit is contained in:
@@ -1,33 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Document</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
<!-- <!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Document</title>
|
||||
</head>
|
||||
<body>
|
||||
<script>
|
||||
fetch('https://open-ww3-project.ww3.tw/api/s/get/logs/')
|
||||
.then(response => response.json())
|
||||
.then(data => {
|
||||
const textContent = JSON.stringify(data, null, 2);
|
||||
str = textContent
|
||||
arrayStr = JSON.parse(str)
|
||||
arr = arrayStr.map(obj => obj.content)
|
||||
document.write(arr)
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
</html> -->
|
||||
Reference in New Issue
Block a user