Update 2 files

- /Live2dHistoire/live2d/js/message.js
- /assets/js/main_new.js
This commit is contained in:
mayx 2025-05-24 17:33:47 +00:00
parent 7937972e19
commit 2d757a0e7c
2 changed files with 173 additions and 167 deletions

View File

@ -48,6 +48,7 @@ if(!norunFlag){
}; };
var re = /x/; var re = /x/;
console.log(re);
re.toString = function () { re.toString = function () {
showMessage('哈哈,你打开了控制台,是想要看看我的秘密吗?', 5000); showMessage('哈哈,你打开了控制台,是想要看看我的秘密吗?', 5000);
return ''; return '';
@ -223,6 +224,12 @@ if(!norunFlag){
} }
function initLive2d() { function initLive2d() {
$("#landlord").mouseenter(function () {
$(".live_ico_box").fadeIn();
});
$("#landlord").mouseleave(function () {
$(".live_ico_box").fadeOut();
});
$('#hideButton').on('click', function () { $('#hideButton').on('click', function () {
if (AIFadeFlag) { if (AIFadeFlag) {
return false; return false;
@ -450,7 +457,13 @@ if(!norunFlag){
home_Path + message_Path + "model/histoire/histoire.1024/texture_00.png", home_Path + message_Path + "model/histoire/histoire.1024/texture_00.png",
home_Path + message_Path + "model/histoire/histoire.1024/texture_01.png", home_Path + message_Path + "model/histoire/histoire.1024/texture_01.png",
home_Path + message_Path + "model/histoire/histoire.1024/texture_02.png", home_Path + message_Path + "model/histoire/histoire.1024/texture_02.png",
home_Path + message_Path + "model/histoire/histoire.1024/texture_03.png" home_Path + message_Path + "model/histoire/histoire.1024/texture_03.png",
home_Path + message_Path + "images/info.png",
home_Path + message_Path + "images/music.png",
home_Path + message_Path + "images/pasue.png",
home_Path + message_Path + "images/quite.png",
home_Path + message_Path + "images/talk.png",
home_Path + message_Path + "images/youdu.png"
] ]
var images = []; var images = [];
var imgLength = AIimgSrc.length; var imgLength = AIimgSrc.length;

View File

@ -1,11 +1,4 @@
$(function () { $(function () {
$("div#landlord").mouseenter(function () {
$("div.live_ico_box").fadeIn();
});
$("div#landlord").mouseleave(function () {
$("div.live_ico_box").fadeOut();
});
const urlParams = new URLSearchParams(window.location.search); const urlParams = new URLSearchParams(window.location.search);
const keyword = urlParams.get('kw')?.trim(); const keyword = urlParams.get('kw')?.trim();