{"id":154166,"student_id":3469,"content":"{\"html\":\"\u003c!DOCTYPE html\u003e\\n\u003chtml\u003e\\n\u003chead\u003e\\n \u003ctitle\u003eDocument\u003c/title\u003e\\n \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 class=\\\"circle\\\"\u003e\\n \u003cdiv\u003e\\n \u003ch1 id=\\\"time\\\"\u003e00:00:00\u003c/h1\u003e\\n \u003ch2 id=\\\"date\\\"\u003eJan 01, 2000\u003c/h2\u003e\\n \u003c/div\u003e\\n \u003c/div\u003e\\n\u003c/body\u003e\\n\u003c/html\u003e\",\"css\":\"body {\\n transition: background-color 60s;\\n background-color: black;\\n width: 100vw;\\n height: 100vh;\\n}\\n.circle {\\n width: 300px;\\n height: 300px;\\n border: 5px solid white;\\n border-radius: 50%;\\n box-shadow: 3px 3px 15px white;\\n}\\ndiv {\\n position: relative;\\n top: 50%;\\n left: 50%;\\n transform: translate(-50%,-50%);\\n\\n}\\nh1 {\\n color: white;\\n font-size: 50px;\\n text-align: center;\\n text-shadow: 3px 3px 15px white;\\n margin: 0;\\n\\n}\\nh2 {\\n color: white;\\n text-align: center;\\n text-shadow: 3px 3px 15px white;\\n margin: 0;\\n\\n}\",\"js\":\"setInterval(getTime, 1000);\\nfunction getTime() {\\n var d = new Date();\\n var arr = d.toString().split(' ');\\n $('#time').text(arr[4]);\\n $('#date').text(arr[1]+' '+arr[2]+', '+arr[3]);\\n //console.log(arr);\\n //console.log('1:' + arr[1])\\n //console.log('2:' + arr[2])\\n //console.log('3:' + arr[3])\\n //console.log('4:' + arr[4])\\n if (d.getSeconds() === 0) {\\n var r = Math.floor(Math.random()*255);\\n var g = Math.floor(Math.random()*255);\\n var b = Math.floor(Math.random()*255);\\n var color = 'rgb('+r+','+g+','+b+')';\\n /*console.log(color);*/\\n $('body').css('background-color',color);\\n }\\n}\"}","created_at":"2020-05-31T13:33:09.391+08:00","updated_at":"2020-12-05T14:17:42.576+08:00","name":"Timer 副本","language":"web","screenshot":{"url":"https://cdn4.koding.school/uploads/project/screenshot/154166/c0f4fd0ea6112c875098430979f49608.jpg"},"parent_id":66485,"plugin":"","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":88,"hashid":"meysm2eg","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
到這台電腦