From a165ef6379e84849f3d9b3b10a5adacb0d8082ec Mon Sep 17 00:00:00 2001 From: SeeChen Date: Sat, 30 Nov 2024 16:08:21 +0800 Subject: [PATCH] fix bugs --- JavaScript/Projects/projects.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/JavaScript/Projects/projects.js b/JavaScript/Projects/projects.js index 39e1684..5923e52 100644 --- a/JavaScript/Projects/projects.js +++ b/JavaScript/Projects/projects.js @@ -248,6 +248,10 @@ const SeeChen_ProjectsMouseEvent = { if (e.target.classList.contains("project_border")) { + if ('ontouchstart' in window) { + document.documentElement.requestFullscreen(); + } + document.querySelector("#project_details").classList.add("ready-to-full"); setTimeout(() => { document.querySelector("#project_details").classList.add("full-window");