Compare commits

4 Commits
python ... php

Author SHA1 Message Date
8c981130e8 新增一点 2025-12-21 20:47:07 +08:00
df8c73a68e Merge remote-tracking branch 'origin/web' into lin_sh
分支合并
2025-12-21 20:45:14 +08:00
26f3beb031 综合上传 2025-12-21 20:27:44 +08:00
3dbe393220 更新 README.md 2025-12-20 19:10:34 +00:00
10 changed files with 5132 additions and 15 deletions

View File

@@ -12,4 +12,4 @@ open-ww3-project-ww3-tw
**署名**
skimrme
<a href="https://wiki.ww3.tw/doku.php?id=zh_cn:skimrme">skimrme</a>

View File

@@ -0,0 +1 @@
google-site-verification: google02f6a3f6004a32c6.html

View File

@@ -9,7 +9,6 @@
</head>
<body>
<div id="app-canvas">
<header>
<h1 style="margin: 80px 0 0 0; color:aqua;">open-ww3-project</h1>
</header>
@@ -31,12 +30,17 @@
</tbody>
</table>
</div>
<!-- 倒过来的箱子 真不明白为什么我会称呼箱子为open-ww3-project-->
<div style="margin: 80px -30px -100px 180px;">
<img id="open-ww3-project-img" width="10%" src="./src/img/open-ww3-project.png" alt="open-ww3-project-img">
</div>
<!-- gitea 图标 -->
<a style="background-color: blueviolet; position: absolute;" href="https://gitea.ww3.tw/skimrme/open-ww3-project-ww3-tw">
<img id="gitea-img" src="https://gitea.ww3.tw/assets/img/logo.svg" width="150px" alt="gitea" >
</a>
<!-- 导航栏 -->
<div id="content-area">
<!--div>
<img id="open-ww3-project-img" width="10%" src="../src/img/open-ww3-project.png" alt="open-ww3-project-img">
</div-->
<!-- 屑站日志 -->
<h3 style="margin: 70px 0 30px -50px;">屑站日志:<br></h3>
<div id="logs">
@@ -102,9 +106,10 @@
}
?>
</div>
</div>
<!-- 私の娘 -->
<div id="my_girl" style="margin: -40px 0 0 1100px;"></div>
<!-- 私の娘 -->
</div>
</body>
</html>
@@ -190,9 +195,51 @@
/* up、right、down、left */
margin: 0 0 0 0;
}
#gitea-img
{
margin: -150px 0 0 1150px;
}
</style>
<!-- js 部分-->
<script src="./src/js/main.js"> 引入js页面蓝图 </script>
<!-- 私の娘 -->
<!-- https://cdn.jsdelivr.net/npm/sakana-widget@2.7.1/lib/sakana.min.css -->
<!-- https://cdn.jsdelivr.net/npm/sakana-widget@2.7.1/lib/sakana.min.js -->
<!-- https://cdnjs.cloudflare.com/ajax/libs/sakana-widget/2.7.1/sakana.min.css -->
<!-- https://cdnjs.cloudflare.com/ajax/libs/sakana-widget/2.7.1/sakana.min.js -->
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/sakana-widget@2.7.1/lib/sakana.min.css"
/>
<script>
function initSakanaWidget(){
const customImageUrl = 'https://open-ww3-project.ww3.tw/blog/src/img/my_girl.png';
const baseCharacter = SakanaWidget.getCharacter('chisato');
const myCharacter = {
image: customImageUrl,
initialState: baseCharacter.initialState,
};
SakanaWidget.registerCharacter('my_girl', myCharacter);
new SakanaWidget({
character: 'my_girl',
size: 200,
autoFit: true,
controls: true
}).mount('#my_girl');
}
</script>
<script
async
onload="initSakanaWidget()"
src="https://cdn.jsdelivr.net/npm/sakana-widget@2.7.1/lib/sakana.min.js">
</script>
<!-- 私の娘 -->

7
public/blog/robots.txt Normal file
View File

@@ -0,0 +1,7 @@
User-agent: *
Allow: /
Disallow: /admin/
Sitemap: https://open-ww3-project.ww3.tw/blog/sitemap.xml

View File

@@ -1,24 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="www.sitemaps.org">
<!-- 首页 -->
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://open-ww3-project.ww3.tw/blog/</loc>
<lastmod>2025-12-12</lastmod>
<priority>1.0</priority>
</url>
<!-- 关于页面 -->
<url>
<loc>https://open-ww3-project.ww3.tw/blog/about/</loc>
<lastmod>2025-12-12</lastmod>
<priority>0.8</priority>
</url>
<!-- 文章列表 -->
<url>
<loc>https://open-ww3-project.ww3.tw/blog/post/</loc>
<lastmod>2025-12-12</lastmod>
<priority>0.8</priority>
</url>
</url>
<url>
<loc>https://open-ww3-project.ww3.tw/blog/test.html</loc>
<lastmod>2025-12-13</lastmod>
<priority>0.1</priority>
</url>
</urlset>

Binary file not shown.

After

Width:  |  Height:  |  Size: 99 KiB

5033
public/blog/test.html Normal file

File diff suppressed because one or more lines are too long

1
public/blog/video.html Normal file
View File

@@ -0,0 +1 @@
<iframe src="//player.bilibili.com/player.html?isOutside=true&aid=115578442356850&bvid=BV12CCdBkEL6&cid=34120008494&p=1&autoplay=0" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true" style="width: 100%; height: 100%;"></iframe>

0
public/index.php Executable file → Normal file
View File

29
public/index.php.back Executable file
View File

@@ -0,0 +1,29 @@
<!-- 主路由配置 -->
<?php
$request_uri = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH);
// 定义条件
$found_route = false;
switch($request_uri){
case '/':
include './re_blog.php';
exit(); // 执行成功立即结束
break;
}
// posts 路由
// 整改中
// 所有路由匹配结束后,检查是否找到路由
if (!$found_route) {
// 设置 HTTP 状态码为 404
header("HTTP/1.0 404 Not Found");
// 包含 404 页面文件
//exit();
include "../src/views/error/404.html";
exit(); // 执行成功立即结束
}