From e867a927b3e2faa831f8c462af059874bb59db5b Mon Sep 17 00:00:00 2001 From: streakingman Date: Tue, 4 Oct 2022 14:20:45 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=A1=B9=E7=9B=AE=E9=93=BE=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/index.html b/index.html index 69a6e42..0699d18 100644 --- a/index.html +++ b/index.html @@ -212,13 +212,12 @@ 'href', 'https://github.com/StreakingMan/solvable-sheep-game' ); - a.setAttribute('target', '_blank'); + a.setAttribute('target', '_self'); + a.style.cursor = 'pointer' + a.style.zIndex = '15' a.innerText = '本项目仅供交流,禁止商业用途,点击查看原github仓库'; - const p = document.createElement('p'); - p.style.textAlign = 'center'; - p.append(a); - document.body.prepend(p); + document.getElementById('root')?.prepend(a); } }, 5000);