{"id":231167,"student_id":3232,"content":"{\"html\":\"\u003c!DOCTYPE html\u003e\\n\u003chtml\u003e\\n\u003chead\u003e\\n \u003ctitle\u003eDocument\u003c/title\u003e\\n \u003cscript src=\\\"https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js\\\"\u003e\u003c/script\u003e\\n\u003c/head\u003e\\n\u003cbody\u003e\\n \u003cdiv id=buttons\u003e\\n \u003cdiv id=result\u003e\\n \u003cdiv id=\\\"process\\\"\u003e\u003c/div\u003e\\n \u003cdiv id=\\\"output\\\"\u003e\u003c/div\u003e\\n \u003c/div\u003e\\n \u003cdiv id=\\\"w\\\"\u003e\\n \u003cp\u003e\\n \u003cbutton id=\\\"dad\\\" class=\\\"gray\\\"\u003e父\u003c/button\u003e\\n \u003cbutton id=\\\"mom\\\" class=\\\"gray\\\"\u003e母\u003c/button\u003e\\n \u003cbutton id=\\\"clear\\\"\u003eC\u003c/button\u003e\\n \u003c/p\u003e\\n \u003cp\u003e\\n \u003cbutton id=\\\"bigBrother\\\" class=\\\"gray\\\"\u003e兄\u003c/button\u003e\\n \u003cbutton id=\\\"littleBrother\\\" class=\\\"gray\\\"\u003e弟\u003c/button\u003e\\n \u003cbutton id=\\\"bigSister\\\" class=\\\"gray\\\"\u003e姐\u003c/button\u003e\\n \u003cbutton id=\\\"littleSister\\\" class=\\\"gray\\\"\u003e妹\u003c/button\u003e\\n \u003c/p\u003e\\n \u003cp\u003e\\n \u003cbutton id=\\\"husband\\\" class=\\\"gray\\\"\u003e夫\u003c/button\u003e\\n \u003cbutton id=\\\"wife\\\" class=\\\"gray\\\"\u003e妻\u003c/button\u003e\\n \u003cbutton id=\\\"older\\\" class=\\\"oy\\\"\u003e長\u003c/button\u003e\\n \u003cbutton id=\\\"plus\\\" class=\\\"plus\\\"\u003e的\u003c/button\u003e\\n \u003c/p\u003e\\n \u003cp\u003e\\n \u003cbutton id=\\\"son\\\" class=\\\"gray\\\"\u003e子\u003c/button\u003e\\n \u003cbutton id=\\\"daughter\\\" class=\\\"gray\\\"\u003e女\u003c/button\u003e\\n \u003cbutton id=\\\"younger\\\" class=\\\"oy\\\"\u003e輕\u003c/button\u003e\\n \u003cbutton id=\\\"equal\\\" class=\\\"equal\\\"\u003e=\u003c/button\u003e\\n \u003c/p\u003e\\n \u003c/div\u003e\\n\\n \u003c/div\u003e\\n\\n\\n\u003c/body\u003e\\n\u003c/html\u003e\",\"css\":\"/* 設定整個頁面內容水平置中、內寬為 30 像素:*/\\nbody {\\n text-align: center;\\n padding: 30px;\\n}\\n\\n#result {\\n border-radius: 10px;\\n border: 1px solid black;\\n padding: 1px;\\n width: 500px;\\n height: 100px;\\n margin-left: 50px;\\n margin-top: 20px;\\n margin-bottom: 0px;\\n background-color: #f2eebd;\\n}\\n#buttons {\\n border-radius: 10px;\\n border: 1px solid black;\\n padding: 30px;\\n width: 600px;\\n height: 450px;\\n margin-left: 300px;\\n background-color: #dbdbdb;\\n}\\n#process {\\n border-bottom: 1px solid #0d1b38;\\n height: 40px;\\n width: 500px;\\n display: block;\\n text-align: right;\\n line-height: 220%;\\n font-size: 20px;\\n}\\n#output {\\n /* border: 1px solid black; */\\n width: 500px;\\n height: 70px;\\n font-size: 40px;\\n display: block;\\n text-align: right;\\n line-height: 170%;\\n}\\n\\nbutton {\\n display: inline-block;\\n outline: none;\\n border-radius: 10px;\\n border: 1px solid black;\\n width: 100px;\\n height: 60px;\\n font-size: 30px;\\n cursor: pointer;\\n box-shadow: 0 9px #999;\\n}\\n\\n#clear {\\n margin-left: 147px;\\n margin-right: 17px;\\n margin-top: 20px;\\n background-color: #ffab45;\\n color: white;\\n}\\n#mom {\\n margin-left: 20px;\\n}\\n#plus {\\n margin-right: 15px;\\n margin-left: 15px;\\n background-color: #8a6f4e;\\n color: white;\\n}\\n#equal {\\n margin-right: 15px;\\n margin-left: 15px;\\n background-color: #38342e;\\n color: white;\\n}\\n.oy{\\n opacity: 0.6;\\n cursor: not-allowed;\\n margin-right: 15px;\\n margin-left: 15px;\\n \\n}\\n\\n.gray {\\n margin-right: 15px;\\n margin-left: 15px;\\n\\n}\\n.gray:hover {\\n background-color: #d4d4d4;\\n}\\n#clear:hover {\\n background-color: #e69430;\\n}\\n.plus:hover {\\n background-color: #66533c;\\n}\\n.equal:hover {\\n background-color: #0d0c07;\\n}\\n.gray:active {\\n background-color: #d4d4d4;\\n box-shadow: 0 5px #666;\\n transform: translateY(4px);\\n}\\n#clear:active {\\n background-color: #e69430;\\n box-shadow: 0 5px #666;\\n transform: translateY(4px);\\n}\\n.plus:active {\\n background-color: #66533c;\\n box-shadow: 0 5px #666;\\n transform: translateY(4px);\\n}\\n.equal:active {\\n background-color: #0d0c07;\\n box-shadow: 0 5px #666;\\n transform: translateY(4px);\\n}\",\"js\":\"$(\\\"#output\\\").text(\\\"我\\\");\\nvar p = [];\\nvar result;\\nvar gb;\\nvar cp = false;\\nvar b;\\noy1();\\n$(\\\"#clear\\\").click(function() {\\n oy1();\\n $(\\\"#output\\\").text(\\\"我\\\");\\n $(\\\"#process\\\").text(\\\"\\\");\\n p = [];\\n})\\n\\n$(\\\"#dad\\\").click(function() {\\n if ($(\\\"#dad\\\").hasClass(\\\"gray\\\")) {\\n $(\\\"#output\\\").text(\\\"爸爸\\\");\\n }\\n\\n})\\n$(\\\"#mom\\\").click(function() {\\n if ($(\\\"#mom\\\").hasClass(\\\"gray\\\")) {\\n\\n $(\\\"#output\\\").text(\\\"媽媽\\\");\\n }\\n})\\n$(\\\"#bigBrother\\\").click(function() {\\n if ($(\\\"#bigBrother\\\").hasClass(\\\"gray\\\")) {\\n $(\\\"#output\\\").text(\\\"哥哥\\\");\\n }\\n\\n})\\n$(\\\"#littleBrother\\\").click(function() {\\n if ($(\\\"#littleBrother\\\").hasClass(\\\"gray\\\")) {\\n $(\\\"#output\\\").text(\\\"弟弟\\\");\\n }\\n})\\n$(\\\"#bigSister\\\").click(function() {\\n if ($(\\\"#bigSister\\\").hasClass(\\\"gray\\\")) {\\n $(\\\"#output\\\").text(\\\"姐姐\\\");\\n }\\n})\\n$(\\\"#littleSister\\\").click(function() {\\n if ($(\\\"#littleSister\\\").hasClass(\\\"gray\\\")) {\\n $(\\\"#output\\\").text(\\\"妹妹\\\");\\n }\\n})\\n$(\\\"#husband\\\").click(function() {\\n if ($(\\\"#husband\\\").hasClass(\\\"gray\\\")) {\\n $(\\\"#output\\\").text(\\\"丈夫\\\");\\n }\\n})\\n$(\\\"#wife\\\").click(function() {\\n if ($(\\\"#wife\\\").hasClass(\\\"gray\\\")) {\\n $(\\\"#output\\\").text(\\\"妻子\\\");\\n }\\n})\\n$(\\\"#son\\\").click(function() {\\n if ($(\\\"#son\\\").hasClass(\\\"gray\\\")) {\\n $(\\\"#output\\\").text(\\\"兒子\\\");\\n }\\n})\\n$(\\\"#daughter\\\").click(function() {\\n if ($(\\\"#daughter\\\").hasClass(\\\"gray\\\")) {\\n $(\\\"#output\\\").text(\\\"女兒\\\");\\n }\\n})\\n$(\\\"#older\\\").click(function() {\\n if ($(\\\"#output\\\").text() == \\\"比你年長/輕?\\\") {\\n if (gb == \\\"b\\\") {\\n $(\\\"#output\\\").text(\\\"哥哥\\\");\\n $(\\\"#process\\\").text(\\\"\\\");\\n p = [];\\n oy1();\\n } else {\\n $(\\\"#output\\\").text(\\\"姐姐\\\");\\n $(\\\"#process\\\").text(\\\"\\\");\\n p = [];\\n oy1();\\n }\\n\\n } else if ($(\\\"#output\\\").text() == \\\"比爸爸年長/輕?\\\") {\\n\\n $(\\\"#output\\\").text(\\\"伯父\\\");\\n $(\\\"#process\\\").text(\\\"\\\");\\n p = [];\\n oy1();\\n\\n\\n }\\n\\n\\n})\\n$(\\\"#younger\\\").click(function() {\\n\\n if ($(\\\"#output\\\").text() == \\\"比你年長/輕?\\\") {\\n if (gb == \\\"g\\\") {\\n $(\\\"#output\\\").text(\\\"妹妹\\\");\\n $(\\\"#process\\\").text(\\\"\\\");\\n p = [];\\n oy1();\\n } else {\\n $(\\\"#output\\\").text(\\\"弟弟\\\");\\n $(\\\"#process\\\").text(\\\"\\\");\\n p = [];\\n oy1();\\n }\\n\\n } else if ($(\\\"#output\\\").text() == \\\"比爸爸年長/輕?\\\") {\\n\\n $(\\\"#output\\\").text(\\\"叔叔\\\");\\n $(\\\"#process\\\").text(\\\"\\\");\\n p = [];\\n oy1();\\n }\\n})\\n\\n$(\\\"#plus\\\").click(function() {\\n if ($(\\\"#plus\\\").hasClass(\\\"plus\\\") \u0026\u0026 $(\\\"#output\\\").text() != \\\"未知\\\") {\\n\\n if (cp) {\\n cp = false;\\n $(\\\"#process\\\").text(\\\"\\\");\\n }\\n p.push($(\\\"#output\\\").text());\\n console.log(p);\\n $(\\\"#process\\\").text($(\\\"#process\\\").text() + $(\\\"#output\\\").text() + \\\" 的 \\\");\\n $(\\\"#output\\\").text(calculate());\\n\\n }\\n\\n})\\n$(\\\"#equal\\\").click(function() {\\n if ($(\\\"#equal\\\").hasClass(\\\"equal\\\")) {\\n\\n\\n p.push($(\\\"#output\\\").text());\\n console.log(p);\\n $(\\\"#process\\\").text($(\\\"#process\\\").text() + $(\\\"#output\\\").text() + \\\" = \\\");\\n $(\\\"#output\\\").text(calculate());\\n\\n p = [];\\n console.log(p);\\n cp = true;\\n }\\n})\\n\\n\\n\\nfunction calculate() {\\n\\n var a = 0;\\n if (p.length == 1) {\\n return p[0];\\n } else if (p[0] == \\\"我\\\") {\\n if (p.length == 2) {\\n return p[1];\\n } else {\\n result = p[1];\\n a = 2;\\n }\\n\\n } else {\\n result = p[0];\\n a = 1;\\n }\\n if (result == \\\"爸爸\\\") {\\n if (p[a] == \\\"爸爸\\\") {\\n result = \\\"爺爺\\\";\\n } else if (p[a] == \\\"媽媽\\\") {\\n result = \\\"奶奶\\\";\\n } else if (p[a] == \\\"哥哥\\\") {\\n result = \\\"伯父\\\";\\n } else if (p[a] == \\\"弟弟\\\") {\\n result = \\\"叔叔\\\";\\n } else if (p[a] == \\\"姐姐\\\" || p[a] == \\\"妹妹\\\") {\\n result = \\\"姑姑\\\";\\n } else if (p[a] == \\\"丈夫\\\") {\\n result = \\\"未知\\\";\\n } else if (p[a] == \\\"妻子\\\") {\\n result = \\\"媽媽\\\";\\n } else if (p[a] == \\\"兒子\\\") {\\n gb = \\\"b\\\";\\n oy();\\n return \\\"比你年長/輕?\\\";\\n } else if (p[a] == \\\"女兒\\\") {\\n gb = \\\"g\\\";\\n oy();\\n return \\\"比你年長/輕?\\\";\\n }\\n if (p.length == a + 1) {\\n return result;\\n } else {\\n a ++;\\n }\\n } else if (result == \\\"媽媽\\\") {\\n if (p[a] == \\\"爸爸\\\") {\\n result = \\\"外公\\\";\\n } else if (p[a] == \\\"媽媽\\\") {\\n result = \\\"外婆\\\";\\n } else if (p[a] == \\\"哥哥\\\" || p[a] == \\\"弟弟\\\") {\\n result = \\\"舅舅\\\";\\n } else if (p[a] == \\\"姐姐\\\" || p[a] == \\\"妹妹\\\") {\\n result = \\\"阿姨\\\";\\n } else if (p[a] == \\\"丈夫\\\") {\\n result = \\\"爸爸\\\";\\n } else if (p[a] == \\\"妻子\\\") {\\n result = \\\"未知\\\";\\n } else if (p[a] == \\\"兒子\\\") {\\n gb = \\\"b\\\";\\n oy();\\n return \\\"比你年長/輕?\\\";\\n } else if (p[a] == \\\"女兒\\\") {\\n gb = \\\"g\\\";\\n oy();\\n return \\\"比你年長/輕?\\\";\\n }\\n if (p.length == a + 1) {\\n return result;\\n } else {\\n a ++;\\n }\\n } else if (result == \\\"哥哥\\\") {\\n if (p[a] == \\\"爸爸\\\") {\\n result = \\\"爸爸\\\";\\n } else if (p[a] == \\\"媽媽\\\") {\\n result = \\\"媽媽\\\";\\n } else if (p[a] == \\\"哥哥\\\") {\\n result = \\\"哥哥\\\";\\n } else if (p[a] == \\\"弟弟\\\") {\\n gb = \\\"b\\\";\\n oy();\\n return \\\"比你年長/輕?\\\";\\n } else if (p[a] == \\\"姐姐\\\") {\\n result = \\\"姐姐\\\";\\n } else if (p[a] == \\\"妹妹\\\") {\\n gb = \\\"g\\\";\\n oy();\\n return \\\"比你年長/輕?\\\";\\n } else if (p[a] == \\\"丈夫\\\") {\\n result = \\\"未知\\\";\\n } else if (p[a] == \\\"妻子\\\") {\\n result = \\\"兄嫂\\\";\\n } else if (p[a] == \\\"兒子\\\") {\\n result = \\\"姪子\\\"\\n } else if (p[a] == \\\"女兒\\\") {\\n result = \\\"姪女\\\"\\n }\\n if (p.length == a + 1) {\\n return result;\\n } else {\\n a ++;\\n }\\n } else if (result == \\\"弟弟\\\") {\\n if (p[a] == \\\"爸爸\\\") {\\n result = \\\"爸爸\\\";\\n } else if (p[a] == \\\"媽媽\\\") {\\n result = \\\"媽媽\\\";\\n } else if (p[a] == \\\"哥哥\\\") {\\n gb = \\\"b\\\";\\n oy();\\n return \\\"比你年長/輕?\\\";\\n } else if (p[a] == \\\"弟弟\\\") {\\n result = \\\"弟弟\\\";\\n } else if (p[a] == \\\"姐姐\\\") {\\n gb = \\\"g\\\";\\n oy();\\n return \\\"比你年長/輕?\\\";\\n } else if (p[a] == \\\"妹妹\\\") {\\n result = \\\"妹妹\\\";\\n } else if (p[a] == \\\"丈夫\\\") {\\n result = \\\"未知\\\";\\n } else if (p[a] == \\\"妻子\\\") {\\n result = \\\"弟媳\\\";\\n } else if (p[a] == \\\"兒子\\\") {\\n result = \\\"姪子\\\"\\n } else if (p[a] == \\\"女兒\\\") {\\n result = \\\"姪女\\\"\\n }\\n if (p.length == a + 1) {\\n return result;\\n } else {\\n a ++;\\n }\\n } else if (result == \\\"姐姐\\\") {\\n if (p[a] == \\\"爸爸\\\") {\\n result = \\\"爸爸\\\";\\n } else if (p[a] == \\\"媽媽\\\") {\\n result = \\\"媽媽\\\";\\n } else if (p[a] == \\\"哥哥\\\") {\\n result = \\\"哥哥\\\";\\n } else if (p[a] == \\\"弟弟\\\") {\\n gb = \\\"b\\\";\\n oy();\\n return \\\"比你年長/輕?\\\";\\n } else if (p[a] == \\\"姐姐\\\") {\\n result = \\\"姐姐\\\";\\n } else if (p[a] == \\\"妹妹\\\") {\\n gb = \\\"g\\\";\\n oy();\\n return \\\"比你年長/輕?\\\";\\n } else if (p[a] == \\\"丈夫\\\") {\\n result = \\\"姊夫\\\";\\n } else if (p[a] == \\\"妻子\\\") {\\n result = \\\"未知\\\";\\n } else if (p[a] == \\\"兒子\\\") {\\n result = \\\"外甥\\\"\\n } else if (p[a] == \\\"女兒\\\") {\\n result = \\\"外甥女\\\"\\n }\\n if (p.length == a + 1) {\\n return result;\\n } else {\\n a ++;\\n }\\n } else if (result == \\\"妹妹\\\") {\\n if (p[a] == \\\"爸爸\\\") {\\n result = \\\"爸爸\\\";\\n } else if (p[a] == \\\"媽媽\\\") {\\n result = \\\"媽媽\\\";\\n } else if (p[a] == \\\"哥哥\\\") {\\n gb = \\\"b\\\";\\n oy();\\n return \\\"比你年長/輕?\\\";\\n } else if (p[a] == \\\"弟弟\\\") {\\n result = \\\"弟弟\\\";\\n } else if (p[a] == \\\"姐姐\\\") {\\n gb = \\\"g\\\";\\n oy();\\n return \\\"比你年長/輕?\\\";\\n } else if (p[a] == \\\"妹妹\\\") {\\n result = \\\"妹妹\\\";\\n } else if (p[a] == \\\"丈夫\\\") {\\n result = \\\"妹夫\\\";\\n } else if (p[a] == \\\"妻子\\\") {\\n result = \\\"未知\\\";\\n } else if (p[a] == \\\"兒子\\\") {\\n result = \\\"外甥\\\"\\n } else if (p[a] == \\\"女兒\\\") {\\n result = \\\"外甥女\\\"\\n }\\n if (p.length == a + 1) {\\n return result;\\n } else {\\n a ++;\\n }\\n } else if (result == \\\"丈夫\\\") {\\n if (p[a] == \\\"爸爸\\\") {\\n result = \\\"公公\\\";\\n } else if (p[a] == \\\"媽媽\\\") {\\n result = \\\"婆婆\\\";\\n } else if (p[a] == \\\"哥哥\\\") {\\n result = \\\"大伯\\\";\\n } else if (p[a] == \\\"弟弟\\\") {\\n result = \\\"小叔\\\";\\n } else if (p[a] == \\\"姐姐\\\") {\\n result = \\\"大姑\\\";\\n } else if (p[a] == \\\"妹妹\\\") {\\n result = \\\"小姑\\\";\\n } else if (p[a] == \\\"丈夫\\\") {\\n result = \\\"未知\\\";\\n } else if (p[a] == \\\"妻子\\\") {\\n result = \\\"我\\\";\\n } else if (p[a] == \\\"兒子\\\") {\\n result = \\\"兒子\\\"\\n } else if (p[a] == \\\"女兒\\\") {\\n result = \\\"女兒\\\"\\n }\\n if (p.length == a + 1) {\\n return result;\\n } else {\\n a ++;\\n }\\n } else if (result == \\\"妻子\\\") {\\n if (p[a] == \\\"爸爸\\\") {\\n result = \\\"岳父\\\";\\n } else if (p[a] == \\\"媽媽\\\") {\\n result = \\\"岳母\\\";\\n } else if (p[a] == \\\"哥哥\\\") {\\n result = \\\"大舅\\\";\\n } else if (p[a] == \\\"弟弟\\\") {\\n result = \\\"小舅\\\";\\n } else if (p[a] == \\\"姐姐\\\") {\\n result = \\\"大姨\\\";\\n } else if (p[a] == \\\"妹妹\\\") {\\n result = \\\"小姨\\\";\\n } else if (p[a] == \\\"丈夫\\\") {\\n result = \\\"我\\\";\\n } else if (p[a] == \\\"妻子\\\") {\\n result = \\\"未知\\\";\\n } else if (p[a] == \\\"兒子\\\") {\\n result = \\\"兒子\\\"\\n } else if (p[a] == \\\"女兒\\\") {\\n result = \\\"女兒\\\"\\n }\\n if (p.length == a + 1) {\\n return result;\\n } else {\\n a ++;\\n }\\n } else if (result == \\\"兒子\\\") {\\n if (p[a] == \\\"爸爸\\\") {\\n result = \\\"丈夫\\\";\\n } else if (p[a] == \\\"媽媽\\\") {\\n result = \\\"妻子\\\";\\n } else if (p[a] == \\\"哥哥\\\" || p[a] == \\\"弟弟\\\") {\\n result = \\\"兒子\\\";\\n } else if (p[a] == \\\"姐姐\\\" || p[a] == \\\"妹妹\\\") {\\n result = \\\"女兒\\\"\\n } else if (p[a] == \\\"丈夫\\\") {\\n result = \\\"未知\\\";\\n } else if (p[a] == \\\"妻子\\\") {\\n result = \\\"媳婦\\\";\\n } else if (p[a] == \\\"兒子\\\") {\\n result = \\\"孫子\\\"\\n } else if (p[a] == \\\"女兒\\\") {\\n result = \\\"孫女\\\"\\n }\\n if (p.length == a + 1) {\\n return result;\\n } else {\\n a ++;\\n }\\n } else if (result == \\\"女兒\\\") {\\n if (p[a] == \\\"爸爸\\\") {\\n result = \\\"丈夫\\\";\\n } else if (p[a] == \\\"媽媽\\\") {\\n result = \\\"妻子\\\";\\n } else if (p[a] == \\\"哥哥\\\" || p[a] == \\\"弟弟\\\") {\\n result = \\\"兒子\\\";\\n } else if (p[a] == \\\"姐姐\\\" || p[a] == \\\"妹妹\\\") {\\n result = \\\"女兒\\\";\\n } else if (p[a] == \\\"丈夫\\\") {\\n result = \\\"女婿\\\";\\n } else if (p[a] == \\\"妻子\\\") {\\n result = \\\"未知\\\";\\n } else if (p[a] == \\\"兒子\\\") {\\n result = \\\"外孫\\\"\\n } else if (p[a] == \\\"女兒\\\") {\\n result = \\\"外孫女\\\"\\n }\\n if (p.length == a + 1) {\\n return result;\\n } else {\\n a ++;\\n }\\n\\n }\\n console.log(p+\\\"before\\\");\\n for (var i = 0; i \u003c a+1; i++) {\\n b = p.shift();\\n }\\n console.log(b);\\n // return calculate2();\\n if (result == \\\"爸爸\\\") {\\n if (b == \\\"爸爸\\\") {\\n result = \\\"爺爺\\\";\\n } else if (b == \\\"媽媽\\\") {\\n result = \\\"奶奶\\\";\\n } else if (b == \\\"哥哥\\\") {\\n result = \\\"伯父\\\";\\n } else if (b == \\\"弟弟\\\") {\\n result = \\\"叔叔\\\";\\n } else if (b == \\\"姐姐\\\" || b == \\\"妹妹\\\") {\\n result = \\\"姑姑\\\";\\n } else if (b == \\\"丈夫\\\") {\\n result = \\\"未知\\\";\\n } else if (b == \\\"妻子\\\") {\\n result = \\\"媽媽\\\";\\n } else if (b == \\\"兒子\\\") {\\n gb = \\\"b\\\";\\n oy();\\n return \\\"比你年長/輕?\\\";\\n } else if (b == \\\"女兒\\\") {\\n gb = \\\"g\\\";\\n oy();\\n return \\\"比你年長/輕?\\\";\\n }\\n if (p.length == 0) {\\n return result;\\n } else {\\n var n = 0;\\n }\\n\\n } else if (result == \\\"媽媽\\\") {\\n if (b == \\\"爸爸\\\") {\\n result = \\\"外公\\\";\\n } else if (b == \\\"媽媽\\\") {\\n result = \\\"外婆\\\";\\n } else if (b == \\\"哥哥\\\" || b == \\\"弟弟\\\") {\\n result = \\\"舅舅\\\";\\n } else if (b == \\\"姐姐\\\" || b == \\\"妹妹\\\") {\\n result = \\\"阿姨\\\";\\n } else if (b == \\\"丈夫\\\") {\\n result = \\\"爸爸\\\";\\n } else if (b == \\\"妻子\\\") {\\n result = \\\"未知\\\";\\n } else if (b == \\\"兒子\\\") {\\n gb = \\\"b\\\";\\n oy();\\n return \\\"比你年長/輕?\\\";\\n } else if (b == \\\"女兒\\\") {\\n gb = \\\"g\\\";\\n oy();\\n return \\\"比你年長/輕?\\\";\\n }\\n if (p.length == 0) {\\n return result;\\n } else {\\n var c = 0;\\n }\\n } else if (result == \\\"哥哥\\\") {\\n if (b == \\\"爸爸\\\") {\\n result = \\\"爸爸\\\";\\n } else if (b == \\\"媽媽\\\") {\\n result = \\\"媽媽\\\";\\n } else if (b == \\\"哥哥\\\") {\\n result = \\\"哥哥\\\";\\n } else if (b == \\\"弟弟\\\") {\\n gb = \\\"b\\\";\\n oy();\\n return \\\"比你年長/輕?\\\";\\n } else if (b == \\\"姐姐\\\") {\\n result = \\\"姐姐\\\";\\n } else if (b == \\\"妹妹\\\") {\\n gb = \\\"g\\\";\\n oy();\\n return \\\"比你年長/輕?\\\";\\n } else if (b == \\\"丈夫\\\") {\\n result = \\\"未知\\\";\\n } else if (b == \\\"妻子\\\") {\\n result = \\\"兄嫂\\\";\\n } else if (b == \\\"兒子\\\") {\\n result = \\\"姪子\\\"\\n } else if (b == \\\"女兒\\\") {\\n result = \\\"姪女\\\"\\n }\\n if (p.length == 0) {\\n return result;\\n } else {\\n var c = 0;\\n }\\n } else if (result == \\\"弟弟\\\") {\\n if (b == \\\"爸爸\\\") {\\n result = \\\"爸爸\\\";\\n } else if (b == \\\"媽媽\\\") {\\n result = \\\"媽媽\\\";\\n } else if (b == \\\"哥哥\\\") {\\n gb = \\\"b\\\";\\n oy();\\n return \\\"比你年長/輕?\\\";\\n } else if (b == \\\"弟弟\\\") {\\n result = \\\"弟弟\\\";\\n } else if (b == \\\"姐姐\\\") {\\n gb = \\\"g\\\";\\n oy();\\n return \\\"比你年長/輕?\\\";\\n } else if (b == \\\"妹妹\\\") {\\n result = \\\"妹妹\\\";\\n } else if (b == \\\"丈夫\\\") {\\n result = \\\"未知\\\";\\n } else if (b == \\\"妻子\\\") {\\n result = \\\"弟媳\\\";\\n } else if (b == \\\"兒子\\\") {\\n result = \\\"姪子\\\"\\n } else if (b == \\\"女兒\\\") {\\n result = \\\"姪女\\\"\\n }\\n if (p.length == 0) {\\n return result;\\n } else {\\n var c = 0;\\n }\\n } else if (result == \\\"姐姐\\\") {\\n if (b == \\\"爸爸\\\") {\\n result = \\\"爸爸\\\";\\n } else if (b == \\\"媽媽\\\") {\\n result = \\\"媽媽\\\";\\n } else if (b == \\\"哥哥\\\") {\\n result = \\\"哥哥\\\";\\n } else if (b == \\\"弟弟\\\") {\\n gb = \\\"b\\\";\\n oy();\\n return \\\"比你年長/輕?\\\";\\n } else if (b == \\\"姐姐\\\") {\\n result = \\\"姐姐\\\";\\n } else if (b == \\\"妹妹\\\") {\\n gb = \\\"g\\\";\\n oy();\\n return \\\"比你年長/輕?\\\";\\n } else if (b == \\\"丈夫\\\") {\\n result = \\\"姊夫\\\";\\n } else if (b == \\\"妻子\\\") {\\n result = \\\"未知\\\";\\n } else if (b == \\\"兒子\\\") {\\n result = \\\"外甥\\\"\\n } else if (b == \\\"女兒\\\") {\\n result = \\\"外甥女\\\"\\n }\\n if (p.length == 0) {\\n return result;\\n } else {\\n var c = 0;\\n }\\n } else if (result == \\\"妹妹\\\") {\\n if (b == \\\"爸爸\\\") {\\n result = \\\"爸爸\\\";\\n } else if (b == \\\"媽媽\\\") {\\n result = \\\"媽媽\\\";\\n } else if (b == \\\"哥哥\\\") {\\n gb = \\\"b\\\";\\n oy();\\n return \\\"比你年長/輕?\\\";\\n } else if (b == \\\"弟弟\\\") {\\n result = \\\"弟弟\\\";\\n } else if (b == \\\"姐姐\\\") {\\n gb = \\\"g\\\";\\n oy();\\n return \\\"比你年長/輕?\\\";\\n } else if (b == \\\"妹妹\\\") {\\n result = \\\"妹妹\\\";\\n } else if (b == \\\"丈夫\\\") {\\n result = \\\"妹夫\\\";\\n } else if (b == \\\"妻子\\\") {\\n result = \\\"未知\\\";\\n } else if (b == \\\"兒子\\\") {\\n result = \\\"外甥\\\"\\n } else if (b == \\\"女兒\\\") {\\n result = \\\"外甥女\\\"\\n }\\n if (p.length == 0) {\\n return result;\\n } else {\\n var c = 0;\\n }\\n } else if (result == \\\"丈夫\\\") {\\n if (b == \\\"爸爸\\\") {\\n result = \\\"公公\\\";\\n } else if (b == \\\"媽媽\\\") {\\n result = \\\"婆婆\\\";\\n } else if (b == \\\"哥哥\\\") {\\n result = \\\"大伯\\\";\\n } else if (b == \\\"弟弟\\\") {\\n result = \\\"小叔\\\";\\n } else if (b == \\\"姐姐\\\") {\\n result = \\\"大姑\\\";\\n } else if (b == \\\"妹妹\\\") {\\n result = \\\"小姑\\\";\\n } else if (b == \\\"丈夫\\\") {\\n result = \\\"未知\\\";\\n } else if (b == \\\"妻子\\\") {\\n result = \\\"我\\\";\\n } else if (b == \\\"兒子\\\") {\\n result = \\\"兒子\\\"\\n } else if (b == \\\"女兒\\\") {\\n result = \\\"女兒\\\"\\n }\\n if (p.length == 0) {\\n return result;\\n } else {\\n var c = 0;\\n }\\n } else if (result == \\\"妻子\\\") {\\n if (b == \\\"爸爸\\\") {\\n result = \\\"岳父\\\";\\n } else if (b == \\\"媽媽\\\") {\\n result = \\\"岳母\\\";\\n } else if (b == \\\"哥哥\\\") {\\n result = \\\"大舅\\\";\\n } else if (b == \\\"弟弟\\\") {\\n result = \\\"小舅\\\";\\n } else if (b == \\\"姐姐\\\") {\\n result = \\\"大姨\\\";\\n } else if (b == \\\"妹妹\\\") {\\n result = \\\"小姨\\\";\\n } else if (b == \\\"丈夫\\\") {\\n result = \\\"我\\\";\\n } else if (b == \\\"妻子\\\") {\\n result = \\\"未知\\\";\\n } else if (b == \\\"兒子\\\") {\\n result = \\\"兒子\\\"\\n } else if (b == \\\"女兒\\\") {\\n result = \\\"女兒\\\"\\n }\\n if (p.length == 0) {\\n return result;\\n } else {\\n var c = 0;\\n }\\n } else if (result == \\\"兒子\\\") {\\n if (b == \\\"爸爸\\\") {\\n result = \\\"丈夫\\\";\\n } else if (b == \\\"媽媽\\\") {\\n result = \\\"妻子\\\";\\n } else if (b == \\\"哥哥\\\" || b == \\\"弟弟\\\") {\\n result = \\\"兒子\\\";\\n } else if (b == \\\"姐姐\\\" || b == \\\"妹妹\\\") {\\n result = \\\"女兒\\\"\\n } else if (b == \\\"丈夫\\\") {\\n result = \\\"未知\\\";\\n } else if (b == \\\"妻子\\\") {\\n result = \\\"媳婦\\\";\\n } else if (b == \\\"兒子\\\") {\\n result = \\\"孫子\\\"\\n } else if (b == \\\"女兒\\\") {\\n result = \\\"孫女\\\"\\n }\\n if (p.length == 0) {\\n return result;\\n } else {\\n var c = 0;\\n }\\n } else if (result == \\\"女兒\\\") {\\n if (b == \\\"爸爸\\\") {\\n result = \\\"丈夫\\\";\\n } else if (b == \\\"媽媽\\\") {\\n result = \\\"妻子\\\";\\n } else if (b == \\\"哥哥\\\" || b == \\\"弟弟\\\") {\\n result = \\\"兒子\\\";\\n } else if (b == \\\"姐姐\\\" || b == \\\"妹妹\\\") {\\n result = \\\"女兒\\\";\\n } else if (b == \\\"丈夫\\\") {\\n result = \\\"女婿\\\";\\n } else if (b == \\\"妻子\\\") {\\n result = \\\"未知\\\";\\n } else if (b == \\\"兒子\\\") {\\n result = \\\"外孫\\\"\\n } else if (b == \\\"女兒\\\") {\\n result = \\\"外孫女\\\"\\n }\\n if (p.length == 0) {\\n return result;\\n } else {\\n var c = 0;\\n }\\n } else if (result == \\\"爺爺\\\") {\\n if (b == \\\"爸爸\\\") {\\n result = \\\"曾祖父\\\";\\n } else if (b == \\\"媽媽\\\") {\\n result = \\\"曾祖母\\\";\\n } else if (b == \\\"哥哥\\\") {\\n result = \\\"伯父\\\";\\n } else if (b == \\\"弟弟\\\") {\\n result = \\\"叔父\\\"\\n } else if (b == \\\"姐姐\\\" || b == \\\"妹妹\\\") {\\n result = \\\"姑婆\\\"\\n } else if (b == \\\"丈夫\\\") {\\n result = \\\"未知\\\";\\n } else if (b == \\\"妻子\\\") {\\n result = \\\"奶奶\\\";\\n } else if (b == \\\"兒子\\\") {\\n oy();\\n return \\\"比爸爸年長/輕\\\"\\n } else if (b == \\\"女兒\\\") {\\n result = \\\"姑姑\\\"\\n }\\n if (p.length == 0) {\\n return result;\\n } else {\\n var c = 0;\\n }\\n } else if (result == 奶奶){\\n //下次從這邊\\n }\\n\\n}\\n\\n\\n\\n\\nfunction oy() {\\n $(\\\"#older\\\").removeClass(\\\"oy\\\");\\n $(\\\"#older\\\").addClass(\\\"gray\\\");\\n $(\\\"#younger\\\").removeClass(\\\"oy\\\");\\n $(\\\"#younger\\\").addClass(\\\"gray\\\")\\n $(\\\"#dad\\\").removeClass(\\\"gray\\\");\\n $(\\\"#dad\\\").addClass(\\\"oy\\\");\\n $(\\\"#mom\\\").removeClass(\\\"gray\\\");\\n $(\\\"#mom\\\").addClass(\\\"oy\\\");\\n $(\\\"#bigBrother\\\").removeClass(\\\"gray\\\");\\n $(\\\"#bigBrother\\\").addClass(\\\"oy\\\");\\n $(\\\"#littleBrother\\\").removeClass(\\\"gray\\\");\\n $(\\\"#littleBrother\\\").addClass(\\\"oy\\\");\\n $(\\\"#bigSister\\\").removeClass(\\\"gray\\\");\\n $(\\\"#bigSister\\\").addClass(\\\"oy\\\");\\n $(\\\"#littleSister\\\").removeClass(\\\"gray\\\");\\n $(\\\"#littleSister\\\").addClass(\\\"oy\\\");\\n $(\\\"#husband\\\").removeClass(\\\"gray\\\");\\n $(\\\"#husband\\\").addClass(\\\"oy\\\");\\n $(\\\"#wife\\\").removeClass(\\\"gray\\\");\\n $(\\\"#wife\\\").addClass(\\\"oy\\\");\\n $(\\\"#son\\\").removeClass(\\\"gray\\\");\\n $(\\\"#son\\\").addClass(\\\"oy\\\");\\n $(\\\"#daughter\\\").removeClass(\\\"gray\\\");\\n $(\\\"#daughter\\\").addClass(\\\"oy\\\")\\n $(\\\"#plus\\\").removeClass(\\\"plus\\\");\\n $(\\\"#plus\\\").addClass(\\\"oy\\\");\\n $(\\\"#equal\\\").removeClass(\\\"equal\\\");\\n $(\\\"#equal\\\").addClass(\\\"oy\\\")\\n}\\nfunction oy1() {\\n $(\\\"#older\\\").removeClass(\\\"gray\\\");\\n $(\\\"#older\\\").addClass(\\\"oy\\\");\\n $(\\\"#younger\\\").removeClass(\\\"gray\\\");\\n $(\\\"#younger\\\").addClass(\\\"oy\\\")\\n $(\\\"#dad\\\").removeClass(\\\"oy\\\");\\n $(\\\"#dad\\\").addClass(\\\"gray\\\");\\n $(\\\"#mom\\\").removeClass(\\\"oy\\\");\\n $(\\\"#mom\\\").addClass(\\\"gray\\\");\\n $(\\\"#bigBrother\\\").removeClass(\\\"oy\\\");\\n $(\\\"#bigBrother\\\").addClass(\\\"gray\\\");\\n $(\\\"#littleBrother\\\").removeClass(\\\"oy\\\");\\n $(\\\"#littleBrother\\\").addClass(\\\"gray\\\");\\n $(\\\"#bigSister\\\").removeClass(\\\"oy\\\");\\n $(\\\"#bigSister\\\").addClass(\\\"gray\\\");\\n $(\\\"#littleSister\\\").removeClass(\\\"oy\\\");\\n $(\\\"#littleSister\\\").addClass(\\\"gray\\\");\\n $(\\\"#husband\\\").removeClass(\\\"oy\\\");\\n $(\\\"#husband\\\").addClass(\\\"gray\\\");\\n $(\\\"#wife\\\").removeClass(\\\"oy\\\");\\n $(\\\"#wife\\\").addClass(\\\"gray\\\");\\n $(\\\"#son\\\").removeClass(\\\"oy\\\");\\n $(\\\"#son\\\").addClass(\\\"gray\\\");\\n $(\\\"#daughter\\\").removeClass(\\\"oy\\\");\\n $(\\\"#daughter\\\").addClass(\\\"gray\\\")\\n $(\\\"#plus\\\").removeClass(\\\"oy\\\");\\n $(\\\"#plus\\\").addClass(\\\"plus\\\");\\n $(\\\"#equal\\\").removeClass(\\\"oy\\\");\\n $(\\\"#equal\\\").addClass(\\\"equal\\\");\\n}\"}","created_at":"2021-02-27T08:53:09.812+08:00","updated_at":"2021-06-26T10:13:58.866+08:00","name":"p-c","language":"web","screenshot":{"url":"https://cdn9.koding.school/uploads/project/screenshot/231167/1c7889754f0157188e2969f6f950f864.jpg"},"parent_id":3,"plugin":"","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":50,"hashid":"6rps9qmqm","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
下載 Android APP (APK)
截圖
前往網站頁面
1:1:1
1:1
full
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦