<title>我来了</title>
<meta charset="UTF-8">
<meta name="referrer" content="never">
<style>
img {
    border-radius: 10px;
}
</style>
<?php
// 读取 txt 文件中的两行数据
function getTwoLines($file) {
    $data = file($file);
    $num = count($data);
    $id1 = mt_rand(0, $num - 1);
    $id2 = mt_rand(0, $num - 1);
    $line1 = trim($data[$id1]);
    $line2 = trim($data[$id2]);
    return $line1 . ' ' . $line2;
}

// 获取合并的两行文本
$mergedText = getTwoLines('aaaa.txt');
echo "<br/>";
echo "<br/>";
echo "<br/>";
// 显示加粗加大的文本
echo '<span style="font-weight: bold; font-size: 40px; display: block; text-align: center;">' . $mergedText . '</span>';
echo "<br/>";
echo "<br/>";
echo "<br/>";
// 添加复制按钮
echo '<img src="http://p1.meituan.net/dptrust/8c815b2d3a09367d781d77c49e0de8a9134343.jpg" width=400 height=150 alt="复制" onclick="copyToClipboard()" style="cursor: pointer; display: block; margin: 0 auto; right:300px; position: fixed; top:210px">';
echo "<br/>";
echo "<br/>";
echo "<br/>";
// 添加刷新页面按钮
echo '<img src="http://p1.meituan.net/dptrust/bb361f1f84e38c67c77cecca722adced135216.jpg" width=400 height=150 alt="刷新" onclick="window.location.reload()" style="cursor: pointer; display: block; margin: 0 auto; right:300px; position: fixed; top:390px">';
echo "<br/>";
// JavaScript 函数：复制文本到剪贴板
echo '<script>
function copyToClipboard() {
    const el = document.createElement("textarea");
    el.value = "' . $mergedText . '";
    document.body.appendChild(el);
    el.select();
    document.execCommand("copy");
    document.body.removeChild(el);
}
</script>';
?>
<script type=" text/javascript" src="https://js.users.51.la/20590531.js">
</script>
</html>
