提交 632dd94a 编写于 作者: X xiongbao

支持QQ内分享摘要

上级 ece0a0c3
...@@ -59,7 +59,8 @@ let soul = [ ...@@ -59,7 +59,8 @@ let soul = [
]; ];
function randomSoul(){ function randomSoul(){
document.getElementsByTagName('article')[0].innerHTML = soul[Math.floor(Math.random() * soul.length)].replace(/\*\*(.*?)\*\*/g,'<mark>$1</mark>'); content = soul[Math.floor(Math.random() * soul.length)];
document.getElementsByTagName('article')[0].innerHTML = content.replace(/\*\*(.*?)\*\*/g,'<mark>$1</mark>');
document.getElementsByTagName('section')[0].className = 'border-' + randomNumBoth(1,6); document.getElementsByTagName('section')[0].className = 'border-' + randomNumBoth(1,6);
} }
...@@ -3,8 +3,10 @@ ...@@ -3,8 +3,10 @@
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<title>舔狗</title> <title>舔狗</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1, maximum-scale=1, user-scalable=no, viewport-fit=cover" /> <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1, maximum-scale=1, user-scalable=no, viewport-fit=cover" />
<meta itemprop="name" content="舔狗日记">
<meta name="description" itemprop="description" content="舔狗舔狗,舔到最后一无所有。">
<meta itemprop="image" content="assets/images/logo.jpg">
<meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black"> <meta name="apple-mobile-web-app-status-bar-style" content="black">
<link rel="icon" type="image/png" href="assets/images/logo.jpg"> <link rel="icon" type="image/png" href="assets/images/logo.jpg">
...@@ -268,7 +270,9 @@ ...@@ -268,7 +270,9 @@
<script src="./assets/js/index.js"></script> <script src="./assets/js/index.js"></script>
<script src="https://cdn.bootcss.com/clipboard.js/2.0.6/clipboard.min.js"></script> <script src="https://cdn.bootcss.com/clipboard.js/2.0.6/clipboard.min.js"></script>
<script> <script>
var content = '';
randomSoul(); randomSoul();
$('meta[name="description"]').attr('content',content.replace(/\*\*(.*?)\*\*/g,''));
var clipboard = new ClipboardJS('a[data-btn="copy"]'); var clipboard = new ClipboardJS('a[data-btn="copy"]');
clipboard.on('success', function(e) { clipboard.on('success', function(e) {
$('tips').show( $('tips').show(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册