自我实现罩杯计算器

pull/409/head
saeziae 2022-02-26 10:55:33 +08:00
parent d75cea0c63
commit 00823fe5dc
2 changed files with 90 additions and 1 deletions

View File

@ -0,0 +1,89 @@
---
title: "罩杯计算器"
description: "罩杯计算器"
---
<style>
input {
color: #495057;
border: 1px solid #ced4da;
border-radius: 0.25rem;
/*transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;*/
padding: 1px;
height: 1.5em;
width: 50px;
}
input:focus {
color: #495057;
outline: 0;
border-image: url(/images/shadow-i.png) 30 30 stretch;
border-image-width: 3px;
border-image-outset: 0px;
}
</style>
**运算都在您的本地完成,不收集任何数据**
1. 请准备一根软尺并面对镜子,看得到胸部
1. 请直立,放松,用软尺贴合乳房下缘<span style="text-decoration:underline; text-decoration-thickness: 2px;">⊙⊙</span>,水平绕身体一量圈: <input type="text" id="val1"/> cm
1. 请呼气:<input type="text" id="val2"/> cm
1. 请直立,放松,用软尺经过乳头<span style="text-decoration:line-through; text-decoration-thickness: 2px;">⊙⊙</span>,绕身体一量圈:<input type="text" id="val3"/> cm
1. 请俯身 45 度:<input type="text" id="val4"/> cm
1. 请鞠躬 90 度:<input type="text" id="val5"/> cm
<button onclick="cup()" type="submit">提交</button>
<p id="result"></p>
<script type="text/javascript">
function cup() {
var val1 = Number(window.document.getElementById("val1").value);
var val2 = Number(window.document.getElementById("val2").value);
var val3 = Number(window.document.getElementById("val3").value);
var val4 = Number(window.document.getElementById("val4").value);
var val5 = Number(window.document.getElementById("val5").value);
var xia = (val1 + val2 )/2;
var cup = (val3 + val4 + val5)/3 - xia;
if (isNaN(cup)) {
window.document.getElementById("result").innerHTML = "数值错误,再检查检查吧";
return;
} else if (cup<5){
window.document.getElementById("result").innerHTML = "小妹妹你还不需要穿内衣哦";
return;
} else if (cup<=7.5){
cup = "AA买少女小背心去吧";
} else if (cup<=10){
cup = "A还行啦还行啦";
} else if (cup<=12.5){
cup = "B";
} else if (cup<=15){
cup = "C";
} else if (cup<=17.5){
cup = "D";
} else if (cup<=20){
cup = "E";
}else{
window.document.getElementById("result").innerHTML = "你胸大你说了算(罩杯超出 MtF wiki 预设)";
return;
}
if (isNaN(xia)) {
window.document.getElementById("result").innerHTML = "数值错误,再检查检查吧";
return;
} else if (xia<=70){
xia = 70;
} else if (xia<=75){
xia = 75;
} else if (xia<=80){
xia = 80;
} else if (xia<=85){
xia = 85;
} else if (xia<=90){
xia = 90;
} else {
window.document.getElementById("result").innerHTML = "啊咧?大丈夫萌大奶?(这是地球人的胸围吗)";
return;
}
window.document.getElementById("result").innerHTML = xia + cup;
return;
}
</script>

View File

@ -2,4 +2,4 @@
title: 实用工具
---
[内衣尺码助手](https://sizehelp.naitangpai.com)
[内衣尺码计算器](/zh-cn/cup-calculator/)