Skip to content

Commit 8193462

Browse files
committed
++
1 parent 6e4abb9 commit 8193462

File tree

4 files changed

+22
-6
lines changed

4 files changed

+22
-6
lines changed

index.css

+5-2
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,17 @@ mdui-card{
1414
min-height: 240px;
1515
vertical-align: top;
1616
}
17-
@media screen and (max-aspect-ratio: 3/5) {
17+
@media screen and (max-width: 550px) {
1818
mdui-card{
1919
width: 150px;
2020
min-height: 200px;
2121
}
22+
.item-icon{
23+
font-size: 40px;
24+
}
2225
}
2326
.item-icon{
24-
font-size: 40px;
27+
font-size: 50px;
2528
}
2629
h1, p{
2730
margin-top: 7px;

index.js

+13-1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ e_cate.on('change',function(){
4848
show_tools(links, e_sort.val(), e_cate.val());
4949
});
5050
show_tools(links, e_sort.val(), e_cate.val());
51+
print_rcm();
5152

5253
function show_tools(list, sort, cate) {
5354
// prepare
@@ -112,4 +113,15 @@ function show_tools(list, sort, cate) {
112113
};
113114
};
114115

115-
116+
function print_rcm(){
117+
//console.log按recommand顺序打印出推荐列表,格式为:[{'键是name':'值是slot.recommend(可以为0和负数)'},...]
118+
let rcm_list = [];
119+
for(let i=0;i<links.length;i++){
120+
let item = links[i];
121+
rcm_list.push({'name':item.name,'recommend':item.slot.recommend});
122+
};
123+
rcm_list.sort(function(a,b){
124+
return b.recommend - a.recommend;
125+
});
126+
console.log(rcm_list);
127+
};

links.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ var links = [
1717
{
1818
name: "Todo",
1919
icon: "task_alt--outlined",
20-
desc: "模仿别人做的todo,左键标记右键删除,手机长按=右键",
20+
desc: "An imitative todo app, trigger ctx menu to del item",
2121
url: "./todo/index.html",
2222
github: null,
2323
slot: {
@@ -122,7 +122,7 @@ var links = [
122122
{
123123
name: "VisualVoice",
124124
icon: "voicemail",
125-
desc: "将声音转换成颜色",
125+
desc: "convert voice to color",
126126
url: "./vv/index.html",
127127
github: null,
128128
slot: {
@@ -137,7 +137,7 @@ var links = [
137137
{
138138
name: "Taple",
139139
icon: "table_chart--outlined",
140-
desc: "一个好看的表格,用canvas绘制",
140+
desc: "A pretty sinple table app based on canvas",
141141
url: "./taple/index.html",
142142
github: "https://github.com/for-the-zero/Taple",
143143
slot: {

updyn/index.html

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ <h1>UP主动态查看器 - 主页</h1>
3030
<p>仅提供查看动态功能,不提供互动功能,方便大家查看几个自己喜欢的UP主的动态</p>
3131
<p>该项目使用了我在pythonanywhere封装的api,可能不稳定,如果过期了要及时提醒我(pythonanywhere免费服务需要点击按钮续期三个月保活)</p>
3232
<p><a href="https://wsrv.nl">wsrv.nl</a>提供了图片代理服务(不然所有图片都是403了)</p>
33+
<p><b>好像用不了了,是服务端api调用的问题,被风控干了,能不能请求到看运气,以后有时间就改掉</b></p>
3334

3435

3536
<mdui-button variant="filled" class="uid-add">添加</mdui-button>

0 commit comments

Comments
 (0)