Skip to content

Commit

Permalink
Signed-off-by: StarInitial <[email protected]>
Browse files Browse the repository at this point in the history
  • Loading branch information
StarInitial committed Jul 28, 2022
1 parent d071bc1 commit ded8de5
Show file tree
Hide file tree
Showing 3 changed files with 91 additions and 14 deletions.
55 changes: 55 additions & 0 deletions M-Degree.ink
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# author: Star
/**
* Title:M属性自评表
* Date:Wed Jul 27 2022 16:37:34 GMT+0800 (中国标准时间)
*/

VAR AllPoint = 0
VAR PetPoint = 0
VAR MPoint = 0

->CHECK_START
=== CHECK_START
~AllPoint = 0
~PetPoint = 0

内容作者@Ahgu
<b>\#NSFW警告</b>
该测试可能包含一些不适宜工作或学习时间进行的内容,请确认周边环境足够安全。
<b>\#适用性警告</b>
该测试部分内容可能仅适用于生理男性。


+ [开始测试]->START_TEST

=== START_TEST ===
VAR tdIndex = 0
VAR tdLength = 10

该测试可能会<b>消耗较长时间</b>,本自评表包含多个类别:
性奴、宠物、性玩具、露出、刑奴、女装、心控、其他
各个选项可以包含多个选项,如:
非常热爱、喜欢、能接受、不确定、厌恶
->Part1_Start
= Part1_Start
->Part1
= Part1
({tdIndex+1}/{tdLength}) 您对<b>"{!强奸|轮奸|舔肛}"</b>的接受程度是?
~tdIndex ++
+ 非常热爱
~MPoint+=1
{tdIndex == tdLength:
->Part2_Start
}
->Part1
+ 喜欢
+ 能接受
+ 不确定
+ 厌恶

= Part2_Start

->Part2
= Part2
->END

23 changes: 13 additions & 10 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@ <h4 style="display: block">测试列表</h4>
<th>#</th>
<th>测试</th>
<th>最后更新日期</th>
<th>预计耗时</th>
<th>状态</th>
<th>内容作者</th>
<th>程序作者</th>
<th>状态</th>
</tr>
</thead>
<tbody>
Expand All @@ -50,6 +51,16 @@ <h4 style="display: block">测试列表</h4>
table += '<tr><td>'+InkyList["inky-text-list"][i]["id"]+'</td>' +
'<td><a href="'+InkyList["inky-text-list"][i]["url"]+'">'+InkyList["inky-text-list"][i]["name"]+'</a></td>\n' +
'<td>'+InkyList["inky-text-list"][i]["update"]+'</td>\n';
table += '<td><div class="progress progress-striped progress-sm">\n' +
'<div class="progress-bar progress-bar-info" style="width: '+InkyList["inky-text-list"][i]["time"]+'%;"></div>\n' +
'</div></td>';

if (InkyList["inky-text-list"][i]["status"] === "OK")
table += '<td><span class="label label-success">正常</span></td>';
else if (InkyList["inky-text-list"][i]["status"] === "DOWN")
table += '<td><span class="label label-danger">停止服务</span></td>';
else
table += '<td><span class="label label-dark">未知</span></td>';
let authorSize = 0;
table += "<td>";
for(let j = 0 ; j < InkyList["inky-text-list"][i]["author"].length; j++) {
Expand Down Expand Up @@ -80,15 +91,7 @@ <h4 style="display: block">测试列表</h4>
table += '<span class="label label-dark">未知</span></td>';
}
table += '</td>';

console.log(table);

if (InkyList["inky-text-list"][i]["status"] === "OK")
table += '<td><span class="label label-success">正常</span></td></tr>';
else if (InkyList["inky-text-list"][i]["status"] === "DOWN")
table += '<td><span class="label label-danger">停止服务</span></td></tr>';
else
table += '<td><span class="label label-dark">未知</span></td></tr>';
table += "</tr>";
}
$('tbody').html(table);

Expand Down
27 changes: 23 additions & 4 deletions docs/inky-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,33 @@ var InkyList = {
"update":"2022/06/15",
"status":"OK",
"author":[],
"time":30,
"program-author":[
{
"name":"Star"
},
{
"name":"神楽坂 静瑶(@Dwscdv3)",
"url":"https://dwscdv3.com/"
}
{
"name":"神楽坂 静瑶(@Dwscdv3)",
"url":"https://dwscdv3.com/"
}
]
},
{
"id":1,
"url":"M-Degree",
"name":"M属性自测表",
"update":"未知",
"status":"DOWN",
"time":40,
"author":[
{
"name":"Ahgu"
}
],
"program-author":[
{
"name":"Star"
}
]
}
]
Expand Down

0 comments on commit ded8de5

Please sign in to comment.