Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
0149308
Update: multiple .html files
LinuxMint-User Jan 18, 2025
e81319f
Update: 2048-remastered-main.js
LinuxMint-User Jan 18, 2025
07be3ba
Upload: updateCopyright.js
LinuxMint-User Jan 18, 2025
e581be0
Update: source code files of 2048-remastered
LinuxMint-User Jan 18, 2025
64fcfb9
Update: changeLogs.md changePlans.md
LinuxMint-User Jan 18, 2025
557a1b7
Update: multiple .html files
LinuxMint-User Jan 19, 2025
dc94356
Create snake-Game.js
LinuxMint-User Jan 19, 2025
a0e5d74
Upload: snake-Game.js
LinuxMint-User Jan 19, 2025
e1adcd6
Upload: snake-Game.html
LinuxMint-User Jan 19, 2025
f5d1350
Update: changeLogs.md changePlans.md
LinuxMint-User Jan 19, 2025
1a7d0b3
Create placeholder
LinuxMint-User Jan 20, 2025
d014c4d
Upload: file1.txt file2.txt
LinuxMint-User Jan 20, 2025
60b237e
Update: sourcecode.js
LinuxMint-User Jan 20, 2025
30f2596
Update: changeLogs.md
LinuxMint-User Jan 20, 2025
91d3f8c
Update: snake-Game.html
LinuxMint-User Jan 20, 2025
ad265a6
Update: snake-Game.js
LinuxMint-User Jan 20, 2025
debd3d3
Update: changeLogs.md
LinuxMint-User Jan 20, 2025
51b6a04
Create placeholder
LinuxMint-User Jan 21, 2025
d1d6d39
Create placeholder
LinuxMint-User Jan 21, 2025
605c4ca
Upload: isMobileDevice.js
LinuxMint-User Jan 21, 2025
7d13d7f
Update: snake-Game.js
LinuxMint-User Jan 21, 2025
14040bb
Path Changed: snake-Game.html 2048-remastered.html
LinuxMint-User Jan 21, 2025
932257f
Path Changed: sourcecode.html
LinuxMint-User Jan 21, 2025
dd73d78
Create placeholder
LinuxMint-User Jan 21, 2025
d4dc9b6
Path Changed: JSEditor.html markdownEditor.html
LinuxMint-User Jan 21, 2025
ed03a0c
Update: changePlans.md changeLogs.md
LinuxMint-User Jan 21, 2025
6a4305d
Update: 2048-remastered.html snake-Game.html
LinuxMint-User Jan 21, 2025
efd6767
Delete 2048-remastered.html
LinuxMint-User Jan 21, 2025
a7a9074
Delete JSEditor.html
LinuxMint-User Jan 21, 2025
80c1f05
Delete markdownEditor.html
LinuxMint-User Jan 21, 2025
7abcdd1
Delete snake-Game.html
LinuxMint-User Jan 21, 2025
550db6b
Delete sourcecode.html
LinuxMint-User Jan 21, 2025
3f88055
Delete 2048.html
LinuxMint-User Jan 21, 2025
7e8ab38
Delete icons/placeholder
LinuxMint-User Jan 21, 2025
97f6c82
Delete Subpages/Games/placeholder
LinuxMint-User Jan 21, 2025
314ee1b
Delete Subpages/Tools/placeholder
LinuxMint-User Jan 21, 2025
1347ca5
Delete Subpages/Tools/Editors/placeholder
LinuxMint-User Jan 21, 2025
8a5a102
Delete sourceCode/2048 directory
LinuxMint-User Jan 21, 2025
f56d5dc
Update: snake-Game.js
LinuxMint-User Jan 21, 2025
5619cd3
Update: index.html changeLogs.md changePlans.md
LinuxMint-User Jan 21, 2025
f566314
Update: sourcecode.html
LinuxMint-User Jan 21, 2025
56227c7
Update: snake-Game.js
LinuxMint-User Jan 21, 2025
67dbb9e
Update: snake-Game.html
LinuxMint-User Jan 21, 2025
f850d03
Update: changeLogs.md
LinuxMint-User Jan 21, 2025
483f670
Update: changeLogs.md
LinuxMint-User Jan 21, 2025
a6108bc
Delete sourceCode/snake-Game/placeholder
LinuxMint-User Jan 26, 2025
12d7490
Update README.md
LinuxMint-User Jan 26, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
156 changes: 0 additions & 156 deletions 2048.html

This file was deleted.

5 changes: 5 additions & 0 deletions 404.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<link rel="icon" type="image/ico" href="icons/favicon.ico">
<link rel="stylesheet" href="css/global-styles.css">
<script src="js/404Page/404.js"></script>
<script src="js/updateCopyright.js" defer></script>
<style>
.button {
display: inline-block;
Expand All @@ -33,6 +34,10 @@ <h1>页面未找到</h1>
<a id="backButton" href="/mysite/" class="button">返回首页</a>
<p id="countdown">即将自动返回首页...</p>
</div>

<footer>
<p id="copyright">&copy; <span id="currentYearinCopyright">2024</span> Eric Chan</p>
</footer>
</body>

</html>
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
2. Remain to be found
## NOTICE
- For specific modifications, please refer to [changeLogs.md](changeLogs.md) (Chinese Only)
- This is a webpage that I created on a whim while practicing front-end code. Some of the code has been borrowed from others (the copyright agreement used will be indicated in the corresponding webpage's footer as required), and the quality of the code may not be high. Meanwhile, I only accept practical issues.
- This is a webpage that I created on a whim while practicing front-end code. Some of the code has been borrowed from others (the copyright agreement used will be indicated in the corresponding webpage's footer as required), and the quality of the code may not be high. Meanwhile, I accept practical issues.


## 这是我的网页
Expand Down
34 changes: 19 additions & 15 deletions 2048-remastered.html → Subpages/Games/2048-remastered.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>网页版2048(重制版)</title>
<link rel="icon" type="image/ico" href="icons/favicon.ico">
<title>2048游戏</title>
<base href="/mysite/">
<link rel="icon" type="image/ico" href="icons/favicon.ico">
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/global-styles.css">
<link rel="stylesheet" href="css/night-mode.css">
Expand All @@ -14,43 +15,50 @@
<script src="js/2048-Game/2048-remastered-main.js"></script>
<script src="js/2048-Game/2048-remastered-rendering.js"></script>
<script src="js/index-script.js" defer></script>
<script src="js/updateCopyright.js" defer></script>
</head>

<body>
<header class="header">
<div class="button-list" style="flex: 1; min-width: fit-content;">
<button type="button" id="backButton" class="back-button">返回</button>
</div>
<h2 style="flex: 9;">2048重制版</h2>
<h2 style="flex: 9;">2048游戏</h2>
</header>

<script>
document.getElementById('backButton').addEventListener('click', function () {
// 从 URL 中获取 'from' 参数
var fromPage = new URLSearchParams(window.location.search).get('from');
// 如果 'from' 参数是 'index',则直接返回
// 如果 'from' 参数是 'index'
if (fromPage === 'index') {
window.history.back();
// 判断浏览器历史记录中是否有可返回的页面
if (window.history.length > 1) {
window.history.back(); // 有则直接返回
} else {
// 没有则跳转到 index.html
window.location.href = '/mysite/'
}
} else {
// 如果没有 'from' 参数或者不是 'index',则跳转到 index.html
window.location.href = '/mysite/'
}
});
</script>

<div class="container" style="display: flex; flex-direction: column-reverse;">
<div class="container" style="display: flex; flex-direction: row-reverse;">
<div class="button-list" style="flex: 1; min-width: fit-content;">
<button type="button" id="newGameButton" onclick="newGame()">新游戏</button>
<!-- <button type="button" id="saveScoreButton" onclick="saveScore()">保存分数</button> -->
</div>
<div class="container"
style="flex: 3; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0px; margin: 5px; padding: 0px;">
style="flex: 9; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0px; margin: 5px; padding: 0px;">
<h3 style="color: wheat; margin: 5px;">
当前得分:<span id="score">0</span>
</h3>
<h3 style="color: wheat; margin: 5px;">
<!-- <h3 style="color: wheat; margin: 5px;">
历史最高分:<span id="historyRecord">0</span>
</h3>
</h3> -->
<h3 style="color: wheat; margin: 5px;;">
游戏状态:<span id="status">进行中</span>
</h3>
Expand Down Expand Up @@ -130,13 +138,9 @@ <h3 style="color: wheat; margin: 5px;;">
</div>
</div>

<div>

</div>

<footer>
<p>本页面使用cookie存储您的历史最高分。源代码<a href="sourcecode.html?from=2048-remastered" target="_blank"><b>在这里</b></a></p>
<p id="copyright">&copy; 2024 Eric Chan</p>
<p id="copyright">&copy; <span id="currentYearinCopyright">2024</span> Eric Chan · 本页面源代码<a
href="Subpages/Tools/sourcecode.html?from=2048-remastered" target="_blank"><b>在这里</b></a></p>
</footer>
</body>

Expand Down
Loading