Compare commits
5 Commits
ef1ca1c48c
...
main
Author | SHA1 | Date | |
---|---|---|---|
ca25421e62
|
|||
37991f64d3
|
|||
e4c7bc8c6e
|
|||
bd178ab1fd
|
|||
a364269ddc
|
BIN
favicon.ico
Normal file
BIN
favicon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.2 KiB |
BIN
img/logo.png
BIN
img/logo.png
Binary file not shown.
Before Width: | Height: | Size: 5.2 KiB After Width: | Height: | Size: 4.6 KiB |
30
index.php
30
index.php
@ -12,11 +12,10 @@ require("track.php");
|
|||||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
||||||
|
|
||||||
<title></title>
|
<title>mi鸡汤</title>
|
||||||
<meta name="description" content="">
|
<meta name="description" content="mihomo游戏鸡汤">
|
||||||
<meta name="keywords" content="">
|
<meta name="keywords" content="米哈游, mihoyo, 原神, 崩铁, 崩坏:星穹铁道, 鸡汤">
|
||||||
<meta name="author" content="" />
|
<link rel="icon" href="/favicon.ico" id="page_favionc">
|
||||||
<link rel="icon" href="/favicon.ico" type="image/x-icon" id="page_favionc">
|
|
||||||
<link href="./css/min.css" rel="stylesheet">
|
<link href="./css/min.css" rel="stylesheet">
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
@ -25,12 +24,15 @@ require("track.php");
|
|||||||
<div class="top-wrap" style="position: absolute; top: 1vh;width: 100%;z-index: 999">
|
<div class="top-wrap" style="position: absolute; top: 1vh;width: 100%;z-index: 999">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="row" style="margin-top: 30px;">
|
<div class="row" style="margin-top: 30px;">
|
||||||
<div class="col">
|
<div class="col" style="display: flex; align-items: center;">
|
||||||
<img src="./img/logo.png">
|
<a href="/"><img src="./img/logo.png"></a>
|
||||||
</div>
|
</div>
|
||||||
<div class="col">
|
<div class="col" style="display: flex; align-items: center; justify-content: flex-end;">
|
||||||
<div class="float-right" style="padding-top: 0px;">
|
<div class="float-right" style="margin: 10px;">
|
||||||
<a class="btn btn-primary btn-filled btn-xs" href="https://git.loliquq.cn/earthjasonlin/nows/issues/new?template=.github%2fISSUE_TEMPLATE%2fnew.yml">提交句子</a>
|
<a class="btn btn-primary btn-filled btn-xs" href="https://git.loliquq.cn/earthjasonlin/nows/issues/new/choose" target="_blank">意见反馈</a>
|
||||||
|
</div>
|
||||||
|
<div class="float-right" style="margin: 10px;">
|
||||||
|
<a class="btn btn-primary btn-filled btn-xs" href="https://git.loliquq.cn/earthjasonlin/nows/wiki" target="_blank">API文档</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -43,7 +45,9 @@ require("track.php");
|
|||||||
//查询随机一条记录
|
//查询随机一条记录
|
||||||
$sql = "SELECT * FROM soul ORDER BY RAND() LIMIT 1";
|
$sql = "SELECT * FROM soul ORDER BY RAND() LIMIT 1";
|
||||||
$result = mysqli_query($conn, $sql);
|
$result = mysqli_query($conn, $sql);
|
||||||
|
$id;
|
||||||
while ($row = mysqli_fetch_assoc($result)) {
|
while ($row = mysqli_fetch_assoc($result)) {
|
||||||
|
$id = $row["id"];
|
||||||
?>
|
?>
|
||||||
<div id="sentence" style="font-size: 2rem;">
|
<div id="sentence" style="font-size: 2rem;">
|
||||||
<?php echo $row["title"] ?>
|
<?php echo $row["title"] ?>
|
||||||
@ -72,9 +76,15 @@ require("track.php");
|
|||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col text-center">
|
<div class="col text-center">
|
||||||
|
<p class="lead text">请点击「意见反馈」帮助我们做得更好!</p>
|
||||||
<span class="btn btn-primary btn-filled btn-xs"><a class="btn btn-primary btn-filled btn-xs" href="/">再来一句</a></span>
|
<span class="btn btn-primary btn-filled btn-xs"><a class="btn btn-primary btn-filled btn-xs" href="/">再来一句</a></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col text-center">
|
||||||
|
<span style="color:#fff;"><?php echo "id.", $id, " ver.", substr(shell_exec('git rev-parse HEAD'), 0, 10); ?></span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
4
soul.sql
4
soul.sql
@ -22,8 +22,8 @@ SET time_zone = "+08:00";
|
|||||||
CREATE TABLE `soul` (
|
CREATE TABLE `soul` (
|
||||||
`id` int(11) NOT NULL,
|
`id` int(11) NOT NULL,
|
||||||
`title` varchar(300) NOT NULL,
|
`title` varchar(300) NOT NULL,
|
||||||
`author` varchar(30),
|
`author` varchar(300),
|
||||||
`from` varchar(30)
|
`from` varchar(300)
|
||||||
) ENGINE = InnoDB DEFAULT CHARSET = utf8;
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8;
|
||||||
--
|
--
|
||||||
-- 转储表的索引
|
-- 转储表的索引
|
||||||
|
Reference in New Issue
Block a user