Skip to content

Commit

Permalink
修改多项细节 (#11)
Browse files Browse the repository at this point in the history
- 添加网页图标
- 修改保存文件名称
- 修改源文件变量名称
  • Loading branch information
yusancky committed Jan 26, 2023
1 parent ffb2fac commit 5225f4f
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 27 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
dist/*
html/*.ttf
html/*.woff
node_modules/*
GBA-ex-fixed.svg
package-lock.json
14 changes: 1 addition & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,4 @@
- 短居:居住一月以上
- 游玩:旅行过
- 出差:去过但完全未游玩
- 路过:乘车路过或乘飞机经停

## 相关作品

- 中国 @itorr https://github.com/itorr/china-ex
- 中国 吃货 @lvwzhen https://github.com/lvwzhen/foodie-ex
- 美国、欧洲 @tenpages https://github.com/tenpages/us-level
- 全球 @itorr https://github.com/itorr/world-ex
- 中国 普通/简化切换 @qianphong https://github.com/qianphong/china-ex-ns
- 中国 马拉松 @Likenttt https://github.com/Likenttt/china-city-marathon-ex
- 福建 @action-hong https://github.com/action-hong/china-ex
- 中国 自定义等级 @kf-liu https://github.com/kf-liu/china-ex-pro
- 日本: https://zhung.com.tw/japanex/
- 路过:乘车路过或乘飞机经停
Binary file added html/favicon.ico
Binary file not shown.
7 changes: 4 additions & 3 deletions html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
name="keywords"
content="粤港澳大湾区,广东,粤港澳大湾区制霸,广东制霸,中国制霸,雨伞CKY"
/>
<link rel="shortcut icon" href="favicon.ico?v={version}" />
<link rel="stylesheet" href="样式.css?v={version}" />
</head>
<body>
Expand All @@ -24,7 +25,6 @@ <h2>地区</h2>
<a data-level="0">没去过</a>
</div>
<footer>
<a href="https://yusancky.github.io/posts/gba-ex" target="_blank">说明</a>
<a href="https://github.com/yusancky/GBA-ex" target="_blank">
<svg
xmlns="http://www.w3.org/2000/svg"
Expand All @@ -36,11 +36,12 @@ <h2>地区</h2>
d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"
/></svg
></a>
<a href="https://yusancky.github.io/posts/gba-ex" class="按钮">说明</a>
<a id="保存" class="按钮">保存为图片</a>
</footer>
<div id="输出" style="display: none;">
<div id="输出" style="display: none">
<div><img /></div>
<p>手机端可长按图片<b>“添加到照片”</b></p>
<p>手机端可长按图片保存</p>
<div><a class="按钮">关闭</a></div>
</div>
<script src="脚本.js?v={version}"></script>
Expand Down
14 changes: 7 additions & 7 deletions html/脚本.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const 视窗 = window;
const 文档 = document;
const 读文件 = FileReader;
const = fetch;
const 如何做爱元素 = 文档.documentElement;
const 根元素 = 文档.documentElement;
const 体元素 = 文档.body;
const 头元素 = 文档.head;
const 新建元素 = () => 文档.createElement();
Expand Down Expand Up @@ -61,7 +61,7 @@ const $ = (名, 元素 = 文档) => 元素.querySelector(名);
const 字体名 = "字体";
const 背景色 = "#efb4b4";
const 本地存储等级们钥匙 = "china-ex-levels";
const 保存文件名 = `[神奇海螺][中国制霸].png`;
const 保存文件名 = `[gba-ex.netlify.app]大湾区制霸.png`;

const = 1134;
const = 976;
Expand Down Expand Up @@ -115,7 +115,7 @@ const 获取等级们并生效 = (_) => {
const 设置等级元素方位 = 获取元素方位(设置等级);

let = 数学[四舍五入](
如何做爱元素.scrollLeft +
根元素.scrollLeft +
省元素方位[左边] +
省元素方位[宽度] / -
设置等级元素方位[宽度] /
Expand All @@ -124,7 +124,7 @@ const 获取等级们并生效 = (_) => {
= 数学[最大](, 最小间距);

let = 数学[四舍五入](
如何做爱元素.scrollTop +
根元素.scrollTop +
省元素方位[上边] +
省元素方位[高度] / -
设置等级元素方位[高度] /
Expand Down Expand Up @@ -175,7 +175,7 @@ const 获取字体样式 = (字体名, 回调) => {
const 样式元素 = 新建元素(样式);
样式元素[] = 样式字串;
头元素[加末尾](样式元素);
设置延时((_) => 如何做爱元素[清除属性](加载中属性), * );
设置延时((_) => 根元素[清除属性](加载中属性), * );
});

const 从文档文本新建图形文件 = (文档文本) => {
Expand All @@ -202,7 +202,7 @@ const 日志 = (_) =>
}`);

const 保存图像 = (_) => {
如何做爱元素[设置属性](运行中属性, );
根元素[设置属性](运行中属性, );

const 文档文本 = `<?xml version="1.0" encoding="utf-8"?><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 ${} ${}" ${宽度}="${}px" ${高度}="${}px">${图形[]}</svg>`;
const 数据地址 = 从文档文本新建图形文件(文档文本);
Expand All @@ -228,7 +228,7 @@ const 保存图像 = (_) => {

设置延时((_) => {
下载文件(地址, 保存文件名);
如何做爱元素[清除属性](运行中属性);
根元素[清除属性](运行中属性);
}, 50);
});
});
Expand Down
11 changes: 7 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,20 @@
"type": "git",
"url": "git+https://github.com/yusancky/GBA-ex.git"
},
"keywords": ["GBA"],
"keywords": [
"GBA"
],
"author": "yusancky",
"license": "MIT",
"bugs": {
"url": "https://github.com/yusancky/GBA-ex/issues"
},
"files": [
"html/index.html",
"html/样式.css",
"html/脚本.js",
"html/字体.woff"
"html/样式.css",
"html/字体.woff",
"html/favicon.ico",
"html/index.html"
],
"homepage": "https://gba-ex.netlify.app/",
"dependencies": {
Expand Down
1 change: 1 addition & 0 deletions 转译.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ const reader = async (_) => {
});
writeFileSync("dist/样式.css", cssText.css, "utf8");
copyFileSync("html/LXGWWenKaiGB-Regular.woff", "dist/字体.woff");
copyFileSync("html/favicon.ico", "dist/favicon.ico");
};

reader();

0 comments on commit 5225f4f

Please sign in to comment.