更换图床
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -467,7 +467,7 @@
|
||||
</div>
|
||||
|
||||
<script src="https://cdn.jsdelivr.net/npm/mdui/dist/js/mdui.min.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/html2canvas@1.0.0-alpha.12/dist/html2canvas.min.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/html2canvas@1.0.0-rc.7/dist/html2canvas.min.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/gh/TransparentLC/WechatMomentScreenshot/main.min.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
4
main.js
4
main.js
@@ -397,9 +397,9 @@ document.getElementById('generate').addEventListener('click', function () {
|
||||
avatarUsedIndex = Math.floor(Math.random() * avatarSource.length);
|
||||
var div = document.createElement('div');
|
||||
div.setAttribute('class', 'likeAvatar squareImage');
|
||||
div.setAttribute('style', 'background-image: url(\"' + avatarSource[avatarUsedIndex] + '\");');
|
||||
div.setAttribute('style', 'background-image:url(\"' + avatarSource[avatarUsedIndex] + '\")');
|
||||
document.getElementById('likeAvatarList').appendChild(div);
|
||||
avatarSource.splice(avatarUsedIndex, 1)
|
||||
avatarSource.splice(avatarUsedIndex, 1);
|
||||
}
|
||||
|
||||
//加入评论区
|
||||
|
||||
Reference in New Issue
Block a user