{"id":191864,"student_id":12205,"content":"{\"html\":\"\u003c!DOCTYPE html\u003e\\n\u003chtml\u003e\\n\u003chead\u003e\\n\\t\u003ctitle\u003e計算機\u003c/title\u003e\\n\\t\u003cscript src=\\\"https://code.jquery.com/jquery-3.3.1.min.js\\\"\u003e\u003c/script\u003e\\n\u003c/head\u003e\\n\u003cbody\u003e\\n \\n \u003cdiv id=\\\"app\\\"\u003e\\n \u003cp\u003e\u003c/p\u003e\\n \u003cbutton class=\\\"bg-light\\\"\u003eC\u003c/button\u003e\\n \u003cbutton class=\\\"bg-light\\\"\u003e(\u003c/button\u003e\\n \u003cbutton class=\\\"bg-light\\\"\u003e)\u003c/button\u003e\\n \u003cbutton class=\\\"bg-orange\\\"\u003e/\u003c/button\u003e\\n \u003cbutton class=\\\"bg-gray\\\"\u003e7\u003c/button\u003e\\n \u003cbutton class=\\\"bg-gray\\\"\u003e8\u003c/button\u003e\\n \u003cbutton class=\\\"bg-gray\\\"\u003e9\u003c/button\u003e\\n \u003cbutton class=\\\"bg-orange\\\"\u003e*\u003c/button\u003e\\n \u003cbutton class=\\\"bg-gray\\\"\u003e4\u003c/button\u003e\\n \u003cbutton class=\\\"bg-gray\\\"\u003e5\u003c/button\u003e\\n \u003cbutton class=\\\"bg-gray\\\"\u003e6\u003c/button\u003e\\n \u003cbutton class=\\\"bg-orange\\\"\u003e-\u003c/button\u003e\\n \u003cbutton class=\\\"bg-gray\\\"\u003e1\u003c/button\u003e\\n \u003cbutton class=\\\"bg-gray\\\"\u003e2\u003c/button\u003e\\n \u003cbutton class=\\\"bg-gray\\\"\u003e3\u003c/button\u003e\\n \u003cbutton class=\\\"bg-orange\\\"\u003e+\u003c/button\u003e\\n \u003cbutton class=\\\"bg-gray\\\"\u003edel\u003c/button\u003e\\n \u003cbutton class=\\\"bg-gray\\\"\u003e0\u003c/button\u003e\\n \u003cbutton class=\\\"bg-gray\\\"\u003e.\u003c/button\u003e\\n \u003cbutton class=\\\"bg-gray\\\"\u003e=\u003c/button\u003e\\n \u003c/div\u003e\\n \\n\u003c/body\u003e\\n\u003c/html\u003e\",\"css\":\"body {\\n background-color: black;\\n text-align: center;\\n padding: 100px;\\n\\n}\\n\\n#app {\\n width: 300px;\\n height: 400px;\\n /*可使margin自動抓一半,但需要有設定此元件大小*/\\n margin: auto;\\n}\\n\\np {\\n color: #fff;\\n text-align: right;\\n font-size: 40px;\\n \\n height: 60px;\\n padding: 5px;\\n margin: 5px;\\n}\\n\\nbutton {\\n /* 一顆按鈕:寬70px + 邊寬5px = 75px */\\n /* 一排按鈕:75px * 4 = 300px */\\n width: 70px;\\n height: 70px;\\n\\n border-width: 5px;\\n border-radius: 50%;\\n border-color: black;\\n\\n color: #fff;\\n font-size: 20px;\\n\\n /* 去除點擊時外圍的藍色框框,與border不同處於outline,border並不佔空間 */\\n outline: none;\\n}\\n\\n.bg-orange {\\n background-color: orange;\\n}\\n.bg-light {\\n background-color: #777;\\n}\\n.bg-gray {\\n background-color: #333;\\n}\\n\\n/* 以上為預設程式碼 */\\n\\n\\nbutton:active{\\n transform: scale(0.9, 0.9);\\n\\n}\\n\\n/* .bg-orange:hover {#777\\n background-color: #FFDAB9;\\n} */\\n\\n\\n/* .bg-light:hover {\\n background-color: #aaa;\\n} */\\n\\n\\n/* .bg-gray:hover {\\n background-color: #666;\\n} */\\n\",\"js\":\"\\n$('button').click(clicked)\\nfunction clicked() {\\n //將點擊的按鈕資料存到變數\\n var char = $(this).text();\\n // console.log(char);\\n\\n var result;\\n var screen_val = $('p').text();\\n\\n if (char == 'C') {\\n result = '';\\n } else if (char == 'del') {\\n result = screen_val.slice(0, screen_val.length - 1);\\n }\\n else if (char == '=') {\\n try {\\n result = eval(screen_val);\\n } catch (e) {\\n $('p').text('Error');\\n alert(e)\\n }\\n } else {\\n result = screen_val + char;\\n }\\n\\n\\n $('p').text(result);\\n}\"}","created_at":"2020-09-14T12:58:44.334+08:00","updated_at":"2020-09-27T15:43:43.387+08:00","name":"ios計算機","language":"web","screenshot":{"url":"https://cdn4.koding.school/uploads/project/screenshot/191864/b9d2bdfed0056bf654be6226083c9ea0.jpg"},"parent_id":3,"plugin":"","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":52,"hashid":"wdksq24z","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
到這台電腦