代码拉取完成,页面将自动刷新
同步操作将从 love/hbdlove 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<meta name="language" content="zh-CN">
<meta name="title" content="爱心代码">
<title>💗生日快乐💗</title>
<link rel="stylesheet" href="./style/main.css">
<style type="text/css">
body {
margin: 0;
height: 100vh;
overflow: hidden;
background: rgb(4, 4, 22);
}
#contents {
color: #f584b7;
font-size: 1.5em;
text-align: center;
width: 100%;
height: 100px;
text-transform: none;
}
.type_words{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);width:180px;height:180px;color:#f1dadb;padding:20px;text-transform:lowercase;}
</style>
</head>
<body onclick="bodyPlayMusic()">
<div class="type_words" id="contents">给你的爱心</div>
<canvas id="pinkboard" width="1707" height="868"></canvas>
<canvas id="heart" width="700" height="500"></canvas>
<audio id="audio" src="https://music.163.com/song/media/outer/url?id=27130317.mp3" preload="auto"
loop="loop"></audio>
<script>
var shouci = true;
console.log(shouci);
function bodyPlayMusic() {
if (shouci) {
shouci = false;
audio.play();
console.log(shouci);
}
};
</script>
<script src="./js/lxheart.js"></script>
<script src="./js/filltext.js"></script>
<script>
var texts = ['❤️','我爱你', '三生有幸遇见你', '❤️'];
var params = new URLSearchParams(window.location.search);
var text = params.get('text');
var word = params.get('word');
if (text) {
texts = text.split(',')
}
document.getElementById('contents').innerHTML = word || '张佳丽, 生日快乐!';
renderLxHeart(document.getElementById('heart'), '#f584b7');
fillText(document.getElementById('pinkboard'), texts)
</script>
</body>
</html>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。