{"id":61278,"student_id":1652,"content":"{\"html\":\"\u003c!DOCTYPE html\u003e\\n\u003chtml\u003e\\n\u003chead\u003e\\n\\t\u003ctitle\u003eDocument\u003c/title\u003e\\n \u003clink rel=\\\"stylesheet\\\" href=\\\"https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css\\\"\u003e\\n \u003cscript src=\\\"https://code.jquery.com/jquery-3.2.1.min.js\\\"\u003e\u003c/script\u003e\\n \u003cscript src=\\\"https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js\\\"\u003e\u003c/script\u003e\\n \u003cscript src=\\\"https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js\\\"\u003e\u003c/script\u003e\\n\u003c/head\u003e\\n\u003cbody class=\\\"text-center p-5\\\"\u003e\\n \u003cstrong class=\\\"p-2 js-points\\\"\u003e連續答對 ? 題\u003c/strong\u003e\\n \u003cp class=\\\"h1 p-3 js-question\\\"\u003e??\u003c/p\u003e\\n \u003cbutton class=\\\"btn btn-primary btn-block js-option-a js-option\\\"\u003e?\u003c/button\u003e\\n \u003cbutton class=\\\"btn btn-primary btn-block js-option-b js-option\\\"\u003e?\u003c/button\u003e\\n \u003cbutton class=\\\"btn btn-primary btn-block js-option-c js-option\\\"\u003e?\u003c/button\u003e\\n \u003cbutton class=\\\"btn btn-primary btn-block js-option-d js-option\\\"\u003e?\u003c/button\u003e\\n \u003cbutton class=\\\"btn btn-warning btn-block js-next\\\"\u003e下一題\u003c/button\u003e\\n\u003c/body\u003e\\n\u003c/html\u003e\",\"css\":\"body {\\n background-color: #eee;\\n}\",\"js\":\"\\nvar answer;\\nvar answerButton;\\nvar point = 0;\\nvar dict = [];\\n$.get('https://orangeappletw.github.io/jsa-words/1000.json', function (data) {\\n // console.log(dict);\\n // console.log(dict.length);\\n // Math.floor(Math.random()*999);\\n dict = data\\n question()\\n\\n // var rand = Math.random()*dict.length;\\n // rand = Math.floor(rand);\\n // var a = dict[rand];\\n // $('.js-option-a').text(a.zh);\\n // var rand = Math.random()*dict.length;\\n // rand = Math.floor(rand);\\n // var b = dict[rand];\\n // $('.js-option-b').text(b.zh);\\n // var rand = Math.random()*dict.length;\\n // rand = Math.floor(rand);\\n // var c = dict[rand];\\n // $('.js-option-c').text(c.zh);\\n // var rand = Math.random()*dict.length;\\n // rand = Math.floor(rand);\\n // var d = dict[rand];\\n // $('.js-option-d').text(d.zh)d\\n\\n})\\nfunction question(){\\n var a = randomWord();\\n var b = randomWord();\\n var c = randomWord();\\n var d = randomWord();\\n $('.js-option-a').text(a.zh)\\n $('.js-option-b').text(b.zh)\\n $('.js-option-c').text(c.zh)\\n $('.js-option-d').text(d.zh)\\n\\n rand = Math.random()*4;\\n if (rand \u003c 1) {\\n answer = a\\n answerButton = $('.js-option-a')\\n } else if (rand \u003c 2) {\\n answer = b\\n answerButton = $('.js-option-b')\\n } else if (rand \u003c 3) {\\n answer = c\\n answerButton = $('.js-option-c')\\n } else {\\n answer = d\\n answerButton = $('.js-option-d')\\n }\\n $('.js-question').text(answer.en)\\n}\\nfunction randomWord() {\\n var rand = Math.random()*dict.length\\n rand = Math.floor(rand);\\n return dict[rand];\\n}\\n$('.js-next').click(function() {\\n $(this).hide();\\n $('.js-option').removeClass('btn-success btn-danger')\\n question()\\n})\\n$('.js-option').click(function() {\\n $('.js-next').show()\\n answerButton.addClass('btn-success');\\n if (answer.zh != $(this).text()) {\\n $(this).addClass('btn-danger')\\n }\\n})\"}","created_at":"2019-03-30T13:47:57.607+08:00","updated_at":"2019-10-18T00:19:01.514+08:00","name":"英文單字王 副本","language":"web","screenshot":{"url":"https://cdn9.koding.school/uploads/project/screenshot/61278/488edbf51267321f91d9f309a00a3fb2.jpg"},"parent_id":23790,"plugin":"","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":64,"hashid":"zpesq6md","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":1078183,"file_name":"images (7).jpg","project_id":61278,"asset_id":100038,"created_at":"2019-03-30T13:51:10.639+08:00","updated_at":"2019-03-30T13:51:10.639+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
下載 Android APP (APK)
截圖
前往網站頁面
1:1:1
1:1
full
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦