- {{ $store.state.webInfo.webName }}是指运行在{{ $constant.host }}域名及相关子域名上的网站,本条款描述了{{ $store.state.webInfo.webName }}的网站版权声明: -
-{{isHitokoto?hitokoto.hitokoto:guShi.content}}
-- {{isHitokoto?hitokoto.from_who:guShi.author}} -
-欢迎交换友链
---网站名称: {{$constant.friendWebName}}-网址: {{$constant.friendUrl}}-头像: {{$constant.friendAvatar}}-描述: {{$constant.friendIntroduction}}-网站封面: {{$constant.friendCover}}-
--点击上方信封✨✨✨-不会添加带有广告营销和没有实质性内容的友链🚫🚫🚫-申请之前请将本网站添加为您的友链哦🎟️🎟️🎟️-
欢迎入住表白墙
-^1000H^200ao
"], - typeSpeed: 100, - backSpeed: 50 - }); - - $('#open').find("span").eq(0).css('background-position', "0 -150px"); - - aparted = true; - - var music = document.getElementById('music2'); - if (music.paused) { - music.play(); - $('#music_btn2').css("opacity", "1"); - } - } - -}); - -function playPause() { - var music = document.getElementById('music2'); - var music_btn = $('#music_btn2'); - - if (music.paused) { - music.play(); - music_btn.css("opacity", "1"); - } else { - music.pause(); - music_btn.css("opacity", "0.2"); - } -} - - -window.onload = function () { - - var currentUrl = window.location.href; - var firstIndex = currentUrl.indexOf("#"); - if (firstIndex <= 0) window.location.href = currentUrl + "#contact"; - - $('#music2').attr('src', bgmsrc); - - document.addEventListener('touchstart', function (event) { - if (event.touches.length > 1) event.preventDefault(); - }); - - var lastTouchEnd = 0; - - document.addEventListener('touchend', function (event) { - - var now = (new Date()).getTime(); - if (now - lastTouchEnd <= 300) event.preventDefault(); - lastTouchEnd = now; - - }, false); - - document.addEventListener('gesturestart', function (event) { - event.preventDefault(); - }); - - $('body').css('opacity', '1'); - $('#jsi-cherry-container').css('z-index', '-99'); - -} diff --git a/poetize-ui/src/utils/live2d.js b/poetize-ui/src/utils/live2d.js deleted file mode 100644 index e2186ce..0000000 --- a/poetize-ui/src/utils/live2d.js +++ /dev/null @@ -1,336 +0,0 @@ -/* - * Live2D Widget - * https://github.com/stevenjoezhang/live2d-widget - */ - - -import constant from "./constant"; - - -// 注意:live2d_path 参数应使用绝对路径 -const live2d_path = constant.live2d_path; - -// 加载 waifu.css live2d.min.js -if (screen.width > 768) { - Promise.all([ - loadExternalResource(live2d_path + "waifu.css", "css"), - loadExternalResource(live2d_path + "live2d.min.js", "js") - ]).then(() => { - initWidget({ - waifuPath: constant.baseURL + constant.waifuPath, - cdnPath: constant.cdnPath - }); - }); -} - -// 封装异步加载资源的方法 -function loadExternalResource(url, type) { - return new Promise((resolve, reject) => { - let tag; - - if (type === "css") { - tag = document.createElement("link"); - tag.rel = "stylesheet"; - tag.href = url; - } else if (type === "js") { - tag = document.createElement("script"); - tag.src = url; - } - - if (tag) { - tag.onload = () => resolve(url); - tag.onerror = () => reject(url); - document.head.appendChild(tag); - } - }); -} - -function initWidget(config) { - document.body.insertAdjacentHTML("beforeend", `