Back up the tudoudilei site
This commit is contained in:
96
index.php
Executable file
96
index.php
Executable file
@@ -0,0 +1,96 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>土豆地雷</title>
|
||||
<style>
|
||||
body {
|
||||
text-align: center;
|
||||
font-family: Arial, sans-serif;
|
||||
background-color: #f0f0f0;
|
||||
margin-top: 50px;
|
||||
}
|
||||
|
||||
.container {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
#potato-mine {
|
||||
width: 200px;
|
||||
height: 200px;
|
||||
transition: transform 0.5s ease-in-out;
|
||||
position: relative;
|
||||
z-index: 1; /* 土豆地雷在上层 */
|
||||
}
|
||||
.grass {
|
||||
position: absolute;
|
||||
width: 200px;
|
||||
height: 30px;
|
||||
background-color: #228B22; /* 草地颜色 */
|
||||
bottom: 0px; /* 草地位于地面上方 */
|
||||
left: 0;
|
||||
z-index: 2; /* 草地在地面上方 */
|
||||
border-radius: 5px 5px 0 0;
|
||||
}
|
||||
.ground {
|
||||
position: absolute;
|
||||
width: 200px;
|
||||
height: 100px; /* 土地的厚度增加 */
|
||||
background-color: #8B4513; /* 土色 */
|
||||
bottom: -100px; /* 向下移动地面 */
|
||||
left: 0;
|
||||
z-index: 2; /* 地面在土豆地雷上方 */
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
#potato-mine:hover {
|
||||
transform: translateY(100px); /* 鼠标悬停时土豆地雷缩进地下 */
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h2>我将会用尽全部力气,来保护土豆地雷</h2>
|
||||
<h3>哪怕与全世界为敌,我也会坚定地和你在一块</h3>
|
||||
<div class="container">
|
||||
<img id="potato-mine" src="https://ningbo1.picpic.yuheng.hl.cn/2025/01/29/679a333aeac50.jpg" alt="土豆地雷">
|
||||
<div class="grass"></div> <!-- 草地区域 -->
|
||||
<div class="ground"></div>
|
||||
</div>
|
||||
<br><br><br><br><br><br>
|
||||
<br><a href="/saolei/">扫雷</a>
|
||||
<br>土豆地雷,脑袋缺弦
|
||||
<br>----老舍 1931.03.16
|
||||
<br>已经和土豆地雷相恋<?
|
||||
$times = time() - 1699092000;
|
||||
// 计算年数
|
||||
$years = floor($times / (365 * 24 * 60 * 60));
|
||||
$times %= (365 * 24 * 60 * 60);
|
||||
// 计算月数
|
||||
$months = floor($times / (30 * 24 * 60 * 60));
|
||||
$times %= (30 * 24 * 60 * 60);
|
||||
// 计算天数
|
||||
$days = floor($times / (24 * 60 * 60));
|
||||
$times %= (24 * 60 * 60);
|
||||
// 计算小时数
|
||||
$hours = floor($times / (60 * 60));
|
||||
$times %= (60 * 60);
|
||||
// 计算分钟数
|
||||
$minutes = floor($times / 60);
|
||||
$seconds = $times % 60;
|
||||
echo "{$years}年{$months}月{$days}日{$hours}时{$minutes}分{$seconds}秒";
|
||||
?>
|
||||
<script>
|
||||
const potatoMine = document.getElementById('potato-mine');
|
||||
|
||||
potatoMine.addEventListener('mouseenter', function() {
|
||||
potatoMine.style.transform = 'translateY(100px)'; // 鼠标放上去时,地雷“埋进地下”
|
||||
});
|
||||
|
||||
potatoMine.addEventListener('mouseleave', function() {
|
||||
potatoMine.style.transform = 'translateY(0)'; // 鼠标移开时,地雷返回原位置
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user